Hi! On Fri, 2 Oct 2009, Razvan Musaloiu-E. wrote:
> Hi! > > On Fri, 2 Oct 2009, Themis Bourdenas wrote: > >> Hi, >> >> did anyone have any progress so far on making the TinyOS 2.x environment >> work for Snow Leopard? So far I have the same problems people mentioned >> already not being able to configure the nesc-1.3.1 and make it compile. Also >> I can no longer compile any tinyos app. It used to work fine with Leopard >> but in Snow Leopard everything broke down. > > Can you please try the latest ports from here: > http://hinrg.cs.jhu.edu/git/?p=ports.git > > I tested nesc and the msp430 stuff and they should work fine. I also thing > the avr should work too but I haven't had a change to verify this yet. > I just tested and the macports (nesc 1.3.1, msp430 toolchain, avr toolchain) seems to work fine in Snow Leopard. So please give it a try. If it doesn't let me know. :-) -- Razvan ME >> On Thu, Sep 24, 2009 at 8:26 AM, Razvan Musaloiu-E. >> <[email protected]>wrote: >> >>> Hi! >>> >>> On Thu, 24 Sep 2009, Andres Vahter wrote: >>> >>>> Hi, >>>> >>>> Yes, it compiles now. >>>> But I have one more problem when I tried to make Blink app: >>>> >>>> Andrese-MBP:Blink Andres$ make micaz >>>> /bin/sh: tos-ident-flags: command not found >>>> 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 >>>> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' >>>> -fnesc-dump='referenced(interfacedefs, components)' >>>> -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm >>>> make: ncc: Command not found >>>> make: *** [exe0] Error 127 >>>> >>>> I installed nesc as: sudo port install nesc >>>> I wonder why ncc is not found? >>>> >>> >>> ncc and the tos-* programs are part of the tinyos tools. You should be >>> able to compile them this way: >>> >>> $ cd $TOSROOT/tools >>> $ ./Bootstrap >>> $ ./configure --prefix=$HOME/local >>> $ make >>> $ make install >>> >>> The binaries will end up in $HOME/local/bin so you'll have to add that to >>> your path. >>> >>> All the best! >>> Razvan ME >>> >>>> On 24.09.2009, at 5:26, Razvan Musaloiu-E. wrote: >>>> >>>>> Hi! >>>>> >>>>> On Wed, 23 Sep 2009, Razvan Musaloiu-E. wrote: >>>>> >>>>>> Hi! >>>>>> >>>>>> I just installed Xcode 3.1.4 (this seems to be the latest available for >>>>>> 10.5) and now I also have the gcc 5493. I'm not sure if it matters but >>>>>> the >>>>>> I'm using the port version 1.710 and the AVR compiled fine. I just notice >>>>>> that the latest macports is 1.8. I'll update to see if I can replicate >>>>>> the >>>>>> error. >>>>> >>>>> After upgrading to macports 1.8.0 I did get your error. I just committed a >>>>> fix for it. If would be great if you can give it a try. >>>>> >>>>> Also great would be if somebody on Snow Leopard would give it a try. I'm >>>>> curios if this fix also solves the problems there. :D >>>>> >>>>> Thank you! >>>>> Razvan ME >>>>> >>>>>> In case if helps, I upload the binaries for Intel for Leopard here: >>>>>> http://cs.jhu.edu/~razvanm/ports/i386/leopard/ >>>>>> >>>>>> If you place them in: >>>>>> /opt/local/var/macports/packages/darwin/i386 >>>>>> and you have "portarchivemode yes" in: >>>>>> /opt/local/etc/macports/macports.conf >>>>>> then you should be able to do and install by passing the compiling. :D >>>>>> >>>>>> All the best! >>>>>> Razvan ME >>>>>> >>>>>> On Wed, 23 Sep 2009, Andres Vahter wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I have Xcode 3.1.3 >>>>>>> >>>>>>> Andres Vahter >>>>>>> >>>>>>> >>>>>>> On 22.09.2009, at 23:19, Razvan Musaloiu-E. wrote: >>>>>>> >>>>>>>> Hi! >>>>>>>> >>>>>>>> Could you please tell the version of xcode you have? Mine is 3.1.2. >>>>>>>> >>>>>>>> Thank you! >>>>>>>> Razvan ME >>>>>>>> >>>>>>>> On Mon, 21 Sep 2009, Andres Vahter wrote: >>>>>>>> >>>>>>>>> I have the same versions (only gcc is 3 builds fresher): >>>>>>>>> >>>>>>>>> $ uname -a >>>>>>>>> Darwin Andrese-MBP.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul >>>>>>>>> 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 >>>>>>>>> >>>>>>>>> $ gcc --version >>>>>>>>> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493) >>>>>>>>> >>>>>>>>> >>>>>>>>> I followed these steps (skipped step 3 - i don't need msp430 support >>>>>>>>> and i >>>>>>>>> don't have installed nesc yet): >>>>>>>>> cd /Users/user >>>>>>>>> git clone git://hinrg.cs.jhu.edu/git/ports.git >>>>>>>>> Edit /opt/local/etc/macports/sources.conf to include a line: >>>>>>>>> file:///Users/user/ports >>>>>>>>> sudo port install msp430-binutils-tinyos msp430-gcc-tinyos >>>>>>>>> msp430-libc-tinyos (for MSP430) >>>>>>>>> sudo port install avr-binutils-tinyos avr-gcc-tinyos avr-libc-tinyos >>>>>>>>> (for AVR) >>>>>>>>> >>>>>>>>> Andres Vahter >>>>>>>>> >>>>>>>>> >>>>>>>>> On 21.09.2009, at 2:01, Razvan Musaloiu-E. wrote: >>>>>>>>> >>>>>>>>>> Hi! >>>>>>>>>> On Sun, 20 Sep 2009, Andres Vahter wrote: >>>>>>>>>>> I tried to install it to 10.5 Leopard and failed with avr-gcc - >>>>>>>>>>> here is >>>>>>>>>>> the output: >>>>>>>>>> It compiles without errors on my Leopard (10.5.8) with GCC is 4.0.1. >>>>>>>>>> Here >>>>>>>>>> are my settings: >>>>>>>>>> >>>>>>>>>> $ uname -a >>>>>>>>>> Darwin alexandra.local 9.8.0 Darwin Kernel Version 9.8.0: >>>>>>>>>> Wed Jul 15 >>>>>>>>>> 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 >>>>>>>>>> >>>>>>>>>> $ gcc --version >>>>>>>>>> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build >>>>>>>>>> 5490) >>>>>>>>>> Are you using something else? >>>>>>>>>> -- >>>>>>>>>> Razvan ME >>>>>>>>>>> Andrese-MBP:~ Andres$ sudo port install avr-binutils-tinyos >>>>>>>>>>> avr-gcc-tinyos avr-libc-tinyos >>>>>>>>>>> Warning: No quick index file found, attempting to generate one for >>>>>>>>>>> source: file:///Users/Andres/ports >>>>>>>>>>> ---> Computing dependencies for avr-binutils-tinyos >>>>>>>>>>> ---> Fetching avr-binutils-tinyos >>>>>>>>>>> ---> Attempting to fetch avr-binutils.patch from >>>>>>>>>>> http://arn.se.distfiles.macports.org/avr-binutils-tinyos >>>>>>>>>>> ---> Attempting to fetch avr-binutils.patch from >>>>>>>>>>> http://distfiles.macports.org/avr-binutils-tinyos >>>>>>>>>>> ---> Attempting to fetch avr-binutils.patch from >>>>>>>>>>> http://tinyos.stanford.edu/tinyos/toolchain/repo/ >>>>>>>>>>> ---> Attempting to fetch binutils-2.17.tar.bz2 from >>>>>>>>>>> http://arn.se.distfiles.macports.org/avr-binutils-tinyos >>>>>>>>>>> ---> Attempting to fetch binutils-2.17.tar.bz2 from >>>>>>>>>>> http://distfiles.macports.org/avr-binutils-tinyos >>>>>>>>>>> ---> Attempting to fetch binutils-2.17.tar.bz2 from >>>>>>>>>>> http://tinyos.stanford.edu/tinyos/toolchain/repo/ >>>>>>>>>>> ---> Verifying checksum(s) for avr-binutils-tinyos >>>>>>>>>>> ---> Extracting avr-binutils-tinyos >>>>>>>>>>> ---> Applying patches to avr-binutils-tinyos >>>>>>>>>>> ---> Configuring avr-binutils-tinyos >>>>>>>>>>> ---> Building avr-binutils-tinyos >>>>>>>>>>> ---> Staging avr-binutils-tinyos into destroot >>>>>>>>>>> Note: avr-binutils-tinyos installs files outside the common >>>>>>>>>>> directory >>>>>>>>>>> structure. >>>>>>>>>>> ---> Installing avr-binutils-tinyos @2.17_0 >>>>>>>>>>> ---> Activating avr-binutils-tinyos @2.17_0 >>>>>>>>>>> ---> Cleaning avr-binutils-tinyos >>>>>>>>>>> ---> Computing dependencies for avr-gcc-tinyos >>>>>>>>>>> ---> Fetching avr-gcc-tinyos >>>>>>>>>>> ---> Attempting to fetch avr-gcc.patch from >>>>>>>>>>> http://arn.se.distfiles.macports.org/avr-gcc-tinyos >>>>>>>>>>> ---> Attempting to fetch avr-gcc.patch from >>>>>>>>>>> http://distfiles.macports.org/avr-gcc-tinyos >>>>>>>>>>> ---> Attempting to fetch avr-gcc.patch from >>>>>>>>>>> http://tinyos.stanford.edu/tinyos/toolchain/repo/ >>>>>>>>>>> ---> Attempting to fetch gcc-4.1.2.tar.bz2 from >>>>>>>>>>> http://arn.se.distfiles.macports.org/avr-gcc-tinyos >>>>>>>>>>> ---> Attempting to fetch gcc-4.1.2.tar.bz2 from >>>>>>>>>>> http://distfiles.macports.org/avr-gcc-tinyos >>>>>>>>>>> ---> Attempting to fetch gcc-4.1.2.tar.bz2 from >>>>>>>>>>> http://tinyos.stanford.edu/tinyos/toolchain/repo/ >>>>>>>>>>> ---> Verifying checksum(s) for avr-gcc-tinyos >>>>>>>>>>> ---> Extracting avr-gcc-tinyos >>>>>>>>>>> ---> Applying patches to avr-gcc-tinyos >>>>>>>>>>> ---> Configuring avr-gcc-tinyos >>>>>>>>>>> ---> Building avr-gcc-tinyos >>>>>>>>>>> Error: Target org.macports.build returned: shell command " cd >>>>>>>>>>> >>> "/opt/local/var/macports/build/_Users_Andres_ports_cross_avr-gcc-tinyos/work/gcc-4.1.2" >>>>>>>>>>> && /usr/bin/make -j2 all " returned error 2 >>>>>>>>>>> Command output: else true; fi; \ >>>>>>>>>>> echo timestamp > include/fixed; \ >>>>>>>>>>> fi >>>>>>>>>>> echo timestamp > stmp-fixproto >>>>>>>>>>> /usr/bin/make \ >>>>>>>>>>> CFLAGS="-O2 -arch i386 -W -Wall -Wwrite-strings >>>>>>>>>>> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long >>>>>>>>>>> -Wno-variadic-macros -Wold-style-definition >>>>>>>>>>> -Wmissing-format-attribute >>>>>>>>>>> " \ >>>>>>>>>>> CONFIG_H="config.h auto-host.h >>>>>>>>>>> ../.././gcc/../include/ansidecl.h" >>>>>>>>>>> \ >>>>>>>>>>> MAKEOVERRIDES= \ >>>>>>>>>>> -f libgcc.mk all >>>>>>>>>>> for d in libgcc avr3 libgcc/avr3 avr4 libgcc/avr4 avr5 libgcc/avr5; >>>>>>>>>>> do \ >>>>>>>>>>> if [ -d $d ]; then true; else /bin/sh >>>>>>>>>>> ../.././gcc/../mkinstalldirs >>>>>>>>>>> $d; fi; \ >>>>>>>>>>> done >>>>>>>>>>> mkdir libgcc >>>>>>>>>>> mkdir avr3 >>>>>>>>>>> mkdir libgcc/avr3 >>>>>>>>>>> mkdir avr4 >>>>>>>>>>> mkdir libgcc/avr4 >>>>>>>>>>> mkdir avr5 >>>>>>>>>>> mkdir libgcc/avr5 >>>>>>>>>>> if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi >>>>>>>>>>> >>> /opt/local/var/macports/build/_Users_Andres_ports_cross_avr-gcc-tinyos/work/gcc-4.1.2/host-i386-apple-darwin9.8.0/gcc/xgcc >>>>>>>>>>> >>> -B/opt/local/var/macports/build/_Users_Andres_ports_cross_avr-gcc-tinyos/work/gcc-4.1.2/host-i386-apple-darwin9.8.0/gcc/ >>>>>>>>>>> -B/opt/local/avr/bin/ -B/opt/local/avr/lib/ -isystem >>>>>>>>>>> /opt/local/avr/include -isystem /opt/local/avr/sys-include -O2 >>> -O2 >>>>>>>>>>> -O2 >>>>>>>>>>> -arch i386 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings >>>>>>>>>>> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition >>>>>>>>>>> -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -g >>>>>>>>>>> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. >>>>>>>>>>> -I../.././gcc -I../.././gcc/. -I../.././gcc/../include >>>>>>>>>>> -I../.././gcc/../libcpp/include -DL_mulqi3 -xassembler-with-cpp -c >>>>>>>>>>> ../.././gcc/config/avr/libgcc.S -o libgcc/./_mulqi3.o >>>>>>>>>>> >>> /opt/local/var/macports/build/_Users_Andres_ports_cross_avr-gcc-tinyos/work/gcc-4.1.2/host-i386-apple-darwin9.8.0/gcc/xgcc >>>>>>>>>>> >>> -B/opt/local/var/macports/build/_Users_Andres_ports_cross_avr-gcc-tinyos/work/gcc-4.1.2/host-i386-apple-darwin9.8.0/gcc/ >>>>>>>>>>> -B/opt/local/avr/bin/ -B/opt/local/avr/lib/ -isystem >>>>>>>>>>> /opt/local/avr/include -isystem /opt/local/avr/sys-include -O2 -O2 >>>>>>>>>>> -O2 >>>>>>>>>>> -arch i386 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings >>>>>>>>>>> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition >>>>>>>>>>> -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -g >>>>>>>>>>> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. >>>>>>>>>>> -I../.././gcc -I../.././gcc/. -I../.././gcc/../include >>>>>>>>>>> -I../.././gcc/../libcpp/include -DL_mulhi3 -xassembler-with-cpp -c >>>>>>>>>>> ../.././gcc/config/avr/libgcc.S -o libgcc/./_mulhi3.o >>>>>>>>>>> xgcc: i386: No such file or directory >>>>>>>>>>> xgcc: i386: No such file or directory >>>>>>>>>>> make[3]: *** [libgcc/./_mulqi3.o] Error 1 >>>>>>>>>>> make[3]: *** Waiting for unfinished jobs.... >>>>>>>>>>> make[3]: *** [libgcc/./_mulhi3.o] Error 1 >>>>>>>>>>> make[2]: *** [stmp-multilib] Error 2 >>>>>>>>>>> make[1]: *** [all-gcc] Error 2 >>>>>>>>>>> make: *** [all] Error 2 >>>>>>>>>>> Error: Status 1 encountered during processing. >>>>>>>>>>> So AVR doesn't work on 10.5 Leopard either? >>>>>>>>>>> Andres Vahter >>>>>>>>>>> On 19.09.2009, at 1:44, Razvan Musaloiu-E. wrote: >>>>>>>>>>>> Hi! >>>>>>>>>>>> I update the unofficial macports [1] for nesc and the MSP430 >>>>>>>>>>>> toolchain to >>>>>>>>>>>> compile properly on Snow Leopard. For now I have limited access to >>>>>>>>>>>> Snow >>>>>>>>>>>> Leopard so I haven't fix the completely the AVR yet. >>>>>>>>>>>> [1] http://hinrg.cs.jhu.edu/git/?p=ports.git; >>>>>>>>>>>> -- >>>>>>>>>>>> Razvan ME > _______________________________________________ > 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
