Hi all,

I have been following a procedure to build all the cross compiler tools for
the msp430 and have everything compiled except for the compiler itself.

The procedure I used to build gcc was:
---------------------------------------------------------------
wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-3.2.3/gcc-core-3.2.3.tar.bz2
tar xjvf gcc-core-3.2.3.tar.bz2
[sudo apt-get install cvs ] -> to install a cvs client
cvs -z3 -d:pserver:[email protected]:/cvsroot/mspgcc co
gcc/gcc-3.3
cp -r gcc/gcc-3.3/* gcc-3.2.3/
cd gcc-3.2.3


./configure --prefix=/usr/local/msp430 --target=msp430
make
make install
------------------------------------------------------------------

However I am getting the following error:

------------------------------------------------------------------    
gcc -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long  -DHAVE_CONFIG_H  gcov.o intl.o version.o  
../libiberty/libiberty.a -o gcov
gcc -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./config
-I./../include  \
        -DTARGET_MACHINE=\"msp430\" \
        -c ./collect2.c -o collect2.o
./collect2.c: In function ‘notice’:
./collect2.c:377: warning: traditional C rejects ISO C style function
definitions
./collect2.c: In function ‘fatal_perror’:
./collect2.c:389: warning: traditional C rejects ISO C style function
definitions
./collect2.c: In function ‘fatal’:
./collect2.c:407: warning: traditional C rejects ISO C style function
definitions
./collect2.c: In function ‘error’:
./collect2.c:423: warning: traditional C rejects ISO C style function
definitions
In function ‘open’,
    inlined from ‘collect_execute’ at ./collect2.c:1590:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared
with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [collect2.o] Error 1
make[1]: Leaving directory `/home/bmentink/mspgcc/temp/gcc-3.2.3/gcc'
make: *** [all-gcc] Error 2
r...@laptop:~/mspgcc/temp/gcc-3.2.3#
----------------------------------------------------------------------------------------

I have tried adjusting the Makefile to use the 3.4 compiler instead of the
version 4 one, but I just get other problems.

Does anyone know what the correct procedure is, or even if I have the
correct core gcc code and patches.

Thanks. 
-- 
View this message in context: 
http://www.nabble.com/msp430-gcc-cross-compiler-build-problem-..-tp20962022p20962022.html
Sent from the MSP430 gcc - Users mailing list archive at Nabble.com.


Reply via email to