bugAVR Downloader/UploaDEr - Bugs: bug #37489, cross-compile issue with ar

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #37489: cross-compile issue with ar

Submitter:  None
Submitted:  Tue 02 Oct 2012 08:35:33 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Need Info Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  Ben Axelrod
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  None Programmer hardware: 
Device type: 

Thu 16 Jan 2014 08:37:57 PM UTC, comment #2: 

I had the same problem using the current svn revision trying cross-compiling for windows.

Following command line did set the correct value for AR:

AR=i586-mingw32msvc-ar ./configure --host=i586-mingw32msvc

So setting AR for the run of configure might be a viable workaround.

Rene Liebscher <rliebscher>
Group Member
Mon 09 Sep 2013 03:07:08 PM UTC, comment #1: 

I just committed a modification to configure.ac which might
have hopefully also solved this issue.

Please give SVN r1214 (or newer) a try.

Joerg Wunsch <joerg_wunsch>
Group administrator
Tue 02 Oct 2012 08:35:33 PM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rliebscher (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-09 joerg_wunsch StatusNone Need Info
        Assigned toNone joerg_wunsch

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code