simulavr-devel
[Top][All Lists]
Advanced

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

[Simulavr-devel] Build failures on Cygwin


From: Petr Hluzín
Subject: [Simulavr-devel] Build failures on Cygwin
Date: Sun, 20 Feb 2011 00:22:49 +0100

Hello

I tried to build the newest simulavr (from Git) and the build failed:

$ make
...
libtool: link: g++ -I/usr/include -g -O2 -Icmd -Iui -Ihwtimer -o
.libs/simulavr.exe main.o dumpargs.o .libs/adcpin.o
.libs/application.o .libs/at4433.o .libs/at8515.o
.libs/atmega668base.o .libs/atmega128.o .libs/at90canbase.o
.libs/atmega16_32.o .libs/attiny2313.o .libs/externalirq.o
.libs/avrdevice.o .libs/avrerror.o .libs/avrfactory.o
.libs/avrmalloc.o .libs/decoder.o .libs/decoder_trace.o .libs/flash.o
.libs/flashprog.o .libs/hardware.o .libs/helper.o .libs/gdbserver.o
.libs/hwacomp.o .libs/hwad.o .libs/hweeprom.o .libs/timerprescaler.o
.libs/prescalermux.o .libs/timerirq.o .libs/hwpinchange.o
.libs/hwport.o .libs/hwspi.o .libs/hwsreg.o .libs/icapturesrc.o
.libs/hwstack.o .libs/hwtimer.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/extpin.o
.libs/pinatport.o .libs/pinmon.o .libs/rwmem.o .libs/scope.o
.libs/serialrx.o .libs/serialtx.o .libs/spisrc.o .libs/spisink.o
.libs/specialmem.o .libs/string2.o .libs/systemclock.o
.libs/traceval.o .libs/ui.o  -L/usr/lib /usr/lib/libbfd.a -lz -liberty
/usr/lib/libbfd.a(libbfd.o):(.text+0x6d0): undefined reference to
`_libintl_dgettext'
/usr/lib/libbfd.a(libbfd.o):(.text+0x725): undefined reference to
`_libintl_dgettext'
/usr/lib/libbfd.a(libbfd.o):(.text+0x78b): undefined reference to
`_libintl_dgettext'
/usr/lib/libbfd.a(libbfd.o):(.text+0x7d0): undefined reference to
`_libintl_dgettext'
/usr/lib/libbfd.a(bfd.o):(.text+0x89d): undefined reference to
`_libintl_dgettext'
/usr/lib/libbfd.a(bfd.o):(.text+0x8f5): more undefined references to
`_libintl_dgettext' follow
collect2: ld returned 1 exit status
make[3]: *** [simulavr.exe] Error 1
make[3]: Leaving directory
`/cygdrive/g/backups/projects/simulavr-git4-cygwintest/src'


Help 'configure --help' indicates option --without-PACKAGE, so I tried:
$ ./configure --without-libbfd
...
configure: WARNING: unrecognized options: --without-libbfd
Summary:
build system = Cygwin
AVR_GCC=avr-gcc
AVR_LIBBFD_INC=/usr/include
AVR_LIBBFD_LIB=/usr/lib/libcygwin.a /usr/lib/libbfd.a
AVR_LIBIBERTY_LIB=/usr/lib/libiberty.a /usr/lib/libintl.a /usr/lib/libiconv.a
PYTHON=/usr/bin/python
TCL_WISH=/usr/bin/wish
tcl has package Itcl? no
build verilog modul avr.vpi = no

And therefore it still failed.

Then I tried to edit ./src/Makefile and friends to get rid of the libbfd.a:
-AVR_LIBBFD_LIB = /usr/lib/libcygwin.a /usr/lib/libbfd.a
+AVR_LIBBFD_LIB =
but the 'make' still managed to obtain the value somehow.

Search on Internet suggested disabling internationalization by
--disable-nls. The same results.

I just want it to build. I can disable the BFD specific code in
simulavr (i.e. AvrDevice::Load) and live without it if it builds.

Does anyone know how to remove libbfd.a from linking?
Or how to solve the "undefined reference to `_libintl_dgettext'"?

I cannot test my changes for unix-like systems.

-- 
Petr Hluzin



reply via email to

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