From owner-freebsd-ports-bugs@freebsd.org Fri Feb 28 20:43:45 2020 Return-Path: Delivered-To: freebsd-ports-bugs@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 EE9CA24514D for ; Fri, 28 Feb 2020 20:43:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48ThMj4v39z3M1H for ; Fri, 28 Feb 2020 20:43:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6ACB324514A; Fri, 28 Feb 2020 20:43:45 +0000 (UTC) Delivered-To: ports-bugs@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 6A387245149 for ; Fri, 28 Feb 2020 20:43:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48ThMj0kN4z3M0f for ; Fri, 28 Feb 2020 20:43:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0DCFC795A for ; Fri, 28 Feb 2020 20:43:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01SKhiAJ083532 for ; Fri, 28 Feb 2020 20:43:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01SKhiPI083531 for ports-bugs@FreeBSD.org; Fri, 28 Feb 2020 20:43:44 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: ports-bugs@FreeBSD.org Subject: [Bug 244508] sysutils/slurm-wlm: Fix build with clang 10.0.0 Date: Fri, 28 Feb 2020 20:43:44 +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 Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jwb@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 blocked flagtypes.name attachments.created 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.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2020 20:43:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244508 Bug ID: 244508 Summary: sysutils/slurm-wlm: Fix build with clang 10.0.0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: jwb@freebsd.org Reporter: dim@FreeBSD.org Blocks: 244251 Flags: maintainer-feedback?(jwb@freebsd.org) Assignee: jwb@freebsd.org Created attachment 212032 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D212032&action= =3Dedit Fix sysutils/slurm-wlm build with clang 10.0.0 As reported in bug 244251, with clang 10.0.0 the sysutils/slurm-wlm port fa= ils to build with: libtool: link: cc -O2 -pipe -I/wrkdirs/usr/ports/sysutils/slurm-wlm/work/slurm-19.05.5/slurm -I/usr/local/include -fstack-protector-strong -fno-strict-aliasing -D_THREAD_SAFE -pthread -ggdb3 -Wall -g -O1 -fno-strict-aliasing -fstack-protector-strong -o .libs/sh5util sh5util.o -Wl,-rpath=3D/usr/local/lib/slurm -Wl,--export-dynamic -L/usr/local/lib -L../../../../../src/api/.libs /wrkdirs/usr/ports/sysutils/slurm-wlm/work/slurm-19.05.5/src/api/.libs/libs= lurmfull.so ../.libs/libhdf5_api.a -lsysinfo -lkvm -lm -ldl -lz -lsz -lhdf5 -lhdf5_hl -pthread -Wl,-rpath -Wl,/usr/local/lib/slurm ld: error: undefined symbol: info >>> referenced by sh5util.c:210 >>> sh5util.o:(main) >>> referenced by sh5util.c:215 >>> sh5util.o:(main) >>> referenced by sh5util.c:220 >>> sh5util.o:(main) >>> referenced by sh5util.c:226 >>> sh5util.o:(main) >>> referenced by sh5util.c:653 >>> sh5util.o:(_merge_step_files) >>> referenced by sh5util.c:319 >>> sh5util.o:(_remove_empty_output) ld: error: undefined symbol: error >>> referenced by sh5util.c:230 >>> sh5util.o:(main) >>> referenced by sh5util.c:0 >>> sh5util.o:(_set_options) >>> referenced by sh5util.c:0 >>> sh5util.o:(_check_params) >>> referenced by sh5util.c:599 >>> sh5util.o:(_merge_step_files) >>> referenced by sh5util.c:705 >>> sh5util.o:(_merge_step_files) >>> referenced by sh5util.c:718 >>> sh5util.o:(_merge_step_files) >>> referenced by sh5util.c:660 >>> sh5util.o:(_merge_step_files) >>> referenced by sh5util.c:667 >>> sh5util.o:(_merge_step_files) >>> referenced by sh5util.c:1148 >>> sh5util.o:(_extract_series) >>> referenced by sh5util.c:1155 >>> sh5util.o:(_extract_series) >>> referenced 21 more times [... lots more of these...] This is because libslurmfull.so is being linked using the following version script: { global: *; local: *; }; It is ambiguous if it is meant that all the symbols should be global or loc= al, and apparently lld 10 now chooses the latter. Then of course none of the symbols such as info(), error() etc can be found. This is easily fixed by removing the "local: *" line, by patching the Makefile.in that generates the version script. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244251 [Bug 244251] [exp-run] Against projects/clang1000-import branch --=20 You are receiving this mail because: You are the assignee for the bug.=