I'm trying to create a new platform for TinyOS that uses the arm-elf-gcc as 
its compiler. However, I'm getting the following error when I try to 
compile the Null application:

-bash-4.0$ CFLAGS=-fnesc-verbose make amulet
mkdir -p build/amulet
    compiling NullAppC to a amulet binary ncc -o build/amulet/main.exe -Os 
-Wall -Wshadow -Wnesc-all -target=amulet -fnesc-cfile=build/amulet/app.c 
-board= -DDEFINED_TOS_AM_GROUP=0x22 -fnesc-verbose 
-DIDENT_APPNAME=\"NullAppC\" -DIDENT_USERNAME=\"kleereka\" 
-DIDENT_HOSTNAME=\"msa023.cs.man.a\" -DIDENT_USERHASH=0x1cc07096L 
-DIDENT_TIMESTAMP=0x4b03195bL -DIDENT_UIDHASH=0xab651470L NullAppC.nc -lm 
arm-elf-gcc -v -x c /dev/null -E -dM #include "..." and component search 
starts here: #include <...> search starts here:
 /usr/lib/ncc/
 /opt/tinyos-2.x/tos/sensorboards/
 /opt/tinyos-2.x/tos/platforms/amulet/
 /opt/tinyos-2.x/tos/chips/amulet/
 /opt/tinyos-2.x/tos/interfaces/
 /opt/tinyos-2.x/tos/types/
 /opt/tinyos-2.x/tos/system/
End of search list.
nesc1: internal error: couldn't define builtin macros - exiting
make: *** [exe0] Error 1

I've followed the recommendations from David Gay here: 
http://old.nabble.com/Nesc-Error-to23952476.html but when I run the command 
"arm-elf-gcc -v -x c /dev/null -E -dM" on its own manually it seems to work 
fine. I get:

-bash-4.0$ arm-elf-gcc -v -x c /dev/null -E -dM Reading specs from 
/local-home/kleereka/gnuarm-3.4.3/bin/../lib/gcc/arm-elf/3.4.3/specs 
Configured with: ../gcc-3.4.3/configure --target=arm-elf 
--prefix=/srv/shared/gnuarm/gnuarm-3.4.3 --enable-interwork 
--enable-multilib --with-newlib 
--with-headers=../newlib-1.12.0/newlib/libc/include 
--enable-languages=c,c++,java --disable-libgcj Thread model: single gcc 
version 3.4.3
 /local-home/kleereka/gnuarm-3.4.3/bin/../libexec/gcc/arm-elf/3.4.3/cc1 -E 
-quiet -v -iprefix 
/local-home/kleereka/gnuarm-3.4.3/bin/../lib/gcc/arm-elf/3.4.3/ 
-D__ARM_ARCH_4T__ -D__USES_INITFINI__ /dev/null -dM ignoring nonexistent 
directory "/srv/shared/gnuarm/gnuarm-3.4.3/lib/gcc/arm-elf/3.4.3/include" 
ignoring nonexistent directory 
"/srv/shared/gnuarm/gnuarm-3.4.3/arm-elf/sys-include" ignoring nonexistent 
directory "/srv/shared/gnuarm/gnuarm-3.4.3/arm-elf/include" #include "..." 
search starts here: #include <...> search starts here:
 /local-home/kleereka/gnuarm-3.4.3/bin/../lib/gcc/arm-elf/3.4.3/include
  
/local-home/kleereka/gnuarm-3.4.3/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/sys-include
  
/local-home/kleereka/gnuarm-3.4.3/bin/../lib/gcc/arm-elf/3.4.3/../../../../arm-elf/include
 
End of search list.

followed by a long list of definitions.

following this with "echo $?" returns "0".

Any help would be greatly appreciated.

Thanks

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

Reply via email to