simulavr-devel
[Top][All Lists]
Advanced

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

Re: [Simulavr-devel] libtool warnings and build failure


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

Joel Sherrill wrote:
Michael N. Moran wrote:
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.


I've attached the pertinent error text.

So this it Redhat Enterprise Linux on x86_64?

No. It's Fedora Core 7 on x86_64 ... if that matters ;)

 From the message, it looks like you the provided libbfd.a
wasn't compiled with -fPIC and it is everywhere else.

The most direct solution is to build your own binutils
and point to it on the configure line.  Make sure it
uses -fPIC.

OK. I downloaded the latest binutils configured for a
local directory and built using make CFLAGS=-fPIC.

I then configured simulavrxx using --with-bfd and
--with-libiberty .

I am now able to build simulavrxx.so , but most
of the example directories fail to compile. This looks
like it may be my old avr-gcc.

avr-gcc (GCC) 4.0.2
Copyright (C) 2005 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.

It seems that there are some missing headers required
by the examples.

For example:

make[2]: Entering directory `/home/mike/cross/simulavrxx/simulavrxx/examples/atmel_key' avr-gcc -mmcu=atmega128 -I. -DF_CPU=4000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -c -o main.o main.c main.c:11:31: error: compat/deprecated.h: No such file or directory
main.c: In function 'initialize':
main.c:45: warning: implicit declaration of function 'cbi'
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/mike/cross/simulavrxx/simulavrxx/examples/atmel_key'



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




reply via email to

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