I'm trying to build fx2lib from http://github.com/mulicheng/fx2lib/tree/master with sdcc-snapshot-universal-apple-macosx-20090404-5426.tar.bz2, and I get a SIGSEGV during link.
How should I proceed? I don't mind checking out and building and running this in gdb, but a pointer on how best to do that would be appreciated.
make -C lib
sdcc -mmcs51 -I../include -c serial.c
sdcc -mmcs51 -I../include -c i2c.c
sdcc -mmcs51 -I../include -c delay.c
sdcc -mmcs51 -I../include -c lights.c
sdcc -mmcs51 -I../include -c setupdat.c
sdcc -mmcs51 -I../include -c gpif.c
sdcc -mmcs51 -I../include -c eputils.c
cp usbjt_asm usbjt.asm
asx8051 -logs usbjt.asm
sdcclib fx2.lib serial.rel i2c.rel delay.rel lights.rel setupdat.rel gpif.rel eputils.rel usbjt.rel
make: *** [fx2.lib] Segmentation fault
make: *** [all] Error 2
reykjavik:/Users/nall/Projects/fx2lib/lib% gdb /usr/local/sdcc/bin/sdcclib
GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC 2009)
(gdb) run fx2.lib serial.rel i2c.rel delay.rel lights.rel setupdat.rel gpif.rel eputils.rel usbjt.rel
Starting program: /usr/local/sdcc/bin/sdcclib fx2.lib serial.rel i2c.rel delay.rel lights.rel setupdat.rel gpif.rel eputils.rel usbjt.rel
Reading symbols for shared libraries +. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x007fffff
0x000020d4 in ?? ()
#0 0x000020d4 in ?? ()
#1 0x00005c00 in receive_samples ()
Previous frame inner to this frame (gdb could not unwind past this frame)
Filed this and sent a patch:
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.