avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [bug #37489] cross-compile issue with ar


From: anonymous
Subject: [avrdude-dev] [bug #37489] cross-compile issue with ar
Date: Tue, 02 Oct 2012 20:35:34 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

URL:
  <http://savannah.nongnu.org/bugs/?37489>

                 Summary: cross-compile issue with ar
                 Project: AVR Downloader/UploaDEr
            Submitted by: None
            Submitted on: Tue 02 Oct 2012 08:35:33 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Ben Axelrod
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I am trying to cross-compile AvrDude and ran into a small problem.  I have a
workaround for now, but i just wanted to inform you of the issue.  the problem
is that the cross-compile version of the "ar" program is not being used. 
these are the steps i took:

./bootstrap
./configure --host arm-commonos-linux-gnueabi
make

and here is the tail end of the make output:

mv -f .deps/libavrdude_a-usbtiny.Tpo .deps/libavrdude_a-usbtiny.Po
arm-commonos-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. 
-DCONFIG_DIR=\"/usr/local/etc\"  -Wall -Wno-pointer-sign -g -O2 -MT
libavrdude_a-wiring.o -MD -MP -MF .deps/libavrdude_a-wiring.Tpo -c -o
libavrdude_a-wiring.o `test -f 'wiring.c' || echo './'`wiring.c
mv -f .deps/libavrdude_a-wiring.Tpo .deps/libavrdude_a-wiring.Po
rm -f libavrdude.a
ar cru libavrdude.a libavrdude_a-config_gram.o libavrdude_a-lexer.o
libavrdude_a-arduino.o libavrdude_a-avr.o libavrdude_a-avr910.o
libavrdude_a-avrftdi.o libavrdude_a-avrpart.o libavrdude_a-bitbang.o
libavrdude_a-buspirate.o libavrdude_a-butterfly.o libavrdude_a-config.o
libavrdude_a-confwin.o libavrdude_a-crc16.o libavrdude_a-fileio.o
libavrdude_a-jtagmkI.o libavrdude_a-jtagmkII.o libavrdude_a-lists.o
libavrdude_a-par.o libavrdude_a-pgm.o libavrdude_a-ppi.o libavrdude_a-ppiwin.o
libavrdude_a-safemode.o libavrdude_a-serbb_posix.o libavrdude_a-serbb_win32.o
libavrdude_a-ser_avrdoper.o libavrdude_a-ser_posix.o libavrdude_a-ser_win32.o
libavrdude_a-stk500.o libavrdude_a-stk500v2.o libavrdude_a-stk500generic.o
libavrdude_a-usbasp.o libavrdude_a-usb_libusb.o libavrdude_a-usbtiny.o
libavrdude_a-update.o libavrdude_a-wiring.o 
arm-commonos-linux-gnueabi-ranlib libavrdude.a
arm-commonos-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. 
-DCONFIG_DIR=\"/usr/local/etc\"  -Wall -Wno-pointer-sign -g -O2 -MT
avrdude-main.o -MD -MP -MF .deps/avrdude-main.Tpo -c -o avrdude-main.o `test
-f 'main.c' || echo './'`main.c
mv -f .deps/avrdude-main.Tpo .deps/avrdude-main.Po
arm-commonos-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. 
-DCONFIG_DIR=\"/usr/local/etc\"  -Wall -Wno-pointer-sign -g -O2 -MT
avrdude-term.o -MD -MP -MF .deps/avrdude-term.Tpo -c -o avrdude-term.o `test
-f 'term.c' || echo './'`term.c
mv -f .deps/avrdude-term.Tpo .deps/avrdude-term.Po
arm-commonos-linux-gnueabi-gcc -Wall -Wno-pointer-sign -g -O2   -o avrdude
avrdude-main.o avrdude-term.o ./libavrdude.a     -lm -lreadline -lncurses
-ltermcap 
/opt/commonos/commonos-14_1/overoevm/bin/../lib/gcc/arm-commonos-linux-gnueabi/4.5.3/../../../../arm-commonos-linux-gnueabi/bin/ld:
./libavrdude.a(libavrdude_a-avrpart.o): Relocations in generic ELF (EM: 3)
/opt/commonos/commonos-14_1/overoevm/bin/../lib/gcc/arm-commonos-linux-gnueabi/4.5.3/../../../../arm-commonos-linux-gnueabi/bin/ld:
./libavrdude.a(libavrdude_a-avrpart.o): Relocations in generic ELF (EM: 3)
/opt/commonos/commonos-14_1/overoevm/bin/../lib/gcc/arm-commonos-linux-gnueabi/4.5.3/../../../../arm-commonos-linux-gnueabi/bin/ld:
./libavrdude.a(libavrdude_a-avrpart.o): Relocations in generic ELF (EM: 3)
/opt/commonos/commonos-14_1/overoevm/bin/../lib/gcc/arm-commonos-linux-gnueabi/4.5.3/../../../../arm-commonos-linux-gnueabi/bin/ld:
./libavrdude.a(libavrdude_a-avrpart.o): Relocations in generic ELF (EM: 3)
/opt/commonos/commonos-14_1/overoevm/bin/../lib/gcc/arm-commonos-linux-gnueabi/4.5.3/../../../../arm-commonos-linux-gnueabi/bin/ld:
./libavrdude.a(libavrdude_a-avrpart.o): Relocations in generic ELF (EM: 3)
/opt/commonos/commonos-14_1/overoevm/bin/../lib/gcc/arm-commonos-linux-gnueabi/4.5.3/../../../../arm-commonos-linux-gnueabi/bin/ld:
./libavrdude.a(libavrdude_a-avrpart.o): Relocations in generic ELF (EM: 3)
/opt/commonos/commonos-14_1/overoevm/bin/../lib/gcc/arm-commonos-linux-gnueabi/4.5.3/../../../../arm-commonos-linux-gnueabi/bin/ld:
./libavrdude.a(libavrdude_a-avrpart.o): Relocations in generic ELF (EM: 3)
./libavrdude.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [avrdude] Error 1
make[2]: Leaving directory
`/home/baxelrod/ARM-H/Software/avrdude/RELEASE_5_11_0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/baxelrod/ARM-H/Software/avrdude/RELEASE_5_11_0'
make: *** [all] Error 2

my workaround is to manually edit the makefiles after the configure step to
point to the proper cross-compile ar.

./bootstrap
./configure --host arm-commonos-linux-gnueabi
sed -i 's|AR = ar|AR = arm-commonos-linux-gnueabi-ar|' Makefile*
make

I am on Ubuntu 10.04, automake version 1.11.1, avrdude version 5.11.0.  i am
not sure if this is a bug here, or in automake itself.  if you suspect the bug
is in automake, please let me know so i can bug them.





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?37489>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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