* 64-bit gcc3.1 on Solaris?
@ 2002-06-29 22:52 Elliott Potter
0 siblings, 0 replies; 4+ messages in thread
From: Elliott Potter @ 2002-06-29 22:52 UTC (permalink / raw)
To: gcc-help
Has anyone tried to compile gcc 3.1 as 64 bit on Solaris 2.8 or 2.9?
I got it compiled as 32 bit no problem (twice actually) and it does
appear to compile working 64 bit programs, but just for the heck of it I
thought I'd try to compile the compiler with the -m64 option.
Yea, I can't get that to work.
Anyway I thought I'd test the waters and see if anyone thought this was
worth bothering with before I sent a mega-post with configure lines and
error messages and such. I guess that I should point out that I'm using a
basically default Solaris 2.9 installation (including the solaris ld and
as) but I'm attempting to use the gcc 3.1 I bootstrapped to build the 64
bit gcc.
Eh? If there are any takers I'll send the mega-post with helpful
messages.
Thanks
--
Elliott
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <616BE6A276E3714788D2AC35C40CD18D6BFBC9@whale.softwire.co.uk>]
* RE: 64-bit gcc3.1 on Solaris?
[not found] <616BE6A276E3714788D2AC35C40CD18D6BFBC9@whale.softwire.co.uk>
@ 2002-07-01 11:23 ` Rupert Wood
2002-07-01 12:46 ` Elliott Potter
0 siblings, 1 reply; 4+ messages in thread
From: Rupert Wood @ 2002-07-01 11:23 UTC (permalink / raw)
To: 'Elliott Potter'; +Cc: gcc-help
Elliott Potter wrote:
> Has anyone tried to compile gcc 3.1 as 64 bit on Solaris 2.8 or 2.9?
> I got it compiled as 32 bit no problem (twice actually) and it does
> appear to compile working 64 bit programs, but just for the heck of
> it I thought I'd try to compile the compiler with the -m64 option.
I don't have 2.9 to play with but the following works for me on 2.8:
CC="gcc -m64" ~/cvs/gcc31/configure --enable-threads=posix \
--disable-checking --disable-nls --with-cpu=ultrasparc \
sparcv9-sun-solaris2.8 \
&& gmake -j4 bootstrap CC="gcc -m64"
using Sun's as and ld and CVS GCC3.1.1 sources from the middle of last
week (release 3.1 ought to work too). gmake is GNU make - haven't tried
Sun's make. This build didn't include Ada; I've got Sun ld vs Ada symbol
problems and GNU ld 64-bit vs patched libdl.so problems but I haven't
yet found time to work out what bugs I need to report to whom.
For day to day use, though, I'd stick to the default 32-bit version and
-m64.
Rup.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: 64-bit gcc3.1 on Solaris?
2002-07-01 11:23 ` Rupert Wood
@ 2002-07-01 12:46 ` Elliott Potter
0 siblings, 0 replies; 4+ messages in thread
From: Elliott Potter @ 2002-07-01 12:46 UTC (permalink / raw)
To: Rupert Wood; +Cc: gcc-help
On Mon, 1 Jul 2002, Rupert Wood wrote:
> Elliott Potter wrote:
>
> > Has anyone tried to compile gcc 3.1 as 64 bit on Solaris 2.8 or 2.9?
> > I got it compiled as 32 bit no problem (twice actually) and it does
> > appear to compile working 64 bit programs, but just for the heck of
> > it I thought I'd try to compile the compiler with the -m64 option.
>
> I don't have 2.9 to play with but the following works for me on 2.8:
>
> CC="gcc -m64" ~/cvs/gcc31/configure --enable-threads=posix \
> --disable-checking --disable-nls --with-cpu=ultrasparc \
> sparcv9-sun-solaris2.8 \
> && gmake -j4 bootstrap CC="gcc -m64"
The configure line I used to make the 32 bit version was:
CC="gcc -mcpu=ultrasparc" ../configure --prefix=/usr/local/gcc-3.1-1 \
--enable-threads=posix --with-cpu=ultrasparc \
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld \
--disable-nls
make CFLAGS="-mcpu=ultrasparc" BOOT_CFLAGS="-mcpu=ultrasparc" \
bootstrap MAKE="make -j3"
...which worked like a charm. For the 64-bit version I used the same
lines except added "-m64" to the CC/*CFLAGS arguments.
That works just fine until later stages, where it fails at the same place
regardless of different combinations of CFLAGS and such that I've tried:
stage1/xgcc -Bstage1/ -B/usr/local/gcc-3.1-2/sparc-sun-solaris2.9/bin/
-DIN_GCC -O3 -mcpu=ultrasparc -m64 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
ld: fatal: file /usr/lib/sparcv9/values-Xa.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to gengenrtl
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/usr/local/gcc-3.1-2-build/objdir/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/usr/local/gcc-3.1-2-build/objdir/gcc'
make: *** [bootstrap] Error 2
This is where I'm stumped, because everything in libiberty.a is 64 bits,
as is xgcc and gengenrtl.
> using Sun's as and ld and CVS GCC3.1.1 sources from the middle of last
> week (release 3.1 ought to work too). gmake is GNU make - haven't tried
> Sun's make. This build didn't include Ada; I've got Sun ld vs Ada symbol
> problems and GNU ld 64-bit vs patched libdl.so problems but I haven't
> yet found time to work out what bugs I need to report to whom.
I used Sun's as and ld, and gmake that came with Solaris 8. I don't do
anything with Ada so I didn't try to build it.
Anyway the 32-bit build works perfectly as long as I don't try to compile
Mozilla so I should probably leave it, but I've never had a compiler that
was actually 64 bits so I thought I'd give it a try. Other than that I
have no good reason to make gcc 64 bit. (That's not to say I don't want
to try still :)
Thanks,
--
Elliott
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: 64-bit gcc3.1 on Solaris?
@ 2002-07-19 9:43 Anil Shinde
0 siblings, 0 replies; 4+ messages in thread
From: Anil Shinde @ 2002-07-19 9:43 UTC (permalink / raw)
To: 'epotter@eep.burdell.org'; +Cc: 'gcc-help@gcc.gnu.org'
Hi Elliott Potter,
You might want to take a look at this site, I came across this when I was
hunting for some information on building gcc on sparc /w solaris 8.
http://sunblade100.wells.org.uk/cache/65.html
Hope this helps.
-Anil
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-07-19 16:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-29 22:52 64-bit gcc3.1 on Solaris? Elliott Potter
[not found] <616BE6A276E3714788D2AC35C40CD18D6BFBC9@whale.softwire.co.uk>
2002-07-01 11:23 ` Rupert Wood
2002-07-01 12:46 ` Elliott Potter
2002-07-19 9:43 Anil Shinde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).