On Mac OS X 10.5 with the default gcc 4.2, configure fails in js due to 719659 ... checking whether the C compiler works... no configure: error: in `/work/mozilla/builds/nightly/mozilla/firefox-debug/js/src/ctypes/libffi': configure: error: C compiler cannot create executables See `config.log' for more details. configure: error: /work/mozilla/builds/nightly/mozilla/js/src/ctypes/libffi/configure failed for ctypes/libffi configure: error: /work/mozilla/builds/nightly/mozilla/js/src/configure failed for js/src ...
Fixed by backout (in Bug 721625) this may reappear though if the patch ever re-lands. https://hg.mozilla.org/mozilla-central/rev/1a08877de7ed https://hg.mozilla.org/mozilla-central/rev/cdf89e1937eb (merge cset)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Bob, is that the config.log you meant to upload? It doesn't contain the error in your comment. Did you upload the libffi config.log, or some other one? The one you uploaded shows that the two arguments that were added work just fine, which is what confuses me.
Waldo, damn. I just included the overall Firefox config.log and not the js/src config. Let me rebuild with your patch and include the proper one.
is this better?
Comment 5 gets the right thing. In that, I see this: configure:3249: checking for gcc configure:3265: found /usr/bin/gcc configure:3276: result: gcc configure:3505: checking for C compiler version configure:3514: gcc --version >&5 i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3525: $? = 0 configure:3514: gcc -v >&5 Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5493) 4.0.1!?!?! Why in the world is that being found? I hate autoconf.
Ah, Firefox's global configure $ grep gcc-4.2 configure # we prefer gcc-4.2 over gcc on older darwin, so for ac_prog in $CC gcc-4.2 gcc I bet js's configures don't do that. I suppose I could just set CC if that is used in js's other configures.
fyi, setting CC=gcc-4.2 and CXX=g++-4.2 on my Mac OS X 10.5 works.
Hmm, if js's configure isn't doing that, it totally should, I think.
You need to log in before you can comment on or make changes to this bug.