From nobody Mon Mar 25 10:27:21 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 4V38JH07jMz5Dbm6 for ; Mon, 25 Mar 2024 10:27:27 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V38JG6l1Cz4sDY; Mon, 25 Mar 2024 10:27:26 +0000 (UTC) (envelope-from tijl@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711362446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KAAQXyAOTri4zAXrHfURjxqFhg2hG0W2V9Pv/UgPLb8=; b=Rb4TrOI6nm6QKN6O++oxUUEawRMVq2Qlby7t3rdRr+QTJaZRSedSfPaAPm9t2FrWEPbur6 UuCoxNBaGONS0LX0eD7XsfoUkk8U1ahwfTYCdZWsEudnCbLWGvxLQoU/MJzk0LaXvXpezN uA1uEwHiqhisEYX6aFqe8pHYc9OEBD44h0URZhSl6SJYzcrDreH7kKIcUw9q1xbPfyCTQB IMPGJ4ivzDXM6Pe59YWq/rSLwyPHsvIo3bx7iFRbddFcGn54VdF/c5V2jNmNhys0DvIHEe ZRlSb9Um2iI1do3lmqqo7EoYbiL4nr9lJpkN8eRgvrjghO6cmP+IjIsju9GwhQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711362446; a=rsa-sha256; cv=none; b=bGaVSyHcBa5Bi8PzllumGSZkv+WbmR23uLqymTpsgBzL/5bRSBbp9myRqsWEVVlMrvg2ig 77+d/q/a5/gVbfIWAXwvsjGsN1uEMOjkemlQ8AEizhm6ge50dGBGOISqeucHDZmNumNJsu VdUfV46VPMj/adGu16UVIDWZPx3stuFr1HGak1EAUzrSfqSor9gwbcBacNFD2GZzrh9c2i IHdSpXrBaqSRzhiKeePkQLcKva7oHic9pwDmYi7d0vAHfSVn0Mndc6PA1KCx5bDLPrIkow Ilf+gpnnaOdOl144CrrBiYIlSMVjOqTsZXARhFTXWIi9XVu6hWwgjRbmXqOp2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711362446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KAAQXyAOTri4zAXrHfURjxqFhg2hG0W2V9Pv/UgPLb8=; b=s6Bf9t1uTm00n6DAiwZ5VsGp4hKocWNUIj1GeaOHlpj8qdm1yf/SLNt27DvxbU0RiGd47F +zQxCjboV7p+WL6+fpFT2X6sweGD7bEiWgD5XhK4b6mR6jUg6U9hDzwDu3tXs4SxXrQbmJ WoPwUNCMiwi8gYHxfLJKBqy6oB3JjLOleia3AlXs3+i6IevgX3xnqGScSGIs3VyDWhIOSH 8za4kdutGhe++geTn0jlpwNI6Cf4+1nuxKQ0ymdUjxBZzsj/3c7IQYOzJPQU5Pr4ER00hK +iSiyCh2O+PbZgiZRWNMgaBEGlCJ8IxIYcxHkbPJz/DY5s8tzIrCu4Q+e/OKgA== Received: from hal.tijl.coosemans.org (unknown [IPv6:2a02:a03f:994e:2800:b9b1:10c2:acfa:7c40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: tijl) by smtp.freebsd.org (Postfix) with ESMTPSA id 4V38JG3T04zPmN; Mon, 25 Mar 2024 10:27:26 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Date: Mon, 25 Mar 2024 11:27:21 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Martin Cracauer Cc: emulation@freebsd.org Subject: Re: Problem with linux-c7-devtoolset - seem to use FreeBSD ld Message-ID: <20240325112721.26bd91d2@hal.tijl.coosemans.org> In-Reply-To: References: 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-Transfer-Encoding: 7bit On Fri, 22 Mar 2024 19:34:35 -0400 Martin Cracauer wrote: > 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 > % > Probably something to do with your PATH variable. Try this: env PATH=/opt/rh/devtoolset-11/root/usr/bin:/usr/bin /compat/linux/opt/rh/devtoolset-11/root/usr/bin/g++ -o l l.cc