Hi,

You probably installed the toolchain from the hinrg repo, check this thread:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2012-April/054674.html

Andris

On Thu, May 24, 2012 at 4:52 AM, Zheyi Zhu <[email protected]> wrote:
> Hi,
>
> I'm using MIB520 and Ubuntu 12.04 32bit, currently working on iris
> I have successfully installed TinyOS 2.1.1 with the instructions on wiki
> website and done the Environment Variable parts.
>
> First of all, here is my tos-check-env:
> "
> zzy@Le:~$ tos-check-env
> Path:
> /usr/lib/lightdm/lightdm
> /usr/local/sbin
> /usr/local/bin
> /usr/sbin
> /usr/bin
> /sbin
> /bin
> /usr/games
>
> Classpath:
> /opt/tinyos-2.1.1/support/sdk/java/tinyos.jar
> .
>
>
>
> rpms:
> /usr/bin/rpm
>
>
> nesc:
> /usr/bin/nescc
> Version: nescc: 1.3.3
>
>
> perl:
> /usr/bin/perl
> Version: v5.14.2) built for i686-linux-gnu-thread-multi-64int
>
> flex:
>
> bison:
>
> java:
> /usr/bin/java
>
> --> WARNING: The JAVA version found first by tos-check-env may not be
> version 1.4 or version 1.5one of which is required by TOS. Please ensure
> that the located Java version is 1.4 or 1.5
>
> graphviz:
> /usr/bin/dot
> dot - graphviz version 2.26.3 (20100126.1600)
>
> --> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10.
> Please update your graphviz version if you'd like to use the nescdoc
> documentation generator.
>
>
> tos-check-env completed with errors:
>
> --> WARNING: The JAVA version found first by tos-check-env may not be
> version 1.4 or version 1.5one of which is required by TOS. Please ensure
> that the located Java version is 1.4 or 1.5
> --> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10.
> Please update your graphviz version if you'd like to use the nescdoc
> documentation generator.
> "
>
> My problems list as follows:
> 1. I try to compile testing program Blink: ( I did change the ownership of
> the tinyos to my account )
> "
> zzy@Le:~$ make iris
> mkdir -p build/iris
>     compiling BlinkAppC to a iris binary
> ncc -o build/iris/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
> -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb
> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"zzy\"
> -DIDENT_HOSTNAME=\"Le\" -DIDENT_USERHASH=0xdd842a7aL
> -DIDENT_TIMESTAMP=0x4fbda2c7L -DIDENT_UIDHASH=0xa5f63f28L -fnesc-dump=wiring
> -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
> components)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkAppC.nc -lm
> /usr/lib/ncc/nesc_nx.h:62:22: error: inttypes.h: No such file or directory
> /usr/lib/ncc/nesc_nx.h:281: syntax error before `__nesc_ntoh_uint8'
> /usr/lib/ncc/nesc_nx.h:286: syntax error before `__nesc_hton_uint8'
> /usr/lib/ncc/nesc_nx.h:288: warning: type defaults to `int' in declaration
> of `base'
> /usr/lib/ncc/nesc_nx.h:288: `value' undeclared here (not in a function)
> /usr/lib/ncc/nesc_nx.h:288: warning: data definition has no type or storage
> class
> .
> .
> .
> (after hundreds of lines)
> .
> .
> In file included from
> /opt/tinyos-2.1.1/tos/platforms/mica/HilTimerMilliC.nc:46,
>                  from /opt/tinyos-2.1.1/tos/system/TimerMilliP.nc:41,
>                  from /opt/tinyos-2.1.1/tos/system/TimerMilliC.nc:40,
>                  from BlinkAppC.nc:46:
> In component `CounterToLocalTimeC':
> /opt/tinyos-2.1.1/tos/lib/timer/CounterToLocalTimeC.nc:38: syntax error
> before `uint32_t'
> /opt/tinyos-2.1.1/tos/lib/timer/CounterToLocalTimeC.nc:42: syntax error
> before `LocalTime'
> In component `HilTimerMilliC':
> /opt/tinyos-2.1.1/tos/platforms/mica/HilTimerMilliC.nc:50: no match
> /opt/tinyos-2.1.1/tos/platforms/mica/HilTimerMilliC.nc:51: cannot find
> `TimerFrom'
> /opt/tinyos-2.1.1/tos/platforms/mica/HilTimerMilliC.nc:52: cannot find
> `Alarm'
> /opt/tinyos-2.1.1/tos/platforms/mica/HilTimerMilliC.nc:54: no match
> /opt/tinyos-2.1.1/tos/platforms/mica/HilTimerMilliC.nc:55: cannot find
> `Counter'
> In component `TimerMilliC':
> /opt/tinyos-2.1.1/tos/system/TimerMilliC.nc:44: too many arguments
> make: *** [exe0] Error 1
> "
>
> 2. I guess it is compiler errors,
> after I checked the packages with synpatic package manager,
> I found all the packages with "avr" are followed by "tinyos", say
> avr-gcc-tinyos
>
>
> 3. The problem above is by commands make iris, but if I use :
> zzy@Le:/opt/tinyos-2.1.1/apps/Blink$ sudo make iris
> [sudo] password for zzy:
> make: *** No rule to make target `iris'.  Stop.
>
>
> That is my problem,
> Please kindly help.
>
> Thank you,
> Zheyi Zhu
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

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

Reply via email to