Hi,

> Something is wrong with your installation. See below.

Maybe but i have no idea what may be the reason. 
I'm using the actual sources but after new installation (see script below)
but now i do get more unknows:

main.c:21: `SCFQCTL' undeclared (first use in this function)
main.c:22: `SCFI0' undeclared (first use in this function)
main.c:24: `FLL_CTL0' undeclared (first use in this function)
main.c:108: `IFG1' undeclared (first use in this function)
main.c:109: `IFG2' undeclared (first use in this function)

It's strange that even IFG1 and IFG2 are unknown because they are in every 
msp430 and always at address 0 and 1.


> There are not many people using floats, so it hasn't received a lot of 
> attention. The integer code from mspgcc is generally smaller and faster 
> than IAR. However, IAR beats mspgcc very easily on floating point code.

Ok, i will change the floats to long ints or long long ints.

Regards 

Rolf

 
> Regards,
> Steve


------------------------------------------------------------------------------------------------------
#!/bin/sh -e
#
# Complete install script for mspgcc with hard coded versions.
# Use it as user root(.root) as
#
# ./build_mspgcc.sh 2>&1 | tee build_mspgcc.out
#
# which will create build_mspgcc.out as the log file.
#
# It takes approx. 12 minutes with a 2 GHz 32 bit CPU and 1 Mbit DSL.
#
# Version 0.0.6         2. Apr. 2004    Rolf Freitag 
nobodyo<nospam>@</nospam>web.de
#
#
# todo: - splitting into a script for user and a script for root
#       - smp version
#       - automatic selection of the newest version for gcc-core, ...
#       - insight installation
#
# With additions from a script (i found somewhere) from
# J.C. Wren jcw...@jcwren.com,http://tinymicros.com 2003/04/28 JCW

#
#  This is the directory where the tools will wind up
#
export PREFIXROOT=/usr/local/msp430
export PATH=$PREFIXROOT/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

#
#  Gotta be root for installs
#
if [ ! $UID == 0 ] ; then
        echo "Must be root to do this (installs require it)"
        exit
fi

#
#  Make sure we've got wget, so we can fetch the binutils, gcc and insight 
sources
#
command -V wget >/dev/null 2>&1 ; retval=$? ; if [ $retval -ne 0 ] ; then
        echo "Can't find wget! (I need this to get the GCC and binutils 
sources)"
        exit 1
fi

#
#  In theory, you can do an update to make the CVS pull more efficient.  Safer 
this way, tho
#
\rm -rf update binutils docs examples gcc gdb gdbproxy hardware htdocs jtag 
msp430-libc msp430simu packaging pybsl pyjtag pyserjtag python serJTAGfirmware 
ubroff

#
#  Login to CVS, pull the patches down
#
echo "Hit <return> when prompted for password"
cvs -d:pserver:anonym...@cvs.sourceforge.net:/cvsroot/mspgcc login
cvs -z3 -d:pserver:anonym...@cvs.sourceforge.net:/cvsroot/mspgcc co binutils 
docs examples gcc gdb gdbproxy hardware htdocs jtag msp430-libc msp430simu 
packaging pybsl pyjtag pyserjtag python serJTAGfirmware ubroff

#
#  Blow away the old version, if it exists.  Safest thing to do, according to 
Dmitry
#
\rm -rf $PREFIXROOT

# wget -c for resuming downloading; parts of downloads needs only to be 
downloaded once
wget -c 
ftp://sources.redhat.com/pub/gcc/releases/gcc-3.2.3/gcc-core-3.2.3.tar.bz2
wget -c ftp://sources.redhat.com/pub/binutils/releases/binutils-2.14.tar.bz2
wget -c ftp://sources.redhat.com/pub/gdb/old-releases/insight-5.1.1.tar.bz2

#
#  Build the binutils and install
#
if [ ! -s binutils-2.14.tar.bz2 ] ; then
        echo "Eeek!  Where did the binutils-2.14.tar.bz2 file go?!?"
        exit
fi
  
\rm -rf binutils-2.14
tar --bzip2 -xf binutils-2.14.tar.bz2 || exit
# \cp -a binutils/binutils-2.11/* binutils-2.11
cd binutils-2.14
./configure --target=msp430 --prefix=$PREFIXROOT
(make && make install) || exit
cd ..

#
#  Build the compiler and install
#
if [ ! -s gcc-core-3.2.3.tar.bz2 ] ; then
        echo "Eeek!  Where did the gcc-core-3.2.3.tar.bz2 go?!?"
        exit
fi
  
\rm -rf gcc-3.2.3
tar --bzip2 -xf gcc-core-3.2.3.tar.bz2 || exit
\cp -a gcc/gcc-3.3/* gcc-3.2.3
cd gcc-3.2.3
./configure --target=msp430 --prefix=$PREFIXROOT
(make && make install) || exit
cd ..

#
#  Build the libraries and install
#
cd msp430-libc/src
# sed -e "s#^prefix[ ]*=.*#prefix=$PREFIXROOT#" Makefile >Makefile.tmp
# \mv Makefile.tmp Makefile
mkdir -p msp1
mkdir -p msp2
(make && make install) || exit
cd ../..
# tar --bzip2 -xf gdb-5.1.1.tar.bz2
tar --bzip2 -xf gdb-6.0.tar.bz2
# cp -a gdb/gdb-5.1.1/* gdb-5.1.1 # installation of gdb-5.1.1 faild with error 
"run does not exist"
cp -a gdb/gdb-current/* gdb-6.0
# cd gdb-5.1.1
cd gdb-6.0
./configure --target=msp430 --prefix=$PREFIXROOT
(make && make install) || exit

# jtag
cd .. 
cd jtag/hardware_access
make
mv libHIL.so /usr/local/lib
chmod a+r /usr/local/lib/libHIL.so
ldconfig
cd ../..

# make the actual directory and $PREFIXROOT recursively readable for everone
find -type f -print0 | xargs -0 chmod a+r; find -type d -print0 | xargs -0 
chmod a+rx
chmod a+rx /usr/local/msp430
cd /usr/local/msp430
find -type f -print0 | xargs -0 chmod a+r; find -type d -print0 | xargs -0 
chmod a+rx

#
#  We should be OK to go
#
echo ""
echo ""
echo "It appears we completed with no errors.  MSP430 version of GCC is"
echo "installed in $PREFIXROOT.  Create a simple test program,"
echo "then compile with:"
echo ""
echo "   $PREFIXROOT/bin/msp430-gcc mytest.c -o mytest"
echo "   $PREFIXROOT/bin/msp430-objdump mytest"
echo ""



Reply via email to