Making, drinking tea and reading an opus magnum from Justin Georgeson:
Try compiling gcc again with options something like: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 IIt's magically created by the build process and removed when it's done.sneakyaha! 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?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.
[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]
$
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
----------------------------------------------------------------------
