linker error msp430/bin/ld: cannot find -lc

"[email protected]" <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <CAJLzUX6MrSOhE4mZr9iCG_6LOK=NFFnF1v0mxsAWzm_k1PcCbg@mail.gmail.com>
Hi,

I installed successfully msp430-gcc 4.7.0 compiler. The compiler at the
final stage of the linking process it shows me the following error for
Ubuntu 12.04. I am using TI platform.

msp430-gcc -mmcu=msp430f1611 -Wl,-Map=contiki-sky.map
-Wl,--gc-sections,--undefined=_reset_vector__,--undefined=InterruptVectors,--undefined=_copy_data_init__,--undefined=_clear_bss_init__,--undefined=_end_of_init__
hello-world.co obj_sky/contiki-sky-main.o contiki-sky.a  -o hello-world.sky
/opt/mspgccx/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [hello-world.sky] Error 1

I extended my search path as msp430-gcc 4.7  was installed under /opt at
~/.bashrc to include the /opt directories

# msp430-gcc --version
msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
mswarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

msp430-ld -v
GNU ld (GNU Binutils) 2.22 (mspgcc dev 20120911)
msp430-ld: cannot open linker script file memory.x: No such file or
directory

msp430-ld -version
GNU ld (GNU Binutils) 2.22 (mspgcc dev 20120911)
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.

$ gcc -v
Using built-in specs.
could not find specs file msp430mcu.spec
COLLECT_GCC=gcc
Target: msp430
Configured with: ../gcc-4.7.0/configure --target=msp430
--enable-languages=c --program-prefix=msp430- --prefix=/opt/mspgccx
Thread model: single
gcc version 4.7.0 20120322 (mspgcc dev 20120911) (GCC)

$ld -v
GNU ld (GNU Binutils for Ubuntu) 2.22


Am I missing anything? Any suggestions.

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.