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

2012-11-11 Thread Dennis Clarke
> 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

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

2012-11-11 Thread Jonathan Wakely
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)

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

2012-11-11 Thread Dennis Clarke
> > What isn't clear is where that is run. I decided that I will take your > > approach and try to follow the magic incantations to the very > letter. OKay, > > sort of. I may expand on the CFLAGS just a little bit and I have to > assume, > > in the absence of any data, that I shall run these "c

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

2012-11-11 Thread Eric Botcazou
> What isn't clear is where that is run. I decided that I will take your > approach and try to follow the magic incantations to the very letter. OKay, > sort of. I may expand on the CFLAGS just a little bit and I have to assume, > in the absence of any data, that I shall run these "config ; make; m

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

2012-11-11 Thread Dennis Clarke
> > The last (very annoying) issue is that when gcc bootstraps itself, the > > freshly-built compiler doesn't generate 64-bit binaries by default. > > BOOT_CFLAGS can work around that: http://gcc.gnu.org/install/build.html. > > That isn't true at all. okay .. I'll just nod my head and agree. >

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

2012-11-11 Thread Dennis Clarke
> > The last (very annoying) issue is that when gcc bootstraps itself, the > > freshly-built compiler doesn't generate 64-bit binaries by default. > > BOOT_CFLAGS can work around that: http://gcc.gnu.org/install/build.html. > > That isn't true at all. > > > CC='cc -m64' CXX='CC -m64' ../gmp-5.0.

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

2012-11-11 Thread Eric Botcazou
> The last (very annoying) issue is that when gcc bootstraps itself, the > freshly-built compiler doesn't generate 64-bit binaries by default. > BOOT_CFLAGS can work around that: http://gcc.gnu.org/install/build.html. That isn't true at all. > CC='cc -m64' CXX='CC -m64' ../gmp-5.0.1-src/configure

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

2012-11-10 Thread Jonathan Wakely
On 10 November 2012 22:08, Ryan Johnson wrote: > You know, somehow I'd missed that gcc would build the numerical libs for you > if they were in tree... I'd only heard about the host tools (binutils, > etc.). Does it do the same for all deps (e.g. readline) as well? No. The contrib/download_prereq

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

2012-11-10 Thread Ryan Johnson
On 10/11/2012 4:54 PM, Jonathan Wakely wrote: On 10 November 2012 20:51, Dennis Clarke wrote: So 32-bit gcc works just fine. However I need a pile of libs all over the place ( gmp, mpfr, mpc, etc etc ) for this to work No you don't. If you put gmp, mpfr and mpc in the GCC source tree, or ins

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

2012-11-10 Thread Jonathan Wakely
On 10 November 2012 20:51, Dennis Clarke wrote: > > So 32-bit gcc works just fine. However I need a pile of libs all over the > place ( gmp, mpfr, mpc, etc etc ) for this to work No you don't. If you put gmp, mpfr and mpc in the GCC source tree, or install them with --disable-shared, then you d

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

2012-11-10 Thread Ryan Johnson
On 10/11/2012 3:51 PM, Dennis Clarke wrote: Eric wrote: Any pointers at all as to the error of my ways ? http://gcc.gnu.org/install/specific.html#sparc64-x-solaris2 You're up against three factors here. First, the sparc64 platform ABI specifies 32-bit executables unless the user specifically a

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

2012-11-10 Thread Dennis Clarke
> Eric wrote: > > > Any pointers at all as to the error of my ways ? > > > > http://gcc.gnu.org/install/specific.html#sparc64-x-solaris2 > You're up against three factors here. First, the sparc64 platform ABI > specifies 32-bit executables unless the user specifically asks for > 64-bit. I'm real

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

2012-11-10 Thread Ryan Johnson
Eric wrote: > Any pointers at all as to the error of my ways ? http://gcc.gnu.org/install/specific.html#sparc64-x-solaris2 You're up against three factors here. First, the sparc64 platform ABI specifies 32-bit executables unless the user specifically asks for 64-bit. I'm really unclear on why

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

2012-11-10 Thread Eric Botcazou
> I can not see my error here and am wondering what the issue is. Obviously, if you have 32-bit object files in your build tree, you're using a 32-bit compiler. Which very likely means that you didn't set CC and CXX. -- Eric Botcazou

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

2012-11-09 Thread Dennis Clarke
> > nope. Been there .. done that and that fails badly .. in fact worse > than > > before : > > Yet this is the standard way and works flawlessly if done correctly... I can not see my error here and am wondering what the issue is. > > However I am way way open to suggestion here. > > You ne

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

2012-11-09 Thread Eric Botcazou
> nope. Been there .. done that and that fails badly .. in fact worse than > before : Yet this is the standard way and works flawlessly if done correctly... > However I am way way open to suggestion here. You need to configure everything with --build=sparc64-sun-solaris2.10 and compile everythi

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

2012-11-09 Thread Dennis Clarke
> > Any pointers at all as to the error of my ways ? > > http://gcc.gnu.org/install/specific.html#sparc64-x-solaris2 nope. Been there .. done that and that fails badly .. in fact worse than before : Configure .. look good but lies : $ ../gcc-4.7.2/configure --build=sparc64-sun-solaris2.10

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

2012-11-09 Thread Eric Botcazou
> Any pointers at all as to the error of my ways ? http://gcc.gnu.org/install/specific.html#sparc64-x-solaris2 -- Eric Botcazou