I just fetched the newest code from git and tried to build for
Gentoo, and I got the same problem (also some errors before that,
see full output [1]). I think this has been discussed before. The
problem is that the avr libs are not where Makefile.common expects
them.
Please try this commit that checks for Gentoo and Fedora. I have
tested it on Gentoo and if it works with Fedora I will make a pull
request:
https://gitorious.org/simavr/thomasa88-simavr/commit/5e2d2e4121848757818be30d1942ec535803e37c
I think the quickest way to test the patch is to do as follows:
wget
https://gitorious.org/simavr/thomasa88-simavr/commit/5e2d2e4121848757818be30d1942ec535803e37c.patch
git apply 5e2d2e4121848757818be30d1942ec535803e37c.patch
make clean
make all
(Also, I found the OS checking structure a bit hard to decipher, so
I reorganized it in the following commit. I have only tested it on
my Gentoo Linux machine.
https://gitorious.org/simavr/thomasa88-simavr/commit/35336e29dfdc242e64f69f8789e6ce89b555eee7
)
//Thomas
[1] Full failed make output
$ make all
make -C simavr RELEASE=0
make[1]: Entering directory '/home/mrt/src/simavr/simavr'
CONF obj-x86_64-pc-linux-gnu/cores.deps
WARNING cores/sim_90usb162.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega1280.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega1281.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega128.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega164.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega168.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega16.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega16m1.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega324.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega328.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega32.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega48.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega644.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega88.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_mega8.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_tiny13.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_tiny2313.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_tiny24.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_tiny25.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_tiny44.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_tiny45.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_tiny84.c did not compile, check your avr-gcc
toolchain
WARNING cores/sim_tiny85.c did not compile, check your avr-gcc
toolchain
CONF sim_core_decl.h
CC sim/sim_interrupts.c
CC sim/sim_io.c
CC sim/sim_cycle_timers.c
CC sim/sim_core.c
CC sim/sim_elf.c
CC sim/sim_irq.c
CC sim/sim_vcd_file.c
CC sim/sim_gdb.c
CC sim/sim_avr.c
CC sim/sim_hex.c
CC sim/avr_adc.c
CC sim/avr_flash.c
CC sim/avr_lin.c
CC sim/avr_twi.c
CC sim/avr_uart.c
CC sim/avr_spi.c
CC sim/avr_usb.c
CC sim/avr_ioport.c
CC sim/avr_extint.c
CC sim/avr_eeprom.c
CC sim/avr_timer.c
CC sim/avr_bitbang.c
CC sim/avr_watchdog.c
../Makefile.common:145: recipe for target
'obj-x86_64-pc-linux-gnu/sim_megax4.o' failed
make[1]: *** [obj-x86_64-pc-linux-gnu/sim_megax4.o] Error 1
make[1]: Leaving directory '/home/mrt/src/simavr/simavr'
Makefile:15: recipe for target 'build-simavr' failed