> Hi,
>
> I'm trying to use the new GCC toolchain for MSP430 (
>
http://sourceforge.net/projects/mspgcc/files/mspgcc/DEVEL-4.7.x/> mspgcc-20120606.tar.bz2 )
>
> I have patched and compiled binutils and gcc successfully.
>
> Next, I have to patch, configure and compile gdb.
> Following the instructions in msp430-gdb-7.2a-20111205.patch
>
> tar xjf gdb-7.2a.tar.bz2
> ( cd gdb-7.2 ; patch -p1< ../msp430-gdb-7.2a-20111205.patch )
> mkdir -p BUILD/gdb
> cd BUILD/gdb
> ../../gdb-7.2/configure \
> --target=msp430 \
> --prefix=/usr/local/msp430 \
> 2>&1 | tee co
>
> root@ubuntu:~/downloads/BUILD/gdb# cat co
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type... msp430-unknown-none
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for a sed that does not truncate output... /bin/sed
> checking for gawk... gawk
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for gnatbind... no
> checking for gnatmake... no
> checking whether compiler driver understands Ada... no
> checking how to compare bootstrapped objects... cmp --ignore-initial=16
> $$f1 $$f2
> checking for objdir... .libs
> checking for version 0.10 (or later revision) of PPL... no
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking libelf.h usability... no
> checking libelf.h presence... no
> checking for libelf.h... no
> checking gelf.h usability... no
> checking gelf.h presence... no
> checking for gelf.h... no
> checking libelf/libelf.h usability... no
> checking libelf/libelf.h presence... no
> checking for libelf/libelf.h... no
> checking libelf/gelf.h usability... no
> checking libelf/gelf.h presence... no
> checking for libelf/gelf.h... no
> checking for default BUILD_CONFIG...
> checking for bison... no
> checking for byacc... no
> checking for yacc... no
> checking for bison... no
> checking for gm4... no
> checking for gnum4... no
> checking for m4... m4
> checking for flex... no
> checking for lex... no
> checking for flex... no
> checking for makeinfo... makeinfo
> checking for expect... no
> checking for runtest... no
> checking for ar... ar
> checking for as... as
> checking for dlltool... no
> checking for ld... ld
> checking for lipo... no
> checking for nm... nm
> checking for ranlib... ranlib
> checking for strip... strip
> checking for windres... no
> checking for windmc... no
> checking for objcopy... objcopy
> checking for objdump... objdump
> checking for msp430-cc... no
> checking for msp430-gcc... msp430-gcc
> checking for msp430-c++... msp430-c++
> checking for msp430-gcc... msp430-gcc
> checking for msp430-gcj... no
> checking for msp430-gfortran... no
> checking for msp430-ar... msp430-ar
> checking for msp430-as... msp430-as
> checking for msp430-dlltool... no
> checking for msp430-ld... msp430-ld
> checking for msp430-lipo... no
> checking for msp430-nm... msp430-nm
> checking for msp430-objdump... msp430-objdump
> checking for msp430-ranlib... msp430-ranlib
> checking for msp430-strip... msp430-strip
> checking for msp430-windres... no
> checking for msp430-windmc... no
> checking where to find the target ar... pre-installed
> checking where to find the target as... pre-installed
> checking where to find the target cc... pre-installed
> checking where to find the target c++... pre-installed
> checking where to find the target c++ for libstdc++... pre-installed
> checking where to find the target dlltool... pre-installed
> checking where to find the target gcc... pre-installed
> checking where to find the target gcj... pre-installed
> checking where to find the target gfortran... pre-installed
> checking where to find the target ld... pre-installed
> checking where to find the target lipo... pre-installed
> checking where to find the target nm... pre-installed
> checking where to find the target objdump... pre-installed
> checking where to find the target ranlib... pre-installed
> checking where to find the target strip... pre-installed
> checking where to find the target windres... pre-installed
> checking where to find the target windmc... pre-installed
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking whether -fkeep-inline-functions is supported... yes
> configure: creating ./config.status
> config.status: creating Makefile
> root@ubuntu:~/downloads/BUILD/gdb#
>
>
> make 2>&1 | tee mo
>
> output make:
> ...
> make[2]: Entering directory `/root/downloads/BUILD/gdb/sim'
> make[3]: Entering directory `/root/downloads/BUILD/gdb/sim/msp430'
> gcc ../../../../gdb-7.2/sim/msp430/../common/gentmap.c -o gentmap -g -O
> -I. -I../../../../gdb-7.2/sim/msp430 -I../common
> -I../../../../gdb-7.2/sim/msp430/../common -I../../include
> -I../../../../gdb-7.2/sim/msp430/../../include -I../../bfd
> -I../../../../gdb-7.2/sim/msp430/../../bfd -I../../opcodes
> -I../../../../gdb-7.2/sim/msp430/../../opcodes
> rm -f tmp-tvals.h tmp-tmap.c
> ./gentmap -h>tmp-tvals.h
> /bin/bash ../../../../gdb-7.2/sim/msp430/../../move-if-change
> tmp-tvals.h targ-vals.h
> ./gentmap -c>tmp-tmap.c
> /bin/bash ../../../../gdb-7.2/sim/msp430/../../move-if-change tmp-tmap.c
> targ-map.c
> touch stamp-tvals
> rm -f version.c-tmp version.c
> echo '#include "version.h"'>> version.c-tmp
> echo 'const char version[] = "'"`sed q
> ../../../../gdb-7.2/sim/msp430/../../gdb/version.in`"'";'>> version.c-tmp
> mv version.c-tmp version.c
> gcc -c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0
> -I. -I../../../../gdb-7.2/sim/msp430 -I../common
> -I../../../../gdb-7.2/sim/msp430/../common -I../../include
> -I../../../../gdb-7.2/sim/msp430/../../include -I../../bfd
> -I../../../../gdb-7.2/sim/msp430/../../bfd -I../../opcodes
> -I../../../../gdb-7.2/sim/msp430/../../opcodes -g -O2 version.c
> rm -f libsim.a
> ar rc libsim.a callback.o syscall.o targ-map.o version.o interp.o sim-load.o
> ranlib libsim.a
> gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I.
> -I../../../../gdb-7.2/sim/msp430 -I../common
> -I../../../../gdb-7.2/sim/msp430/../common -I../../include
> -I../../../../gdb-7.2/sim/msp430/../../include -I../../bfd
> -I../../../../gdb-7.2/sim/msp430/../../bfd -I../../opcodes
> -I../../../../gdb-7.2/sim/msp430/../../opcodes -g -O2 -o run \
> run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a
> ../../libiberty/libiberty.a -lnsl -lm -lz
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make[3]: *** [run] Error 1
> make[3]: Leaving directory `/root/downloads/BUILD/gdb/sim/msp430'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/root/downloads/BUILD/gdb/sim'
> make[1]: *** [all-sim] Error 2
> make[1]: Leaving directory `/root/downloads/BUILD/gdb'
> make: *** [all] Error 2
>
>
>
> Extra info:
>
> OS: ubuntu 12.04
> Linux ubuntu 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC
> 2012 x86_64 x86_64 x86_64 GNU/Linux
>
> root@ubuntu:~/downloads/BUILD/gdb# /usr/bin/ld --version
> GNU ld (GNU Binutils for Ubuntu) 2.22
> Copyright 2011 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or (at your option) a later
> version.
> This program has absolutely no warranty.
>
>
>
> root@ubuntu:~/downloads/BUILD/gdb# env $PATH
> env:
> /usr/gcc_4_7/bin:/usr/local/msp430/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
> No such file or directory
> root@ubuntu:~/downloads/BUILD/gdb#
>
>
> /usr/bin/ld does not accept the "-lz" option...
> Submitted this as
http://sourceware.org/bugzilla/show_bug.cgi?id=14234> but maybe it should be submitted somewhere else?
>
>
>
> Any hints?
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/> _______________________________________________
> Mspgcc-users mailing list
>
Mspgcc-users@...
>
https://lists.sourceforge.net/lists/listinfo/mspgcc-usersthreat landscape has changed and how IT managers can respond. Discussions
threats.