[Tinyos-help] make [sim-exe] Error 2

Philip Levis pal at cs.stanford.edu
Sun Jan 7 21:13:15 PST 2007


On Jan 7, 2007, at 9:38 AM, Sean Winfree wrote:

> I changed my MAKERULES path to:  export MAKERULES="C:\cygwin\opt 
> \tinyos-2.x\support\make\Makerules"
> This found the makerules file however know I am getting an error  
> with my make.
> I don't know what is causing all this.
>
> Owner at Laptop /cygdrive/c
> $ cd cygwin/opt/tinyos-2.x/apps/Blink
>
> Owner at Laptop /cygdrive/c/cygwin/opt/tinyos-2.x/apps/Blink
> $ make micaz sim
> C:\cygwin\opt\tinyos-2.x\support\make\Makerules:31: warning,  
> MAKERULES contains
> backslashes.
>
>     The environment variable MAKERULES contains backslashes \'s.   
> This can
>     cause shell scripts including ones in this make system to fail in
>     strange ways.  I've changed those to forward slashes for you  
> for this
>     build.  However, you are strongly encouraged to respecify  
> MAKERULES as
>     either a standard unix-style path or as a mixed-style path  
> where the
>     backslashes are replaced with forward slashes /'s.
>
> mkdir -p build/micaz
>   placing object files in build/micaz
>   writing XML schema to app.xml
>   compiling BlinkAppC to object file sim.o
> ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc- 
> nido-tosnodes=10
> 00 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -finline- 
> limit=100000 -
> Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/ 
> app.c -board=mic
> asb  -Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components - 
> fnesc-dump=varia
> bles -fnesc-dump=constants -fnesc-dump=typedefs -fnesc- 
> dump=interfacedefs -fnesc
> -dump=tags -fnesc-dumpfile=app.xml
> Unknown target micaz
> Known targets for TinyOS directory cygwin/opt/tinos-2.x/tos
> and the specified include directories are:
> none.
> make: *** [sim-exe] Error 2
>
>
>

Um, make just printed out a 6-line error message to you. It pretty  
clearly says:

"The environment variable MAKERULES contains backslashes \'s.  This  
can cause shell scripts including ones in this make system to fail in  
strange ways."

Your original problem was that you set MAKERULES to be

opt/tinyos-2.x/support/make/Makerules

rather than

/opt/tinyos-2.x/support/make/Makerules

That is, you used a relative rather than absolute path.

Phil



More information about the Tinyos-help mailing list