VectorLinux
October 21, 2014, 06:43:39 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: avr-gcc  (Read 1800 times)
trauma
Member
*
Posts: 10


« on: November 02, 2007, 10:21:58 am »

Hi,

Im trying to build Atmel avr developement system on VL 5.8.  Avr-binutils installs ok but compiling avr-gcc gives errors:

$ ../configure --prefix=$PREFIX --target=avr --enable-languages=c,c++    --disable-nls  --with-dwarf2  ==> O.K.

$ make
--
--
--
--
error unrecocnized command line option "-march=i586"
 error unrecocnized command line option "-march=i586"
 make[3]: *** [libgcc/./_mulgi3.o] Error 1
 make[3]: Leaving directory '/root/gcc-4.2-20071024/obj-avr/gcc'
 make[2]: *** [stmp-multilib] Error 2
 make[3]: Leaving directory '/root/gcc-4.2-20071024/obj-avr/gcc'
 make[1] *** [all-] Error 2
 make[3]: Leaving directory '/root/gcc-4.2-20071024/obj-avr
 make[1] *** [all] Error 2


I have tried several versions of gcc with same results.

  TRauma
Logged

TRauma
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #1 on: November 02, 2007, 12:42:26 pm »

Something is goofy with the build scripts. It's using our CFLAGS or CXXFLAGS as a command?
Odd! 

If you aren't going to be packaging, and are just building for yourself. Unset the flags in the same window you're  running configure and make with.
Quote
unset CFLAGS && unset CXXFLAGS
Those scripts really oughtta be fixed, but it shouldn't hurt to unset the flags for your own use.
Logged
trauma
Member
*
Posts: 10


« Reply #2 on: November 03, 2007, 05:34:44 am »

Thanks.

I tried that and now  make gives me error messages like:

./libssp/ssp.c:168: error: too many arguments to function 'fail'
make[3]: *** [ssp.lo] Error 1
make[3]: leaving directrory '/root/gcc-4.2-20071024/obj-avr/avr/libssp'
make[2]: *** [ssp.lo] Error 2
make[2]: leaving directrory '/root/gcc-4.2-20071024/obj-avr/avr/libssp'
make[1]: *** [all-target-libssp] Error 2
make[1]: leaving directrory '/root/gcc-4.2-20071024/obj-avr/'
make: *** [all] Error 2


 TRauma

Logged

TRauma
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!