From owner-freebsd-toolchain@freebsd.org Tue Sep 3 21:28:28 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 63474D8B8B for ; Tue, 3 Sep 2019 21:28:28 +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 46NKnR3KCqz4Pdb for ; Tue, 3 Sep 2019 21:28:27 +0000 (UTC) (envelope-from sid@bsdmail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1567546101; bh=5E1kAOsaIbUgefOdAW10s1V1ogyYSEJs0TDpvUGX02E=; h=X-UI-Sender-Class:From:To:Subject:Date; b=376Q36uKpUp1lG3+qvfZueqCq4OuUL8XwcU4G3l2X8iRdObwgFEuvx8oUOP/9c49P yEo++zaV418RppAlh7nqINbpQSYTg0Md30fS4S8ubmrJnZ+e3xL+MpE5XgUxBC/tEt G4PU2e6Zgf/aLRLaJO7tjzbyRCa38R59POCmSUxY= 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-lxa02.server.lan [10.76.45.3]) (via HTTP); Tue, 3 Sep 2019 23:04:08 +0200 MIME-Version: 1.0 Message-ID: From: Sid To: freebsd-toolchain@freebsd.org Subject: linker not using make.conf Content-Type: text/plain; charset=UTF-8 Date: Tue, 3 Sep 2019 23:04:08 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:qA5J3n10MxfoHo66LRQcZqr9zNvRJHgPyW4eei6D8v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9A51XS+3lqn2Puey93XGncwjgNyP3ViYP57WoEtw= X-Rspamd-Queue-Id: 46NKnR3KCqz4Pdb X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mail.com header.s=dbd5af2cbaf7 header.b=376Q36uK; 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.82 / 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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[bsdmail.com]; NEURAL_SPAM_MEDIUM(0.94)[0.935,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_SHORT(0.82)[0.822,0]; DKIM_TRACE(0.00)[mail.com:+]; NEURAL_SPAM_LONG(0.97)[0.965,0]; HAS_X_PRIO_THREE(0.00)[3]; IP_SCORE(0.00)[ip: (-0.31), ipnet: 74.208.0.0/16(4.44), asn: 8560(2.18), country: DE(-0.01)]; R_SPF_NA(0.00)[]; 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: Tue, 03 Sep 2019 21:28:28 -0000 In /etc/make.conf, I have LD= /usr/local/bin/ld.lld80 This is not used for ports. It may be used for building the kernel and world. clang-8: error: unable to execute command: Executable "ld" doesn't exist! clang-8: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 XLD= /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 compiler 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 well. make.conf should reference the chosen linker without having to manually 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 faulty conclusions and confusion for developers as well, who think one linker is set, when it's not. Thank you