Re: Building on ARM and ld error

Benjamin Walsh <benjamin.walsh@...>

On Wed, Aug 10, 2016 at 01:31:14PM -0500, Kumar Gala wrote:

On Aug 6, 2016, at 10:28 AM, Cufi, Carles <Carles.Cufi(a)> wrote:

Hi there,

Building a simple example on Linux with the latest 0.8.2 SDK:

$ make BOARD=nrf52_pca10040

I get the following error:

/home/cacu/prog/zephyr-sdk/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-eabi/gcc/arm-poky-eabi/5.2.0/real-ld: cannot find -lgcc

Below is my zephyr.lnk contents:

-nostartfiles -nodefaultlibs -nostdlib -static -Wl,-X -Wl,-N -Wl,--gc-sections -Wl,--build-id=none
-L ./include/generated
-u _OffsetAbsSyms -u _ConfigAbsSyms
-e __start

-L . -L ~/prog/zephyr-sdk/sysroots/armv5-poky-eabi/usr/lib/armv7e-m -lgcc


Any progress/luck with this?
We dicussed it on IRC: the SDK chokes if it is installed under a user's
home dir _and_ ZEPHYR_SDK_INSTALL_DIR is set to ~/path/to/sdk instead of

There should be a defect already open for this.

Join to automatically receive all group messages.