[Bug 245200] emulators/emu64 : Fails to build on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit: error: narrowing conversion of '-1' from 'int' to 'char' [-Wnarrowing]
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245200
Bug ID: 245200
Summary: emulators/emu64 : Fails to build on FreeBSD
12.1-RELEASE-p1 powerpc 32 bit: error: narrowing
conversion of '-1' from 'int' to 'char' [-Wnarrowing]
Product: Ports & Packages
Version: Latest
Hardware: powerpc
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
CC: [email protected], [email protected]
Flags: maintainer-feedback?([email protected])
Problem found when building emulators/emu64 on FreeBSD 12.1-RELEASE-p1 r354992
GENERIC powerpc 32 bit, running on Apple Powerbook 17".
/usr/ports/emulators/emu64 # make --DBATCH install clean
===> Building for emu64-5.0.18
cd src/ && ( test -e Makefile || /usr/local/lib/qt5/bin/qmake -o Makefile
/usr/ports/emulators/emu64/work/emu64-5.0.18/src/src.pro -spec
/usr/local/lib/qt5/mkspecs/freebsd-g++ QMAKE_CC=gcc9 QMAKE_CXX=g++9
QMAKE_LINK_C=gcc9 QMAKE_LINK_C_SHLIB=gcc9 QMAKE_LINK=g++9 QMAKE_LINK_SHLIB=g++9
'QMAKE_CFLAGS=-O2 -pipe -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc9 -fno-strict-aliasing ' 'QMAKE_CXXFLAGS=-O2 -pipe
-fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9
-Wl,-rpath=/usr/local/lib/gcc9 ' 'QMAKE_LFLAGS= -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 ' QMAKE_LIBS=
QMAKE_CFLAGS_DEBUG= QMAKE_CFLAGS_RELEASE= QMAKE_CXXFLAGS_DEBUG=
QMAKE_CXXFLAGS_RELEASE= PREFIX=/usr/local CONFIG+=release 'CONFIG-=debug
separate_debug_info' ) && /usr/bin/make -f Makefile all
g++9 -c -O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9
-Wl,-rpath=/usr/local/lib/gcc9 -std=gnu++11 -pthread -Wall -W -pthread -fPIC
-DVERSION_STRING=\"5.0.18\" -DARCHITECTURE_STRING=\"Unknown\"
-DZIP_SUPPORT=true -DDATA_PATH=\"/usr/local\" -D_REENTRANT -D_THREAD_SAFE
-DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I../../emu64-5.0.18/src -I. -isystem /usr/local/include/SDL2 -isystem
/usr/local/include -isystem /usr/local/include/libpng16 -isystem
/usr/local/include/libdrm -isystem /usr/local/include/qt5 -isystem
/usr/local/include/qt5/QtWidgets -isystem /usr/local/include/qt5/QtGui -isystem
/usr/local/include/qt5/QtCore -I. -isystem /usr/local/include/libdrm -I.
-isystem /usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-g++ -o
c64_class.o ../../emu64-5.0.18/src/c64_class.cpp
../../emu64-5.0.18/src/c64_class.cpp: In member function 'void
C64Class::StartEmulation()':
../../emu64-5.0.18/src/c64_class.cpp:541:13: warning: ISO C++ forbids
converting a string constant to 'char*' [-Wwrite-strings]
541 | LogText(">> C64Thread wurde gestartet.\n");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../emu64-5.0.18/src/c64_class.cpp:544:13: warning: ISO C++ forbids
converting a string constant to 'char*' [-Wwrite-strings]
544 | LogText(">> SDL Audiostream wurde getartet.\n");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../emu64-5.0.18/src/c64_class.cpp: In function 'int SDLThread(void*)':
../../emu64-5.0.18/src/c64_class.cpp:618:18: warning: ISO C++ forbids
converting a string constant to 'char*' [-Wwrite-strings]
618 | c64->LogText(">> SDLThread Start.\n");
| ^~~~~~~~~~~~~~~~~~~~~~~
.....
.....
.....
.....
../../emu64-5.0.18/src/c64_class.cpp:1577:13: warning: ISO C++ forbids
converting a string constant to 'char*' [-Wwrite-strings]
1577 | LogText("\tInitGrafik: Vic-Refresh wurde wieder freigegeben.\n");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../emu64-5.0.18/src/c64_class.cpp: In member function 'void
C64Class::AnalyzeSDLEvent(SDL_Event*)':
../../emu64-5.0.18/src/c64_class.cpp:1760:46: error: narrowing conversion of
'-1' from 'int' to 'char' [-Wnarrowing]
1760 | static char joy_axis_tbl[5] = {1,1,0,0,-1};
| ^
*** [c64_class.o] Error code 1
make[2]: stopped in /usr/ports/emulators/emu64/work/.build/src
1 error
make[2]: stopped in /usr/ports/emulators/emu64/work/.build/src
*** [sub-src-all-ordered] Error code 2
make[1]: stopped in /usr/ports/emulators/emu64/work/.build
1 error
make[1]: stopped in /usr/ports/emulators/emu64/work/.build
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/ports/emulators/emu64
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.