Hi all;
well, I don't have any problem with compiling TinyOS application.
However, I don't know where to get "sha1sum". In Tiger, I can install
textutil package using fink, but NOT in Leopard.
Antonio:
Have you following the instructions about installing NesC? It seem to me
there is problem with your NesC installation.
regards;
Peizhao Hu
Antonio wrote:
Hi Kevin,
Thank you for considering this case.
After the new instructions, I am still not able to compile any mica
application. For example, the blink application, which works fine for
telos (make telos), for mica it gives the following:
dhcp-892b9a83:~/tinyos-2.x/apps/Blink antonioruzzelli$ make
mica2
mkdir -p build/mica2
compiling BlinkAppC to a mica2 binary
ncc -o build/mica2/main.exe -Os -fnesc-separator=__ -Wall -Wshadow
-Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb
--param max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkAppC\"
-DIDENT_USERNAME=\"antonioruzzelli\" -DIDENT_HOSTNAME=\"
dhcp-892b9a83.u\" -DIDENT_USERHASH=0x1eae90c5L
-DIDENT_TIMESTAMP=0x47975b91L -DIDENT_UIDHASH=0x205a37faL
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/mica2/wiring- check.xml BlinkAppC.nc -lm
/opt/local/stow/nesc-1.2.9/lib/ncc/nesc_nx.h:16:22: error: inttypes.h:
No such file or directory
<commandline>: failed to preprocess
/opt/local/stow/nesc-1.2.9/lib/ncc/nesc_nx.h
/Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h:5:22: error:
inttypes.h: No such file or directory
/Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h:13:20: error:
string.h: No such file or directory
/Users/antonioruzzelli/tinyos- 2.x/tos/system/tos.h:14:20: error:
stdlib.h: No such file or directory
/Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h:15:18: error:
math.h: No such file or directory
/Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h:17:19: error:
ctype.h: No such file or directory
<commandline>: failed to preprocess
/Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h
In file included from
/Users/antonioruzzelli/tinyos-2.x/tos/system/TinySchedulerC.nc:36:
In interface `Scheduler':
...
....
...and many other errors
Do you have any clue?
regards,
Antonio
On 23/01/2008, *Peizhao Hu * <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi Kevin,
I have had the MSP430 package installed. so
stow: CONFLICT: /opt/local/stow/msp430/lib/libiberty.a vs.
/opt/local/lib/libiberty.a
when I tried to stow the MSP430 binary.
regards;
Peizhao Hu
Kevin Klues wrote:
> Does it work now with the new instructions?
>
> kevin
>
> On Jan 22, 2008 4:42 PM, Peizhao Hu <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
>
>> Hi Kevin;
>>
>> My MacBook is Intel Core2Duo. and I followed your comments last
time to
>> install TinyOS on my Tiger 10.4 without any problem. but I
recently
>> upgraded to Leopard 10.5, then I experienced the same problem
that other
>> people suggested.
>>
>> regards;
>>
>> Peizhao Hu
>>
>>
>>
>>
>> Kevin Klues wrote:
>>
>>> I've compiled binaries for intel based macs and updated the
tutorial
>>> appropriately. I dont have a power pc based mac, and for some
reason
>>> I'm having problems compiling a universal binary, so for now I
only
>>> have the avr tools for intel based macs up on the site. If
anyone has
>>> a power pc mac and has time to build the tools, let me know
and I'll
>>> send the scripts over for building them.
>>>
>>> Kevin
>>>
>>> On Jan 19, 2008 5:58 PM, Peizhao Hu <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
>>>
>>>
>>>> similar problem in Leopard
>>>>
>>>> regards;
>>>>
>>>> Peizhao Hu
>>>>
>>>> NICTA
>>>> http://www.nicta.com.au
>>>>
>>>>
>>>>
>>>>
>>>> Kevin Klues wrote:
>>>>
>>>>
>>>>> I've heard other people complaining about this recently as well.
>>>>> Either darwin ports has come out with a newer version of
avr-libc that
>>>>> doesnt compile correctly, or your version of X-Code isnt
compatible
>>>>> with it. Either way, the best solution is to just provide a
>>>>> precompiled set of binaries for now. I'll update the
tutorial later
>>>>> today with instructions on how to get ahold of them.
>>>>>
>>>>> Kevin
>>>>>
>>>>> On Jan 19, 2008 1:28 AM, Spongebob Squarepants
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>> I am having a problem installing TinyOS 2 on my MAC OS X
Tiger. The error
>>>>>> happens when I try to install the avr tools (sudo port
install avr-libc) I
>>>>>> am following Klues' steps. The error is following reported.
I am not sure
>>>>>> which path and how I have to change it.
>>>>>> Please, let me know if you have any clue how to solve the
problem.
>>>>>>
>>>>>> cheers,
>>>>>> Antonio
>>>>>> ...
>>>>>> ---> Cleaning binutils
>>>>>> ---> Fetching avr-libc
>>>>>> ---> Attempting to fetch avr-libc-1.4.4.tar.bz2 from
>>>>>> http://savannah.nongnu.org/download/avr-libc/
>>>>>> ---> Verifying checksum(s) for avr-libc
>>>>>> ---> Extracting avr-libc
>>>>>> ---> Configuring avr-libc
>>>>>> Error: Target org.macports.configure returned: configure
failure: shell
>>>>>> command " cd
>>>>>>
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-libc/work/avr-
libc-1.4.4
>>>>>> " && ./configure --prefix=/opt/local --prefix=/opt/local
--host=avr
>>>>>> --build=`./config.guess` " returned error 1
>>>>>> Command output: checking build system type...
i686-apple-darwin8.11.1
>>>>>> checking host system type... avr-unknown-none
>>>>>> checking if configuring for cross compile... yes
>>>>>> checking if target host is avr... yes
>>>>>> checking for a BSD-compatible install... /usr/bin/install
>>>>>> checking whether build environment is sane... yes
>>>>>> checking for gawk... no
>>>>>> checking for mawk... no
>>>>>> checking for nawk... no
>>>>>> checking for awk... awk
>>>>>> checking whether make sets $(MAKE)... yes
>>>>>> checking for avr-strip... avr-strip
>>>>>> checking for avr-gcc... /usr/bin/gcc-4.0
>>>>>> checking for C compiler default output file name... a.out
>>>>>> checking whether the C compiler works... yes
>>>>>> checking whether we are cross compiling... yes
>>>>>> checking for suffix of executables...
>>>>>> checking for suffix of object files... o
>>>>>> checking whether we are using the GNU C compiler... yes
>>>>>> checking whether /usr/bin/gcc-4.0 accepts -g... yes
>>>>>> checking for /usr/bin/gcc-4.0 option to accept ANSI C...
none needed
>>>>>> checking for style of include used by make... GNU
>>>>>> checking dependency style of /usr/bin/gcc- 4.0... gcc3
>>>>>> checking for avr-as... avr-as
>>>>>> checking for avr-ranlib... avr-ranlib
>>>>>> checking for avr-ar... avr-ar
>>>>>> configure: error: Wrong C compiler found; check the PATH!
>>>>>>
>>>>>> _______________________________________________
>>>>>> Tinyos-help mailing list
>>>>>> Tinyos-help@millennium.berkeley.edu
<mailto:Tinyos-help@millennium.berkeley.edu>
>>>>>>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>
>
>
>
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help