Not sure if this was what you had in mind, but here are the results from
printenv and ncc -v:
printenv:
$ printenv
HOMEPATH=\Users\Mjelde
MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man
APPDATA=C:\Users\Mjelde\AppData\Roaming
HOSTNAME=Morten-PC
MSP430TOOLS=/opt/msp430
TERM=cygwin
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
WINDIR=C:\Windows
PUBLIC=C:\Users\Public
OLDPWD=/usr/bin
PROGRAMDATA=C:\ProgramData
USERDOMAIN=Morten-PC
OS=Windows_NT
ALLUSERSPROFILE=C:\ProgramData
USER=Mjelde
!::=::\
LD_LIBRARY_PATH=:/opt/msp430/lib
TEMP=/cygdrive/c/Users/Mjelde/AppData/Local/Temp
COMMONPROGRAMFILES=C:\Program Files\Common Files
USERNAME=Mjelde
PROCESSOR_LEVEL=6
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/tinyos-2.x/tos:
/opt/msp43
0/bin:$PATH:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/c/Program
Files/MiKT
eX 2.6/miktex/bin:/opt/msp430/bin
MAN_PATH=:/opt/msp430/man
FP_NO_HOST_CHECK=NO
PWD=/home/Mjelde
SYSTEMDRIVE=C:
USERPROFILE=C:\Users\Mjelde
TOSDIR=C:/cygwin/opt/tinyos-2.x/tos
PS1=\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$
LOGONSERVER=\\MORTEN-PC
PROCESSOR_ARCHITECTURE=x86
LOCALAPPDATA=C:\Users\Mjelde\AppData\Local
!C:=C:\cygwin\bin
SHLVL=1
HOME=/home/Mjelde
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
MAKERULES=C:/cygwin/opt/tinyos-2.x/support/make/Makerules
HOMEDRIVE=C:
PROMPT=$P$G
COMSPEC=C:\Windows\system32\cmd.exe
PYTHONPATH=:/opt/msp430/lib/python2.3/site-packages/
TMP=/cygdrive/c/Users/Mjelde/AppData/Local/Temp
SYSTEMROOT=C:\Windows
PRINTER=\\http://cups.divms.uiowa.edu:631\p101
CVS_RSH=/bin/ssh
PROCESSOR_REVISION=0f0d
CLASSPATH=C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.
MAKE_MODE=unix
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
PROGRAMFILES=C:\Program Files
NUMBER_OF_PROCESSORS=2
SESSIONNAME=Console
TOSROOT=C:/cygwin/opt/tinyos-2.x
COMPUTERNAME=MORTEN-PC
_=/usr/bin/printenv
ncc -v
/usr/bin/nescc -fnesc-include=tos -topdir=C:/cygwin/opt/tinyos-2.x
-DPLATFORM_NU
LL -v -IC:/cygwin/opt/tinyos-2.x/tos/platforms/null
-IC:/cygwin/opt/tinyos-2.x/t
os/interfaces -IC:/cygwin/opt/tinyos-2.x/tos/types
-IC:/cygwin/opt/tinyos-2.x/to
s/system
nescc: 1.2.8a
gcc -_fnesc-gcc=gcc -specs=/usr/lib/ncc/tdspecs
-_fnesc-include=nesc_nx -I/usr/l
ib/ncc -_fnesc-include=tos -DPLATFORM_NULL -v
-IC:/cygwin/opt/tinyos-2.x/tos/pla
tforms/null -IC:/cygwin/opt/tinyos-2.x/tos/interfaces
-IC:/cygwin/opt/tinyos-2.x
/tos/types -IC:/cygwin/opt/tinyos-2.x/tos/system -DNESC=128
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Reading specs from /usr/lib/ncc/tdspecs
Configured with: /gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr
--exec-prefi
x=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/s
hare/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc,
pascal --enable-nls --without-included-gettext --enable-libgcj
--with-system-zli
b --enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sj
lj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
Thanks again
Morten
Philip Levis wrote:
If you send a
printenv
and the call to ncc when you pass -v (so it shows all the -I flags),
it'll be a lot easier for someone to help.
Phil
On Aug 2, 2007, at 8:41 PM, Morten Mjelde wrote:
Hi
I've just installed tiny-OS 2 on my Vista system, and after having
fought Vista on several issues, it looked like I got everything
installed correctly. But when I try to compile Blink, I get several
errors. Most of the errors seem to be related to files that the
compiler can not locate, but I have checked that they are indeed
there. But if I for example manually edit the file
/tinyos-2.x/tos/platforms/micaz/hardware.h, adding the complete path
to the file atm128hardware.h, the error disappears (and new ones show
up).
This leads me to believe that there may be an environmental variable
that is incorrect or missing, but as far as I can tell, based on the
installation instructions, everything is as it should be. I can add
that I also experience this error when installing on an XP system.
I hope someone is able to help me resolve this. Thanks in advance.
Morten
Here is the result from compiling with micaz:
$ make micaz
mkdir -p build/micaz
compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow
-Wnesc-all
-target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
-DIDENT_PROGRAM_NAME=
\"BlinkAppC\" -DIDENT_USER_ID=\"Mjelde\"
-DIDENT_HOSTNAME=\"Morten-PC\" -DIDENT_
USER_HASH=0x90a58a4bL -DIDENT_UNIX_TIME=0x46b29db3L
-DIDENT_UID_HASH=0xa03aced3L
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='reference
d(interfacedefs, components)'
-fnesc-dumpfile=build/micaz/wiring-check.xml Blink
AppC.nc -lm
In file included from C:/cygwin/opt/tinyos-2.x/tos/system/MainC.nc:43:
C:/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:50:28:
atm128hardware.h:
No such file or directory
C:/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:51:23:
Atm128Adc.h: No s
uch file or directory
C:/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:52:23:
MicaTimer.h: No s
uch file or directory
In component `BlinkAppC':
BlinkAppC.nc:45: failed to preprocess
C:/cygwin/opt/tinyos-2.x/tos/system/MainC.
nc
BlinkC.nc:37:19: Timer.h: No such file or directory
BlinkAppC.nc:45: failed to preprocess BlinkC.nc
In file included from BlinkAppC.nc:45:
In component `LedsC':
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:38: component
PlatformLedsC not fou
nd
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:42: cannot find `Init'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:43: cannot find `Led0'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:44: cannot find `Led1'
C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:45: cannot find `Led2'
C:/cygwin/opt/tinyos-2.x/tos/system/TimerMilliC.nc:34:19: Timer.h:
No such file
or directory
In component `BlinkAppC':
BlinkAppC.nc:46: failed to preprocess
C:/cygwin/opt/tinyos-2.x/tos/system/TimerM
illiC.nc
BlinkAppC.nc:46: component `TimerMilliC' is not generic
BlinkAppC.nc:47: component `TimerMilliC' is not generic
BlinkAppC.nc:48: component `TimerMilliC' is not generic
BlinkAppC.nc:51: cannot find `Boot'
BlinkAppC.nc:53: cannot find `Timer0'
BlinkAppC.nc:54: cannot find `Timer1'
BlinkAppC.nc:55: cannot find `Timer2'
BlinkAppC.nc:56: cannot find `Leds'
make: *** [exe0] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help