This is the mail archive of the 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: gcc version 2.8.1 compilation problem

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/cyf_prod/include -I. -c test.c
Reading specs from
gcc version 2.8.1
-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:

End of search list.
/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

 =====  Creating Executable test
        /usr/local/bin/gcc -v -o test test.o 
Reading specs from
gcc version 2.8.1
-L/lib/pa1.1 -L/usr/lib/pa1.1 -z -u main -o test
-L/usr/local/lib test.o
/swdev/sagv711_64/exx/v711/lib/broker.o -lgcc -lc
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


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,

Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 

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