[En-Nut-Discussion] 4.0.2 compile problem with application

Peter Sodermanns peter.sodermanns at aixcon.de
Wed Feb 8 15:11:18 CET 2006


Hi Harald,

asking again, because I'm stuck just a step before the mystery can happen:

Compiling my little test program for TWI delivers these results:

 >make clean all
rm -f TWI_Test.o
rm -f TWI_Test.hex
rm -f TWI_Test.eep
rm -f TWI_Test.obj
rm -f TWI_Test.map
rm -f TWI_Test.lst
rm -f TWI_Test.bak
rm -f TWI_Test.i
rm -f
avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall 
-Wstrict-prototypes -Wa,-ahlms=TWI_Test.lst -DETHERNUT2 
-D__HARVARD_ARCH__ -ID:/Work/ethernut-4.0.2/nutbld/include 
-ID:/Work/ethernut-4.0.2/nut/include  TWI_Test.c -o TWI_Test.o
avr-gcc TWI_Test.o -mmcu=atmega128 
-Wl,--defsym=main=0,-Map=TWI_Test.map,--cref 
-LD:/Work/ethernut-4.0.2/nutbld/lib 
D:/Work/ethernut-4.0.2/nutbld/lib/nutinit.o  -lnutnet -lnutpro -lnutfs 
-lnutos -lnutdev -lnutnet -lnutcrt -lnutarch -o TWI_Test.elf
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(ostimer.o)(.text+0xce): 
In function `nextovf':
: undefined reference to `NutRegisterIrqHandler'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(ivect15.o)(.text+0xb2): 
In function `__vector_15':
: undefined reference to `CallHandler'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x280): In 
function `TwInterrupt':
: undefined reference to `NutEventPostFromIrq'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x352): In 
function `TwInterrupt':
: undefined reference to `NutEventPostFromIrq'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x41e): In 
function `TwInterrupt':
: undefined reference to `NutEventPostFromIrq'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x466): In 
function `TwInterrupt':
: undefined reference to `NutEventPostFromIrq'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x46e): In 
function `TwInterrupt':
: undefined reference to `NutEventPostFromIrq'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x476): 
more undefined references to `NutEventPostFromIrq' follow
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x4b6): In 
function `TwMasterTransact':
: undefined reference to `NutEventWait'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x568): In 
function `TwMasterTransact':
: undefined reference to `NutEventWait'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x5a0): In 
function `TwMasterTransact':
: undefined reference to `NutEventPost'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x65a): In 
function `TwSlaveListen':
: undefined reference to `NutEventWait'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x6f2): In 
function `TwSlaveRespond':
: undefined reference to `NutEventWait'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x96c): In 
function `TwInit':
: undefined reference to `NutRegisterIrqHandler'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(twif.o)(.text+0x9a8): In 
function `TwInit':
: undefined reference to `NutEventPost'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutarch.a(ivect33.o)(.text+0xc0): 
In function `__vector_33':
: undefined reference to `CallHandler'
make: *** [TWI_Test.elf] Error 1
 >Exit code: 2


What I have done:
- Uninstalled both V 4.0.2 and V 3.9.1
- Freshly installed V 4.0.2 in D:\Work\ethernut-4.0.2\
- Set it up and compiled OS with no error
- Build nutapp tree
- Moved my application to D:\Work\ethernut-4.0.2\webmon\aktuell
- Compiled with result above
- Searched ALL files for wrong paths
- Lost substantial amount of hair
- ...


What is missing?


Any help appreciated,
                         Peter


More information about the En-Nut-Discussion mailing list