All,
It looks like gcc is getting ahead of itself, the solution appears to be
downgrading to gcc3.2, see below.
cheers,
Ian (yausa)
yausa: yet another unemployed sys admin
<root@neptune(5.9):/opt/ip_fil3.4.31:168> uname -a
SunOS neptune 5.9 Generic_112233-01 sun4u sparc
SUNW,UltraSPARC-IIi-cEngine
<root@neptune(5.9):/opt/ip_fil3.4.31:170> isainfo
sparcv9 sparc
<root@neptune(5.9):/opt/ip_fil3.4.31:163> cat x.c
main(){}
<root@neptune(5.9):/opt/ip_fil3.4.31:164> gcc -m64 x.c -o x
<root@neptune(5.9):/opt/ip_fil3.4.31:165> file x
x: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically
linked, not stripped
<root@neptune(5.9):/opt/ip_fil3.4.31:166> which gcc
/usr/local/bin/gcc
<root@neptune(5.9):/opt/ip_fil3.4.31:167> gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.2 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<gcc 3.2
<root@neptune(5.9):/opt/ip_fil3.4.31:168>which ld
/usr/ccs/bin/ld
On Fri, 31 Jan 2003, Bruno Saverio Delbono wrote:
> Making, drinking tea and reading an opus magnum from Justin Georgeson:
>
>
> >Casper Dik wrote:
> >>>>>>compiler. I have since determined that the test source file
> >>>>>>(conftest28268.c) it is trying to compile doesn't exist. What should I
> >>
> >>It's magically created by the build process and removed when it's done.
> >
> >sneaky
> >
> >>Try compiling any C file, such as:
> >>main(){}
> >>with:
> >> gcc -m64 x.c -o x
> >>and run "file x", it should print that it's a 64 bit exec.
> >
> >aha! Something is messed up here. I obtained gcc from the 3.2.1 package
> >from sunfreeware.com. I don't know how to check what package a file
> >belongs to, but `pkgchk -l SUNWsprot | grep Pathname:` tells me
> >/usr/ccs/bin/ld doesn't belong to that, and that's the only SUNWspro*
> >package I have installed. Perhaps this is my problem?
> >
> >[root@foobar: /usr/local/src/ip_fil3.4.31]
> >$ gcc -m64 test.c
> >ld: fatal: file /usr/ccs/lib/values-Xa.o: wrong ELF class: ELFCLASS32
> >ld: fatal: File processing errors. No output written to a.out
> >collect2: ld returned 1 exit status
> >[root@foobar: /usr/local/src/ip_fil3.4.31]
> >$ echo $PATH
>
>>/usr/ccs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/ssl/bin:/usr/local/samba/bin
> >[root@foobar: /usr/local/src/ip_fil3.4.31]
> >$ gcc -v
> >Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs
> >Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as
> >--with-ld=/usr/ccs/bin/ld
> >Thread model: posix
> >gcc version 3.2.1
> >[root@foobar: /usr/local/src/ip_fil3.4.31]
> >$
>
> Try compiling gcc again with options something like:
>
> cd gcc-source-dir
> mkdir gccv9
> ../configure --prefix=/opt/gcc-v9 --enable-languages=c sparcv9-sun-solaris2
> && make && make install
> export PATH=/opt/gcc-v9/bin:$PATH
>
> create a simple c file again and see if it compiles (with 64-bit).
>
> PS - Maybe we should make it one thread? Ian?
>
> -Bruno
>
>
> ----------------------------------------------------------------------
> Our company accepts no liability for the content of this email, or for
> the consequences of any actions taken on the basis of the information
> provided, unless that information is subsequently confirmed in
> writing. If you are not the intended recipient you are notified that
> disclosing, copying, distributing or taking any action in reliance on
> the contents of this information is strictly prohibited.
> http://www.wf0.com
> ----------------------------------------------------------------------
>
>
>
>
>
>