VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: avr-gcc  (Read 1956 times)

trauma

  • Member
  • *
  • Posts: 10
avr-gcc
« on: November 02, 2007, 11: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
Re: avr-gcc
« Reply #1 on: November 02, 2007, 01: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
Re: avr-gcc
« Reply #2 on: November 03, 2007, 06: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