Hi,

> /usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
The first message seems to indicate that you don't have the AVR
toolchain installed or not correctly. Therefore inttypes.h for AVR is
not found.

Verify that you have the AVR toolchain installed. For a quick test,
simply type "avr-gcc --version" in a shell and it should give you the
installed avr-gcc version. If the command tells you that avr-gcc is
not installed then try to reinstall the package (uninstall first) but
give

deb http://hinrg.cs.jhu.edu/tinyos maverick main
instead of
deb http://hinrg.cs.jhu.edu/tinyos karmic main

in your  /etc/apt/sources.list
Karmic was for Ubuntu 9.10... Maverick is for 10.10. I don't know if
this can have an impact but always safer to use the correct version...

Hope this helps
    Romain

On Tue, Jul 12, 2011 at 2:10 PM, TJ <[email protected]> wrote:
> @Romain I installed tinyos from the wiki link for automatic installation on
> debian systems.
> http://docs.tinyos.net/tinywiki/index.php/Installing_TinyOS_2.1.1#Two-step_install_on_your_host_OS_with_Debian_packages
>
> I am using Ubuntu 10.10
>
> The snippet of the error (the error is nearly 1500 lines long) :
>
> mkdir -p build/micaz
>     compiling BlinkAppC to a micaz binary
> ncc -o build/micaz/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
> -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"user\"
> -DIDENT_HOSTNAME=\"user-desktop\" -DIDENT_USERHASH=0x24bf699bL
> -DIDENT_TIMESTAMP=0x4e1c34ddL -DIDENT_UIDHASH=0x7fba9dddL -fnesc-dump=wiring
> -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
> components)' -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm
> /usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
> /usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
> /usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'
> /usr/lib/ncc/nesc_nx.h:242: warning: type defaults to `int' in declaration
> of `base'
> /usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a function)
> /usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or storage
> class
> /usr/lib/ncc/nesc_nx.h:243: syntax error before `return'
> /usr/lib/ncc/nesc_nx.h:246: syntax error before `__nesc_ntoh_leuint8'
>
> :
> :
> :
>
> VirtualizeTimerC: `Timer.stop' not implemented
> 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
>
> Always Yours
> Tejovanth
> Tj n Spook
>
>
> On Tue, Jul 12, 2011 at 4:50 PM, Romain Bornet <[email protected]>
> wrote:
>>
>> Hi,
>>
>> @jyoti:
>> your error with "python2.5-config" has already been answered on the
>> list and is most probably related to a hardcoded Python version in
>> sim.extra.
>> have a look at
>> https://www.millennium.berkeley.edu/pipermail/tinyos-help/2011-June/051651.html
>> to find out where you should replace the Python version. By the way,
>> this has been fixed in the latest code base (TinyOS SVN repository).
>> If you already have the correct Python version in sim.extra, then you
>> may perhaps have to install the python-dev package on your host (sudo
>> apt-get install python-dev"
>>
>> @Tejovanth:
>> >> i get some very big text when i put in just "make micaz"
>> You may not have installed the required toolchain components (AVR GCC,
>> binutils,...) or may not have configured your environment correctly
>> (environment variables, PATH,...).
>> Post an example of the build output (your "very big text")  to let us
>> better understand what goes wrong.
>>
>> Regards,
>>     Romain
>>
>> On Tue, Jul 12, 2011 at 12:58 PM, TJ <[email protected]> wrote:
>> > I got the same error too..
>> > And i get some very big text when i put in just "make micaz"
>> >
>> > Always Yours
>> > Tejovanth
>> > Tj n Spook
>> >
>> >
>> > On Tue, Jul 12, 2011 at 4:22 PM, jyoti suman <[email protected]>
>> > wrote:
>> >>
>> >> i have installed tinyos-2.1.1 on ubuntu 10.10.now i am facing a problem
>> >>
>> >> /opt/tinyos-2.1.1/apps/Blink$ make micaz sim
>> >> mkdir -p simbuild/micaz
>> >> make: python2.5-config: Command not found
>> >> make: python2.5-config: Command not found
>> >> make: python2.5-config: Command not found
>> >>  placing object files in simbuild/micaz
>> >>  writing XML schema to app.xml
>> >>  compiling BlinkAppC to object file sim.o
>> >> ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
>> >> -fnesc-nido-tosnodes=1000 -fnesc-simulate
>> >> -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow
>> >> -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c
>> >> -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param
>> >> max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkAppC\"
>> >> -DIDENT_USERNAME=\"jyoti\" -DIDENT_HOSTNAME=\"jyoti-Compaq-51\"
>> >> -DIDENT_USERHASH=0x2afd704dL -DIDENT_TIMESTAMP=0x4e1c25d5L
>> >> -DIDENT_UIDHASH=0x81462d9aL -Wno-nesc-data-race BlinkAppC.nc
>> >> -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants
>> >> -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
>> >> -fnesc-dumpfile=app.xml
>> >>  compiling Python support and C libraries into pytossim.o, tossim.o,
>> >> and c-support.o
>> >> g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0
>> >> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"jyoti\"
>> >> -DIDENT_HOSTNAME=\"jyoti-Compaq-51\" -DIDENT_USERHASH=0x2afd704dL
>> >> -DIDENT_TIMESTAMP=0x4e1c25d5L -DIDENT_UIDHASH=0x81462d9aL
>> >> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx -I/include/python2.5
>> >> -I/opt/tinyos-2.1.1/tos/lib/tossim -DHAVE_CONFIG_H
>> >> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:139: fatal error:
>> >> Python.h: No such file or directory
>> >> compilation terminated.
>> >> make: *** [sim-exe] Error 1
>> >> _______________________________________________
>> >> 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
>> >
>
>

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

Reply via email to