[Linux/UNIX] Link error: cannot find -lcs3 -lcs3unhosted -lcs3micro

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Linux/UNIX] Link error: cannot find -lcs3 -lcs3unhosted -lcs3micro

985 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pacman on Fri Nov 30 08:34:42 MST 2012
I've built my own toolchain, and cloned sw.lpcware.com to try out some examples on the LPC1768.
I have an adapter board with a LPC1768 and the bare minimum components necessary as well.

After making a lot of adjustments, customizing the makeconfig file and recompiling the toolchain, I finally got it to build LedBlinky with one minor exception.

-- (For anyone passing by, who wants the configuration file) --
# File: makeconfig
PROJ_ROOT=${HOME}/Files/Sources/ARM/LPC/lpc175x_6x
DEVICE=LPC17xx
MANUFACTURE=NXP
TOOL =gnu
DEBUG_MODE=1
TOOLS_PATH =

GNU_INSTALL_ROOT=/usr/local/arm-none-eabi
GNU_VERSION=4.7.2

-- End of configuration file --

I get the following error:


/usr/local/arm-none-eabi/lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld: cannot find -lcs3
/usr/local/arm-none-eabi/lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld: cannot find -lcs3unhosted
/usr/local/arm-none-eabi/lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld: cannot find -lcs3micro
collect2: error: ld returned 1 exit status
make: *** [rom] Error 1

As far as I can figure out, the linker script located here is used:
lpc175x_6x/makesection/makerule/example/ldscript_rom_gnu.ld

It contains the following line:

GROUP(-lgcc -lc -lcs3 -lcs3unhosted -lcs3micro)

...Now, I believe I'm missing some files.
In theory: Shouldn't those files be included with the sources somewhere, as they are not created when building a toolchain ?

I do find it a bit strange, that sources provided by NXP, will require you to use files from a third-party.
(When I distribute programs and source, I usually make sure that people don't need any extra files).


Anyway, my actual question is: How do I get the missing files ?
Labels (1)
0 Kudos
6 Replies

783 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pacman on Mon Dec 17 19:51:32 MST 2012
I'm aware that they have the files (and I'd probably be able to extract the files from their archive, but as I am writing my own toolchain, which I hope to release later on, I don't think they would be amused that I included their work.
Still, I'll try and make my toolchain optional, so that people can freely choose their toolchain with my software.
0 Kudos

783 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pacman on Mon Dec 17 19:46:58 MST 2012
Thank you very much. I'll take a closer look at this one. :)
0 Kudos

783 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pacman on Mon Dec 17 19:45:42 MST 2012
Yes, but not until it's ready. I don't want other people to go through all those problems I had myself. ;)
0 Kudos

783 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mburton on Mon Dec 10 15:22:05 MST 2012

Hi Pacman,

You may be interested in this:

http://www.lpcware.com/content/bugtrackerissue/lpc1758-load-script-and-startup-code-use-gcc-462-and-...

It's based around an earlier version of gcc but should still be relevant.

Cheers,

Mark
0 Kudos

783 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by eosis on Wed Dec 05 06:08:42 MST 2012
Hi.

Are you planning to release the toolchain you have made?
0 Kudos

783 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lien.Nguyen on Sun Dec 02 19:32:00 MST 2012
I installed CodeSourcery toolchain and found these files are in [CodeSoucery folder]/arm-none-eabi/lib/thumb2

Best Regards,
Lien
0 Kudos