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: Is 64 bit ObjC for SolarisSparc available?


> Currently I am using gcc-9.95.2 with some modifications to compile our
9.95.2 i guess is 2.95.2 (oh those typos)
> objC/c/c++ sources on our UltraSparc. To boost the memory limitations at 4G
> it would be fine if we can compile our sources for 64bit.
>
> Is this currently available and / or what have I to do to get such a
> compiler to work?

As usual: 64bit on sparcv9-sun-solaris2.8 is _OFFICIALY_ unsupported. if you 
really need it either get gcc3.1 from CVS or do the following:

1.
compile gcc3.0.1 with gcc2.95.[23] to be a cross compiler
$ ./configure --target=sparcv9-sun-solaris2.8 --host=sparc-sun-solaris2.8
make   #but not  "make bootstrap"
make install

2.
than compile gcc3.0.1 with crosscompiler you've just built 
export CC="sparcv9-sun-solaris2.8-gcc"
$ ./configure --target=sparcv9-sun-solaris2.8 --host=sparcv9-sun-solaris2.8
make 
make install

now with abit of struggle and some minor code hacks (like syserrlist) you 
should have /usr/local/bin/gcc which is itself a 64bit binary and produces 
64bit code. see "file /usr/local/bin/gcc"

3.
enjoy

Note1: do not use gnu binutils (well at least binutils-2.1*.*). instead use 
sun's ld as ar which are in /usr/ccs/bin

Note2: some people say that gcc  compiled this way produces not a very stable 
code which SIGBUS-es in several _predictable_ cases, i personaly _partialy_ 
agree with these people, but just to break 4G gcc301 is a perfect solution.

Good luck


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