[package - main-i386-default][games/tome4] Failed for tome4-1.7.4_3 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Mon, 20 Mar 2023 14:44:49 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     pkubaj@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy17/data/main-i386-default/p09c207a3eecc_s191115cfb6/logs/tome4-1.7.4_3.log
Build URL:      https://pkg-status.freebsd.org/beefy17/build.html?mastername=main-i386-default&build=p09c207a3eecc_s191115cfb6
Log:

=>> Building games/tome4
build started at Mon Mar 20 14:41:33 UTC 2023
port directory: /usr/ports/games/tome4
package name: tome4-1.7.4_3
building for: FreeBSD main-i386-default-job-09 14.0-CURRENT FreeBSD 14.0-CURRENT 1400083 i386
maintained by: pkubaj@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-23-ga7f8d188
Host OSVERSION: 1400073
Jail OSVERSION: 1400083
Job Id: 09




!!! Jail is newer than host. (Jail: 1400083, Host: 1400073) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
UNAME_p=i386
UNAME_m=i386
OSVERSION=1400083
UNAME_v=FreeBSD 14.0-CURRENT 1400083
UNAME_r=14.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-23-ga7f8d188
MASTERMNT=/usr/local/poudriere/data/.m/main-i386-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/main-i386-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=main-i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/main-i386-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
pkubaj@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake SDL2_CONFIG=/usr/local/bin/sdl2-config XDG_DATA_HOME=/wrkdirs/usr/ports/games/tome4/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/tome4/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/games/tome4/work/.cache  HOME=/wrkdirs/usr/ports/games/tome4/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/games/tome4/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/tome4/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
SDL2_CONFIG=/usr/local/bin/sdl2-config XDG_DATA_HOME=/wrkdirs/usr/ports/games/tome4/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/tome4/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/games/tome4/work/.cache  HOME=/wrkdirs/usr/ports/games/tome4/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/games/tome4/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/tome4/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong -Wl,-znotext" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 5
 55"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PORTVERSION=1.7.4 OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/tome4"  EXAMPLESDIR="share/examples/tome4"  DATADIR="share/tome4"  WWWDIR="www/tome4"  ETCDIR="etc/tome4"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/tome4 DOCSDIR=/usr/local/share/doc/tome4 EXAMPLESDIR=/usr/local/share/examples/tome4  WWWDIR=/usr/local/www/tome4 ETCDIR=/usr/local/etc/tome4
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: i386-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: i386-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-m" "elf_i386_fbsd" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_53255a77=yes
CC_OUTPUT_921dbbb2_911cfe02=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
CC_OUTPUT_921dbbb2_af59ad06=yes
CC_OUTPUT_921dbbb2_a15f3fcf=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: i386-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=i386
OPSYS=FreeBSD
_OSRELEASE=14.0-CURRENT
OSREL=14.0
OSVERSION=1400083
PYTHONBASE=/usr/local
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  524288
stack size              (kbytes, -s)  65536
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License GPLv3+ accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   tome4-1.7.4_3 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.19.1_1.pkg
[main-i386-default-job-09] Installing pkg-1.19.1_1...
[main-i386-default-job-09] Extracting pkg-1.19.1_1: .......... done
===>   tome4-1.7.4_3 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of tome4-1.7.4_3
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv3+ accepted by the user
===> Fetching all distfiles required by tome4-1.7.4_3 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv3+ accepted by the user
===> Fetching all distfiles required by tome4-1.7.4_3 for building
=> SHA256 Checksum OK for t-engine4-src-1.7.4.tar.bz2.
=> SHA256 Checksum OK for tome4.png.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License GPLv3+ accepted by the user
===> Fetching all distfiles required by tome4-1.7.4_3 for building
===>  Extracting for tome4-1.7.4_3
=> SHA256 Checksum OK for t-engine4-src-1.7.4.tar.bz2.
=> SHA256 Checksum OK for tome4.png.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for tome4-1.7.4_3
===>  Applying FreeBSD patches for tome4-1.7.4_3 from /usr/ports/games/tome4/files
<snip>
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~      ^
./src/bspatch.c:127:40: warning: data argument not used by format string [-Wformat-extra-args]
                returnerr(1, "fopen(%s)", patchfile, 0);
                             ~~~~~~~~~~~             ^
./src/bspatch.c:57:55: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~      ^
./src/bspatch.c:132:56: warning: data argument not used by format string [-Wformat-extra-args]
                returnerr(1, "BZ2_bzReadOpen, bz2err = %d", ebz2err, 0);
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~           ^
./src/bspatch.c:57:55: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~      ^
./src/bspatch.c:139:45: warning: data argument not used by format string [-Wformat-extra-args]
                (close(fd)==-1)) returnerr(1,"%s",infile, 0);
                                             ~~~~         ^
./src/bspatch.c:57:55: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~      ^
./src/bspatch.c:140:69: warning: data argument not used by format string [-Wformat-extra-args]
        if((new=malloc(newsize+1))==NULL) returnerr(1,"not enough memory", 0, 0);
                                                      ~~~~~~~~~~~~~~~~~~~  ^
./src/bspatch.c:57:51: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~  ^
./src/bspatch.c:149:35: warning: data argument not used by format string [-Wformat-extra-args]
                                returnerr(1, "Corrupt patch", 0, 0);
                                             ~~~~~~~~~~~~~~~  ^
./src/bspatch.c:57:51: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~  ^
./src/bspatch.c:155:34: warning: data argument not used by format string [-Wformat-extra-args]
                        returnerr(1, "Corrupt patch", 0, 0);
                                     ~~~~~~~~~~~~~~~  ^
./src/bspatch.c:57:51: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~  ^
./src/bspatch.c:161:34: warning: data argument not used by format string [-Wformat-extra-args]
                        returnerr(1, "Corrupt patch", 0, 0);
                                     ~~~~~~~~~~~~~~~  ^
./src/bspatch.c:57:51: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~  ^
./src/bspatch.c:174:34: warning: data argument not used by format string [-Wformat-extra-args]
                        returnerr(1, "Corrupt patch", 0, 0);
                                     ~~~~~~~~~~~~~~~  ^
./src/bspatch.c:57:51: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~  ^
./src/bspatch.c:180:34: warning: data argument not used by format string [-Wformat-extra-args]
                        returnerr(1, "Corrupt patch", 0, 0);
                                     ~~~~~~~~~~~~~~~  ^
./src/bspatch.c:57:51: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~  ^
./src/bspatch.c:192:41: warning: data argument not used by format string [-Wformat-extra-args]
                returnerr(1, "fclose(%s)", patchfile, 0);
                             ~~~~~~~~~~~~             ^
./src/bspatch.c:57:55: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~      ^
./src/bspatch.c:197:29: warning: data argument not used by format string [-Wformat-extra-args]
                returnerr(1,"%s",outfile, 0);
                            ~~~~          ^
./src/bspatch.c:57:55: note: expanded from macro 'returnerr'
#define returnerr(ret, str, f1, f2) { printf(str, f1, f2); perror("\nError in bspatch\n"); return (ret); }
                                             ~~~      ^
21 warnings generated.
dmnd_square.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/dmnd_square.o" -MF ../obj/Release/TEngine/dmnd_square.d -c "../src/dmnd_square.c"
In file included from ../src/dmnd_square.c:36:
./src/SFMT.h:62:10: warning: inline function 'gen_rand32' is not defined [-Wundefined-inline]
uint32_t gen_rand32(void);
         ^
./src/SFMT.h:93:21: note: used here
    return to_real1(gen_rand32());
                    ^
./src/SFMT.h:66:10: warning: inline function 'gen_rand64' is not defined [-Wundefined-inline]
uint64_t gen_rand64(void);
         ^
./src/SFMT.h:138:21: note: used here
    return to_res53(gen_rand64());
                    ^
2 warnings generated.
getself.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/getself.o" -MF ../obj/Release/TEngine/getself.d -c "../src/getself.c"
fov.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/fov.o" -MF ../obj/Release/TEngine/fov.d -c "../src/fov.c"
In file included from ../src/fov.c:32:
./src/SFMT.h:62:10: warning: inline function 'gen_rand32' is not defined [-Wundefined-inline]
uint32_t gen_rand32(void);
         ^
./src/SFMT.h:93:21: note: used here
    return to_real1(gen_rand32());
                    ^
./src/SFMT.h:66:10: warning: inline function 'gen_rand64' is not defined [-Wundefined-inline]
uint64_t gen_rand64(void);
         ^
./src/SFMT.h:138:21: note: used here
    return to_res53(gen_rand64());
                    ^
2 warnings generated.
map.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/map.o" -MF ../obj/Release/TEngine/map.d -c "../src/map.c"
./src/map.c:1685:26: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                                float where = (0.5 - fabsf(m->move_step / (float)m->move_max - 0.5)) * 2;
                                                     ^
./src/map.c:1685:26: note: use function 'fabs' instead
                                float where = (0.5 - fabsf(m->move_step / (float)m->move_max - 0.5)) * 2;
                                                     ^~~~~
                                                     fabs
1 warning generated.
profile.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/profile.o" -MF ../obj/Release/TEngine/profile.d -c "../src/profile.c"
struct.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/struct.o" -MF ../obj/Release/TEngine/struct.d -c "../src/struct.c"
web.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/web.o" -MF ../obj/Release/TEngine/web.d -c "../src/web.c"
./src/web.c:593:3: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                execv(get_self_executable(g_argc, g_argv), newargs);
                ^
1 warning generated.
main.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/main.o" -MF ../obj/Release/TEngine/main.d -c "../src/main.c"
./src/main.c:779:6: warning: address of function 'te4_web_update' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (te4_web_update) te4_web_update(L);
        ~~  ^~~~~~~~~~~~~~
./src/main.c:779:6: note: prefix with the address-of operator to silence this warning
        if (te4_web_update) te4_web_update(L);
            ^
            &
./src/main.c:1313:7: warning: address of function 'te4_web_init' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (te4_web_init) te4_web_init(L);
                ~~  ^~~~~~~~~~~~
./src/main.c:1313:7: note: prefix with the address-of operator to silence this warning
                if (te4_web_init) te4_web_init(L);
                    ^
                    &
./src/main.c:1535:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                if (gamepad = SDL_JoystickOpen(0)) {
                    ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./src/main.c:1535:15: note: place parentheses around the assignment to silence this warning
                if (gamepad = SDL_JoystickOpen(0)) {
                            ^
                    (                            )
./src/main.c:1535:15: note: use '==' to turn this assignment into an equality comparison
                if (gamepad = SDL_JoystickOpen(0)) {
                            ^
                            ==
In file included from ../src/main.c:32:
./src/SFMT.h:62:10: warning: inline function 'gen_rand32' is not defined [-Wundefined-inline]
uint32_t gen_rand32(void);
         ^
./src/SFMT.h:93:21: note: used here
    return to_real1(gen_rand32());
                    ^
./src/SFMT.h:66:10: warning: inline function 'gen_rand64' is not defined [-Wundefined-inline]
uint64_t gen_rand64(void);
         ^
./src/SFMT.h:138:21: note: used here
    return to_res53(gen_rand64());
                    ^
5 warnings generated.
physfs.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/physfs.o" -MF ../obj/Release/TEngine/physfs.d -c "../src/physfs.c"
wait.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/wait.o" -MF ../obj/Release/TEngine/wait.d -c "../src/wait.c"
./src/wait.c:141:71: warning: format specifies type 'int' but the argument has type 'float' [-Wformat]
                printf("Make wait background texture %d : %dx%d (%d, %d)\n", bkg_t, w, h, bkg_realw, bkg_realh);
                                                          ~~                        ^
                                                          %f
./src/wait.c:141:74: warning: format specifies type 'int' but the argument has type 'float' [-Wformat]
                printf("Make wait background texture %d : %dx%d (%d, %d)\n", bkg_t, w, h, bkg_realw, bkg_realh);
                                                             ~~                        ^
                                                             %f
2 warnings generated.
discord-te4.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/discord-te4.o" -MF ../obj/Release/TEngine/discord-te4.d -c "../src/discord-te4.c"
music.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/music.o" -MF ../obj/Release/TEngine/music.d -c "../src/music.c"
display_sdl.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/display_sdl.o" -MF ../obj/Release/TEngine/display_sdl.d -c "../src/display_sdl.c"
sdnoise1234.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/sdnoise1234.o" -MF ../obj/Release/TEngine/sdnoise1234.d -c "../src/sdnoise1234.c"
shaders.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -D_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF' -DTENGINE_HOME_PATH='".t-engine"' -DTE4CORE_VERSION=17 -DSELFEXE_BSD -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/luajit2/src -I../src/luajit2/dynasm -I/usr/local/include  -pthread -O3  -o "../obj/Release/TEngine/shaders.o" -MF ../obj/Release/TEngine/shaders.d -c "../src/shaders.c"
Linking TEngine
cc -o ../bin/Release/t-engine ../obj/Release/TEngine/noise.o ../obj/Release/TEngine/core_lua.o ../obj/Release/TEngine/SFMT.o ../obj/Release/TEngine/serial.o ../obj/Release/TEngine/particles.o ../obj/Release/TEngine/glew.o ../obj/Release/TEngine/auxiliar.o ../obj/Release/TEngine/bspatch.o ../obj/Release/TEngine/dmnd_square.o ../obj/Release/TEngine/getself.o ../obj/Release/TEngine/fov.o ../obj/Release/TEngine/map.o ../obj/Release/TEngine/profile.o ../obj/Release/TEngine/struct.o ../obj/Release/TEngine/web.o ../obj/Release/TEngine/main.o ../obj/Release/TEngine/physfs.o ../obj/Release/TEngine/wait.o ../obj/Release/TEngine/discord-te4.o ../obj/Release/TEngine/music.o ../obj/Release/TEngine/display_sdl.o ../obj/Release/TEngine/sdnoise1234.o ../obj/Release/TEngine/shaders.o     -fstack-protector-strong -Wl,-znotext -L../bin/Release -L/usr/local/lib -L. -s ../bin/Release/libphysfs.a ../bin/Release/liblua.a ../bin/Release/libfov.a ../bin/Release/libluasocket.a ../bin/Release/libluaprofiler.a 
 ../bin/Release/liblpeg.a ../bin/Release/libtcodimport.a ../bin/Release/liblxp.a ../bin/Release/libexpatstatic.a ../bin/Release/libluamd5.a ../bin/Release/libluazlib.a ../bin/Release/libluabitop.a ../bin/Release/libte4-bzip.a ../bin/Release/libte4-wfc.a ../bin/Release/libutf8proc.a -lm -lstdc++ -lSDL2 -lSDL2_ttf -lSDL2_image -lpng -lopenal -lvorbisfile -lGL -lGLU -pthread
ld: error: ../obj/Release/TEngine/glew.o:(function glewContextInit: .text+0xb9bf): internal linker error: wrote incorrect addend value 0xF6F1378 instead of 0x0 for dynamic relocation R_386_32 at offset 0x4E7C0F against symbol __gxx_personality_v0
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace.

cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [TEngine.make:112: ../bin/Release/t-engine] Error 1
gmake[1]: *** [Makefile:17: TEngine] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/games/tome4/work/t-engine4-src-1.7.4'
*** Error code 1

Stop.
make: stopped in /usr/ports/games/tome4