public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: gcc version 2.8.1 compilation problem
@ 2005-05-19 15:58 Paresh Pandya
  0 siblings, 0 replies; 3+ messages in thread
From: Paresh Pandya @ 2005-05-19 15:58 UTC (permalink / raw)
  To: gcc-help

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,






		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc version 2.8.1 compilation problem
  2005-05-11 18:45 Paresh Pandya
@ 2005-05-11 20:56 ` Ian Lance Taylor
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2005-05-11 20:56 UTC (permalink / raw)
  To: Paresh Pandya; +Cc: gcc-help

Paresh Pandya <pv_pandya@yahoo.com> writes:

> 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
> library. It gives following error:
> 
> Not a valid library (invalid magic number). Possibly a
> 64-bit PA archive library (Mismatched ABI).
> 
> Is gcc 2.8.1 support 64-bit version? How can I compile
> with 64-bit version library?

It's extremely unlikely that you got that error from gcc.  It is much
more likely that you got the error from the linker.

Current versions of gcc does appear to support 64-bit code on HP-UX.
gcc 2.8.1 is very very old--it was released in March 1998, over 7
years ago.  I don't know whether it supported 64-bit HP-UX code.  The
current version of gcc is 4.0.

Ian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* gcc version 2.8.1 compilation problem
@ 2005-05-11 18:45 Paresh Pandya
  2005-05-11 20:56 ` Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Paresh Pandya @ 2005-05-11 18:45 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 493 bytes --]

Hello,

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
library. It gives following error:

Not a valid library (invalid magic number). Possibly a
64-bit PA archive library (Mismatched ABI).

Is gcc 2.8.1 support 64-bit version? How can I compile
with 64-bit version library?

I would appreciate any guidance!


Thanks,
PP


		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-19 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-19 15:58 gcc version 2.8.1 compilation problem Paresh Pandya
  -- strict thread matches above, loose matches on Subject: below --
2005-05-11 18:45 Paresh Pandya
2005-05-11 20:56 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).