Closed cire831 closed 10 years ago
What app are you trying to compile?
I just tried to install nesc and tinyos tools on mac and eventually got it to work, but the process has some bumps that I need to sort out.
pretty sure, I was trying to build Blink.
can you send me directly, the steps you used to get it to work?
I'm on OS X 10.9.
I tried again by doing this:
Compiling nesc with clang didn't work, so I had to force it to use gcc. The gcc I have on my system is gcc-mp-4.7
from mac ports. My recent pull request to nesc makes setting CC
in the configure step propogate through to nescc.
git clone git@github.com:tinyos/nesc
cd nesc
./Bootstrap
./configure CC=gcc-mp-4.7
make
sudo make install
Then I compiled the tinyos tools. I did this both on master and make-no-environ (both seemed to work).
cd git/tinyos-main/tools
./Bootstrap
./configure
make
sudo make install
Then I had to install the msp430 compiler.
sudo port install msp430-gcc
sudo port install msp430-libc
At that point compiling blip worked:
cd tinyos-main/apps/blink
make epic
Mac OS X now requires 16-byte alignment for allocated objects. Updated nesC's (internal) allocator to account for that.
Looks like there's an unrelated problem with nescc-mig and clang, though, looking into that.
I'm building 1.3.5 on Mac OS X (10.7.5 Lion with Xcode 4.6.3), resultant image throws nesc: internal error.
help.