On 11 November 2012 21:57, Dennis Clarke wrote:
> Here is what I did with gmp :
>
> $ ls $SRC/gmp*
> /usr/local/src/gmp-5.0.5.tar.bz2
>
> $ /opt/schily/bin/star -x -bz -xdir -xdot -U -fs=16m 
> file=/usr/local/src/gmp-5.0.5.tar.bz2
> star: 1262 blocks + 0 bytes (total of 12922880 bytes = 12620.00k).
> $ mv gmp-5.0.5 gmp-5.0.5_SunOS5.10_sparcv9-for-gcc-4.7.2
>
> $ mkdir gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou
> $ cd gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou
>
> So now that I am in the gcc build dir ( named after you actually ) I do this :
>
>
> $ CC='gcc -mno-app-regs -mcpu=v9 -m64 -mptr64 -g -D_POSIX_PTHREAD_SEMANTICS 
> -D_LARGEFILE64_SOURCE -D_TS_ERRNO' \
>> CXX='g++ -mno-app-regs -mcpu=v9 -m64 -mptr64 -g -D_POSIX_PTHREAD_SEMANTICS 
>> -D_LARGEFILE64_SOURCE -D_TS_ERRNO' \
>> ../gmp-5.0.5_SunOS5.10_sparcv9-for-gcc-4.7.2/configure ABI=64 --enable-cxx 
>> --prefix=/usr/local/gcc4 \
>> --libdir=/usr/local/gcc4/lib --build=sparc64-sun-solaris2.10

What on earth are you doing here?

You seem to be running the gmp configure script inside the gcc build
dir ... why? Who suggested that?

> The result however, is that the gcc build dir is polluted with objects from 
> the gmp build.

Well duh.

http://gcc.gnu.org/wiki/InstallingGCC

Just run the contrib/download_prerequisites script to put the gmp,
mpfr & mpc sources in the gcc source tree then forget about gmp, mpfr
and mpc completely.  Just configure GCC, as Eric and Ryan have
suggested, and run make. Don't try to configure and build gmp
yourself, *definitely* not in the GCC build dir.  You're making it far
more complicated than it needs to be, stop it.

Finally, shouldn't this be on the gcc-help list?  This is just a "how
do I install GCC?" question, the 64-bit aspect seems to be a red
herring.

Reply via email to