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

 
 

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

bug #37489: cross-compile issue with ar

Submitted by:  None
Submitted on:  Tue 02 Oct 2012 08:35:33 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Need InfoPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Ben Axelrod
Originator Email: -unavailable-Open/Closed: Open

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>
Project 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>
Project AdministratorIn charge of this item.
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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 09 Sep 2013 03:07:08 PM UTCjoerg_wunschStatusNone=>Need Info
      Assigned toNone=>joerg_wunsch

    Back to the top


    Powered by Savane 3.1-cleanup