From owner-freebsd-ports-bugs@freebsd.org Sun Sep 16 08:52:01 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 BBE3C109B5E1 for ; Sun, 16 Sep 2018 08:52:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 438A583ABA for ; Sun, 16 Sep 2018 08:52:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 087C2109B5DF; Sun, 16 Sep 2018 08:52:01 +0000 (UTC) Delivered-To: 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 C1DBD109B5DE for ; Sun, 16 Sep 2018 08:52:00 +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 6275D83AB6 for ; Sun, 16 Sep 2018 08:52:00 +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 B0B2C21E5A for ; Sun, 16 Sep 2018 08:51:59 +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 w8G8px7Z027665 for ; Sun, 16 Sep 2018 08:51:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8G8pxNh027664 for ports-bugs@FreeBSD.org; Sun, 16 Sep 2018 08:51:59 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 231393] lang/gprolog upgrade to 1.4.5 and fix for gcc8 run failure on FreeBSD11.2S, use clang 6.0.1. Date: Sun, 16 Sep 2018 08:51:58 +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: 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: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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.27 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2018 08:52:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231393 Bug ID: 231393 Summary: lang/gprolog upgrade to 1.4.5 and fix for gcc8 run failure on FreeBSD11.2S, use clang 6.0.1. Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dewayne@heuristicsystems.com.au Environment FreeBSD 11.2-STABLE r338612M amd64 hqdev-amd64-smp-vga 1102501 1102501 clang 6.0.1 and/or gcc8.2.0=20 Suggest that the following changes are made to the Makefile 1. Remove the need for gcc. As gprolog does NOT work with gcc8, clang 6.0.= 1 ok 2. Add the requirement to disable-regs for amd64 (already in place for i386) 3. Upgrade the version from 1.4.4 to 1.4.5 1. With gcc8, the package is correctly built, however both gprolog gplc $FILE hang indefinitely. To my pleasant surprise this port works with clang 6.0.1. 2. Without disable-regs, on amd64 we get=20 gplc -c -C '-pipe -g0 -fno-math-errno -fomit-frame-pointer -march=3Dhaswell= -O3 -fno-stack-protector -fno-strict-aliasing' machine.c receive error messages such as=20 cc: error: unknown argument: '-ffixed-r12' cc: error: unknown argument: '-ffixed-r13' cc: error: unknown argument: '-ffixed-r14' cc: error: unknown argument: '-ffixed-r15' A similar result occurs on i386 (and yes there is a conditional in the Make= file that sets this, but worth mentioning). Perhaps an additional test would be in order .if ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} > 1102500 CONFIGURE_ARGS+=3D --disable-regs .else USE_GCC=3D any .endif I spent a lot of time getting this to work, my Makefile is dotted with comm= ents otherwise I'd provide a diff. 3. After getting 1.4.4 to work again, I successfully built 1.4.5 with and without FD. However with "registers", a compile fails using both clang, re= fer to message in point 2 above; while with gcc8 gprolog builds but hangs consu= ming 100% of a cpu (I suspect a spin lock). So disable-regs is required. I don= 't have other gcc versions, though 1.4.4 did run successfully with gcc7 on FreeBSD11.1S around May 2018. An aside I also tested with cc -Ofast :) all good; but I suspect that the option has made no difference. :/ -r-xr-xr-x 1 root wheel 685248 Sep 16 18:04 /usr/local//gprolog-1.4.5/bin/gprolog # O3 -r-xr-xr-x 1 root wheel 685248 Sep 16 18:10 /usr/local//gprolog-1.4.5/bin/gprolog # Ofast and a very simple PROLOG file compiles to=20 -rwxr-xr-x 1 root wheel 751056 Sep 16 17:59 /tmp/a # O3 -rwxr-xr-x 1 root wheel 751056 Sep 16 18:11 /tmp/a # Ofast --=20 You are receiving this mail because: You are the assignee for the bug.=