avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] avr-gcc won't compile (xgcc has bad cmdline option "-marc


From: Rory Galvin
Subject: [avr-gcc-list] avr-gcc won't compile (xgcc has bad cmdline option "-march=i586")
Date: Tue, 11 Sep 2007 15:20:58 -0700 (PDT)

Hello avr-gcc list,

Up until two days ago I was a bright-eyed enthusistic
avr newbie.  Unfortunately I have hit a brick wall and
am desperately hoping that someone will be able to
help.

I am trying to build the avr tool chain, according to:
http://www.nongnu.org/avr-libc/user-manual/install_tools.html
(and also
http://www.arduino.cc/playground/Linux/Slackware)

I am running a spanking new install of vectorlinux 5.8
(std), which is Slackware 11 under the hood  (This
comes ready-rolled with gcc-3.4.6 and binutils
2.15.9), all on a toshiba tecra 8100 (P2).

So I download binutils-2.16, set my PREFIX to
/usr/local/avr, set my path (also unlink existing
/usr/bin/cc, which is pointing to the old gcc) and
configure, make, then install the new binutils.  No
problem there, all the avr-* tools now available.

Then I go to configure avr-gcc.  It succeeds, but with
a couple of messages I'm not happy about:

checking whether the C compiler (gcc -O2 -march=i586
-mtune=i686 ) works ... yes
checking whether the C compiler (gcc -O2 -march=i586
-mtune=i686 ) is a cross-compiler ... no
<snip/>
checking where to find the target ar... preinstalled.
checking where to find the target as... preinstalled.
checking where to find the target cc... just compiled.
checking where to find the target c++... preinstalled.
<snip/>
checking where to find the target gcc... just
installed.
checking where to find the target gcj... preinstalled.

(also no support in directories target-libgfortran,
target-libada, gnattools, target-libobjc, libjava,
target-libstdc++-v3, and some others).

I thought this would be ok.  But when I try to make
avr-gcc it fails when it hits xgcc (of _mulqi3.o): 

/home/root/shed/gcc-4.1.2/obj-avr/./gcc/xgcc
-B/home/root/shed/gcc-4.1.2/obj-avr/./gcc/
-B/usr/local/avr/avr/bin/ -B/usr/local/avr/avr/lib/
-isystem /usr/local/avr/avr/include -isystem
/usr/local/avr/avr/sys-include -O2  -O2 -O2
-march=i586 -mtune=i686  -DIN_GCC -DCROSS_COMPILE   -W
-Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem
./include  -DDF=SF -Dinhibit_libc -mcall-prologues -g 
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-I. -I. -I../../gcc -I../../gcc/.
-I../../gcc/../include -I../../gcc/../libcpp/include 
-DL_mulqi3 -xassembler-with-cpp -c
../../gcc/config/avr/libgcc.S -o libgcc/./_mulqi3.o
cc1: error: unrecognized command line option
"-march=i586"
cc1: error: unrecognized command line option
"-mtune=i686"
make[3]: *** [libgcc/./_mulqi3.o] Error 1
make[2]: *** [stmp-multilib] Error 2
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2

(Note that gcc works fine with these options, but xgcc
just aint happy.)

I've also tried same with latest binutils (2.18), same
thing.  I am really hoping someone can help.  I've
found nothing online about this at all, which is
strange since I have a very standard setup.  Actually,
I did find this post on a polish website:
http://forum.slackware.pl/viewtopic.php?t=16624
... something about CFLAGS and an empty catalog, and a
possible solution using buildroot ?!

Any advice would be most appreciated.

Thanks

Rory 



      
____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 






reply via email to

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