From nobody Mon Apr 17 11:56:55 2023 X-Original-To: ports-bugs@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 4Q0QWq2RQzz45nFn for ; Mon, 17 Apr 2023 11:56:55 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q0QWq06Kpz3x95 for ; Mon, 17 Apr 2023 11:56:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681732615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KVfMmKcbLM+hATdAd7mkr6scRXPLdswucJqTdWuvJ9s=; b=O4quWiyh/qdrx6IqyTBWG9MRAS6IKDTXcvvp1tD7xozeryjVCN+oFra1ihwqRSb9yUH1cJ huSEeBuIejtJYXrmPkQPSKx6mnSYNIWGIGv3rHm8IvkItn3AMzloHlEi6Ke5tkOVegU3X+ BHrhKW7MHKzjkojo3/KSol4gFFdmQ+QwVGxV6fItJmBlWUqomh2wZvyamfiLFLEu4Uvcqt NFrI6yCIOxppUi/bO2Z/nU6RXlooP+ketJwyH+xpvLFKRbXJvxl2wxgesiL7pA3TCWk1BG eaV/COOfsV6/i7l6WnVaV+qmGnGoq7+24pu3Ib0+VSoSlk3KUMrsSuWp2B6GWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681732615; a=rsa-sha256; cv=none; b=rdsdjZILY7oMxCznRwoyZRGJxs06tPhiCEks/pDIvRlulhf/Ecf3x1lb0UJByN1X8Sb+hG SjHUSzBUWvPCH6A5B1WtvKZwy59gL0aKTvG1k5lrEFCruVtj19KDWF6MBnnb14/VBBm4SY c2McNhyd0gGwz49fvyO/9TxKscpx6HZyu7CU6MKIX7Qj9NR8Ri8O8TOdH8kdV0o4x6sgjL +qOUrXgHPMWh64EG0dRFPS/WW1uo6h2aM8Rkk5pH4tG4azctQ6nkkC0rTWIEXR7QwlZFRW k/bCzfvbQrCBdE0RvF4LihgqkwACQ0aPjBeDDSCfc5udaAv48dGMPOwNiDNxEQ== 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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q0QWp6DGWzShG for ; Mon, 17 Apr 2023 11:56:54 +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 33HBusbq037614 for ; Mon, 17 Apr 2023 11:56:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33HBusak037613 for ports-bugs@FreeBSD.org; Mon, 17 Apr 2023 11:56:54 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 270886] lang/swi-pl update to 9.0.4 requires -lstdthreads Date: Mon, 17 Apr 2023 11:56:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: dewayne@heuristicsystems.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270886 --- Comment #2 from dewayne@heuristicsystems.com.au --- (In reply to Wen Heping from comment #1) Hi Wen. I raised this with the developers, though it seems that this is a FreeBSD issue, you can find the discussion here https://swi-prolog.discourse.group/t/freebsd-installation/6467 I have a very custom swi-pl/Makefile so providing a patch will only make li= fe complicated. For 9.0.4 I have added to my Makefile DISTVERSION=3D 9.0.4 LDFLAGS+=3D -lstdthreads And to pkg-plist diff --git a/local/swi-pl/pkg-plist b/local/swi-pl/pkg-plist index 28f65c168e..b5c04bf765 100644 --- a/local/swi-pl/pkg-plist +++ b/local/swi-pl/pkg-plist @@ -96,8 +96,8 @@ lib/swipl/lib/%%ARCH%%-%%OS%%/isub.so lib/swipl/lib/%%ARCH%%-%%OS%%/json.so lib/swipl/lib/%%ARCH%%-%%OS%%/libedit4pl.so lib/swipl/lib/%%ARCH%%-%%OS%%/libswipl.so -lib/swipl/lib/%%ARCH%%-%%OS%%/libswipl.so.8 -lib/swipl/lib/%%ARCH%%-%%OS%%/libswipl.so.8.4.3 +lib/swipl/lib/%%ARCH%%-%%OS%%/libswipl.so.9 +lib/swipl/lib/%%ARCH%%-%%OS%%/libswipl.so.9.0.4 lib/swipl/lib/%%ARCH%%-%%OS%%/md54pl.so lib/swipl/lib/%%ARCH%%-%%OS%%/memfile.so lib/swipl/lib/%%ARCH%%-%%OS%%/ntriples.so and of course a: make makesum This should get a basic build working. I've found that swi-pl is sensitive to some of the *FLAGS that I use, so I = have also modified the Makefile to force use of a two argument pthread_setname_n= p in src/pl-thread.c by adding to=20 post-patch: @${REINPLACE_CMD} -e '/HAVE_PTHREAD_SETNAME_NP_WITH_TID/s/ifdef HAVE_PTHREAD_SETNAME_NP_WITH_TID/if 1/g'\ ${WRKSRC}/src/pl-thread.c I'd spent a lot of time trying to find the cause but to no avail. You may wish to also use lto and O3 to build swipl, so I have added WITH_LTO=3D yes C_CFLAGS=3D -O3 and to post-patch: @${REINPLACE_CMD} -e '/CMAKE_C_FLAGS_RELEASE/s|O2|O3|1'\ ${WRKSRC}/cmake/BuildType.cmake That's the straight forward changes which should help with the update from 8.4.1 to 9.0.4. I only use the cli version of swipl and without any GPL additions. I trust that this is useful? :) --=20 You are receiving this mail because: You are the assignee for the bug.=