Closed
Bug 1031593
Opened 10 years ago
Closed 9 years ago
B2G cannot be built with GNU make 4.0
Categories
(Firefox OS Graveyard :: GonkIntegration, defect)
Tracking
(b2g-master fixed)
RESOLVED
FIXED
FxOS-S4 (07Aug)
Tracking | Status | |
---|---|---|
b2g-master | --- | fixed |
People
(Reporter: jld, Assigned: kanru)
References
Details
Attachments
(1 file, 1 obsolete file)
Because Android requires GNU make 3.81 or 3.82, and no other versions, by extension so does B2G. As more Linux distributions upgrade, and as we continue to support B2G configurations based on old Android versions like ICS, this is likely to become a larger issue.
Do we want to do something about this? If so, what?
Comment 1•10 years ago
|
||
I just hit this after upgrading to Ubuntu 14.10.
Comment 2•10 years ago
|
||
Note: The current work-around is the build/install an older version of make and use that when building b2g (one technique is to put /path/to/old-make/bin at the beginning of your search path).
Comment 3•10 years ago
|
||
I just disabled the check on my local copy, and building with make 4.0 works fine for the flame.
Comment 4•10 years ago
|
||
(In reply to Augustin Trancart [:autra] from comment #3)
> I just disabled the check on my local copy, and building with make 4.0 works
> fine for the flame.
I tried doing that with a Buri/Hamachi build and I got a failure very early during |./build.sh gecko|:
> build/core/prebuilt.mk:141: *** recipe commences before first target. Stop.
With make 3.82 it's currently progressing normally.
Assignee | ||
Comment 6•10 years ago
|
||
New Debian stable is released and it comes with make 4.0 as well.
Comment 7•10 years ago
|
||
I just ran into this problem on Debian Jessie.
Can this be solved by adding a prebuilt make to our repositories and setting the MAKE variable in 'build.sh'?
Comment 8•10 years ago
|
||
Another problem on Debian 8 is that there are no older compilers available for building Android code from ICS repositories. Is it possible to use one of the prebuilt compilers for this?
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Nicholas Nethercote [:njn] from comment #4)
> (In reply to Augustin Trancart [:autra] from comment #3)
> > I just disabled the check on my local copy, and building with make 4.0 works
> > fine for the flame.
>
> I tried doing that with a Buri/Hamachi build and I got a failure very early
> during |./build.sh gecko|:
>
> > build/core/prebuilt.mk:141: *** recipe commences before first target. Stop.
>
> With make 3.82 it's currently progressing normally.
I tried to build emulator with make 4.0 today but also encountered this error.
Assignee | ||
Comment 10•10 years ago
|
||
commenting out build/core/prebuilt.mk line 139 to line 145 let the build continues
Assignee | ||
Comment 11•10 years ago
|
||
looks like a bug introduced in build/core/prebuilt.mk rev 1b6d0a65fc62901f2c18d00c556bd5da50f35584 because it made line 139 to 145 dangling recipe commences
Assignee | ||
Comment 12•10 years ago
|
||
apply this patch under build/
Assignee | ||
Updated•10 years ago
|
Attachment #8606093 -
Attachment is patch: true
Comment 13•9 years ago
|
||
Comment on attachment 8606093 [details] [diff] [review]
patch
Ping on this. Who can review this change? Looks like the prebuilt fix might no longer be necessary, so I think just the make version check is needed.
Attachment #8606093 -
Flags: review?(21)
Comment 14•9 years ago
|
||
Comment on attachment 8606093 [details] [diff] [review]
patch
Maybe mwu but clearly not me :)
Attachment #8606093 -
Flags: review?(21) → review?(mwu)
Comment 15•9 years ago
|
||
Comment on attachment 8606093 [details] [diff] [review]
patch
Review of attachment 8606093 [details] [diff] [review]:
-----------------------------------------------------------------
The main.mk part looks fine. I don't think we need the prebuilt.mk part. Please resubmit as a PR.
Attachment #8606093 -
Flags: review?(mwu)
Assignee | ||
Comment 16•9 years ago
|
||
Assignee: nobody → kchen
Attachment #8606093 -
Attachment is obsolete: true
Attachment #8639667 -
Flags: review?(mwu)
Comment 17•9 years ago
|
||
Comment on attachment 8639667 [details] [review]
https://github.com/mozilla-b2g/platform_build/pull/122
r=me for this on master branch and any other branch this might apply to. (I think everything up to and including kitkat probably needs this..)
Attachment #8639667 -
Flags: review?(mwu) → review+
Comment 19•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
status-b2g-master:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S4 (07Aug)
You need to log in
before you can comment on or make changes to this bug.
Description
•