This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: the struggle to create a 64-bit gcc on Solaris 10


> 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?

Making a stupid mistake. Just sit back and make popcore, this will allll work out in the end. 

No really, I am hoping for a great result real soon now. 

However I now have mpfr getting upset at me for this : 

/bin/bash ../libtool --tag=CC   --mode=link gcc -mno-app-regs -mcpu=v9 -m64 -mptr64 -g -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO  -mno-app-regs -mcpu=v9 -m64 -mptr64 -g -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO -no-install -L../src/.libs -L/usr/local/lib -o tversion tversion.o libfrtests.la -lm ../src/libmpfr.la -lgmp
libtool: link: gcc -mno-app-regs -mcpu=v9 -m64 -mptr64 -g -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO -mno-app-regs -mcpu=v9 -m64 -mptr64 -g -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO -o tversion tversion.o  -L../src/.libs -L/usr/local/lib ./.libs/libfrtests.a -lm ../src/.libs/libmpfr.so /usr/local/lib/libgmp.so -R/usr/local/build/mpfr-3.1.1_SunOS5.10_sparcv9-for-gcc-4.7.2/src/.libs -R/usr/local/lib -R/usr/local/lib
ld: fatal: file /usr/local/lib/libgcc_s.so.1: version 'GCC_4.3.0' does not exist:
        required by file ../src/.libs/libmpfr.so
ld: fatal: file processing errors. No output written to tversion
collect2: ld returned 1 exit status
gmake[2]: *** [tversion] Error 1

Sweet. 

This is what happens when I have libgcc from Sun as well as my own libgcc from GCC 4.5.1. 

Easy to sort out .. just annoying. 

> Well duh.

Yes, I deserve the shame. Also, even worse, I really am not new to this. 
 
> 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.

[screetch]  <-- sound of large brembo brakes 

> 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.

Yes, and I did post there and was told to post there and never heard a word of feedback from anyone. So therefore this is far more successful here .. but the wrong place. However the right place for feedback. Thus the correct place.  If you get my meaning. 

see http://gcc.gnu.org/ml/gcc-help/2012-11/msg00043.html

See?  I did try. 

Dennis



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]