Anonymous

Project:MSP430 Mac Howto: Difference between revisions

From London Hackspace Wiki
m
no edit summary
mNo edit summary
mNo edit summary
Line 19: Line 19:


Compile the build tools (select default options for everything apart from Insight - it won't compile by default on the Mac):
Compile the build tools (select default options for everything apart from Insight - it won't compile by default on the Mac):
$ cd mspgcc4 && perl buildgcc.pl
Currently fails with:
Running configure in multilib subdir msp3
pwd: /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/msp430
mkdir msp3
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... msp430-unknown-none
checking for msp430-ar... /opt/msp430-gcc-4.4.5/msp430/bin/ar
checking for msp430-lipo... msp430-lipo
checking for msp430-nm... /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/nm
checking for msp430-ranlib... /opt/msp430-gcc-4.4.5/msp430/bin/ranlib
checking for msp430-strip... /opt/msp430-gcc-4.4.5/msp430/bin/strip
checking whether ln -s works... yes
checking for msp430-gcc... /Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/xgcc -B/Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/./gcc/ -B/opt/msp430-gcc-4.4.5/msp430/bin/ -B/opt/msp430-gcc-4.4.5/msp430/lib/ -isystem /opt/msp430-gcc-4.4.5/msp430/include -isystem /opt/msp430-gcc-4.4.5/msp430/sys-include  -mmcu=msp3
checking for suffix of object files... configure: error: in `/Users/flux/Documents/hacksat1/sw/toolchain/mspgcc4/build/gcc-4.4.5-build/msp430/msp3/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2
sh do-gcc.sh "/opt/msp430-gcc-4.4.5" "4.4.5" "http://ftp.uni-kl.de" "build" "gcc-4.x" "4.3.1" "2.4.2" exited with status code 2.
Failed to execute sh do-gcc.sh "/opt/msp430-gcc-4.4.5" "4.4.5" "http://ftp.uni-kl.de" "build" "gcc-4.x" "4.3.1" "2.4.2" at buildgcc.pl line 248, <STDIN> line 10.