bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libctf/28545] cross compile incorrectly using host libraries in ins


From: bugs.sourceware at johnthomson dot fastmail.com.au
Subject: [Bug libctf/28545] cross compile incorrectly using host libraries in install relink
Date: Sat, 06 Nov 2021 21:10:16 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28545

--- Comment #8 from John <bugs.sourceware at johnthomson dot fastmail.com.au> 
---
./configure --target=arm-openwrt-linux --host=arm-openwrt-linux
--build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix=""
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share
--localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls 
--host=arm-openwrt-linux-muslgnueabi --target=arm-openwrt-linux-muslgnueabi
--enable-shared --enable-install-libiberty --enable-install-libbfd
--enable-install-libctf

There are many FLAGS set as well.
On line 330 (or search binutils-2.37.tar.xz) here:
https://sourceware.org/bugzilla/attachment.cgi?id=13762

I do see the OpenWrt package is:
- trying to do an autoreconf with some custom options and failing before
configure
- replaces config.guess and config.sub
removing both of these results in the same
/usr/lib/libiberty.a: error adding symbols: file format not recognized

Minimum example:
curl -O
https://downloads.openwrt.org/snapshots/targets/ipq40xx/mikrotik/openwrt-sdk-ipq40xx-mikrotik_gcc-11.2.0_musl_eabi.Linux-x86_64.tar.xz

tar -xf openwrt-sdk-ipq40xx-mikrotik_gcc-11.2.0_musl_eabi.Linux-x86_64.tar.xz
cd openwrt-sdk-ipq40xx-mikrotik_gcc-11.2.0_musl_eabi.Linux-x86_64

echo 'src-git base https://git.openwrt.org/openwrt/openwrt.git' >
feeds.conf.default
./scripts/feeds update -a
./scripts/feeds install binutils

cat <<EOF>.config
# CONFIG_ALL is not set
# CONFIG_ALL_KMODS is not set
# CONFIG_ALL_NONSHARED is not set
# CONFIG_SIGNED_PACKAGES is not set
CONFIG_PACKAGE_binutils=m
EOF

make defconfig
make -j1 V=s package/binutils/compile 2>&1 | tee binutils.log

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]