gcc version 2.8.1 compilation problem with 64-bit

Paresh Pandya pv_pandya@yahoo.com
Tue May 24 18:52:00 GMT 2005


I am using gcc version 2.8.1 on HP-UX B.11.11. I am
trying to compile my 'C' program with 64-bit version
object. It gives following error (gcc -v):

========== Firing Suffix Rule .c.o on test.c
        /usr/local/bin/gcc -v -fPIC
-I/swdev/sagv711_64/exx/v711/include/
-I/cyf_prod/include -I. -c test.c
Reading specs from
/usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/2.8.1/specs
gcc version 2.8.1
 /usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/2.8.1/cpp
-lang-c -v -I/swdev/sagv711_64/exx/v711/include/
-I/cyf_prod/include -I. -undef -D__GNUC__=2
-D__GNUC_MINOR__=8 -Dhppa -Dhp9000s800 -D__hp9000s800
-Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__
-D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__
-D__hpux__ -D__unix__ -D__hppa -D__hp9000s800
-D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem(unix)
-Asystem(hpux) -Acpu(hppa) -Amachine(hppa)
-D__hp9000s700 -D_PA_RISC1_1 -D_HPUX_SOURCE
-D_HIUX_SOURCE test.c /tmp/cca22683.i
GNU CPP version 2.8.1 (hppa)
#include "..." search starts here:
#include <...> search starts here:
 /swdev/sagv711_64/exx/v711/include
 /cyf_prod/include
 .
 /usr/local/include
 /usr/local/hppa1.1-hp-hpux11.00/include

/usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/2.8.1/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/2.8.1/cc1
/tmp/cca22683.i -quiet -dumpbase test.c -version -fPIC
-o /tmp/cca22683.s
GNU C version 2.8.1 (hppa1.1-hp-hpux11.00) compiled by
GNU C version 2.8.1.
test.c: In function `main':
test.c:6: warning: return type of `main' is not `int'
 /usr/local/hppa1.1-hp-hpux11.00/bin/as -o test.o
/tmp/cca22683.s

 =====  Creating Executable test
        /usr/local/bin/gcc -v -o test test.o 
/swdev/sagv711_64/exx/v711/lib/broker.o
Reading specs from
/usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/2.8.1/specs
gcc version 2.8.1
 /usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/2.8.1/ld
-L/lib/pa1.1 -L/usr/lib/pa1.1 -z -u main -o test
/lib/crt0.o
-L/usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/2.8.1
-L/usr/local/lib test.o
/swdev/sagv711_64/exx/v711/lib/broker.o -lgcc -lc
-lgcc
collect2: ld returned 1 exit status
/usr/bin/ld: /swdev/sagv711_64/exx/v711/lib/broker.o:
Not a valid library (invalid magic number). Possibly a
64-bit PA archive library (Mismatched ABI).
*** Error exit code 1

Stop.

The test.c is simple C program and broker.o is 64-bit
object file. How can I compile and link with 64-bit
version object using gcc 2.8.1?

Thanks for your help,
PP


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Gcc-help mailing list