Dear Fang, indeed, since I have an older XCode installed, it does not include gcc4.2, only gcc4.0. Since I am running OS 10.5, according to the Apple Developer Site, I can not update to the latest XCode, which requires Snow Leopard.
However, I realized that fink has gcc4.2 installed, under the name gcc4 So I did in /sw/bin sudo ln -s gcc-4 gcc-4.2 sudo ln -s g++-4 g++-4.2 I get: gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin9 Configured with: ../gcc-4.2.4/configure --prefix=/sw --prefix=/sw/lib/ gcc4.2 --mandir=/sw/share/man --infodir=/sw/share/info --enable- languages=c,c++,fortran,objc,java --with-arch=nocona --with- tune=generic --host=i686-apple-darwin9 --with-gmp=/sw --with-libiconv- prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x- libraries=/usr/X11R6/lib --disable-libjava-multilib Thread model: posix gcc version 4.2.4 Now, fink runs for some longer time, but finally there is a new error (I only copy the end of the terminal log), see below. Best Kay gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../ tests -fexceptions -I/sw/include -m32 -O2 -pedantic -fomit-frame- pointer -mtune=k8 -march=k8 -c t-get_d_2exp.c In file included from ../../gmp-impl.h:110, from t-get_d_2exp.c:23: /usr/include/inttypes.h:255:20: error: stdint.h: No such file or directory In file included from ../../gmp-impl.h:110, from t-get_d_2exp.c:23: /usr/include/inttypes.h:268: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'imaxabs' /usr/include/inttypes.h:272: error: expected specifier-qualifier-list before 'intmax_t' /usr/include/inttypes.h:276: error: expected ')' before 'numer' /usr/include/inttypes.h:279: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strtoimax' /usr/include/inttypes.h:280: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strtoumax' /usr/include/inttypes.h:290: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wcstoimax' /usr/include/inttypes.h:291: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wcstoumax' In file included from t-get_d_2exp.c:23: ../../gmp-impl.h:187: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gmp_uint_least32_t' ../../gmp-impl.h:3247: error: expected specifier-qualifier-list before 'gmp_uint_least32_t' ../../gmp-impl.h:3251: warning: struct has no members make[4]: *** [t-get_d_2exp.o] 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.rGnTMY 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 ... 107838 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 <fang...@users.sourceforge.net> 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. > Message: 2 > Date: Thu, 20 May 2010 12:17:11 -0400 (EDT) > From: David Fang <f...@csl.cornell.edu> > Subject: Re: [Fink-users] Failed: phase compiling: gmp-4.3.2-5 failed > To: Kay Wiese <wi...@lpt.ens.fr> > Cc: fink-users@lists.sourceforge.net, David Fang > <fang...@users.sourceforge.net> > Message-ID: <20100520121611.g76...@shannon.csl.cornell.edu> > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed > > Hi Kay, > Do you have gcc-4.2 (from Xcode) installed? > Can you confirm: > $ which gcc-4.2 > $ gcc-4.2 -v > > > Fang Dr. Kay Wiese Directeur de Recheche au CNRS Laboratoire de Physique Théorique de l"Ecole Normale Superieur 24 rue Lhomond 75005 Paris France Tel.: 00331.44.32.25.39 Fax.: 00331.43.36.76.66 http://www.phys.ens.fr/~wiese ------------------------------------------------------------------------------ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users