anandmudgerikar / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
0 stars 0 forks source link

Setting up TInyOS on Mac #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I want to install TinyOS on my Mac OS X, 2011 latest model.

I followed the <a 
href="http://docs.tinyos.net/index.php/Installing_TinyOS-2.x_on_Mac_OS_X_%28Snow
_Leopard%29">Installing TinyOS-2.x on Mac OS X (Snow Leopard)</a>. However, I 
am not able to compile the $TOSROOT/support/sdk/java. There are a ton of errors 
when compiling. 

Then I looked into this further and got a possible workaround from the forum. 
<a 
href="http://old.nabble.com/Re%3A-TinyOS-install-problems-with-MacBook-Pro-%28OS
-X-Snow-Leopard%29-p31411792.html">Re: TinyOS install problems with MacBook Pro 
(OS X Snow Leopard)</a>.

However, when I tried compiling nesC 1.3.0 with gcc40 from xcode I get the 
following errors. 

rm -f libparser.a
ar cru libparser.a AST.o AST_utils.o AST_walk.o array.o attributes.o c-lex.o 
c-parse.tab.o constants.o cval.o dd_list.o dhash.o edit.o env.o errors.o expr.o 
flags.o graph.o init.o lex.nd.o machine.o nesc-abstract.o nesc-atomic.o 
nesc-attributes.o nesc-c.o nesc-cg.o nesc-component.o nesc-concurrency.o 
nesc-configuration.o nesc-constants.o nesc-cpp.o nesc-deputy.o nesc-dfilter.o 
nesc-doc.o nesc-dspec.tab.o nesc-dump.o nesc-env.o nesc-gcc.o nesc-generate.o 
nesc-inline.o nesc-interface.o nesc-magic.o nesc-main.o nesc-module.o 
nesc-msg.o nesc-ndoc.o nesc-network.o nesc-paths.o nesc-semantics.o nesc-task.o 
nesc-uses.o nesc-xml.o sd_list.o semantics.o stmt.o types.o unparse.o utils.o 
ranlib libparser.a
gcc -DHAVE_CONFIG_H -I.  -I./libcompat -I./../libcpp/include -I./../libcpp 
-I./../include      -g -Wno-long-double -Wall -MT toplev.o -MD -MP -MF 
.deps/toplev.Tpo -c -o toplev.o toplev.c
mv -f .deps/toplev.Tpo .deps/toplev.Po
gcc  -g -Wno-long-double -Wall   -o nesc1 toplev.o libparser.a 
libcompat/libregions.a ../libcpp/libcpp.a ../libiberty/libiberty.a -lm -liconv 
ld: warning: in libparser.a, file was built for unsupported file format which 
is not the architecture being linked (i386)
ld: in libcompat/libregions.a, archive has no table of contents
collect2: ld returned 1 exit status
make[3]: *** [nesc1] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Please help me regarding this. I have tried with many flags for architectures 
but all in vain. Is this a problem with the new Macbook Pro or has anybody 
tried compiling it.

Thanks and Regards
Anupam

Original issue reported on code.google.com by anupash....@gmail.com on 4 May 2011 at 11:04

GoogleCodeExporter commented 8 years ago
I don't know but why did the TYPE was set to defect. There was no option to set 
it different. Sorry for any confusion.

Original comment by anupash....@gmail.com on 4 May 2011 at 11:07

GoogleCodeExporter commented 8 years ago
Please email tinyos-help and read the archives.

Original comment by philip.l...@gmail.com on 11 May 2011 at 11:29