From nobody Mon Aug 12 13:27:34 2024 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 4WjFgV55H4z5ScPk for ; Mon, 12 Aug 2024 13:27:34 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WjFgV2sDNz4Z2F for ; Mon, 12 Aug 2024 13:27:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723469254; a=rsa-sha256; cv=none; b=U77pGQJSIpf3YCwTzs2cJ8jNMbD/Cmrl1IQySvr+SIggGRTunHCG6qfIqKDOecp2o5jn6/ iNma4qxxkIabry1x9aMeVSO7RcCavfBnWupa9oJDiFUd9ReH0H5cawBarY1aUfpQn2F5V2 iJpFuyACC8mpKpYgvPYw7S7Ns39+upScmjSzum0Tp9iSJ8Fh98phxTjpt9yCtTRWm5EIB9 mte50xZXDeRzALKpadVPT4ptqCMRj8jWxp/KNbX4aGR9dFrIYUoQRQxpT7EwOjHI3rI/hH MkVY9Gp6RkHHHe47HMouY7PASAaoH0g2faQ84LMnJ1/N/6o3C/TqhspcA8WL8Q== 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=1723469254; 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=OdefzQRN46TzoPUu7r6Q8o2UO+zn3KDl7zCJR+792uM=; b=r0X4+Pqi8ixuPKuRt+HhWNPumhXv79+BcKbd/2Zc0qpNtGDMiLT9aAsed92VkxAVL5WSpu vQjfsclhMc+f/8zZsGw5zr8tTaDgbo9cpMgZdrYMIWSqNVkLLlnF7MsYLEngNE6JpiNhF0 lx6iRWJlFI6HsRJOQbaNVLIZCENC+XbPQmSbo43j/EI3+F0oBe5VtpLi/Kvp5nIpf55mcY UY0H1CHOAZ7fs+4P1kpp925hiCo1RqVoDHo+HlS9OTwaZicN3bnVwy+za9fS5DQxD5ccXG WacWNIHlJpdeGHzQFeCD3qZtnljQzWruO23ls36ngAiQx7+5MRgfRu92ZuwM2g== 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 4WjFgV2MdvzSRK for ; Mon, 12 Aug 2024 13:27:34 +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 47CDRYoP043691 for ; Mon, 12 Aug 2024 13:27:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47CDRYR6043689 for bugs@FreeBSD.org; Mon, 12 Aug 2024 13:27:34 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 280771] elftoolchain tools used by bootstrap regardless of LLVM_BINUTILS Date: Mon, 12 Aug 2024 13:27:34 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280771 Bug ID: 280771 Summary: elftoolchain tools used by bootstrap regardless of LLVM_BINUTILS Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org Makefile.inc1 always builds ELF Tool Chain tools for bootstrap, regardless = of the setting of WITH_/WITHOUT_LLVM_BINUTILS. I discovered this because I tri= ed to build loader_lua.efi outside of buildenv on a system with WITH_LLVM_BINU= TILS as the default, and the build failed with: $ make -C stand/efi/loader_lua/ SOURCE_DATE_EPOCH=3D1451606400 objcopy -j .peheader -j .text -j .sdata -j = .data=20 -j .dynamic -j .dynsym -j .rel.dyn -j .rela.dyn -j .reloc -j .eh_frame -j set_Xcommand_set -j set_Xlua_compile_set --output-target=3Defi-app-x86_64 loader_lua.sym loader_lua.efi objcopy: error: invalid output format: 'efi-app-x86_64' *** Error code 1 (Once this issue is addressed we'll also have to deal with llvm-objcopy's l= ack of support for efi-app-x86_64.) From Makefile.inc1: # If we're given an XAS, don't build binutils. .if ${XAS:M/*} =3D=3D "" .if ${MK_ELFTOOLCHAIN_BOOTSTRAP} !=3D "no" _elftctools=3D lib/libelftc \ lib/libpe \ usr.bin/elfctl \ usr.bin/elfdump \ usr.bin/objcopy \ usr.bin/nm \ usr.bin/size \ usr.bin/strings # These are not required by the build, but can be useful for developers who # cross-build on a FreeBSD 10 host: _elftctools+=3D usr.bin/addr2line .endif .elif ${TARGET_ARCH} !=3D ${MACHINE_ARCH} && ${MK_ELFTOOLCHAIN_BOOTSTRAP} != =3D "no" # If cross-building with an external binutils we still need to build strip = for # the target (for at least crunchide). _elftctools=3D lib/libelftc \ lib/libpe \ usr.bin/elfctl \ usr.bin/elfdump \ usr.bin/objcopy .endif --=20 You are receiving this mail because: You are the assignee for the bug.=