Black God

Setup Build and Debug environment for MSP430 MCUs using mspgcc and mspdebug in Ubuntu Linux

 

MSPGCC is a GCC toolchain for the Texas Instruments MSP430 family of ultra low power MCUs, This includes the GNU C compiler (GCC), the assembler and linker (binutils), the debugger (GDB), and some other tools needed to make a complete development environment for the MSP430.

MSPDebug is a free debugger for use with MSP430 MCUs. It supports FET430UIF, eZ430, RF2500 and Olimex MSP-JTAG-TINY programmers. It can be used as a proxy for gdb or as an independent debugger with support for programming, disassembly and reverse engineering.

Important Update on 18 Mar 2014: The following write-up is outdated. When this original post was written the binary packages were not available for Ubuntu. Now it is available. So the commands are straight forward apt-get. In case your distro is outdated, you may not have these packages in repositories. If available, go ahead with following command.

sudo apt-get install msp430mcu msp430-libc mspdebug gcc-msp430 gdb-msp430

 

Otherwise follow the rest of the installation steps. Don’t forget to refer the test program, build and debug session examples too.

MSPGCC  Tool chain (compiler environment) installation

The following command will get mspgcc installed in Ubuntu 10.10 host machine.  The first command installs dependencies, second command check out the source code of mspgcc from svn repository and third one builds the source and install it in default /opt/msp430-gcc-4.4.3 directory.

sudo apt-get install subversion gcc-4.4 texinfo patch libncurses5-dev zlibc zlib1g-dev libx11-dev libusb-dev libreadline6-dev

svn checkout https://mspgcc4.svn.sourceforge.net/svnroot/mspgcc4

cd mspgcc4/
./buildgcc.sh
Append the following line in “/etc/profile” to update the PATH
export PATH=${PATH}:/opt/msp430-gcc-4.4.3/bin
Logout and login to get updated path or just run “source /etc/profile” from shell prompt.

MSPDebug debugger installation

Now it is time to install MSPDebug tool. Visit http://mspdebug.sourceforge.net/download.html to download the source code file in .tar.gz format.

Here is my console session to explain how I extracted, compiled and installed in Ubuntu Linux 10.10.

$ tar zxvf mspdebug-0.11.tar.g

$ cd mspdebug-0.11

$ make clean

$ make WITHOUT_READLINE=1

$ sudo make install

Compiling a application with msp430-gcc

Let us take a sample application source file called led.c. The purpose of this application is to toggle P1.0 port (it is connected to a LED in MSP430-F2013 dev kit).

#include  <msp430x20x3.h>

int main(void)

{

WDTCTL = WDTPW + WDTHOLD;                 // Stop watchdog timer

P1DIR |= 0×01;                            // Set P1.0 to output direction

for (;;)

{

volatile unsigned long i;

P1OUT ^= 0×01;                          // Toggle P1.0 using exclusive-OR

i = 99999;                              // Delay

do (i–);

while (i != 0);

}

}

Compile this file with msp430-gcc compiler installed by mspgcc package.

$ msp430-gcc -g -o led.elf led.c

In the above command, -g is for debug symbols. For production release version, this option is not needed. This command will create output file called led.elf .

Important Update on 18 Mar 2014: I faced following error while building with latest tool chain.
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot open linker script file memory.x: No such file or directory
collect2: ld returned 1 exit status

To fix this, you need to include the right header in source code (in my case msp430f2013.h) and pass the right micro controller as argument while building as shown below.

$ msp430-gcc -mmcu=msp430f2013 -g -o led.elf led.c

Connecting to target (MSP430 development kit)

In case of eZ430 Chronos Watch Development kit, please refer my post here for step by step instructions.
In case of MSP430-F2013, refer here for step by step instructions.
In case of Launchpad MSP-EXP430G2, refer here for complete instructions.

Debugging with msp430-gdb using mspdebug as gdb proxy

Run the mspdebug as gdb proxy as shown below. Here we don’t utilize gdb capability of mspdebug, we use it here only to connect to target.
In case of eZ430 Chronos Watch Development kit and Launchpad MSP-EXP430G2, it is
$ mspdebug rf2500 “gdb”
In case of MSP430-F2013 (assuming /dev/ttyUSB0 is your debugger), it is
$ mspdebug -d /dev/ttyUSB0 uif “gdb”
Here is a sample session for MSP430-F2013:
$ mspdebug -d /dev/ttyUSB0 uif “gdb”
Trying to open UIF on /dev/ttyUSB0…
Initializing FET…
FET protocol version is 10002000
Configured for Spy-Bi-Wire
Sending initial reset…
Set Vcc: 3000 mV
Device: MSP430F20x3
Code memory starts at 0xf800
Number of breakpoints: 2
Bound to port 2000. Now waiting for connection…
Now mspdebug is listening at TCP Port 2000. Now it is time to launch msp430-gdb as shown below. I have highlighted all shell commands and gdb commands as bold. This is my sample session.
$ msp430-gdb
GNU gdb (GDB) 7.0.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type “show copying”
and “show warranty” for details.
This GDB was configured as “–host=i686-pc-linux-gnu –target=msp430″.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) target remote localhost:2000
Remote debugging using localhost:2000
0x0000fc00 in ?? ()
(gdb) file led.elf
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Reading symbols from /home/blackgod/test1/led.elf…done.
(gdb) load led.elf
Loading section .text, size 0×82 lma 0xfc00
Loading section .vectors, size 0×20 lma 0xffe0
Start address 0xfc00, load size 162
Transfer rate: 810 bytes/sec, 81 bytes/write.
(gdb) continue
Continuing.
^C
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0000fc64 in main () at led.c:35
35 do (i–);
(gdb) break main.c:32
Breakpoint 2 at 0xfc4a: file led.c, line 32.
(gdb) continue
Continuing.
Breakpoint 2, main () at led.c:32
32 P1OUT ^= 0×01;                          // Toggle P1.0 using exclusive-OR
(gdb) continue
Continuing.
Breakpoint 2, main () at led.c:32
32 P1OUT ^= 0×01;                          // Toggle P1.0 using exclusive-OR
(gdb) continue
Continuing.
Hope this guide will be useful to you. Happy debugging on MSP430!

11 comments for “Setup Build and Debug environment for MSP430 MCUs using mspgcc and mspdebug in Ubuntu Linux

  1. Oliver Kuster
    June 12, 2011 at 7:29 pm

    replace 0×01 with 0×01;
    replace do(i-); with do{ i–; }

  2. Alex
    February 20, 2011 at 11:20 am

    I followed the instructions for installation, but I’m having errors while compiling the code as if the libraries didn’t install:

    msp430-gcc -g -o led.elf led.c
    led.c: In function ‘main’:
    led.c:9: error: stray ‘\303’ in program
    led.c:9: error: stray ‘\227’ in program
    led.c:9: error: expected ‘;’ before numeric constant
    led.c:17: error: stray ‘\303’ in program
    led.c:17: error: stray ‘\227’ in program
    led.c:17: error: expected ‘;’ before numeric constant
    led.c:21: error: stray ‘\342’ in program
    led.c:21: error: stray ‘\200’ in program
    led.c:21: error: stray ‘\223’ in program

    Any idea how to fix this?

  3. augre
    February 15, 2011 at 2:33 pm

    Hi!

    I’d like to ask that how to include my own function libraries?

    How to show to the gcc where are my xy.h file that i included like
    #include “xy.h”

    And how to use math.h? i tried -lm switch without success.

    Thank you

  4. Sandro Souza
    January 19, 2011 at 4:09 am

    Hi Black God.
    This guide is really fantastic.
    (I’m sorry for my bad english. I’m a brazilian nerd)
    I’d followed these steps and I’d found some problems.
    In the first trying, the gcc compiler was passing a “-Qy” parameter for “as” (assembler) which didn’t recognize it.
    I search in the net, and I’m found a page (http://www.linuxquestions.org/questions/linux-software-2/c-compiler-cannot-create-executables-803906/) where other user found the same problem (not about this msp430 branch, but a issue in gcc).
    When he compiles a program as root user, the gcc was passing that “-Qy” parameter for “as”. But as a normal user it doesn’t happen.
    So, I gave all permissions to “/opt” directory/folder (chmod 777 /opt) and made a second attempt.
    Now, other problem: gcc cannot create executables!
    Here is a output fragment:

    Unpacking MPFR…
    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 gcc… gcc
    checking for C compiler default output file name… configure: error: in `/home/sandro/Documentos/Packages/MSP430/mspgcc4/build/gcc-4.4.3-build’:
    configure: error: C compiler cannot create executables
    See `config.log’ for more details.
    sh do-gcc.sh “/opt/msp430-gcc-4.4.3″ “4.4.3″ “http://ftp.uni-kl.de” “build” “gcc-4.x” “4.3.1″ “2.4.1″ exited with status code 77.
    Failed to execute sh do-gcc.sh “/opt/msp430-gcc-4.4.3″ “4.4.3″ “http://ftp.uni-kl.de” “build” “gcc-4.x” “4.3.1″ “2.4.1″ at ./buildgcc.pl line 262.

    Here is that “config.log”:

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by configure, which was
    generated by GNU Autoconf 2.59. Invocation command line was

    $ /home/sandro/Documentos/Packages/MSP430/mspgcc4/build/gcc-4.4.3-build/../gcc-4.4.3/configure –prefix=/opt/msp430-gcc-4.4.3 –target=msp430 –enable-languages=c,c++ –with-pkgversion=MSPGCC4_r4-20100210

    ## ——— ##
    ## Platform. ##
    ## ——— ##

    hostname = SSF-notebook-01
    uname -m = x86_64
    uname -r = 2.6.35-25-generic
    uname -s = Linux
    uname -v = #43-Ubuntu SMP Thu Jan 6 22:25:21 UTC 2011

    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown

    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: .
    PATH: /home/sandro/bin
    PATH: /home/sandro/src/fpc/SSF/bin
    PATH: /usr/lib
    PATH: /lib
    PATH: /home/sandro/bin
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/games
    PATH: /opt/msp430-gcc-4.4.3/bin

    ## ———– ##
    ## Core tests. ##
    ## ———– ##

    configure:1563: checking build system type
    configure:1581: result: x86_64-unknown-linux-gnu
    configure:1616: checking host system type
    configure:1630: result: x86_64-unknown-linux-gnu
    configure:1638: checking target system type
    configure:1652: result: msp430-unknown-none
    configure:1696: checking for a BSD-compatible install
    configure:1762: result: /usr/bin/install -c
    configure:1773: checking whether ln works
    configure:1795: result: yes
    configure:1799: checking whether ln -s works
    configure:1803: result: yes
    configure:3005: checking for gcc
    configure:3021: found /usr/bin/gcc
    configure:3031: result: gcc
    configure:3277: checking for C compiler version
    configure:3280: gcc –version &5
    gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    configure:3283: $? = 0
    configure:3285: gcc -v &5
    Using built-in specs.
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v –with-pkgversion=’Ubuntu/Linaro 4.4.4-14ubuntu5′ –with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs –enable-languages=c,c++,fortran,objc,obj-c++ –prefix=/usr –program-suffix=-4.4 –enable-shared –enable-multiarch –enable-linker-build-id –with-system-zlib –libexecdir=/usr/lib –without-included-gettext –enable-threads=posix –with-gxx-include-dir=/usr/include/c++/4.4 –libdir=/usr/lib –enable-nls –with-sysroot=/ –enable-clocale=gnu –enable-libstdcxx-debug –enable-objc-gc –disable-werror –with-arch-32=i686 –with-tune=generic –enable-checking=release –build=x86_64-linux-gnu –host=x86_64-linux-gnu –target=x86_64-linux-gnu
    Thread model: posix
    gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
    configure:3288: $? = 0
    configure:3290: gcc -V &5
    gcc: ‘-V’ option must have argument
    configure:3293: $? = 1
    configure:3316: checking for C compiler default output file name
    configure:3319: gcc conftest.c >&5
    gcc: selected multilib ‘.’ not installed
    configure:3322: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    |
    | #define PACKAGE_NAME “”
    | #define PACKAGE_TARNAME “”
    | #define PACKAGE_VERSION “”
    | #define PACKAGE_STRING “”
    | #define PACKAGE_BUGREPORT “”
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:3360: error: in `/home/sandro/Documentos/Packages/MSP430/mspgcc4/build/gcc-4.4.3-build’:
    configure:3363: error: C compiler cannot create executables
    See `config.log’ for more details.

    ## —————- ##
    ## Cache variables. ##
    ## —————- ##

    ac_cv_build=x86_64-unknown-linux-gnu
    ac_cv_build_alias=x86_64-unknown-linux-gnu
    ac_cv_env_AR_FOR_TARGET_set=
    ac_cv_env_AR_FOR_TARGET_value=
    ac_cv_env_AR_set=
    ac_cv_env_AR_value=
    ac_cv_env_AS_FOR_TARGET_set=
    ac_cv_env_AS_FOR_TARGET_value=
    ac_cv_env_AS_set=
    ac_cv_env_AS_value=
    ac_cv_env_CC_FOR_TARGET_set=
    ac_cv_env_CC_FOR_TARGET_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_FOR_TARGET_set=
    ac_cv_env_CXX_FOR_TARGET_value=
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_DLLTOOL_FOR_TARGET_set=
    ac_cv_env_DLLTOOL_FOR_TARGET_value=
    ac_cv_env_DLLTOOL_set=
    ac_cv_env_DLLTOOL_value=
    ac_cv_env_GCC_FOR_TARGET_set=
    ac_cv_env_GCC_FOR_TARGET_value=
    ac_cv_env_GCJ_FOR_TARGET_set=
    ac_cv_env_GCJ_FOR_TARGET_value=
    ac_cv_env_GFORTRAN_FOR_TARGET_set=
    ac_cv_env_GFORTRAN_FOR_TARGET_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LD_FOR_TARGET_set=
    ac_cv_env_LD_FOR_TARGET_value=
    ac_cv_env_LD_set=
    ac_cv_env_LD_value=
    ac_cv_env_LIPO_FOR_TARGET_set=
    ac_cv_env_LIPO_FOR_TARGET_value=
    ac_cv_env_LIPO_set=
    ac_cv_env_LIPO_value=
    ac_cv_env_NM_FOR_TARGET_set=
    ac_cv_env_NM_FOR_TARGET_value=
    ac_cv_env_NM_set=
    ac_cv_env_NM_value=
    ac_cv_env_OBJCOPY_set=
    ac_cv_env_OBJCOPY_value=
    ac_cv_env_OBJDUMP_FOR_TARGET_set=
    ac_cv_env_OBJDUMP_FOR_TARGET_value=
    ac_cv_env_OBJDUMP_set=
    ac_cv_env_OBJDUMP_value=
    ac_cv_env_RANLIB_FOR_TARGET_set=
    ac_cv_env_RANLIB_FOR_TARGET_value=
    ac_cv_env_RANLIB_set=
    ac_cv_env_RANLIB_value=
    ac_cv_env_STRIP_FOR_TARGET_set=
    ac_cv_env_STRIP_FOR_TARGET_value=
    ac_cv_env_STRIP_set=
    ac_cv_env_STRIP_value=
    ac_cv_env_WINDMC_FOR_TARGET_set=
    ac_cv_env_WINDMC_FOR_TARGET_value=
    ac_cv_env_WINDMC_set=
    ac_cv_env_WINDMC_value=
    ac_cv_env_WINDRES_FOR_TARGET_set=
    ac_cv_env_WINDRES_FOR_TARGET_value=
    ac_cv_env_WINDRES_set=
    ac_cv_env_WINDRES_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=set
    ac_cv_env_target_alias_value=msp430
    ac_cv_host=x86_64-unknown-linux-gnu
    ac_cv_host_alias=x86_64-unknown-linux-gnu
    ac_cv_path_install=’/usr/bin/install -c’
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_target=msp430-unknown-none
    ac_cv_target_alias=msp430
    acx_cv_prog_LN=ln

    ## —————– ##
    ## Output variables. ##
    ## —————– ##

    AR=”
    AR_FOR_BUILD=’$(AR)’
    AR_FOR_TARGET=”
    AS=”
    AS_FOR_BUILD=’$(AS)’
    AS_FOR_TARGET=”
    BISON=”
    CC=’gcc’
    CC_FOR_BUILD=’$(CC)’
    CC_FOR_TARGET=”
    CFLAGS=”
    CFLAGS_FOR_BUILD=”
    CFLAGS_FOR_TARGET=”
    COMPILER_AS_FOR_TARGET=”
    COMPILER_LD_FOR_TARGET=”
    COMPILER_NM_FOR_TARGET=”
    CONFIGURE_GDB_TK=”
    CPPFLAGS=”
    CXX=”
    CXXFLAGS=”
    CXXFLAGS_FOR_BUILD=”
    CXXFLAGS_FOR_TARGET=”
    CXX_FOR_BUILD=’$(CXX)’
    CXX_FOR_TARGET=”
    DEBUG_PREFIX_CFLAGS_FOR_TARGET=”
    DEFS=”
    DLLTOOL=”
    DLLTOOL_FOR_BUILD=’$(DLLTOOL)’
    DLLTOOL_FOR_TARGET=”
    ECHO_C=”
    ECHO_N=’-n’
    ECHO_T=”
    EXEEXT=”
    EXPECT=”
    FLAGS_FOR_TARGET=”
    FLEX=”
    GCC_FOR_TARGET=”
    GCC_SHLIB_SUBDIR=”
    GCJ_FOR_BUILD=’$(GCJ)’
    GCJ_FOR_TARGET=”
    GDB_TK=”
    GFORTRAN_FOR_BUILD=’$(GFORTRAN)’
    GFORTRAN_FOR_TARGET=”
    GNATBIND=”
    GNATMAKE=”
    INSTALL_DATA=’${INSTALL} -m 644′
    INSTALL_GDB_TK=”
    INSTALL_PROGRAM=’${INSTALL}’
    INSTALL_SCRIPT=’${INSTALL}’
    LD=”
    LDFLAGS=”
    LDFLAGS_FOR_BUILD=”
    LD_FOR_BUILD=’$(LD)’
    LD_FOR_TARGET=”
    LEX=”
    LIBOBJS=”
    LIBS=”
    LIPO=”
    LIPO_FOR_TARGET=”
    LN=’ln’
    LN_S=’ln -s’
    LTLIBOBJS=”
    M4=”
    MAINT=”
    MAINTAINER_MODE_FALSE=”
    MAINTAINER_MODE_TRUE=”
    MAKEINFO=”
    NM=”
    NM_FOR_BUILD=’$(NM)’
    NM_FOR_TARGET=”
    OBJCOPY=”
    OBJDUMP=”
    OBJDUMP_FOR_TARGET=”
    OBJEXT=”
    PACKAGE_BUGREPORT=”
    PACKAGE_NAME=”
    PACKAGE_STRING=”
    PACKAGE_TARNAME=”
    PACKAGE_VERSION=”
    PATH_SEPARATOR=’:’
    RANLIB=”
    RANLIB_FOR_BUILD=’$(RANLIB)’
    RANLIB_FOR_TARGET=”
    RAW_CXX_FOR_TARGET=”
    RPATH_ENVVAR=”
    RUNTEST=”
    SHELL=’/bin/bash’
    STRIP=”
    STRIP_FOR_TARGET=”
    SYSROOT_CFLAGS_FOR_TARGET=”
    TOPLEVEL_CONFIGURE_ARGUMENTS=’/home/sandro/Documentos/Packages/MSP430/mspgcc4/build/gcc-4.4.3-build/../gcc-4.4.3/configure –prefix=/opt/msp430-gcc-4.4.3 –target=msp430 –enable-languages=c,c++ –with-pkgversion=MSPGCC4_r4-20100210′
    WINDMC=”
    WINDMC_FOR_BUILD=’$(WINDMC)’
    WINDMC_FOR_TARGET=”
    WINDRES=”
    WINDRES_FOR_BUILD=’$(WINDRES)’
    WINDRES_FOR_TARGET=”
    YACC=”
    ac_ct_CC=’gcc’
    ac_ct_CXX=”
    ac_ct_GNATBIND=”
    ac_ct_GNATMAKE=”
    bindir=’${exec_prefix}/bin’
    build=’x86_64-unknown-linux-gnu’
    build_alias=”
    build_configargs=”
    build_configdirs=’build-libiberty build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes’
    build_cpu=’x86_64′
    build_libsubdir=’build-x86_64-unknown-linux-gnu’
    build_noncanonical=’x86_64-unknown-linux-gnu’
    build_os=’linux-gnu’
    build_subdir=’build-x86_64-unknown-linux-gnu’
    build_tooldir=”
    build_vendor=’unknown’
    clooginc=”
    clooglibs=”
    config_shell=’/bin/bash’
    configdirs=’intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog libiconv texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools’
    datadir=’${prefix}/share’
    datarootdir=”
    do_compare=”
    docdir=”
    exec_prefix=’NONE’
    extra_mpfr_configure_flags=”
    gmpinc=”
    gmplibs=”
    host=’x86_64-unknown-linux-gnu’
    host_alias=”
    host_configargs=”
    host_cpu=’x86_64′
    host_noncanonical=’x86_64-unknown-linux-gnu’
    host_os=’linux-gnu’
    host_subdir=’.’
    host_vendor=’unknown’
    htmldir=”
    includedir=’${prefix}/include’
    infodir=’${prefix}/info’
    libdir=’${exec_prefix}/lib’
    libexecdir=’${exec_prefix}/libexec’
    localstatedir=’${prefix}/var’
    mandir=’${prefix}/man’
    oldincludedir=’/usr/include’
    pdfdir=”
    pplinc=”
    ppllibs=”
    prefix=’/opt/msp430-gcc-4.4.3′
    program_transform_name=’s,^,msp430-,’
    sbindir=’${exec_prefix}/sbin’
    sharedstatedir=’${prefix}/com’
    stage1_cflags=”
    stage1_checking=”
    stage1_languages=”
    stage2_werror_flag=”
    sysconfdir=’${prefix}/etc’
    target=’msp430-unknown-none’
    target_alias=’msp430′
    target_configargs=”
    target_cpu=’msp430′
    target_noncanonical=’msp430′
    target_os=’none’
    target_subdir=’msp430′
    target_vendor=’unknown’
    tooldir=”

    ## ————- ##
    ## Output files. ##
    ## ————- ##

    alphaieee_frag=”
    host_makefile_frag=’/dev/null’
    ospace_frag=”
    serialization_dependencies=”
    target_makefile_frag=”

    ## ———– ##
    ## confdefs.h. ##
    ## ———– ##

    #define PACKAGE_BUGREPORT “”
    #define PACKAGE_NAME “”
    #define PACKAGE_STRING “”
    #define PACKAGE_TARNAME “”
    #define PACKAGE_VERSION “”

    configure: exit 77

    Sorry for this mega text, but I think the more information I provide, the better.

    My machine is a HP G60 (AMD64 Turion X2 (dual core), 3Gb RAM, 320Gb HD, …) running Ubuntu 10.10.

    Please, anyone help!!! :(

    • Timothy Logan
      September 13, 2011 at 2:01 pm

      I am getting this exact error, anyone else have any luck?

    • June 10, 2014 at 11:39 am

      Though it is too late, for some one refer here, it may be useful. The above error is due to lack of 32-bit library support in 64-bit OS. Install multiarch support in Ubuntu.

Leave a Reply

Your email address will not be published. Required fields are marked *