Hi all,

I was trying to install tinyos2.x on my Macbook OS X 10.6.7 ... However when
I try to make in $TOSROOT/support/sdk/java i get the error as shown in the
first post...

I was then following the guide as below...Now I am facing another
problem.... 
I am not able to  compile nesc 1.3.0 ... i get configure error ... i have
tried to google a lot but all in vain ... 
Error : 


=== configuring in src (/Users/anupamashish/Downloads/nesc-1.3.0/src)
configure: running /bin/sh ./configure
'--prefix=/stow/repository/nesc-1.3.0'  --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../config-aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin10.7.3
checking host system type... i386-apple-darwin10.7.3
checking for darwin... yes
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: ./configure failed for src



config.log from src/

 91 Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure
--disable-checking --enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++ --program-t   
ransform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
--build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10-
--host=x86_64-apple-darwin10 --target=i686-appl    e-darwin10
--with-gxx-include-dir=/include/c++/4.2.1
 92 Thread model: posix
 93 gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
 94 configure:2674: $? = 0
 95 configure:2681: gcc -V >&5
 96 gcc-4.2: argument to `-V' is missing
 97 configure:2684: $? = 1
 98 configure:2707: checking for C compiler default output file name
 99 configure:2734: gcc -g -Wno-long-double   conftest.c  >&5
100 cc1: error: unrecognized command line option "-Wno-long-double"
101 configure:2737: $? = 1
102 configure:2775: result:
103 configure: failed program was:
104 | /* confdefs.h.  */
105 | #define PACKAGE_NAME "nesc"
106 | #define PACKAGE_TARNAME "nesc"
107 | #define PACKAGE_VERSION "1.3.0"
108 | #define PACKAGE_STRING "nesc 1.3.0"
109 | #define PACKAGE_BUGREPORT ""
110 | #define PACKAGE "nesc"
111 | #define VERSION "1.3.0"
112 | /* end confdefs.h.  */
113 |
114 | int
115 | main ()
116 | {
117 |
118 |   ;
119 |   return 0;
120 | }
121 configure:2782: error: C compiler cannot create executables


Please help as there is little to no help on this regard anywhere else ...

Regards
Anupam








Forrester A.I.J. wrote:
> 
> Dear all,
> 
> I seem to have solved this. The key problems were that I needed nesc 1.3.0
> instead of 1.3.2 and need gcc4.0 for the nesc and start of tinyos install
> before switching to gcc44 to compile tinyos.jar. This seemed rather odd to
> me (see my route to a successful installation below).
> 
> Best wishes,
> Alex
> 
> 
> 1. Follow
> http://docs.tinyos.net/index.php/Installing_TinyOS-2.x_on_Mac_OS_X_%28Snow_Leopard%29:
> 
> 
>  1.  cd /Users/user
> git clone git://hinrg.cs.jhu.edu/git/ports.git
>  2.  Edit /opt/local/etc/macports/sources.conf to include a line:
> file:///Users/user/ports
>  3.  sudo port install msp430-binutils-tinyos msp430-gcc-tinyos
> msp430-libc-tinyos (for MSP430)
> 
> But don't install nesc 1.3.2 from macports. Install gcc44 from macports as
> instructed, but don't softlink yet.
> 
> 2. Follow
> http://docs.tinyos.net/index.php/Installing_tinyos-2.x_on_Mac_OS_X_%28Tiger_%26_Leopard%29
> to install stow, download tinyos-2.x & install nesc 1.3.0:
> 
> 
>  *   sudo port install stow
>  *   sudo mkdir -p /stow/repository
> 
> 
>  *   Open up the file ~/.profile from your home directory
>  *   Add the following two lines to export the PATH correctly whenever a
> new shell is opened
>     *   PATH=/stow/bin:/stow/sbin:$PATH
>     *   export PATH
> 
> 
>  *   cvs -d:pserver:[email protected]:/cvsroot/tinyos
> login
>  *   cvs -z3
> -d:pserver:[email protected]:/cvsroot/tinyos co -P
> tinyos-2.x
> 
> nesc 1.3.0 can be downloaded from
> http://sourceforge.net/projects/nescc/files/nescc/
> 
> 
>  *   Install nesc using the standard configure/make/make install procedure
>     *   cd nesc-1.3.0
>     *   ./configure --prefix=/stow/repository/nesc-1.3.0
>     *   make
>     *   sudo make install
>  *   Run stow to install nesc into standard installation directories
>     *   cd /stow/repository
>     *   sudo stow nesc-1.3.0
> 
> 3. Install the tinyos toolset
> 
> $ cd tinyos-2.x/tools/
> $ ./Bootstrap
> $ ./configure
> $ make
> $ sudo make install
> $ sudo tos-install-jni
> $ chmod a+x $TOSROOT/tools/tinyos/ncc/mig
> 
> Check that the mig in the tinyos tools is being called and that it in turn
> calls the correct version of nescc:
> 
> $ which mig
> $ cat /Users/alex/tinyos-2.x/tools/tinyos/ncc/mig
> $ cd ~/tinyos-2.x/support/sdk/java/
> 
> Now softlink to gcc44:
> 
> $ sudo rm /usr/bin/gcc
> $ sudo rm /usr/bin/g++
> $ sudo ln -s /opt/local/bin/gcc-mp-4.4 /usr/bin/gcc
> $ sudo ln -s /opt/local/bin/g++-mp-4.4 /usr/bin/g++
> $ make
> 
> 4. Check it worked. e.g.
> 
> $ cd ~/tinyos-2.x/apps/tests/TestSerial
> $ make shimmer2r
> 
> At this point I then had to go back and arch x86_64 when making the
> .jnilib files when installing the tinyos toolset.
> 
> 
> 
> 
> Dr Alexander I J Forrester MEng PhD CEng MIMechE
> Senior Lecturer
> Computational Engineering and Design Research Group / Rolls-Royce UTC for
> Computational Engineering
> School of Engineering Sciences
> University of Southampton
> Southampton SO17 1BJ
> Tel. 023 80592713
> 
> Southampton University Human Powered Aircraft, SUHPA:
> www.soton.ac.uk/suhpa<http://www.soton.ac.uk/suhpa>
> 
> We have a book: "Engineering Design via Surrogate Modelling: A Practical
> Guide<http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470060689.html>",
> with accompanying Matlab software<http://www.wiley.com/go/forrester>.
> 
> On 14 Apr 2011, at 10:58, Forrester A.I.J. wrote:
> 
> Dear HELP,
> 
> I'm trying to get TinyOS up and running on my MacBook Pro with OS X Snow
> Leopard and I've got issues. Please could someone have try and find time
> to give me some help?
> 
> I'm trying to follow a mix of:
> 
> http://docs.tinyos.net/index.php/Installing_TinyOS-2.x_on_Mac_OS_X_%28Snow_Leopard%29
> 
> and
> 
> http://research-machine.blogspot.com/2010/01/how-to-install-tinyos-2-on-macosx-106.html
> 
> and
> 
> http://www.mobilab.unina.it/TinyOSMAC.htm
> 
> (none of these links seem to have a full set of instructions, i.e. some
> "obvious" steps seem to be missing)
> 
> I understand that I should be using gcc43 or gcc44, but
> 
> cd tools
> ./Bootstrap
> ./configure
> make
> 
> throws up errors unless I use the pre-installed gcc-4.0 or gcc-4.2, i.e.
> using the recommended soft links doesn't work.
> 
> I then get errors with
> cd $TOSROOT/support/sdk/java
> make
> 
> This seems to be an error with mig that yields SerialPacket.java and
> PrintMsg.java in the wrong format (very long make output included below).
> I have used
> 
> export PATH=$TOSROOT/tools/tinyos/ncc/:$PATH
> chmod a+x $TOSROOT/tools/tinyos/ncc/mig
> 
> to use the tinyos mig rather than that in /usr/local/bin. tos-check-env
> output also below and java version is:
> 
> Alexander-Forresters-MacBook-Pro:java alex$ java -version
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
> 
> 
> I've been trawling through message boards for a couple of days now. Any
> help would be much appreciated. No doubt you'll need some more info and
> I'll try to respond with it by return (my out of office auto reply that
> you'll get initially is because I'm hiding in my office trying to sort
> this out).
> 
> Best wishes,
> Alex
> 
> Dr Alexander I J Forrester MEng PhD CEng MIMechE
> Senior Lecturer
> Computational Engineering and Design Research Group / Rolls-Royce UTC for
> Computational Engineering
> School of Engineering Sciences
> University of Southampton
> Southampton SO17 1BJ
> Tel. 023 80592713
> 
> Southampton University Human Powered Aircraft, SUHPA:
> www.soton.ac.uk/suhpa<http://www.soton.ac.uk/suhpa>
> 
> We have a book: "Engineering Design via Surrogate Modelling: A Practical
> Guide<http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470060689.html>",
> with accompanying Matlab software<http://www.wiley.com/go/forrester>.
> 
> 
> 
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 

-- 
View this message in context: 
http://old.nabble.com/TinyOS-install-problems-with-MacBook-Pro-%28OS-X-Snow-Leopard%29-tp31403829p31472235.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

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

Reply via email to