From: Jonathan Leahey <[email protected]>
> 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

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to