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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: ted, Assigned: ted)

References

Details

Attachments

(1 file)

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.
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 ;;
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
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)
+ 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?
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.
Attachment #352024 - Flags: review?(benjamin) → review+
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?
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.
(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.)
Blocks: 538837
Target Milestone: --- → mozilla1.9.2a1
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: