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

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
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
TOOL =gnu


-- 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:

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 ?