From nobody Fri Mar 22 23:34:35 2024 X-Original-To: emulation@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V1dw45zs3z5FfWL for ; Fri, 22 Mar 2024 23:34:44 +0000 (UTC) (envelope-from cracauer@cons.org) Received: from koef.zs64.net (koef.zs64.net [IPv6:2a00:14b0:4200:32e0::1e6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4V1dw40T9Gz4ScX for ; Fri, 22 Mar 2024 23:34:43 +0000 (UTC) (envelope-from cracauer@cons.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of cracauer@cons.org designates 2a00:14b0:4200:32e0::1e6 as permitted sender) smtp.mailfrom=cracauer@cons.org Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by 0ons.org (8.17.1/8.15.2) with ESMTP id 42MNYZMw012302 for ; Fri, 22 Mar 2024 23:34:35 GMT (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.17.1/8.15.2/Submit) id 42MNYZFd012300 for emulation@freebsd.org; Fri, 22 Mar 2024 19:34:35 -0400 (EDT) (envelope-from cracauer) Date: Fri, 22 Mar 2024 19:34:35 -0400 From: Martin Cracauer To: emulation@freebsd.org Subject: Problem with linux-c7-devtoolset - seem to use FreeBSD ld Message-ID: List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.12 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.82)[-0.821]; R_SPF_ALLOW(-0.20)[+ip6:2a00:14b0:4200:32e0::1e6]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:13135, ipnet:2a00:14b0::/32, country:DE]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[cracauer]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[emulation@freebsd.org]; DMARC_NA(0.00)[cons.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[emulation@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4V1dw40T9Gz4ScX If you make a fresh install of linux-c7-devtoolset right now (on a system with no /compat/linux yet) you can't make executables. It seems to invoke the FreeBSD ld. This doesn't work: % /compat/linux/opt/rh/devtoolset-11/root/usr/bin/g++ -o l l.cc /usr/local/bin/ld: /mnt/part2/compat/linux/opt/rh/devtoolset-11/root/usr/bin/../libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so: error loading plugin: Shared object "libc.so.6" not found, required by "liblto_plugin.so" collect2: error: ld returned 1 exit status % But it works if you separately invoke compiler and linker: % /compat/linux/opt/rh/devtoolset-11/root/usr/bin/g++ -c l.cc % /compat/linux/opt/rh/devtoolset-11/root/usr/bin/ld.gold -o l l.o %