From owner-freebsd-current@freebsd.org Thu May 31 07:52:28 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D548DFD0CBA for ; Thu, 31 May 2018 07:52:27 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x230.google.com (mail-wr0-x230.google.com [IPv6:2a00:1450:400c:c0c::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AD05768C3 for ; Thu, 31 May 2018 07:52:27 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x230.google.com with SMTP id o12-v6so908596wrm.12 for ; Thu, 31 May 2018 00:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:reply-to:mime-version :content-transfer-encoding; bh=XihfV26dSOeHXGJGZT+2SoC1D+wggH4w1j1Cqxuv7BI=; b=PviK5ZHzNb/abI40ziodCfZI9ayMbgem2Y7WxY9Wq3mJ3vOZa/waaIYyv0rbogi5Aq KAEcfDBDyREmJgRpf/6TbVaqmdUyNrCFaCMnuJQKIeIiNk5J/6lfDnbRVaLYajugs8MH ZCxfzccw38oHYUwwLMe0fxxfTDhgZQDXH70sOwrPgPWl4rrWHMA+clwrLDZ6EwYJvItF 4Qw7wQyqxGFVcdO3Ts3o/C7Dj4GbsjIeRokUwfu/N+c5yGI8HPadv6fG41o2K16LP+ZA 2fuzbv4AHwInp1uvcxRV2LvV62Swol873q0pvdxdk4OZhQwZmuyykpfM1FZCGVixBT1r tw8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :mime-version:content-transfer-encoding; bh=XihfV26dSOeHXGJGZT+2SoC1D+wggH4w1j1Cqxuv7BI=; b=HhfCVDKaGJzXf8Qt9zKw9jAJ25ExYfqChdD2I66FaHRkortda8LQlH60A4Wrn1vlC8 X/FvqBGSEBym3s4Ci0ZkIQZtD+YOmOcxReJ4pOxVieFETB7bhnLGJgIxVBPAC/76c1tU tQ2/dPfgRDfyl0R2AUtHgaRnjHbyPphq1zsBjwtCyoHM+s+gjcC92Gg/MObkkdpGk79O 9rXvlzJFPLM/sL+GoG3gtJbAva4T4IwsBWc847RPHCZL9uC7IAB8Q+vt8vOXJp6W6Xfh 9hAzT+Zp+8rfZDgBSU6REYqMkfEFRR/Jg0LsWxn3VLgp6hyTEvQd3lIiubH7HKyyG0/I 0Opw== X-Gm-Message-State: ALKqPwd+NJfF6+iYsWB3xdHBkT0gcpe9JIOueZIe6xKoODcSx8g7/XWj /Jm0/6Gz2Lw144Cm3RMx5YKHMQ== X-Google-Smtp-Source: ADUXVKLmGreDQy7IsEJzsUrnNZYjKjx0cWMjKWZo00x9iIjgwy4BMXOSot2qEllecTiGz32sKHHuPw== X-Received: by 2002:adf:edc6:: with SMTP id v6-v6mr3939231wro.264.1527753146164; Thu, 31 May 2018 00:52:26 -0700 (PDT) Received: from ernst.home (p5B02337A.dip0.t-ipconnect.de. [91.2.51.122]) by smtp.gmail.com with ESMTPSA id k17-v6sm558096wmc.23.2018.05.31.00.52.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 00:52:25 -0700 (PDT) Date: Thu, 31 May 2018 09:52:22 +0200 From: Gary Jennejohn To: FreeBSD Current Subject: ``make buildkernel'' fails when /usr/obj is empty Message-ID: <20180531095222.399e7a37@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2018 07:52:28 -0000 There's something totally screwy about trying to build a kernel when /usr/obj is not populated. I ran ``make clean'' in /usr/src and then ``make buildkernel''. This fails with make[2]: "/usr/src/sys/conf/kern.pre.mk" line 125: amd64 kernel requires linker ifunc support This is total BS because /usr/bin/ld --version LLD 6.0.0 (FreeBSD 326565-1200002) (compatible with GNU linkers) which is exactly what bsd.linker.mk is looking for to set ifunc. If I do this: mkdir -p /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin cp /usr/bin/ld /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin the buildkernel then succeeds. Considering that (reformatted output from make) PATH=/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin: /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin: /usr/obj/usr/src/amd64.amd64/tmp/legacy/bin: /usr/obj/usr/src/amd64.amd64/tmp/usr/sbin: /usr/obj/usr/src/amd64.amd64/tmp/usr/bin: /sbin:/bin:/usr/sbin:/usr/bin it seems like /usr/bin/ld should be found by bsd.linker.mk and no error should be reported. -- Gary Jennejohn