On Sat, Sep 15, 2012 at 7:08 PM, Aliaksandr Razumkou <[email protected]>wrote:

>  Hi,
> Thanks for the answer. I have tried to compile Blink from
> /opt/tinyos-2.1.2/, but the same thing happened: micaz compiles, but Blink
> doesn't.  Also my environment variables set up correctly as far as I can
> tell
>

That looks wierd to me.   What host OS are you running on?


> $TOSROOT /opt/tinyos-2.1.2
> $TOSDIR /opt/tinyos-2.1.2/tos
> $CLASSPATH :/opt/tinyos-2.1.2/support/sdk/java/tinyos.jar
> $MAKERULES  /opt/tinyos-2.1.2/support/make/
>

Here is what mine looks like:   Output from "env | sort" with interesting
ones pulled out...

CLASSPATH=.:/home/cire/mm/t2_cur/tinyos-2.x/support/sdk/java/tinyos.jar
MAKERULES=/home/cire/mm/t2_cur/tinyos-2.x/support/make/Makerules
MOTECOM=serial@/dev/ttyUSB1:115200
TOSDIR=/home/cire/mm/t2_cur/tinyos-2.x/tos
TOSMAKE_PATH=/home/cire/mm/t2_mm/support/make
TOSROOT=/home/cire/mm/t2_cur/tinyos-2.x


Now I'm working off the development trunk which is a little bit later than
2.1.2 but that shouldn't be an issue.   The problem is the compiler isn't
being told what cpu you are working with.

Have you made any other modifications in your tree (ie. inside of
/opt/tinyos-2.1.2)?

Where did you get your toolchain?   I don't use the avr toolchains because
I'm working on the msp430 cpus.   So you have to tell me what toolchain you
are using and how to invoke it.


>
> On 09/14/2012 09:23 PM, Eric Decker wrote:
>
>
>
> On Fri, Sep 14, 2012 at 6:18 PM, Eric Decker <[email protected]> wrote:
>
>>
>>  The clue is...
>>
>>  *#warning "device type not defined"
>> *
>>  not sure why but something is screwy with your environment variables or
>> with your development tree.
>>
>>  I notice you are compiling from ~/Documents/TINYOS/Simple which is
>> clearly outside the tree.
>>
>>  Have you tried compiling Blink for the iris?
>>
>> On Sat, Sep 15, 2012 at 6:04 PM, Aliaksandr Razumkou <[email protected]>wrote:
>>
>>> For some reason I can't compile for iris platform. This works for micaz
>>> but not iris. I'm using Arch Linux. Has anybody seen it before?
>>>
>>> jb@amazing:~/Documents/TINYOS/Simple$ make iris
>>> mkdir -p build/iris
>>>      compiling SimpleAppC 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=\"SimpleAppC\" -DIDENT_USERNAME=\"jb\"
>>> -DIDENT_HOSTNAME=\"amazing\" -DIDENT_USERHASH=0x1b0348deL
>>> -DIDENT_TIMESTAMP=0x50552470L -DIDENT_UIDHASH=0x971f40a4L
>>> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
>>> -fnesc-dump='referenced(interfacedefs, components)'
>>> -fnesc-dumpfile=build/iris/wiring-check.xml SimpleAppC.nc -lm
>>> In file included from
>>> /usr/lib/gcc/avr/4.1.2/../../../../avr/include/avr/wdt.h:41,
>>>                   from /opt/tinyos-2.1.2/tos/platforms/iris/platform.h:1,
>>>                   from /opt/tinyos-2.1.2/tos/system/tos.h:43:
>>> /usr/lib/gcc/avr/4.1.2/../../../../avr/include/avr/io.h:364:6: warning:
>>> #warning "device type not defined"
>>> In file included from /opt/tinyos-2.1.2/tos/system/TinySchedulerC.nc:52:
>>> In component `McuSleepC':
>>> /opt/tinyos-2.1.2/tos/chips/atm1281/McuSleepC.nc:101: `SM0' undeclared
>>> here (not in a function)
>>>
>>
>
>
>
>


-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to