[En-Nut-Discussion] Nut/OS fails to compile (avr-g++)
Yassin Jomni
yassin at ltu.se
Mon Feb 21 16:35:56 CET 2005
Hi,
I'm a Nut/OS newbee. I've downloaded the tar archive
ethernut-3.9-5.src.tar.bz2 and tried to compile it the first time but it
didn't work. I've got this error:
-----------------------------------------------------------------------------------
avr-g++ -c -mmcu=atmega128 -Os -Wall -Werror -Wa,-ahlms=nutcpp.lst
-D__HARVARD_ARCH__ -I../include nutcpp.cc -o nutcpp.o
make[1]: avr-g++: Command not found
make[1]: *** [nutcpp.o] Error 127
make[1]: Leaving directory `/home/grisou/Documents/AVR/ethernut-3.9/nut/cpp'
make: *** [all] Error 2
-----------------------------------------------------------------------------------
My installation of avr-gcc doesn't have avr-g++. I suppose that avr-g++ is an
avr c++ compiler. I found that my avr-gcc installation has a avr-cpp so I
made a symbpolic link of avr-g++ that points to avr-cpp and recompiled the
second time and I got this error:
---------------------------------------------------------------------------------
avr-g++ -c -mmcu=atmega128 -Os -Wall -Werror -Wa,-ahlms=nutcpp.lst
-D__HARVARD_ARCH__ -I../include nutcpp.cc -o nutcpp.o
avr-g++: "-c" is not a valid option to the preprocessor
make[1]: *** [nutcpp.o] Error 1
make[1]: Leaving directory `/home/grisou/Documents/AVR/ethernut-3.9/nut/cpp'
------------------------------------------------------------------------------------
Does anybody have this probelm and knows how to solve it? I run out of ideas.
Did I miss to install a package? Is gcc-g++ part of a package I'm missing or
what? in that case what package?
I'm running Gentoo Linux and I've installed avr-gcc, avr-binutils, avr-libc,
avrdude and uisp packages.
Thanx in advance
More information about the En-Nut-Discussion
mailing list