buserror / simavr

simavr is a lean, mean and hackable AVR simulator for linux & OSX
GNU General Public License v3.0
1.56k stars 365 forks source link

Make fail at building libsimavr.so if not from clean make #79

Closed bsekisser closed 9 years ago

bsekisser commented 10 years ago

if building to recompile a single file in core, I am getting this error:

SHARED obj-i486-linux-gnu/libsimavr.so.1 /home/mghughes/Projects/simavr/simavr/../simavr/obj-i486-linux-gnu/libsimavr.so: file not recognized: File truncated

if I do:

make clean; make

the compile completes without issues.

since I recently changed hardware and done a complete install I was thinking the problem could possibly be on my end, however after checking recent changes, I found that reverting commit 1be487742be6b9f811f032611ddde54a5de53883 seems to resolve the issue.

complete sample make session showing the problem follows:

mghughes@debian:~/Projects/simavr$ make make -C simavr RELEASE=0 make[1]: Entering directory /home/mghughes/Projects/simavr/simavr' make obj config make[2]: Entering directory/home/mghughes/Projects/simavr/simavr' make[2]: Nothing to be done for obj'. make[2]: Nothing to be done forconfig'. make[2]: Leaving directory /home/mghughes/Projects/simavr/simavr' make libsimavr run_avr make[2]: Entering directory/home/mghughes/Projects/simavr/simavr' CC sim/sim_core.c AR obj-i486-linux-gnu/libsimavr.a SHARED obj-i486-linux-gnu/libsimavr.so.1 /home/mghughes/Projects/simavr/simavr/../simavr/obj-i486-linux-gnu/libsimavr.so: file not recognized: File truncated collect2: error: ld returned 1 exit status make[2]: * [obj-i486-linux-gnu/libsimavr.so.1] Error 1 make[2]: Leaving directory `/home/mghughes/Projects/simavr/simavr' make[1]: * [all] Error 2 make[1]: Leaving directory`/home/mghughes/Projects/simavr/simavr' make: *\ [build-simavr] Error 2

bsekisser commented 9 years ago

The latest makefile fixes look to have corrected this issue... closing.