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]

as.exe: bfd assertion fail...



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 
    -g
    -I/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/mingw32
    -I/cygnus/cygwin-b20/include/g++
    -I. 
    -I/ACE_wrappers
    -mno-cygwin
    -o .shobj/Log_Msg.o
    -pipe
    -Wall
    -Wpointer-arith
    Log_Msg.cpp

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

Inspecting the assembly-files reveals that the error occurs
on lines like these:

	addl $_GLOBAL_OFFSET_TABLE_+[.-L8271],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8389],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8434],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8466],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8498],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8552],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8605],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8682],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8685],%ebx
	addl $_GLOBAL_OFFSET_TABLE_+[.-L8822],%ebx

I've put the assembly-file on http://huizen.dds.nl/~tjoen/Log_Msg.o.gz
for people who are interested to reproduce the error.
That is produced with parameter -S

--
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]