I've been banging my head on this for some time and my monitor is becoming quite bloody...
make uses avr-gcc with all the right options in the "~/good/" directory, and it uses "g++" without any additional options in the "~/false/" directory, but the files are the same (no output from diff).
Both compile attempst are in the same terminal window (environment etc) and both seem to use /usr/bin/make
Does anybody have any clue in which direction to proceed to solve this?
paul@dualcore ~/false $ diff makefile ../good/makefile paul@dualcore ~/false $ diff main.cpp ../good/main.cpp paul@dualcore ~/false $ diff main.h ../good/main.h paul@dualcore ~/false $ make all g++ -c -o main.o main.cpp In file included from main.cpp:14:0: main.h:11:20: fatal error: avr/io.h: No such file or directory #include <avr/io.h> ^ compilation terminated. make: *** [main.o] Error 1 paul@dualcore ~/false $ cd ../good/ paul@dualcore ~/good $ make all avr-gcc -x c++ -c -mmcu=atmega328p -g -O3 -fshort-enums -fno-gcse -Wall -mcall-prologues -lm -I/home/paul/projects/avr/lib -include main.h main.cpp paul@dualcore ~/good $ make --version GNU Make 3.81 paul@dualcore ~/good $ g++ --version g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2 paul@dualcore ~/good $ avr-gcc --version avr-gcc (GCC) 4.8.2