From nobody Sat Jan 27 17:08:49 2024 X-Original-To: freebsd-current@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 4TMgyF1x5Lz58ZCT for ; Sat, 27 Jan 2024 17:08:53 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4TMgyD1LCXz4cFr for ; Sat, 27 Jan 2024 17:08:52 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=troutmask.apl.washington.edu header.s=troutmask header.b=PW0dJPeg; dmarc=fail reason="No valid SPF" header.from=washington.edu (policy=none); spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.17.1/8.17.1) with ESMTP id 40RH8n6f066008 for ; Sat, 27 Jan 2024 09:08:49 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) DKIM-Filter: OpenDKIM Filter v2.10.3 troutmask.apl.washington.edu 40RH8n6f066008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=troutmask.apl.washington.edu; s=troutmask; t=1706375329; bh=aR0rgr3Ac8jIuV9f6FBBAaU0d9eCGENcwIGTnN4n1pc=; h=Date:From:To:Subject:Reply-To:From; b=PW0dJPegPsvcUAiUppvgzvlCtYNwE1WnScHxOozn4TSsnq9i7NPjPWexuxp1knrMZ K135DZUpWMXXPTLINfPWlN8EIzF9gtjBMfdi3YKVn+U/8XGro66LVnaAJIulEqVuaF GXXRJfujfdvVS9eSa1hGBDLndgIWStfpNEJOLMUMJkcCeIP1ALBztWUZeyNFXuFgJO 1kDYP/bR7R5NC63F+T2lW4aZ70jI1oIfRD+w6jFmD8oQqLSkuP93yQVWop6gq6oeaG d3k3i9/xzMShizlWsrEJ3fw2KL3jqU/JdFzMiv8/Prb/OwYm0ugMIdEEP+ZMwQ7G2L u0R//gyD2Ldag== Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.17.1/8.17.1/Submit) id 40RH8nwn066007 for freebsd-current@freebsd.org; Sat, 27 Jan 2024 09:08:49 -0800 (PST) (envelope-from sgk) Date: Sat, 27 Jan 2024 09:08:49 -0800 From: Steve Kargl To: freebsd-current@freebsd.org Subject: llvm ld vs binutils ld Message-ID: Reply-To: sgk@troutmask.apl.washington.edu List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.16 / 15.00]; NEURAL_SPAM_LONG(1.00)[0.998]; NEURAL_SPAM_MEDIUM(1.00)[0.995]; NEURAL_SPAM_SHORT(0.17)[0.166]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF,none]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; R_DKIM_PERMFAIL(0.00)[troutmask.apl.washington.edu:s=troutmask]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DKIM_TRACE(0.00)[troutmask.apl.washington.edu:~] X-Rspamd-Queue-Id: 4TMgyD1LCXz4cFr In an attempt to cleanup a bit of src/lib/msun, I ran into a small issue that I cannot explain at the moment. If I have /usr/bin/ld in my path prior to /usr/local/bin/ld everything works % which ld /usr/bin/ld % make clean && make cleandepend % make and I have a libm.so.5. But if /usr/local/bin/ld is found, I see % cd msun % make clean && make cleandepend % make ... ld: error: version script assignment of 'FBSD_1.0' to symbol 'fabs' \ failed: symbol not defined cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make: stopped in /usr/src/lib/msun % grep fabs /usr/src/lib/msun/Symbol.map fabs; fabsf; fabsl; But, if one looks in msun/Makefile, one see # FreeBSD's C library supplies these functions: #COMMON_SRCS+= s_fabs.c s_frexp.c s_isnan.c s_ldexp.c s_modf.c so fabs is not built with libm. % nm --dynamic /lib/libc.so.7 | grep fabs 00000000000ba600 T fabs % nm --dynamic /lib/libm.so.5 | grep fabs 000000000001fa90 T fabsf 00000000000252e0 T fabsl Is this a known issue? Should fabs be removed from Symbol.map? -- Steve