Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2021 07:00:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 259177] lang/swi-pl update from 8.2.3 to 8.4.0-1
Message-ID:  <bug-259177-7788-bjSENiHvr1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259177-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259177-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259177

--- Comment #5 from dewayne@heuristicsystems.com.au ---
(In reply to Wen Heping from comment #4)
Thank-you Wen Heping.  I had some challenges because I hadn't yet moved to =
git
and our portrevision was 1 not 3.  Regardless, on FreeBSD 12.2Stable and
building with gcc10 (gcc-10.2.0), I have=20
# swipl -g version.
Welcome to SWI-Prolog (threaded, 32 bits, version 8.4.0)
and
# swipl -g version
Welcome to SWI-Prolog (threaded, 64 bits, version 8.4.0)

We build most of our ports using gcc, because that's what most developers u=
se.

As an FYI, we take advantage of FreeBSD's implementation of ASLR on product=
ion
systems where SWI-PL 8.4.0 is now installed, we also build with O3 and LDFL=
AGS=3D
-Wl,--strip-debug -Wl,--build-id=3Dmd5 -Wl,--hash-style=3Dsysv -pie -Wl,-z,=
notext
-z notext -z relro -z now -Wl,-rpath=3D/usr/local/lib/gcc10
-L/usr/local/lib/gcc10

swi-pl passed our tests which includes "extras" like threads, clpfd, extern=
al
tables, yaml and now redis :)=20

-------------  As an FYI, ...
We attempted to build using clang, but retained the gcc CFLAGS, some of whi=
ch
don't work with clang.=20=20

On i386 with clang 10.0.1 fails with:

306/930] /usr/bin/cc  -Isrc
-I/var/ports/usr/ports/lang/swi-pl/work/swipl-8.4.0/src
...
-c /var/ports/usr/ports/lang/swi-pl/work/swipl-8.4.0/src/pl-thread.c
FAILED: src/CMakeFiles/swiplobjs.dir/pl-thread.c.o

/var/ports/usr/ports/lang/swi-pl/work/swipl-8.4.0/src/pl-thread.c:1740:31:
error: too few arguments to function call, expected 2, have 1
  if ( pthread_setname_np(name) =3D=3D 0 )
       ~~~~~~~~~~~~~~~~~~     ^
/usr/include/pthread.h:306:1: note: 'pthread_setname_np' declared here
int             pthread_setname_np(pthread_t, const char *);
^
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

--------------
Back to amd64 build using clang 10.0.1
[105/930] /usr/bin/cc -Dplugin_time_EXPORTS -Ipackages/clib
-I/var/ports/usr/ports/lang/swi-pl/work/swipl-8.4.0/src/os
...
-c /var/ports/usr/ports/lang/swi-pl/work/swipl-8.4.0/packages/clib/time.c

/var/ports/usr/ports/lang/swi-pl/work/swipl-8.4.0/packages/clib/time.c:158:=
33:
error: void function 'print_trace' should not return a value [-Wreturn-type]
static void print_trace (void) {return(0);} /* Kludge: FreeBSD doesnt have
backtrace in glibc */
                                ^     ~~~
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The following were my initial build attem=
pts where I had these
problems, which are probably of my own doing (because I hadn't moved to
portrevision=3D3

=3D=3D=3D>  Building package for swi-pl-8.4.0
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/chr-warnings-and-errors.html:No such file or
directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/debug-determinism.html:No such file or directo=
ry
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/increval.html:No such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/portraytext.html:No such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/prologdebug.html:No such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/ssu.html:No such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/string.html:No such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/tabling-monotonic.html:No such file or directo=
ry
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/Manual/terms.html:No such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/packages/mqi.html:No such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/packages/redis.html:No such file or directory
pkg-static: Unable to access file
/var/ports/usr/ports/lang/swi-pl/work/stage/us=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
r/local/lib/swipl/doc/packages/stomp.html:No such file or directory
*** Error code 1

After some minor changes, we're very happy and I'm glad that it works.=20
Thank-you.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259177-7788-bjSENiHvr1>