From owner-freebsd-ports-bugs@freebsd.org Tue Mar 27 16:02:02 2018 Return-Path: Delivered-To: freebsd-ports-bugs@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 6ACDFF64BBF for ; Tue, 27 Mar 2018 16:02:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 05CD56E477 for ; Tue, 27 Mar 2018 16:02:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 2B59A392A for ; Tue, 27 Mar 2018 16:02:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w2RG214W002216 for ; Tue, 27 Mar 2018 16:02:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w2RG21Oh002215 for freebsd-ports-bugs@FreeBSD.org; Tue, 27 Mar 2018 16:02:01 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: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 226988] lang/tclX: fails to link with lld as the system linker Date: Tue, 27 Mar 2018 16:02:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest 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: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 16:02:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226988 Bug ID: 226988 Summary: lang/tclX: fails to link with lld as the system linker Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: emaste@freebsd.org CC: mi@ALDAN.algebra.com CC: mi@ALDAN.algebra.com Flags: maintainer-feedback?(mi@ALDAN.algebra.com) I'm working on switching to LLVM's lld linker as the FreeBSD system linker (/usr/bin/ld)[1], and the port in this PR is reported as a new failure in t= he exp-run, PR 214864. An excerpt from the build log[2]: --- ld -Bshareable -x -o libtclx8.4.so tclXbsearch.o tclXchmod.o tclXcmdloop.o tclXdebug.o tclXdup.o tclXfcntl.o tclXfilecmds.o tclXfilescan.o tclXflock.o tclXfstat.o tclXgeneral.o tclXhandles.o tclXinit.o tclXkeylist.o tclXlib.o tclXlist.o tclXmath.o tclXmsgcat.o tclXprocess.o tclXprofile.o tclXselect.o tclXsignal.o tclXstring.o tclXsocket.o tclXutil.o tclXoscmds.o tclXlgets.o tclXunixCmds.o tclXunixDup.o tclXunixId.o tclXunixOS.o tclXunixSock.o -lm -L/usr/local/lib -ltclstub86 ld: error: unable to find library -lm --- Known issues in this port or in lld that affect this port: (2) lld has no built-in search paths (/lib, /usr/lib). Normally the linker = is invoked from the compiler driver, and the search paths are added by the compiler. If lld is invoked directly library search paths must be specified explicitly, with -L/lib -L/usr/lib. FreeBSD 11 and later have lld available as /usr/bin/ld.lld, so one simple option for testing is to just symlink /usr/bin/ld to ld.lld (and restore it= to ld.bfd). A port Makefile knob, LLD_UNSAFE=3Dyes, exists to indicate that a port does= not work with lld, and requires either /usr/bin/ld.bfd or binutils from ports. = This should work for the common case of ports written in C using GNU autoconf; it may have no effect on other ports. [1] https://lists.freebsd.org/pipermail/freebsd-current/2018-March/068985.h= tml [2] http://package18.nyi.freebsd.org/data/headamd64PR214864-default/2018-03-21_= 17h43m11s/logs/errors/tclX-8.4.1.log --=20 You are receiving this mail because: You are the assignee for the bug.=