Hi all,

I'm trying to compile a simple program using mspgcc but I get those errors:

/tmp/cck3dSzS.s: Assembler messages:
/tmp/cck3dSzS.s:120: Error: expected symbol name
/tmp/cck3dSzS.s:121: Error: expected symbol name
/tmp/cck3dSzS.s:122: Error: expected symbol name
/tmp/cck3dSzS.s:123: Error: expected symbol name
/tmp/cck3dSzS.s:124: Error: expected symbol name

The program I tried to compile is so simple:

/* code starts */
#include  <msp430x261x.h>
int main(void)
{
  P5DIR |= 0x70;
  P5OUT ^= 0x70;
}
/* code ends */

I've just checkout and compiled mspgcc today, so it is a really fresh
install.

I tried to compile using:

msp430-gcc -g blinktheled.c -o blinktheled.elf

The verbose output is the following:


de...@dextos:/opt/smallprogramsmsp/blinktheled$ msp430-gcc -v -g
blinktheled.c -o blinktheled.elf
Reading specs from /opt/msp430/bin/../lib/gcc-lib/msp430/3.2.3/specs
Configured with: ./configure --target=msp430 --prefix=/opt/mspgcc
--disable-multilib --disable-libc --disable-libssp --disable-intl
--disable-libiberty --with-gcc --with-gnu-ld --with-gnu-as --with-stabs
--disable-shared --disable-threads --disable-win32-registry --disable-nls
--enable-languages=c,c++
Thread model: single
gcc version 3.2.3
 /opt/msp430/bin/../lib/gcc-lib/msp430/3.2.3/cc1 -lang-c -v -iprefix
/opt/msp430/bin/../lib/gcc-lib/msp430/3.2.3/ -D__GNUC__=3 -D__GNUC_MINOR__=2
-D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -DMSP430 -D__MSP430__
-D__MSP430 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -DMSP430_NO_HW_MUL
-D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -D__INT_MAX__=32767
blinktheled.c -quiet -dumpbase blinktheled.c -g -version -o /tmp/cc9z6DwP.s
GNU CPP version 3.2.3 (cpplib) (GNU assembler syntax)
GNU C version 3.2.3 (msp430)
        compiled by GNU C version 4.1.2 (Ubuntu 4.1.2-0ubuntu4).
ignoring nonexistent directory "/opt/msp430/msp430/sys-include"
ignoring nonexistent directory "/opt/mspgcc/msp430/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/msp430/lib/gcc-lib/msp430/3.2.3/include
 /opt/msp430/msp430/include
 /opt/mspgcc/include
 /opt/mspgcc/lib/gcc-lib/msp430/3.2.3/include
 /opt/mspgcc/msp430/include
End of search list.
 /opt/msp430/bin/../lib/gcc-lib/msp430/3.2.3/../../../../msp430/bin/as -o
/tmp/ccYmFiot.o /tmp/cc9z6DwP.s
/tmp/cc9z6DwP.s: Assembler messages:
/tmp/cc9z6DwP.s:120: Error: expected symbol name
/tmp/cc9z6DwP.s:121: Error: expected symbol name
/tmp/cc9z6DwP.s:122: Error: expected symbol name
/tmp/cc9z6DwP.s:123: Error: expected symbol name
/tmp/cc9z6DwP.s:124: Error: expected symbol name

I think mspgcc has been compiled correctly and is working, because when
compiling through TinyOS build system I get no errors. So maybe the error is
because of the environtment configuration.

I would apreciate any help to solve my problem.

Thanks,

Xavi

Reply via email to