Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2018 06:45:00 GMT
From:      pkg-fallout@FreeBSD.org
To:        amdmi3@FreeBSD.org
Cc:        pkg-fallout@FreeBSD.org
Subject:   [package - head-amd64-default][games/flyhard] Failed for flyhard-0.42_14 in build
Message-ID:  <201801210645.w0L6j0Qn044439@beefy12.nyi.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:     amdmi3@FreeBSD.org
Last committer: jbeich@FreeBSD.org
Ident:          $FreeBSD: head/games/flyhard/Makefile 459315 2018-01-18 04:11:02Z jbeich $
Log URL:        http://beefy12.nyi.freebsd.org/data/head-amd64-default/p459491_s328183/logs/flyhard-0.42_14.log
Build URL:      http://beefy12.nyi.freebsd.org/build.html?mastername=head-amd64-default&build=p459491_s328183
Log:

=>> Building games/flyhard
build started at Sun Jan 21 06:44:42 UTC 2018
port directory: /usr/ports/games/flyhard
package name: flyhard-0.42_14
building for: FreeBSD head-amd64-default-job-21 12.0-CURRENT FreeBSD 12.0-CURRENT 1200056 amd64
maintained by: amdmi3@FreeBSD.org
Makefile ident:      $FreeBSD: head/games/flyhard/Makefile 459315 2018-01-18 04:11:02Z jbeich $
Poudriere version: 3.2.4
Host OSVERSION: 1200054
Jail OSVERSION: 1200056
Job Id: 21




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



---Begin Environment---
SHELL=/bin/csh
OSVERSION=1200056
UNAME_v=FreeBSD 12.0-CURRENT 1200056
UNAME_r=12.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
SAVED_TERM=
MASTERMNT=/usr/local/poudriere/data/.m/head-amd64-default/ref
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
OLDPWD=/usr/local/poudriere/data/.m/head-amd64-default/ref/.p
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
PWD=/usr/local/poudriere/data/.m/head-amd64-default/ref/.p/pool
MASTERNAME=head-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
USER=root
HOME=/root
P_PYTHON_MAJOR_VER=2
POUDRIERE_VERSION=3.2.4
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
LIBEXECPREFIX=/usr/local/libexec/poudriere
LOCALBASE=/usr/local
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---
===> The following configuration options are available for flyhard-0.42_14:
     DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
amdmi3@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
SDL_CONFIG=/usr/local/bin/sdl-config MAKE=gmake XDG_DATA_HOME=/wrkdirs/usr/ports/games/flyhard/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/flyhard/work  HOME=/wrkdirs/usr/ports/games/flyhard/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/games/flyhard/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144
--End CONFIGURE_ENV--

--MAKE_ENV--
SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/wrkdirs/usr/ports/games/flyhard/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/flyhard/work  HOME=/wrkdirs/usr/ports/games/flyhard/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/games/flyhard/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector -fno-strict-aliasing"  CPP="cpp" CPPFLAGS="-I/usr/local/include"  LDFLAGS=" -L/usr/local/lib -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -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 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PORTDOCS="" PORTEXAMPLES="" OSREL=12.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/flyhard"  EXAMPLESDIR="share/examples/flyhard"  DATADIR="share/flyhard"  WWWDIR="www/flyhard"  ETCDIR="etc/flyhard"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/flyhard DOCSDIR=/usr/local/share/doc/flyhard EXAMPLESDIR=/usr/local/share/examples/flyhard  WWWDIR=/usr/local/www/flyhard ETCDIR=/usr/local/etc/flyhard
--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
#### /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 ####
ARCH=amd64
CONFIGURE_MAX_CMD_LEN=262144
HAVE_COMPAT_IA32_KERN=YES
OPSYS=FreeBSD
OSREL=12.0
OSVERSION=1200056
PYTHONBASE=/usr/local
UID=0
_OSRELEASE=12.0-CURRENT
#### Misc Poudriere ####
GID=0
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
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 GPLv2+ accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   flyhard-0.42_14 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.10.4.txz
[head-amd64-default-job-21] Installing pkg-1.10.4...
[head-amd64-default-job-21] Extracting pkg-1.10.4: .......... done
===>   flyhard-0.42_14 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of flyhard-0.42_14
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv2+ accepted by the user
===> Fetching all distfiles required by flyhard-0.42_14 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv2+ accepted by the user
===> Fetching all distfiles required by flyhard-0.42_14 for building
=> SHA256 Checksum OK for flyhard-0.42.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License GPLv2+ accepted by the user
===> Fetching all distfiles required by flyhard-0.42_14 for building
===>  Extracting for flyhard-0.42_14
=> SHA256 Checksum OK for flyhard-0.42.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for flyhard-0.42_14
===>  Applying FreeBSD patches for flyhard-0.42_14
===========================================================================
=======================<phase: build-depends  >============================
===>   flyhard-0.42_14 depends on file: /usr/local/include/boost/shared_ptr.hpp - not found
===>   Installing existing package /packages/All/boost-libs-1.66.0.txz
[head-amd64-default-job-21] Installing boost-libs-1.66.0...
[head-amd64-default-job-21] `-- Installing icu-60.2_1,1...
[head-amd64-default-job-21] `-- Extracting icu-60.2_1,1: .......... done
[head-amd64-default-job-21] Extracting boost-libs-1.66.0: .......... done
Message from boost-libs-1.66.0:

You have built the Boost library with thread support.

Don't forget to add -pthread to your linker options when
linking your code.
===>   flyhard-0.42_14 depends on file: /usr/local/include/boost/shared_ptr.hpp - found
===>   Returning to build of flyhard-0.42_14
===>   flyhard-0.42_14 depends on file: /usr/local/bin/sdl-config - not found
===>   Installing existing package /packages/All/sdl-1.2.15_10,2.txz
[head-amd64-default-job-21] Installing sdl-1.2.15_10,2...
[head-amd64-default-job-21] `-- Installing aalib-1.4.r5_11...
[head-amd64-default-job-21] |   `-- Installing indexinfo-0.3.1...
[head-amd64-default-job-21] |   `-- Extracting indexinfo-0.3.1: .... done
[head-amd64-default-job-21] `-- Extracting aalib-1.4.r5_11: .......... done
[head-amd64-default-job-21] `-- Installing libGLU-9.0.0_3...
[head-amd64-default-job-21] |   `-- Installing mesa-libs-17.3.1...
[head-amd64-default-job-21] |   | `-- Installing expat-2.2.5...
[head-amd64-default-job-21] |   | `-- Extracting expat-2.2.5: .......... done
[head-amd64-default-job-21] |   | `-- Installing libX11-1.6.5,1...
[head-amd64-default-job-21] |   |   `-- Installing kbproto-1.0.7...
<snip>
checking for unistd.h... (cached) yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for sdl-config... /usr/local/bin/sdl-config
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking SDL/SDL.h usability... yes
checking SDL/SDL.h presence... yes
checking for SDL/SDL.h... yes
checking SDL.h usability... no
checking SDL.h presence... no
checking for SDL.h... no
checking SDL/SDL_mixer.h usability... yes
checking SDL/SDL_mixer.h presence... yes
checking for SDL/SDL_mixer.h... yes
checking SDL_mixer.h usability... no
checking SDL_mixer.h presence... no
checking for SDL_mixer.h... no
checking for SDL.h... (cached) no
checking for SDL/SDL.h... (cached) yes
checking for SDL_mixer.h... (cached) no
checking for SDL/SDL_mixer.h... (cached) yes
checking boost/shared_ptr.hpp usability... yes
checking boost/shared_ptr.hpp presence... yes
checking for boost/shared_ptr.hpp... yes
checking boost/weak_ptr.hpp usability... yes
checking boost/weak_ptr.hpp presence... yes
checking for boost/weak_ptr.hpp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/images/Makefile
config.status: creating src/sounds/Makefile
config.status: creating config.h
config.status: executing depfiles commands
===========================================================================
=======================<phase: build          >============================
===>  Building for flyhard-0.42_14
gmake[1]: Entering directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42'
gmake  all-recursive
gmake[2]: Entering directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42'
Making all in src
gmake[3]: Entering directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42/src'
Making all in images
gmake[4]: Entering directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42/src/images'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42/src/images'
Making all in sounds
gmake[4]: Entering directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42/src/sounds'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42/src/sounds'
gmake[4]: Entering directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42/src'
c++ -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -Wno-sign-compare -DIMAGESDIR=\"/usr/local/share/flyhard/images\" -DSOUNDSDIR=\"/usr/local/share/flyhard/sounds\" -DLEVELDIR=\"/usr/local/share/flyhard/levels\" -DSAVEDIR=\"/usr/local/share/flyhard/save\" -I/usr/local/include  -O2 -pipe -fstack-protector -fno-strict-aliasing  -MT flyhard.o -MD -MP -MF .deps/flyhard.Tpo -c -o flyhard.o flyhard.cpp
flyhard.cpp:254:20: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
  SDL_Rect centre={std::max(0,(screen->w-ts->w)/2),
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flyhard.cpp:254:20: note: insert an explicit cast to silence this issue
  SDL_Rect centre={std::max(0,(screen->w-ts->w)/2),
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                   static_cast<Sint16>(           )
flyhard.cpp:255:20: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
                   std::max(0,(screen->h-ts->h)/2), 0,0};
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flyhard.cpp:255:20: note: insert an explicit cast to silence this issue
                   std::max(0,(screen->h-ts->h)/2), 0,0};
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                   static_cast<Sint16>(           )
flyhard.cpp:310:22: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
      {   -9,     0, -pi/2,         "Left", 0, WT_NOTHING},
                     ^~~~~
flyhard.cpp:310:22: note: insert an explicit cast to silence this issue
      {   -9,     0, -pi/2,         "Left", 0, WT_NOTHING},
                     ^~~~~
                     static_cast<float>( )
flyhard.cpp:311:23: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
      {    9,     0,  pi/2,        "Right", 0, WT_NOTHING},
                      ^~~~
flyhard.cpp:311:23: note: insert an explicit cast to silence this issue
      {    9,     0,  pi/2,        "Right", 0, WT_NOTHING},
                      ^~~~
                      static_cast<float>( )
flyhard.cpp:312:22: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
      {   -9,     4, -pi/2,         "Left", 0, WT_NOTHING},
                     ^~~~~
flyhard.cpp:312:22: note: insert an explicit cast to silence this issue
      {   -9,     4, -pi/2,         "Left", 0, WT_NOTHING},
                     ^~~~~
                     static_cast<float>( )
flyhard.cpp:313:23: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
      {    9,     4,  pi/2,        "Right", 0, WT_NOTHING},
                      ^~~~
flyhard.cpp:313:23: note: insert an explicit cast to silence this issue
      {    9,     4,  pi/2,        "Right", 0, WT_NOTHING},
                      ^~~~
                      static_cast<float>( )
flyhard.cpp:314:25: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
      {   -2,    16,    pi,    "Rear left", 0, WT_NOTHING}, 
                        ^~
flyhard.cpp:314:25: note: insert an explicit cast to silence this issue
      {   -2,    16,    pi,    "Rear left", 0, WT_NOTHING}, 
                        ^~
                        static_cast<float>( )
flyhard.cpp:315:25: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
      {    2,    16,    pi,   "Rear right", 0, WT_NOTHING}, 
                        ^~
flyhard.cpp:315:25: note: insert an explicit cast to silence this issue
      {    2,    16,    pi,   "Rear right", 0, WT_NOTHING}, 
                        ^~
                        static_cast<float>( )
flyhard.cpp:371:9: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
        std::max(0, (screen_w-TILE_SIZE*the_arena.width())/2),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flyhard.cpp:371:9: note: insert an explicit cast to silence this issue
        std::max(0, (screen_w-TILE_SIZE*the_arena.width())/2),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        static_cast<Sint16>(                                 )
flyhard.cpp:372:9: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
        std::max(0, (screen_h-TILE_SIZE*the_arena.height())/2),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flyhard.cpp:372:9: note: insert an explicit cast to silence this issue
        std::max(0, (screen_h-TILE_SIZE*the_arena.height())/2),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        static_cast<Sint16>(                                  )
flyhard.cpp:373:9: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
        std::min(screen_w, TILE_SIZE*the_arena.width()),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flyhard.cpp:373:9: note: insert an explicit cast to silence this issue
        std::min(screen_w, TILE_SIZE*the_arena.width()),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        static_cast<Uint16>(                           )
flyhard.cpp:374:9: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
        std::min(screen_h, TILE_SIZE*the_arena.height())
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flyhard.cpp:374:9: note: insert an explicit cast to silence this issue
        std::min(screen_h, TILE_SIZE*the_arena.height())
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        static_cast<Uint16>(                            )
flyhard.cpp:379:26: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
        SDL_Rect sr={0,0,screen->w, screen->h-TILE_SIZE};
                         ^~~~~~~~~
flyhard.cpp:379:26: note: insert an explicit cast to silence this issue
        SDL_Rect sr={0,0,screen->w, screen->h-TILE_SIZE};
                         ^~~~~~~~~
                         static_cast<Uint16>( )
flyhard.cpp:379:37: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
        SDL_Rect sr={0,0,screen->w, screen->h-TILE_SIZE};
                                    ^~~~~~~~~~~~~~~~~~~
flyhard.cpp:379:37: note: insert an explicit cast to silence this issue
        SDL_Rect sr={0,0,screen->w, screen->h-TILE_SIZE};
                                    ^~~~~~~~~~~~~~~~~~~
                                    static_cast<Uint16>( )
flyhard.cpp:389:28: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
          SDL_Rect sr={0,0,screen->w, screen->h-TILE_SIZE};
                           ^~~~~~~~~
flyhard.cpp:389:28: note: insert an explicit cast to silence this issue
          SDL_Rect sr={0,0,screen->w, screen->h-TILE_SIZE};
                           ^~~~~~~~~
                           static_cast<Uint16>( )
flyhard.cpp:389:39: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
          SDL_Rect sr={0,0,screen->w, screen->h-TILE_SIZE};
                                      ^~~~~~~~~~~~~~~~~~~
flyhard.cpp:389:39: note: insert an explicit cast to silence this issue
          SDL_Rect sr={0,0,screen->w, screen->h-TILE_SIZE};
                                      ^~~~~~~~~~~~~~~~~~~
                                      static_cast<Uint16>( )
flyhard.cpp:441:22: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
        SDL_Rect bs={screen_x, screen_y, window.w, window.h};
                     ^~~~~~~~
flyhard.cpp:441:22: note: insert an explicit cast to silence this issue
        SDL_Rect bs={screen_x, screen_y, window.w, window.h};
                     ^~~~~~~~
                     static_cast<Sint16>( )
flyhard.cpp:441:32: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
        SDL_Rect bs={screen_x, screen_y, window.w, window.h};
                               ^~~~~~~~
flyhard.cpp:441:32: note: insert an explicit cast to silence this issue
        SDL_Rect bs={screen_x, screen_y, window.w, window.h};
                               ^~~~~~~~
                               static_cast<Sint16>( )
flyhard.cpp:464:28: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
              SDL_Rect to={int(m.m_x),int(m.m_y),m.pic()->w,m.pic()->h};
                           ^~~~~~~~~~
flyhard.cpp:464:28: note: insert an explicit cast to silence this issue
              SDL_Rect to={int(m.m_x),int(m.m_y),m.pic()->w,m.pic()->h};
                           ^~~~~~~~~~
                           static_cast<Sint16>( )
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[4]: *** [Makefile:281: flyhard.o] Error 1
gmake[4]: Leaving directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42/src'
gmake[3]: *** [Makefile:318: all-recursive] Error 1
gmake[3]: Leaving directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42/src'
gmake[2]: *** [Makefile:221: all-recursive] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42'
gmake[1]: *** [Makefile:160: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/games/flyhard/work/flyhard-0.42'
*** Error code 1

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801210645.w0L6j0Qn044439>