> I've encountered precisely this error on one of the new MacBook Pros.
> gmp-4.3.2 and gmp5-5.0.1 fail the same way. I include messages
> from the tail end of the compilation below, and also the answers to
> the questions you asked for my system.
>
> >sw_vers
> ProductName: Mac OS X
> ProductVersion: 10.6.6
> BuildVersion: 10J3210
>
> >gcc -v
> Using built-in specs.
> Target: i686-apple-darwin10
> Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking
> --enable-werror
> --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
> --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10-
> --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
> --with-gxx-include-dir=/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Apple Inc. build 5664)
>
> >uname -a
> Darwin d-172-25-103-97.bootp.virginia.edu 10.7.1 Darwin Kernel
> Version 10.7.1:
> Mon Jan 31
> 14:55:53 PST 2011; root:xnu-1504.10.48~4/RELEASE_X86_64 x86_64
To clarify: for me, the error occurs when building gmp, but actually while
building the first dependency: gmp-shlibs 4.3.2-5. I see that gmp had
a package update last night, but of course since the error is thrown on
a check before it gets to that package, there is no change in behavior.
Below I try to attach the fink output (having a bit of trouble with
the web interface to the mail list, so sorry if that fails).
Thanks,
Kent Paschke
The following package will be installed or updated: gmp-shlibs Setting
runtime build-lock... dpkg-deb -b
/sw/src/fink.build/root-fink-buildlock-gmp-4.3.2-5 /sw/src/fink.build
dpkg-deb: building package `fink-buildlock-gmp-4.3.2-5' in
`/sw/src/fink.build/fink-buildlock-
gmp-4.3.2-5_2011.03.11-14.02.59_darwin-i386.deb'. Installing
build-lock package... /sw/bin/dpkg-lockwait -i
/sw/src/fink.build/fink-buildlock-gmp-4.3.2-5_2011.03.11-
14.02.59_darwin-i386.deb Selecting previously deselected package
fink-buildlock-gmp-4.3.2-5. (Reading database ... 4407 files and
directories currently installed.) Unpacking
fink-buildlock-gmp-4.3.2-5 (from
.../fink-buildlock-gmp-4.3.2-5_2011.03.11- 14.02.59_darwin-i386.deb)
... Setting up fink-buildlock-gmp-4.3.2-5 (2011.03.11-14.02.59) ...
gzip -dc /sw/src/gmp-4.3.2.20100509.tar.gz | /sw/bin/tar -xf -
--no-same-owner --no-same-
permissions
/var/tmp/tmp.1.RThh2k
#! /bin/sh -ev
# extra checks for compiler version
# darwin8's default compiler is good
# darwin9 needs newer compiler
# darwin10's default compiler is good
darwin_vers=`uname -r | cut -d. -f1`
uname -r | cut -d. -f1
if test "$darwin_vers" = 9 ; then
export CC=gcc-4.2
export CXX=g++-4.2
test -x `which gcc-4.2` || { echo "gcc-4.2 required, but missing!";
exit
1; }
fi
if [ "." == "." ] ; then
case "i386" in
i386 | powerpc) ABI=32 ./configure --prefix=/sw
--infodir='${prefix}/share/info' \
--enable-cxx --libdir='${prefix}/lib';;
x86_64) ABI=64 ./configure --prefix=/sw
--infodir='${prefix}/share/info' \
--enable-cxx --libdir='${prefix}/lib';;
esac
else
case "i386" in
i386) ABI=64 ./configure --prefix=/sw
--infodir='${prefix}/share/info' \
--enable-cxx --libdir='${prefix}/lib';;
powerpc) ABI=mode64 ./configure --prefix=/sw
--infodir='${prefix}/share/info' \
--enable-cxx --libdir='${prefix}/lib';;
esac
fi
checking build system type... i386-apple-darwin10.7.1
checking host system type... i386-apple-darwin10.7.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
<<<SNIP>>
creating t-locale
make check-TESTS
PASS: t-printf
PASS: t-scanf
Test skipped, replacing localeconv/nl_langinfo doesn't work
PASS: t-locale
==================
All 3 tests passed
==================
Making check in cxx
make t-assign t-binary t-cast t-constr t-headers t-istream t-locale
t-misc
t-ops t-ostream t-prec
t-rand t-ternary t-unary
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests
-fexceptions
-I/sw/include -m32 -O2 -
pedantic -fomit-frame-pointer -mtune=i386 -march=i386 -c
-o t-assign.o t-assign.cc
/bin/sh ../../libtool --mode=link g++ -m32 -O2 -pedantic
-fomit-frame-pointer -mtune=i386 -
march=i386 -L/sw/lib -o t-assign t-assign.o -L../../.libs
../../tests/libtests.la ../../libgmpxx.la
../../libgmp.la
mkdir .libs
g++ -m32 -O2 -pedantic -fomit-frame-pointer -mtune=i386
-march=i386 -o .libs/t-assign t-
assign.o -Wl,-bind_at_load -L/sw/src/fink.build/gmp-4.3.2-5/
gmp-4.3.2/.libs -L/sw/lib
../../tests/.libs/libtests.a ../../.libs/libgmpxx.dylib
/sw/src/fink.build
/gmp-4.3.2-5/gmp-
4.3.2/.libs/libgmp.dylib ../../.libs/libgmp.dylib
Undefined symbols:
"___sync_fetch_and_add_4", referenced from:
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpq() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpf() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
check_mpz() in t-assign.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [t-assign] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
### execution of /var/tmp/tmp.1.RThh2k failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-gmp-4.3.2-5
(Reading database ... 4408 files and directories currently installed.)
Removing fink-buildlock-gmp-4.3.2-5 ...
Failed: phase compiling: gmp-4.3.2-5 failed
Before reporting any errors, please run "fink selfupdate" and
try again. If you continue to have issues, please check to see if the
FAQ on fink's website solves the problem. If not, ask on the fink-users
or fink-beginners mailing lists, with a carbon copy to the maintainer:
David Fang <[email protected]>
Note that this is preferable to emailing the maintainer directly, since
most fink package maintainers do not have access to all possible
hardware and software configurations.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners