Error report
On Mon, 2009-01-19 at 14:28 +0100, Martin Leopold wrote:
> Hi All.
> Continuing with the example I sent a few days ago I thought I might try
> out the new (sort of at least) inline functionality. Unfortunately I'm
> having some problems. TinyOS and code generator nescc produces code that
> use inline extensively, but as far as i can tell it throws SDCC way off.
>
> The following relatively simple function results in a very cryptic error
> (at least if I can match the errors to respective lines):
>
> inline static error_t PlatformP__GPIOInit__init(void ){
> unsigned char result;
> result = Hplcip51IOC__Init__init();
> return result;
> }
>
> Produces:
> -:0: error 20: Undefined identifier '__00010052'
> build/c8051F340TB/app.c:1323: error 20: Undefined identifier 'result'
>
> I've attached the program and the entire error report.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________ Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
--
Regards Martin Leopold.
mkdir -p build/c8051F340TB
compiling EchoAppC to a c8051F340TB binary
ncc -S -Os
-I/home/leopold/tinyos-2.x-contrib/diku/mcs51/tos/platforms/c8051F340TB
-DIDENT_APPNAME=\"EchoAppC\" -DIDENT_USERNAME=\"leopold\"
-DIDENT_HOSTNAME=\"terry\" -DIDENT_USERHASH=0x8d2c0ec1L
-DIDENT_TIMESTAMP=0x49745557L -DIDENT_UIDHASH=0x554d755bL -D__c8051F340TB__=1
-Wall -Wshadow -DDEF_TOS_AM_GROUP=0x22 -Wnesc-all -conly -D__SDCC__
-target=c8051F340TB -fnesc-cfile=build/c8051F340TB/app.c -board= EchoAppC.nc
2>&1 | \
grep -v "attribute directive ignored"
/home/leopold/tinyos-2.x-contrib/diku/mcs51/tos/chips/mcs51/io8051.h:212:
warning: non-atomic accesses to shared variable `P2_2':
/home/leopold/tinyos-2.x-contrib/diku/mcs51/tos/chips/cip51/pins/Hplcip51IOC.nc:131:
warning: non-atomic write
/home/leopold/tinyos-2.x-contrib/diku/mcs51/tos/chips/cip51/iocip51.h:105:
warning: non-atomic accesses to shared variable `SBUF0':
/home/leopold/tinyos-2.x-contrib/diku/mcs51/tos/chips/cip51/uart/Halcip51SimpleUart0P.nc:147:
warning: non-atomic write
/home/leopold/tinyos-2.x-contrib/diku/mcs51/tos/chips/cip51/uart/Halcip51SimpleUart0P.nc:168:
warning: non-atomic read
EchoP.nc:50: warning: non-atomic accesses to shared variable `buf':
EchoP.nc:58: warning: non-atomic read
EchoP.nc:65: warning: non-atomic read
EchoP.nc:69: warning: non-atomic write
compiled EchoAppC to build/c8051F340TB/app.c
mv build/c8051F340TB/app.c build/c8051F340TB/app.preMangle.c
perl -w
/home/leopold/tinyos-2.x-contrib/diku/mcs51/support/make/mcs51/mangleAppC.pl
--sdcc --file=build/c8051F340TB/app.preMangle.c > build/c8051F340TB/app.c
sdcc -mmcs51 --model-large --no-c-code-in-asm --std-sdcc99
build/c8051F340TB/app.c -obuild/c8051F340TB/app
-:0: error 20: Undefined identifier '__00010052'
build/c8051F340TB/app.c:1323: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010050'
build/c8051F340TB/app.c:1300: error 20: Undefined identifier 'result'
build/c8051F340TB/app.c:1352: error 20: Undefined identifier 'i'
build/c8051F340TB/app.c:1353: error 20: Undefined identifier 'i'
-:0: error 20: Undefined identifier '__00010052'
-:0: error 20: Undefined identifier '__00010054'
-:0: error 20: Undefined identifier '__00010050'
-:0: error 20: Undefined identifier '__00010056'
build/c8051F340TB/app.c:1488: error 20: Undefined identifier 'b'
build/c8051F340TB/app.c:1488: error 20: Undefined identifier 'b'
-:0: error 20: Undefined identifier '__00010077'
build/c8051F340TB/app.c:1555: error 20: Undefined identifier 'r'
build/c8051F340TB/app.c:1555: error 20: Undefined identifier 'r'
-:0: error 20: Undefined identifier '__00010079'
build/c8051F340TB/app.c:1557: error 20: Undefined identifier 'r'
-:0: error 20: Undefined identifier '__00010084'
build/c8051F340TB/app.c:1594: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010084'
build/c8051F340TB/app.c:1594: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010095'
-:0: error 20: Undefined identifier '__00010084'
build/c8051F340TB/app.c:1594: error 20: Undefined identifier 'result'
build/c8051F340TB/app.c:1685: warning 85: in function
SchedulerBasicP__TaskBasic__default__runTask unreferenced function argument :
'id'
-:0: error 20: Undefined identifier '__00010084'
build/c8051F340TB/app.c:1594: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010099'
build/c8051F340TB/app.c:1764: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:1765: error 20: Undefined identifier 'id'
-:0: error 20: Undefined identifier '__00010084'
build/c8051F340TB/app.c:1594: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010099'
build/c8051F340TB/app.c:1764: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:1765: error 20: Undefined identifier 'id'
-:0: error 20: Undefined identifier '__00040107'
-:0: error 20: Undefined identifier '__00010084'
build/c8051F340TB/app.c:1594: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010099'
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1851: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:1851: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
-:0: error 20: Undefined identifier '__00010124'
build/c8051F340TB/app.c:1876: error 20: Undefined identifier 'result'
build/c8051F340TB/app.c:1851: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:1851: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
-:0: error 20: Undefined identifier '__00010124'
build/c8051F340TB/app.c:1876: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010154'
build/c8051F340TB/app.c:1488: error 20: Undefined identifier 'b'
build/c8051F340TB/app.c:1352: error 20: Undefined identifier 'i'
build/c8051F340TB/app.c:1353: error 20: Undefined identifier 'i'
-:0: error 20: Undefined identifier '__00010052'
-:0: error 20: Undefined identifier '__00010054'
-:0: error 20: Undefined identifier '__00010050'
-:0: error 20: Undefined identifier '__00010056'
-:0: error 20: Undefined identifier '__00010058'
build/c8051F340TB/app.c:1391: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010077'
build/c8051F340TB/app.c:1555: error 20: Undefined identifier 'r'
build/c8051F340TB/app.c:1555: error 20: Undefined identifier 'r'
-:0: error 20: Undefined identifier '__00010079'
build/c8051F340TB/app.c:1557: error 20: Undefined identifier 'r'
-:0: error 20: Undefined identifier '__00010081'
build/c8051F340TB/app.c:1571: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010084'
-:0: error 20: Undefined identifier '__00010095'
build/c8051F340TB/app.c:1764: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:1765: error 20: Undefined identifier 'id'
-:0: error 20: Undefined identifier '__00040107'
-:0: error 20: Undefined identifier '__00010099'
build/c8051F340TB/app.c:1764: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:1765: error 20: Undefined identifier 'id'
-:0: error 20: Undefined identifier '__00010084'
build/c8051F340TB/app.c:1594: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010099'
build/c8051F340TB/app.c:1851: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:1851: error 20: Undefined identifier 'id'
build/c8051F340TB/app.c:2017: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
build/c8051F340TB/app.c:1940: warning 180: using ~ on bit/bool/unsigned char
variables can give unexpected results due to promotion to int
-:0: error 20: Undefined identifier '__00010124'
build/c8051F340TB/app.c:1876: error 20: Undefined identifier 'result'
-:0: error 20: Undefined identifier '__00010154'
make: *** [sdcc] Error 1
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user