Unable to build - cannot find -lgcc

  • Hi guys,

    I'm trying to build LibreELEC [libreelec-8.0] for the RPi 2. Unfortunately it keeps failing after some time...

    Code
    /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/bin/armv7ve-libreelec-linux-gnueabi-gcc -B/libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/bin/ -march=armv7ve -mtune=cortex-a7   -nostdlib -nostartfiles -r -o /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/glibc-2.24/.armv7ve-libreelec-linux-gnueabi/libc_pic.os \
     -Wl,-d -Wl,--whole-archive /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/glibc-2.24/.armv7ve-libreelec-linux-gnueabi/libc_pic.a -o /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/glibc-2.24/.armv7ve-libreelec-linux-gnueabi/libc_pic.os
    /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/bin/armv7ve-libreelec-linux-gnueabi-gcc -B/libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/bin/ -march=armv7ve -mtune=cortex-a7   -nostdlib -nostartfiles -r -o /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/glibc-2.24/.armv7ve-libreelec-linux-gnueabi/elf/librtld.map.o '-Wl,-(' /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/glibc-2.24/.armv7ve-libreelec-linux-gnueabi/elf/dl-allobjs.os /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/glibc-2.24/.armv7ve-libreelec-linux-gnueabi/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/libreelec/build.LibreELEC-RPi2.arm-9.0-devel/glibc-2.24/.armv7ve-libreelec-linux-gnueabi/elf/librtld.mapT
    /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/lib/gcc/armv7ve-libreelec-linux-gnueabi/6.2.0/../../../../armv7ve-libreelec-linux-gnueabi/bin/ld: warning: library search path "/libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/bin" is unsafe for cross-compilation, ignore it
    /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/lib/gcc/armv7ve-libreelec-linux-gnueabi/6.2.0/../../../../armv7ve-libreelec-linux-gnueabi/bin/ld: warning: library search path "/libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/lib/gcc/armv7ve-libreelec-linux-gnueabi/6.2.0" is unsafe for cross-compilation, ignore it
    /libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/lib/gcc/armv7ve-libreelec-linux-gnueabi/6.2.0/../../../../armv7ve-libreelec-linux-gnueabi/bin/ld: warning: library search path "/libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/lib/gcc/armv7ve-libreelec-linux-gnueabi/6.2.0/../../../../armv7ve-libreelec-linux-gnueabi/lib" is unsafe for cross-compilation, ignore it
    [b]/libreelec/build.LibreELEC-RPi2.arm-9.0-devel/toolchain/lib/gcc/armv7ve-libreelec-linux-gnueabi/6.2.0/../../../../armv7ve-libreelec-linux-gnueabi/bin/ld: cannot find -lgcc[/b]

    I'm running the compiling process in this Docker-Image:

    At last the command:

    Code
    PROJECT=RPi2 ARCH=arm make image

    I would be more than happy if someone could point me in the right direction :)

    Thanks
    Soran

    Edited once, last by soranmoraniv (May 18, 2017 at 9:21 PM).

    • Official Post

    First observation is that you're building from the master branch not 8.0 (see LibreELEC-RPi2.arm-9.0 visible in paths) and due to upstream doing some major merges in the last week you'll probably find things a little broken at the moment. We're deliberately waiting for things to stabilise before we fix up our master branch. If you want to build 8.0 run "git checkout libreelec-8.0" before building.