From nobody Mon Feb 6 11:13:13 2023 X-Original-To: bugs@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 4P9Nsj5yR8z3nr5H for ; Mon, 6 Feb 2023 11:13:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P9Nsj4VH1z3nHr for ; Mon, 6 Feb 2023 11:13:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675681993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UYbN+/GclI9DVadegcbwW30a+3k7KZSBLzV/WyovSZw=; b=Vs+RBk50C/Ft0x/Vk680AJRsIAdCxUaPZi+f5Jt1n5KwQKDqKeHSMaLRiM2jGOCtgUywYd FwOqccgpTDb1GXmouF/uM0mc5kx4ZsgbvNpk/JRqWq0L5EWSvEQHl/CCl8KCnl0AK/ET6Q 8X1rYs7RqooyYH7h8HxBRO6/r3zkAHLihO0uFm1QCuYDa7BgscnG5pDNHyFZ1lu9e4IJzD cqY2Mnql6ZhJsYRm6yi1pHEAXGB7OHR/yXo1jAmphDj7TRaqNFm3SFjWMDp//+lw5C9iFR fqCAVE4ub1XsllSL2yaxCWa+UUqDxT8cUBTG0KpX6kKyiWnliGKC+O8wTal8Rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675681993; a=rsa-sha256; cv=none; b=mLyOGNq3lOwd8XWIUCAk9FV9QEqx55il/MHXR4NZ4CsWjafmzTSnYTK+qdAcBfpPYHfMfT xrqMFY+1uW4G6S9OUzmx7mLdZk6zXlX79h9qaieUppTwS+aTXJTliss9mxp3/h1igRopKX 2uEJ/nW2tDw6d2INumm8Jzy/+DMwAvmtYa6cJhG83ccXimUMwh9HOL+HaoOMhvlaSrzu2P HQOFC9R9FLTEZxoKQxM7SkCFeOvQLm0xlVZ/ZxU2cpcsPa/baOJuINKkiHKPWdG7OS2eaZ GjNJCZb/kCNnmQlSBYAAVCK55mVRgSWU9/BTsaimYKpu8Wadd2FfE9/Ct8xyvA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P9Nsj3ZprzXT5 for ; Mon, 6 Feb 2023 11:13:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 316BDDdE062690 for ; Mon, 6 Feb 2023 11:13:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 316BDDfJ062689 for bugs@FreeBSD.org; Mon, 6 Feb 2023 11:13:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269369] native-xtools builds for wrong target in releng/13.1 Date: Mon, 06 Feb 2023 11:13:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: chris@chrullrich.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269369 Bug ID: 269369 Summary: native-xtools builds for wrong target in releng/13.1 Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: chris@chrullrich.net In releng/13.1 "make native-xtools" builds a toolchain that targets the hos= t by default, instead of TARGET/TARGET_ARCH. releng/13.0 works correctly. Bisecting shows that the first commit that ends up with the wrong default target is: commit a5186406aced401de7984f8b338675da650d0e25 Author: Alex Richardson Date: Mon Sep 6 09:49:49 2021 +0100 Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain Reverting this commit as best I can did not fix the bug. Unfortunately the = base build system is far beyond my comprehension. >From releng/13.1: $ MAKEOBJDIRPREFIX=3D/usr/obj/aarch64 make -j 4 TARGET=3Darm64 TARGET_ARCH= =3Daarch64 native-xtools [...] $ /usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/usr.bin/clang/clang/= clang -v FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd13.1 Thread model: posix InstalledDir: /usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/usr.bin/clang/clang >From releng/13.0: $ MAKEOBJDIRPREFIX=3D/usr/obj/aarch64 make -j 4 TARGET=3Darm64 TARGET_ARCH= =3Daarch64 native-xtools [...] $ /usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/usr.bin/clang/clang/= clang -v FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) Target: aarch64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/obj/aarch64/usr/src/amd64.amd64/nxb/arm64.aarch64/usr.bin/clang/clang I have -j4 build logs from both. If they are needed, please let me know whe= re to put them (~43 MiB total), and whether I should recreate them without -j,= or with any additional options. The most obvious difference is that the working (13.0) build has ~3600 more lines in "stage 3: cross tools" and about as ma= ny fewer in "stage 4.2: building libraries" than the broken one. $ egrep -v "^($|#)" /etc/make.conf /etc/src.conf /etc/src-env.conf /etc/make.conf:CFLAGS=3D -O -pipe /etc/make.conf:WRKDIRPREFIX=3D /tmp/portbuild /etc/make.conf:DEPENDS_TARGET=3D package /etc/make.conf:KERNCONF=3D LOCAL /etc/make.conf:DEVELOPER=3D 1 /etc/make.conf:KRB5_HOME=3D /usr/local /etc/make.conf:.if ("${TARGET}" =3D=3D "amd64") /etc/make.conf:.endif /etc/make.conf:WITH_CCACHE_BUILD=3Dyes /etc/make.conf:WITH_BDB6_PERMITTED=3Dyes /etc/src.conf:WITH_CCACHE_BUILD=3Dtrue /etc/src.conf:CCACHE_DIR=3D/var/cache/ccache /etc/src.conf:CCACHE_UMASK=3D002 /etc/src.conf:WITHOUT_TESTS=3Dyes /etc/src.conf:WITHOUT_KERBEROS=3Dyes /etc/src.conf:WITHOUT_LIB32=3Dyes egrep: /etc/src-env.conf: No such file or directory --=20 You are receiving this mail because: You are the assignee for the bug.=