Closed
Bug 1465731
Opened 7 years ago
Closed 6 years ago
mozjs fails to build on armv6
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox64 fixed)
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: guillaume.gardet, Assigned: guillaume.gardet)
Details
Attachments
(1 file, 2 obsolete files)
898 bytes,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
Steps to reproduce:
While trying to build mozjs52 for armv6, you get an error, because ARM_ARCH is not set to 6, but to '6\n6'
Actual results:
ARM_ARCH setting is broken in build/autoconf/arch.m4 file, when multiple lines matches the pattern.
Expected results:
So, we can just use the first line by adding '| head -n 1' for example. See attachment.
Comment 1•7 years ago
|
||
This is with the latest Firefox version? If not please please download it from here: https://www.mozilla.org/ro/firefox/new/
Component: Untriaged → JavaScript Engine
Flags: needinfo?(guillaume.gardet)
Product: Firefox → Core
Updated•7 years ago
|
Attachment #8982154 -
Attachment mime type: text/x-patch → text/plain
Comment 2•7 years ago
|
||
Looks like 52 ESR.
Comment 4•7 years ago
|
||
Thanks for contributing a patch, but you might want to add you name and a proper subject as part of the commit, in order to get credit back on your contribution.
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction#Step_4_Get_your_code_reviewed
Component: JavaScript Engine → General
Product: Core → Firefox Build System
Assignee | ||
Comment 5•7 years ago
|
||
Attachment #8982154 -
Attachment is obsolete: true
Assignee | ||
Comment 6•6 years ago
|
||
Anything blocking?
Comment 7•6 years ago
|
||
Comment on attachment 8992292 [details] [diff] [review]
Patch with 'From' and 'Subject' lines
Needs review from a build peer. Note the code is the same in current FF, so if the patch is correct we may want to consider more than ESR52.
Attachment #8992292 -
Flags: review?(mh+mozilla)
Comment 8•6 years ago
|
||
Comment on attachment 8992292 [details] [diff] [review]
Patch with 'From' and 'Subject' lines
Review of attachment 8992292 [details] [diff] [review]:
-----------------------------------------------------------------
::: firefox-52.6.0esr.orig/build/autoconf/arch.m4
@@ +217,4 @@
>
> AC_MSG_CHECKING(ARM version support in compiler)
> dnl Determine the target ARM architecture (5 for ARMv5, v5T, v5E, etc.; 6 for ARMv6, v6K, etc.)
> + ARM_ARCH=`${CC-cc} ${CFLAGS} -dM -E - < /dev/null | sed -n 's/.*__ARM_ARCH_\([[0-9]][[0-9]]*\).*/\1/p' | head -n 1`
It would be better to just add a 1 before the s in the sed command.
Attachment #8992292 -
Flags: review?(mh+mozilla)
Assignee | ||
Comment 9•6 years ago
|
||
Attachment #8992292 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #9013980 -
Flags: review?(mh+mozilla)
Updated•6 years ago
|
Attachment #9013980 -
Flags: review?(mh+mozilla) → review+
Updated•6 years ago
|
Assignee: nobody → guillaume.gardet
Keywords: checkin-needed
Comment 10•6 years ago
|
||
Pushed by nbeleuzu@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/494eb5db5648
Fix armv6 build. r=glandium
Keywords: checkin-needed
Comment 11•6 years ago
|
||
Backed out changeset 494eb5db5648 (Bug 1465731) for bustages in the MOZBUILD file
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=testfailed,busted,exception&classifiedState=unclassified&fromchange=d4a99f4598435e66d76dedd72558a494c73687fc&selectedJob=203307980
https://treeherder.mozilla.org/logviewer.html#?job_id=203307980&repo=mozilla-inbound&lineNumber=1611
Flags: needinfo?(guillaume.gardet)
Updated•6 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Comment 12•6 years ago
|
||
Disregard last comment since bustages were caused
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INCOMPLETE → ---
Comment 13•6 years ago
|
||
Backout by shindli@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4c3191c16f0a
Backed out changeset 494eb5db5648 for bustages in the MOZBUILD file
Comment 14•6 years ago
|
||
Err, my fault, 1s replaces on the first line, but the first line doesn't contain __ARM_ARCH_. The original patch was actually fine.
Updated•6 years ago
|
Attachment #8992292 -
Attachment is obsolete: false
Attachment #8992292 -
Flags: review+
Updated•6 years ago
|
Attachment #9013980 -
Attachment is obsolete: true
Updated•6 years ago
|
Flags: needinfo?(guillaume.gardet)
Updated•6 years ago
|
Keywords: checkin-needed
Comment 15•6 years ago
|
||
Pushed by nbeleuzu@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/34ab0ef2419d
Fix armv6 build. r=glandiumd
Keywords: checkin-needed
Comment 16•6 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 6 years ago → 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•