you are compiling a tosthread app. try "make telosb threads". - jpaek
On Thu, Jul 29, 2010 at 12:29 PM, Gerald Stanje <[email protected]> wrote: > hi, > > i have the newest ubuntu and tinyos-2.1.1! > i tried to compile the TestPrintf example but it fails for any reason! > could someone tell me why? > > i attached my output: > > r...@ubuntu:/opt/tinyos-2.1.1/apps/tosthreads/apps/TestPrintf# make telosb > mkdir -p build/telosb > compiling TestPrintfAppC to a telosb binary > ncc -o build/telosb/main.exe -Os -O > -I/opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf -mdisable-hwmul > -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb > -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 > -DIDENT_APPNAME=\"TestPrintfAppC\" -DIDENT_USERNAME=\"root\" > -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USERHASH=0xa3473ba6L > -DIDENT_TIMESTAMP=0x4c51d99dL -DIDENT_UIDHASH=0xf90d81eeL TestPrintfAppC.nc > -lm > In file included from TestPrintfAppC.nc:45: > In component `TestPrintfC': > TestPrintfC.nc:43: interface Thread not found > In file included from TestPrintfAppC.nc:45: > TestPrintfC.nc: In function `Boot.booted': > TestPrintfC.nc:50: interface has no command or event named `start' > TestPrintfC.nc: At top level: > TestPrintfC.nc:53: `run' is not in interface `Thread' > In file included from > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:41, > from TestPrintfAppC.nc:46: > In component `PrintfP': > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:49: interface > BlockingStdControl not found > In file included from > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:41, > from TestPrintfAppC.nc:46: > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:51: interface > Barrier not found > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:52: interface > Mutex not found > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:54: interface > BlockingAMSend not found > In file included from > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:41, > from TestPrintfAppC.nc:46: > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:62: syntax error > before `printf_mutex' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:63: syntax error > before `flushstart_barrier' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:64: syntax error > before `flushdone_barrier' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc: In function > `Boot.booted': > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:74: interface has > no command or event named `init' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:74: `printf_mutex' > undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:74: (Each > undeclared identifier is reported only once > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:74: for each > function it appears in.) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:75: interface has > no command or event named `reset' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:75: > `flushstart_barrier' undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:76: interface has > no command or event named `reset' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:76: > `flushdone_barrier' undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:77: interface has > no command or event named `start' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc: At top level: > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:80: `run' is not > in interface `PrintfThread' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc: In function > `PrintfThread.run': > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:81: interface has > no command or event named `start' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:83: interface has > no command or event named `block' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:83: > `flushstart_barrier' undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:85: interface has > no command or event named `block' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:85: > `flushdone_barrier' undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc: In function > `flush_buffer': > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:94: interface has > no command or event named `lock' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:94: `printf_mutex' > undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:96: interface has > no command or event named `unlock' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:102: interface has > no command or event named `lock' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:106: interface has > no command or event named `unlock' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:107: interface has > no command or event named `send' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc: In function > `printfflush': > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:112: interface has > no command or event named `block' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:112: > `flushstart_barrier' undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:113: interface has > no command or event named `reset' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:114: interface has > no command or event named `block' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:114: > `flushdone_barrier' undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:115: interface has > no command or event named `reset' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc: In function > `putchar': > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:128: interface has > no command or event named `lock' > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:128: > `printf_mutex' undeclared (first use in this function) > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfP.nc:131: interface has > no command or event named `unlock' > In component `PrintfC': > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc: At top level: > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:44: component > ThreadC not found > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:44: component > `ThreadC' is not generic > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:47: component > BlockingSerialActiveMessageC not found > In file included from TestPrintfAppC.nc:46: > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:54: component > BarrierC not found > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:57: component > MutexC not found > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:60: component > BlockingSerialAMSenderC not found > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:60: component > `BlockingSerialAMSenderC' is not generic > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:45: no match > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:48: no match > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:49: no match > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:55: no match > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:58: no match > /opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf/PrintfC.nc:61: no match > In component `TestPrintfAppC': > TestPrintfAppC.nc:47: component `ThreadC' is not generic > TestPrintfAppC.nc:50: no match > make: *** [exe0] Error 1 > > -- > GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. > Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Jeongyeup Paek Ph.D. Candidate Embedded Networks Laboratory Department of Computer Science University of Southern California http://enl.usc.edu/~jpaek _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
