From owner-freebsd-toolchain@freebsd.org Wed Sep 4 14:55:32 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ACCA8F42E9 for ; Wed, 4 Sep 2019 14:55:32 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from mout.gmx.com (mout.gmx.com [74.208.4.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.com", Issuer "GeoTrust RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Nn1b2m49z4QNC for ; Wed, 4 Sep 2019 14:55:31 +0000 (UTC) (envelope-from sid@bsdmail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1567608927; bh=DZ/k29D6zDlvSXhWexE9Xwk+L1UHXVNtW6wN5YXE5qk=; h=X-UI-Sender-Class:From:To:Subject:Date:References; b=ghJL6S2iug9nYR1Efc6MLdrESroj3h+MSrT1e5fBZtgd96UEAUszso+wbLCUzBRP2 kDKoznxYaLuFFd4Gfw9DP+WD/TMXu6BAQZ5QNvRvIsIf41Y/391zC83Avr9BII/MBP gam9Ej1+f/G/48MEBGTIUfUOUwd3UsvDOyvJ0uK8= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 Received: from [108.70.50.7] ([108.70.50.7]) by web-mail.mail.com (3c-app-mailcom-lxa01.server.lan [10.76.45.2]) (via HTTP); Wed, 4 Sep 2019 16:50:18 +0200 MIME-Version: 1.0 Message-ID: From: Sid To: freebsd-toolchain@freebsd.org, sid@bsdmail.com Subject: Re: linker not using make.conf Content-Type: text/plain; charset=UTF-8 Date: Wed, 4 Sep 2019 16:50:18 +0200 Importance: normal Sensitivity: Normal References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1: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DxoIlr6OW41DrPWuoPVk5coWgYiIE1 KAP4+9mFPv/JKIRUuhnPUbglPB7fvG1emnOaHSJ6of8rBmE5pZI21tyF0aY= Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 46Nn1b2m49z4QNC X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mail.com header.s=dbd5af2cbaf7 header.b=ghJL6S2i; dmarc=none; spf=none (mx1.freebsd.org: domain of sid@bsdmail.com has no SPF policy when checking 74.208.4.200) smtp.mailfrom=sid@bsdmail.com X-Spamd-Result: default: False [2.10 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[mail.com:s=dbd5af2cbaf7]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[bsdmail.com]; RCVD_TLS_LAST(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[bsdmail.com]; NEURAL_SPAM_MEDIUM(0.25)[0.246,0]; NEURAL_SPAM_SHORT(0.84)[0.836,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[mail.com:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; IP_SCORE(0.00)[ip: (-0.30), ipnet: 74.208.0.0/16(4.44), asn: 8560(2.18), country: DE(-0.01)]; R_SPF_NA(0.00)[]; NEURAL_SPAM_LONG(0.91)[0.915,0]; RCVD_IN_DNSWL_LOW(-0.10)[200.4.208.74.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:8560, ipnet:74.208.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[bsdmail.com]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Sep 2019 14:55:32 -0000 > This is for FreeBSD 12.0. Older releases (since 11.2) have had similar p= roblems to this one. > I wouldn't be surprised if Stable and Current also have this problem, > because of the common past issue with this that haven't been fully reali= zed. > > Subject: linker not using make.conf > > In /etc/make.conf, I have > LD=3D /usr/local/bin/ld.lld80 > > This is not used for ports. It may be used for building the kernel and w= orld. > > clang-8: error: unable to execute command: Executable "ld" doesn't exis= t! > clang-8: error: linker command failed with exit code 1 (use -v to see i= nvocation) > *** Error code 1 > > XLD=3D /usr/local/bin/ld.lld80 being set as well also provides the same= error. XD sets it for all, but XLD is only applicable if a different comp= iler is used for ports than kernel and the base. When LD is set, XLD only = applies when it is set as well, but this suggests that XLD is not working = correctly either. > > I have to manually link /usr/bin/ld to /usr/local/bin/ld.lld80 for ports= to build correctly. This is with both make, and with portmaster. > > I built my computer without ld in the base system, and this has worked w= ell. make.conf should reference the chosen linker without having to manual= ly link it. Otherwise, LD in make.conf is not working correctly, and gives= the impression that one linker is used, when it's not. This can cause fau= lty conclusions and confusion for developers as well, who think one linker= is set, when it's not. > > Thank you