tinyos / nesc

Master nesc repository
GNU General Public License v2.0
100 stars 53 forks source link

Xcode5.1 complier nesc error #25

Open liminglu opened 10 years ago

liminglu commented 10 years ago
Hi,
$ make 
make nesc while I meet a problem as follow,
gcc -DHAVE_CONFIG_H -I. -I..  -DNMEMDEBUG -DNDEBUG -O9     -g -Wall -Wno-long-double -MT regions.o -MD -MP -MF .deps/regions.Tpo -c -o regions.o regions.c
warning: unknown warning option '-Wno-long-double'; did you mean '-Wno-long-long'? [-Wunknown-warning-option]
error: invalid value '9' in '-O9'
make[3]: *** [regions.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
gcc version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
MacOS version
10.9.2
Hope to reply!Thx~
bradjc commented 10 years ago

I believe I ran into this before and I can't remember if I found a work around or just used gcc and not llvm.

dgay42 commented 10 years ago

Switched libcompat to -O2 in https://github.com/tinyos/nesc/commit/b044674dfe1b7ef642b844e3ae2f124ed29f3a07

cire831 commented 10 years ago

Does switching libcompat to -O2 in b044674 fix problem?