>> I'm working with the TI's eZ430-rf2500, and I'm trying to get TinyOS
>> onto it. My current problem is, the default/recommended version of
>> mspgcc doesn't support targeting the eZ430's processor, the
>> MSP430F2274.
>>
>> What I did to fix this was I updated my mspgcc to the most recent version
>> from:
>> http://sourceforge.net/project/showfiles.php?group_id=42303
>>
>> I'm working in Cygwin because there are no drivers for the eZ430's usb
>> debugger in linux. Therefore I installed the win32 package.
>>
>> Now when I compile TinyOS for any target I get the following error
>> (despite the file certainly being there):
>> msp430-gcc.exe: /usr/lib/ncc/tdspecs: no such file or directory
>>
>> So what I did was I went into the nesc shell script and changed the
>> full -specs path to: "c:/cygwin/usr/lib/ncc/
>> tdspecs". That fixed the
>> tdspecs error, but I just ran into another similar error:
>> Can't find nesc-compile on PATH.
>>
>> I tried making my path include the windows versions as well as the
>> cygwin ones "/bin:" "c:/cygwin/bin:" etc. But I still get that error.
>>
>>
>> Can anyone help me with this issue? It may be something simple which
>> I'm entirely missing, but any feedback would be much appreciated!
>
>By default, TinyOS (ncc) assumes you're using a gcc compiled for
>cygwin, and which therefore accepts cygwin paths like
>/usr/lib/ncc/tdspecs. You're clearly using one compiled for win32,
>which doesn't understand cygwin paths. You should be able to tell ncc
>to use a gcc compiled for win32 by passing the -mingw-gcc flag to ncc
>- this definitely used to work, though I'm not 100% sure if it still
>works...
>
>The easiest way to do this would be to add
>PFLAGS += -mingw-gcc
>to your Makelocal file in tinyos-2.x/support/make
>
>David Gay
Well that solution didn't work for me, but in XubuntOS I managed to compile the
newest version from source. So it's no longer win32/cygwin path issues.
When I try to compile TinyOS with the new mspgcc, even for TelosB which I've
confirmed was working before the compiler switch and works when I swap back, I
get some strange errors. See them below.
Any idea how I can fix this and use the newer version of mspgcc so that I can
compile for newer processors?
Thanks,
Jonathan Leahey
r...@xubuntos-tinyos:/opt/tinyos-2.1.0/apps/Blink# make telosb
mkdir -p build/telosb
compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow -Wnesc-all
-target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\"
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"xubuntos-tinyos\"
-DIDENT_USERHASH=0x79e6532eL -DIDENT_TIMESTAMP=0x4a4240d5L
-DIDENT_UIDHASH=0x6228bdf7L BlinkAppC.nc -lm
/tmp/ccThKyqf.s: Assembler messages:
/tmp/ccThKyqf.s:4: Error: junk at end of line, first unrecognized character is
`$'
/tmp/ccThKyqf.s:6: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:6: Error: junk at end of line, first unrecognized character is
`$'
/tmp/ccThKyqf.s:7: Error: expected comma after name `McuSleepC' in .size
directive
/tmp/ccThKyqf.s:8: Error: unknown opcode `mcusleepc$dirty:'
/tmp/ccThKyqf.s:10: Error: junk at end of line, first unrecognized character is
`$'
/tmp/ccThKyqf.s:11: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:11: Error: junk at end of line, first unrecognized character is
`$'
/tmp/ccThKyqf.s:12: Error: expected comma after name `McuSleepC' in .size
directive
/tmp/ccThKyqf.s:13: Error: unknown opcode `mcusleepc$powerstate:'
/tmp/ccThKyqf.s:15: Error: junk at end of line, first unrecognized character is
`$'
/tmp/ccThKyqf.s:18: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:18: Error: junk at end of line, first unrecognized character is
`$'
/tmp/ccThKyqf.s:19: Error: expected comma after name `McuSleepC' in .size
directive
/tmp/ccThKyqf.s:20: Error: unknown opcode `mcusleepc$msp430powerbits:'
/tmp/ccThKyqf.s:120: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:120: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:124: Error: unknown opcode `msp430timercapcomp$0$event$fired'
/tmp/ccThKyqf.s:126: Error: unknown pseudo-op:
`.l__framesize_msp430timercapcomp'
/tmp/ccThKyqf.s:127: Error: unknown pseudo-op:
`.l__frameoffset_msp430timercapcomp'
/tmp/ccThKyqf.s:141: Error: expected comma after name `Msp430TimerCapComP' in
.size directive
/tmp/ccThKyqf.s:145: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:145: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:149: Error: unknown opcode `msp430timercapcomp$1$event$fired'
/tmp/ccThKyqf.s:151: Error: unknown pseudo-op:
`.l__framesize_msp430timercapcomp'
/tmp/ccThKyqf.s:152: Error: unknown pseudo-op:
`.l__frameoffset_msp430timercapcomp'
/tmp/ccThKyqf.s:166: Error: expected comma after name `Msp430TimerCapComP' in
.size directive
/tmp/ccThKyqf.s:170: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:170: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:174: Error: unknown opcode `msp430timercapcomp$2$event$fired'
/tmp/ccThKyqf.s:176: Error: unknown pseudo-op:
`.l__framesize_msp430timercapcomp'
/tmp/ccThKyqf.s:177: Error: unknown pseudo-op:
`.l__frameoffset_msp430timercapcomp'
/tmp/ccThKyqf.s:191: Error: expected comma after name `Msp430TimerCapComP' in
.size directive
/tmp/ccThKyqf.s:285: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:285: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:289: Error: unknown opcode `msp430timerp$1$event$default$fir'
/tmp/ccThKyqf.s:291: Error: unknown pseudo-op: `.l__framesize_msp430timerp'
/tmp/ccThKyqf.s:292: Error: unknown pseudo-op: `.l__frameoffset_msp430timerp'
/tmp/ccThKyqf.s:300: Error: expected comma after name `Msp430TimerP' in .size
directive
/tmp/ccThKyqf.s:304: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:304: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:308: Error: unknown opcode `msp430timerp$1$event$fired:'
/tmp/ccThKyqf.s:310: Error: unknown pseudo-op: `.l__framesize_msp430timerp'
/tmp/ccThKyqf.s:311: Error: unknown pseudo-op: `.l__frameoffset_msp430timerp'
/tmp/ccThKyqf.s:405: Error: expected comma after name `Msp430TimerP' in .size
directive
/tmp/ccThKyqf.s:409: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:409: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:413: Error: unknown opcode `schedulerbasicp$taskbasic$postta'
/tmp/ccThKyqf.s:415: Error: unknown pseudo-op: `.l__framesize_schedulerbasicp'
/tmp/ccThKyqf.s:416: Error: unknown pseudo-op: `.l__frameoffset_schedulerbasicp'
/tmp/ccThKyqf.s:463: Error: expected comma after name `SchedulerBasicP' in
.size directive
/tmp/ccThKyqf.s:467: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:467: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:471: Error: unknown opcode `transformalarmc$0$set_alarm:'
/tmp/ccThKyqf.s:473: Error: unknown pseudo-op: `.l__framesize_transformalarmc'
/tmp/ccThKyqf.s:474: Error: unknown pseudo-op: `.l__frameoffset_transformalarmc'
/tmp/ccThKyqf.s:585: Error: expected comma after name `TransformAlarmC' in
.size directive
/tmp/ccThKyqf.s:589: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:589: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:593: Error: unknown opcode `transformcounterc$0$counter$get:'
/tmp/ccThKyqf.s:595: Error: unknown pseudo-op: `.l__framesize_transformcounterc'
/tmp/ccThKyqf.s:596: Error: unknown pseudo-op:
`.l__frameoffset_transformcounterc'
/tmp/ccThKyqf.s:657: Error: expected comma after name `TransformCounterC' in
.size directive
/tmp/ccThKyqf.s:661: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:661: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:665: Error: unknown opcode `msp430timerp$1$timer$get:'
/tmp/ccThKyqf.s:667: Error: unknown pseudo-op: `.l__framesize_msp430timerp'
/tmp/ccThKyqf.s:668: Error: unknown pseudo-op: `.l__frameoffset_msp430timerp'
/tmp/ccThKyqf.s:684: Error: expected comma after name `Msp430TimerP' in .size
directive
/tmp/ccThKyqf.s:869: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:869: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:873: Error: unknown opcode `msp430clockp$set_dco_calib:'
/tmp/ccThKyqf.s:875: Error: unknown pseudo-op: `.l__framesize_msp430clockp'
/tmp/ccThKyqf.s:876: Error: unknown pseudo-op: `.l__frameoffset_msp430clockp'
/tmp/ccThKyqf.s:892: Error: expected comma after name `Msp430ClockP' in .size
directive
/tmp/ccThKyqf.s:896: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:896: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:900: Error: unknown opcode `moteplatformc$tosh_flash_m25p_dp'
/tmp/ccThKyqf.s:902: Error: unknown pseudo-op: `.l__framesize_moteplatformc'
/tmp/ccThKyqf.s:903: Error: unknown pseudo-op: `.l__frameoffset_moteplatformc'
/tmp/ccThKyqf.s:920: Error: expected comma after name `MotePlatformC' in .size
directive
/tmp/ccThKyqf.s:924: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:924: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:928: Error: unknown opcode `schedulerbasicp$scheduler$runnex'
/tmp/ccThKyqf.s:930: Error: unknown pseudo-op: `.l__framesize_schedulerbasicp'
/tmp/ccThKyqf.s:931: Error: unknown pseudo-op: `.l__frameoffset_schedulerbasicp'
/tmp/ccThKyqf.s:972: Error: expected comma after name `SchedulerBasicP' in
.size directive
/tmp/ccThKyqf.s:976: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:976: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:980: Error: unknown opcode `virtualizetimerc$0$updatefromtim'
/tmp/ccThKyqf.s:982: Error: unknown pseudo-op: `.l__framesize_virtualizetimerc'
/tmp/ccThKyqf.s:983: Error: unknown pseudo-op:
`.l__frameoffset_virtualizetimerc'
/tmp/ccThKyqf.s:1071: Error: expected comma after name `VirtualizeTimerC' in
.size directive
/tmp/ccThKyqf.s:1075: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1075: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1079: Error: unknown opcode `virtualizetimerc$0$firetimers:'
/tmp/ccThKyqf.s:1081: Error: unknown pseudo-op: `.l__framesize_virtualizetimerc'
/tmp/ccThKyqf.s:1082: Error: unknown pseudo-op:
`.l__frameoffset_virtualizetimerc'
/tmp/ccThKyqf.s:1169: Error: expected comma after name `VirtualizeTimerC' in
.size directive
/tmp/ccThKyqf.s:1173: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1173: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1177: Error: unknown opcode `transformalarmc$0$alarm$startat:'
/tmp/ccThKyqf.s:1179: Error: unknown pseudo-op: `.l__framesize_transformalarmc'
/tmp/ccThKyqf.s:1180: Error: unknown pseudo-op:
`.l__frameoffset_transformalarmc'
/tmp/ccThKyqf.s:1212: Error: expected comma after name `TransformAlarmC' in
.size directive
/tmp/ccThKyqf.s:1216: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1216: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1220: Error: unknown opcode `alarmtotimerc$0$fired$runtask:'
/tmp/ccThKyqf.s:1222: Error: unknown pseudo-op: `.l__framesize_alarmtotimerc'
/tmp/ccThKyqf.s:1223: Error: unknown pseudo-op: `.l__frameoffset_alarmtotimerc'
/tmp/ccThKyqf.s:1253: Error: expected comma after name `AlarmToTimerC' in .size
directive
/tmp/ccThKyqf.s:1257: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1257: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1261: Error: unknown opcode `virtualizetimerc$0$timer$startpe'
/tmp/ccThKyqf.s:1263: Error: unknown pseudo-op: `.l__framesize_virtualizetimerc'
/tmp/ccThKyqf.s:1264: Error: unknown pseudo-op:
`.l__frameoffset_virtualizetimerc'
/tmp/ccThKyqf.s:1303: Error: expected comma after name `VirtualizeTimerC' in
.size directive
/tmp/ccThKyqf.s:1307: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1307: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1311: Error: unknown opcode `moteplatformc$init$init:'
/tmp/ccThKyqf.s:1313: Error: unknown pseudo-op: `.l__framesize_moteplatformc'
/tmp/ccThKyqf.s:1314: Error: unknown pseudo-op: `.l__frameoffset_moteplatformc'
/tmp/ccThKyqf.s:1351: Error: expected comma after name `MotePlatformC' in .size
directive
/tmp/ccThKyqf.s:1355: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1355: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1359: Error: unknown opcode `moteplatformc$tosh_flash_m25p_dp'
/tmp/ccThKyqf.s:1361: Error: unknown pseudo-op: `.l__framesize_moteplatformc'
/tmp/ccThKyqf.s:1362: Error: unknown pseudo-op: `.l__frameoffset_moteplatformc'
/tmp/ccThKyqf.s:1401: Error: expected comma after name `MotePlatformC' in .size
directive
/tmp/ccThKyqf.s:1405: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1405: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1409: Error: unknown opcode `msp430clockp$busycalibratedco:'
/tmp/ccThKyqf.s:1411: Error: unknown pseudo-op: `.l__framesize_msp430clockp'
/tmp/ccThKyqf.s:1412: Error: unknown pseudo-op: `.l__frameoffset_msp430clockp'
/tmp/ccThKyqf.s:1467: Error: expected comma after name `Msp430ClockP' in .size
directive
/tmp/ccThKyqf.s:1471: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1471: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1475: Error: unknown opcode `schedulerbasicp$taskbasic$runtas'
/tmp/ccThKyqf.s:1477: Error: unknown pseudo-op: `.l__framesize_schedulerbasicp'
/tmp/ccThKyqf.s:1478: Error: unknown pseudo-op:
`.l__frameoffset_schedulerbasicp'
/tmp/ccThKyqf.s:1497: Error: expected comma after name `SchedulerBasicP' in
.size directive
/tmp/ccThKyqf.s:1500: Error: bad expression
/tmp/ccThKyqf.s:1500: Error: junk at end of line, first unrecognized character
is `m'
/tmp/ccThKyqf.s:1501: Error: bad expression
/tmp/ccThKyqf.s:1501: Error: junk at end of line, first unrecognized character
is `m'
/tmp/ccThKyqf.s:1502: Error: bad expression
/tmp/ccThKyqf.s:1502: Error: junk at end of line, first unrecognized character
is `m'
/tmp/ccThKyqf.s:1504: Error: unrecognized symbol type ""
/tmp/ccThKyqf.s:1504: Error: junk at end of line, first unrecognized character
is `$'
/tmp/ccThKyqf.s:1508: Error: unknown opcode `mcusleepc$getpowerstate:'
/tmp/ccThKyqf.s:1510: Error: unknown pseudo-op: `.l__framesize_mcusleepc'
/tmp/ccThKyqf.s:1511: Error: unknown pseudo-op: `.l__frameoffset_mcusleepc'
/tmp/ccThKyqf.s:1590: Error: expected comma after name `McuSleepC' in .size
directive
/tmp/ccThKyqf.s:1593: Error: bad expression
/tmp/ccThKyqf.s:1593: Error: junk at end of line, first unrecognized character
is `0'
/tmp/ccThKyqf.s:1594: Error: bad expression
/tmp/ccThKyqf.s:1594: Error: junk at end of line, first unrecognized character
is `0'
/tmp/ccThKyqf.s:1595: Error: bad expression
/tmp/ccThKyqf.s:1595: Error: junk at end of line, first unrecognized character
is `0'
/tmp/ccThKyqf.s:1596: Error: bad expression
/tmp/ccThKyqf.s:1596: Error: junk at end of line, first unrecognized character
is `0'
/tmp/ccThKyqf.s:1597: Error: bad expression
/tmp/ccThKyqf.s:1597: Error: junk at end of line, first unrecognized character
is `0'
/tmp/ccThKyqf.s:1598: Error: bad expression
/tmp/ccThKyqf.s:1598: Error: junk at end of line, first unrecognized character
is `0'
make: *** [exe0] Error 1
_________________________________________________________________
Windows Liveā¢: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help