[OpenWrt-Devel] GCC 7.4.0 ld LTO plugin issues with SDK

Daniel F. Dickinson cshored at thecshore.com
Wed Jan 2 15:52:00 EST 2019


On 2019-01-02 3:06 p.m., Daniel F. Dickinson wrote:
> Hi,
>
> With the SDK I'm getting errors with LTO -- at least for json-c LD is
> trying to load the *target's* LTO plugin instead of host.
>
For reference the error in the previous maili is *in* the SDK.  Same
package being compiled for inclusion in the SDK has:

configure:3318: $? = 0
configure:3307: arm-openwrt-linux-muslgnueabi-gcc -v >&5
Reading specs from
/home/daniel/Build/openwrt-pi/staging_dir/toolchain-arm_arm1176jzf-s+vfp_gcc-7.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/7.4.0/specs
COLLECT_GCC=arm-openwrt-linux-muslgnueabi-gcc
COLLECT_LTO_WRAPPER=/home/daniel/Build/openwrt-pi/staging_dir/toolchain-arm_arm1176jzf-s+vfp_gcc-7.4.0_musl_eabi/libexec/gcc/arm-openwrt-linux-muslgnueabi/7.4.0/lto-wrapper
Target: arm-openwrt-linux-muslgnueabi
Configured with:
/home/daniel/Build/openwrt-pi/build_dir/toolchain-arm_arm1176jzf-s+vfp_gcc-7.4.0_musl_eabi/gcc-7.4.0/configure
--with-bugurl=http://www.lede-project.org/bugs/
--with-pkgversion='OpenWrt GCC 7.4.0 r8970+3-5c4277ec37'
--prefix=/home/daniel/Build/openwrt-pi/staging_dir/toolchain-arm_arm1176jzf-s+vfp_gcc-7.4.0_musl_eabi
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=arm-openwrt-linux-muslgnueabi --with-gnu-ld
--enable-target-optspace --disable-libgomp --disable-libmudflap
--disable-multilib --disable-libmpx --disable-nls --without-isl
--without-cloog --with-host-libstdcxx=-lstdc++
--with-gmp=/home/daniel/Build/openwrt-pi/staging_dir/host
--with-mpfr=/home/daniel/Build/openwrt-pi/staging_dir/host
--with-mpc=/home/daniel/Build/openwrt-pi/staging_dir/host
--disable-decimal-float --with-diagnostics-color=auto-if-env
--disable-libssp --enable-__cxa_atexit --with-float=hard
--with-headers=/home/daniel/Build/openwrt-pi/staging_dir/toolchain-arm_arm1176jzf-s+vfp_gcc-7.4.0_musl_eabi/include
--disable-libsanitizer --enable-languages=c,c++ --enable-shared
--enable-threads
--with-slibdir=/home/daniel/Build/openwrt-pi/staging_dir/toolchain-arm_arm1176jzf-s+vfp_gcc-7.4.0_musl_eabi/lib
--enable-lto --with-libelf=/home/daniel/Build/openwrt-pi/staging_dir/host

succeeds.  So there is some issue with the SDK it seems.  (At least on
Ubuntu 18.10).


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list