Invoking a crossdev make of mosquitto (all versions) aarch64-unknown-linux-gnu-emerge mosquitto In all cases, build terminates like so c++ -I. -I.. -I../include -I../../include -DWITH_THREADING -DWITH_SOCKS -DWITH_UNIX_SOCKETS -I../deps -O2 -pipe -fomit-frame-pointer -fPIC -c mosquittopp.cpp -o mosquittopp.o c++ -shared -Wl,-soname,libmosquittopp.so.1 mosquittopp.o -o libmosquittopp.so.1 ../libmosquitto.so.1 /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../libmosquitto.so.1: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status At link, the ebuild seems to ignore the cross-compile settings and instead directly invokes the default system compiler/linker
Please include the full build.log and emerge --info.
Created attachment 713187 [details] build.log
Created attachment 713190 [details] Output of aarch64-unknown-linux-gnu-emerge --info
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91587a4954346e8c465173a85a13f470d9329fa4 commit 91587a4954346e8c465173a85a13f470d9329fa4 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-07 02:17:30 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-07 02:17:30 +0000 app-misc/mosquitto: don't call c++ directly (fixes cross-compilation) Closes: https://bugs.gentoo.org/793740 Signed-off-by: Sam James <sam@gentoo.org> app-misc/mosquitto/mosquitto-1.6.15.ebuild | 1 + app-misc/mosquitto/mosquitto-2.0.11.ebuild | 1 + app-misc/mosquitto/mosquitto-2.0.12.ebuild | 1 + 3 files changed, 3 insertions(+)