This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: as.exe: bfd assertion fail...


tjoen@dds.nl writes:
> 
> Q: How can I solve this problem?
> 
> NT4 SP4 cygwin b20.1 (gcc egcs-2.91.57=egcs-1.1)
> 
> Attempting to build ACE (corba) for cygwin.
> 
> The second invocation of g++ (parameters sorted apphabetically):
> 
> g++ -c
>     -DACE_HAS_EXCEPTIONS
>     -fPIC 
[ ... ]
> 
> gave errors like this:
> 
> as.exe: bfd assertion fail 
>    /home/noer/src/b20/comp-tools/devo/bfd/coff-i386.c:479
> {standard input}: Assembler messages:
> {standard input}:2391: 
>     Error: Cannot represent relocation type BFD_RELOC_386_GOTPC

This was a bug caused by -fPIC, which is unnecessary on x86-win32 where 
all code is position independent. This has been fixed for a while now
(I released egcs-1.1.2 Cygwin/Mingw binaries March 17), so I suggest 
you upgrade your compiler. Quite a few other problems found in egcs-1.1 
are fixed 1.1.2 as well.
  
  http://www.xraylith.wisc.edu/~khan/software/gnu-win32/

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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