Closed
Bug 468515
Opened 16 years ago
Closed 16 years ago
configure doesn't set OS_TEST properly in 64-bit OS X builds
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: ted, Assigned: ted)
References
Details
Attachments
(1 file)
918 bytes,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
Building with CC="gcc -arch x86_64" CXX="g++ -arch x86_64", I still get -DAVMPLUS_IA32 in my CXXFLAGS. I suspect this has to do with buggy logic for setting this flag in the Makefile. This really ought to get AC_DEFINEd in configure anyway. I've been meaning to clean up the Makefile and move some stuff into configure, maybe I'll take this opportunity to do it.
Comment 1•16 years ago
|
||
I came across this a couple of months ago. We ask 'uname -p', which always outputs i386.
Configure.in lines 1222 to 1234 as an example:
Darwin)
case "${target_cpu}" in
powerpc*)
OS_TEST=ppc
;;
i*86*)
OS_TEST=i386
;;
*)
if test -z "$CROSS_COMPILE" ; then
OS_TEST=`uname -p`
fi
;;
Assignee | ||
Comment 2•16 years ago
|
||
Aha, thanks! I didn't realize that was the root cause. I have a tiny patch to fix it.
Assignee: general → ted.mielczarek
Component: JavaScript Engine → Build Config
QA Contact: general → build-config
Summary: JS build system defines AVMPLUS_IA32 for 64-bit OS X builds → configure doesn't set OS_TEST properly in 64-bit OS X builds
Assignee | ||
Comment 3•16 years ago
|
||
I'm able to build Spidermonkey without problems with this patch. (Didn't try a full Firefox build, I know that doesn't build.) Note that you still have to run configure like:
CC="gcc -arch x86_64" CXX="gcc -arch x86_64" ../js/src/configure --target=x86_64-apple-darwin
Attachment #352024 -
Flags: review?(benjamin)
Assignee | ||
Comment 4•16 years ago
|
||
+ If test -z "$CROSS_COMPILE" ; then
Oops, didn't notice this extraneous capitalization. I've reverted that locally.
I've tried this patch (without extraneous capitalization) and the Patch for prlink.c from Bug 370766 to build a 64-bit Thunderbird. And now it works much better than before, but stops after 1 Minute with an error. It seems my libiconv from Macports is not 64-bit. So I've build me a 64-bit version of libiconv in /usr/local. But how can I link to that in my mozconfig?
Assignee | ||
Comment 6•16 years ago
|
||
Please keep distinct issues in separate bugs. If there's no bug for that issue, file a new one and make it block bug 468509.
Updated•16 years ago
|
Attachment #352024 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 7•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
One question, does this patch also find its way into mozilla-1.9.1 after a few days in mozilla-central? Or is this 64-bit thing (at the moment) only for firefox?
Assignee | ||
Comment 9•16 years ago
|
||
Doesn't seem worthwhile to land this in 1.9.1, as the porting effort will be ongoing and unlikely to make 1.9.1.
Assignee | ||
Comment 10•16 years ago
|
||
(That is to say, Thunderbird and SeaMonkey will be able to benefit by building off of mozilla-central, so it probably won't make Thunderbird 3.0.)
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•