simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] libtool warnings and build failure


From: Michael N. Moran
Subject: [Simulavr-devel] libtool warnings and build failure
Date: Thu, 26 Mar 2009 12:34:04 -0400
User-agent: Thunderbird 2.0.0.5 (X11/20070727)

Gents,

I tried to build the latest simulavrxx from CVS, but libtool
generates some Warnings about linking with libbfd.a and
libiberty.a.

Later, ld fails while trying to link against libbfd.a.

The sequence went like this:

./bootstrap
./configure
make

Can anyone give me a hint about resolving this?

I've attached the pertinent error text.

uname -a
Linux boogie 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 20:47:39 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

gcc --version
gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-27)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--
Michael N. Moran           (h) 770 516 7918
5009 Old Field Ct.         (c) 678 521 5460
Kennesaw, GA, USA 30144    http://mnmoran.org

"So often times it happens, that we live our lives in chains
 and we never even know we have the key."
"Already Gone" by Jack Tempchin (recorded by The Eagles)

The Beatles were wrong: 1 & 1 & 1 is 1
/bin/sh ../libtool --tag=CXX   --mode=link g++ -I/usr/include -g -O2 
-version-info 0:0:0   -o libsimulavr.la -rpath /usr/local/lib simulavr_wrap.lo 
adcpin.lo application.lo at4433.lo at8515.lo atmega128.lo avrdevice.lo 
avrerror.lo avrfactory.lo avrmalloc.lo decoder.lo decoder_trace.lo flash.lo 
gdbserver.lo hardware.lo helper.lo hwacomp.lo hwad.lo hweeprom.lo hwextirq.lo 
hwmegaextirq.lo hwmegatimer.lo hwmegatimer0123irq.lo hwpinchange.lo hwport.lo 
hwspi.lo hwsreg.lo hwstack.lo hwtimer.lo hwtimer01irq.lo hwuart.lo hwwado.lo 
ioregs.lo irqsystem.lo keyboard.lo lcd.lo memory.lo mysocket.lo net.lo pin.lo 
pinatport.lo pinmon.lo printable.lo rwmem.lo scope.lo serialrx.lo serialtx.lo 
spisrc.lo spisink.lo systemclock.lo trace.lo ui.lo -lz /usr/lib64/libbfd.a 
/usr/lib64/libiberty.a  

*** Warning: Linking the shared library libsimulavr.la against the
*** static library /usr/lib64/libbfd.a is not portable!

*** Warning: Linking the shared library libsimulavr.la against the
*** static library /usr/lib64/libiberty.a is not portable!
g++ -shared -nostdlib 
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o 
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o  .libs/simulavr_wrap.o 
.libs/adcpin.o .libs/application.o .libs/at4433.o .libs/at8515.o 
.libs/atmega128.o .libs/avrdevice.o .libs/avrerror.o .libs/avrfactory.o 
.libs/avrmalloc.o .libs/decoder.o .libs/decoder_trace.o .libs/flash.o 
.libs/gdbserver.o .libs/hardware.o .libs/helper.o .libs/hwacomp.o .libs/hwad.o 
.libs/hweeprom.o .libs/hwextirq.o .libs/hwmegaextirq.o .libs/hwmegatimer.o 
.libs/hwmegatimer0123irq.o .libs/hwpinchange.o .libs/hwport.o .libs/hwspi.o 
.libs/hwsreg.o .libs/hwstack.o .libs/hwtimer.o .libs/hwtimer01irq.o 
.libs/hwuart.o .libs/hwwado.o .libs/ioregs.o .libs/irqsystem.o .libs/keyboard.o 
.libs/lcd.o .libs/memory.o .libs/mysocket.o .libs/net.o .libs/pin.o 
.libs/pinatport.o .libs/pinmon.o .libs/printable.o .libs/rwmem.o .libs/scope.o 
.libs/serialrx.o .libs/serialtx.o .libs/spisrc.o .libs/spisink.o 
.libs/systemclock.o .libs/trace.o .libs/ui.o  -lz /usr/lib64/libbfd.a 
/usr/lib64/libiberty.a -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64 
-L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s 
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o 
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crtn.o  -Wl,-soname 
-Wl,libsimulavr.so.0 -o .libs/libsimulavr.so.0.0.0
/usr/bin/ld: /usr/lib64/libbfd.a(format.o): relocation R_X86_64_32 against `a 
local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libbfd.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libsimulavr.la] Error 1
make[2]: Leaving directory `/home/mike/cross/simulavrxx/simulavrxx/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mike/cross/simulavrxx/simulavrxx/src'
make: *** [all-recursive] Error 1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]