tinyos / tinyos-main

Main development repository for TinyOS (an OS for embedded, wireless devices).
1.41k stars 518 forks source link

Setting up TInyOS on Mac #41

Closed tinyos-issues closed 11 years ago

tinyos-issues commented 11 years ago

Original author: anupash....@gmail.com (May 04, 2011 23:04:15)

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&quot;&gt;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&quot;&gt;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: http://code.google.com/p/tinyos-main/issues/detail?id=38

tinyos-issues commented 11 years ago

From anupash....@gmail.com on May 04, 2011 23:07:06 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.

tinyos-issues commented 11 years ago

From philip.l...@gmail.com on May 11, 2011 23:29:12 Please email tinyos-help and read the archives.