As I said in a previous message, it sounds that the port games/wesnoth is broken
if the openMP option is set ( which is the default), while running FreeBSD 11.2.
I'm working on a porting an more recent version of the game and I'm facing the same issue.
I don't known where the "c++11-narrowing" flag came from, but in the fist place, I was wondering why the port was build by gcc6 instead of clang6?
Actually, this is required by the openMP entry in the Makefile:
using openmp feature instead
would end up into the same situation, as defined in compiler.mk.
Is there any plan to allow the build of openMP based softwares against devel/llvm60,
as this port sets the openmp feature on by default ?
by the fact, I am able to build the game with openmp support by adding the following lines
after the <bsd.port.mk> inclusion:
if the openMP option is set ( which is the default), while running FreeBSD 11.2.
Code:
[1/2] Building CXX object CMakeFiles/cmTC_b6544.dir/testCXXCompiler.cxx.o
FAILED: CMakeFiles/cmTC_b6544.dir/testCXXCompiler.cxx.o
/usr/local/bin/g++6 -O2 -pipe -march=k8-sse3 -fstack-protector -Wl,-rpath=/usr/local/lib/gcc6 -fno-strict-aliasing -Wc++11-narrowing -nostdinc++ -isystem /usr/include/c++/v1 -Wl,-rpath=/usr/local/lib/gcc6 -std=gnu++11 -o CMakeFiles/cmTC_b6544.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
g++6: error: unrecognized command line option '-Wc++11-narrowing'; did you mean '-Wno-narrowing'?
ninja: build stopped: subcommand failed.
I'm working on a porting an more recent version of the game and I'm facing the same issue.
I don't known where the "c++11-narrowing" flag came from, but in the fist place, I was wondering why the port was build by gcc6 instead of clang6?
Actually, this is required by the openMP entry in the Makefile:
Makefile:
OPENMP_USES= compiler:gcc-c++11-lib
using openmp feature instead
Makefile:
OPENMP_USES= compiler:openmp
Is there any plan to allow the build of openMP based softwares against devel/llvm60,
as this port sets the openmp feature on by default ?
by the fact, I am able to build the game with openmp support by adding the following lines
after the <bsd.port.mk> inclusion:
Makefile:
.if ${PORT_OPTIONS:MOPENMP}
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang60:devel/llvm60
CPP= ${LOCALBASE}/bin/clang-cpp60
CC= ${LOCALBASE}/bin/clang60
CXX= ${LOCALBASE}/bin/clang++60
.endif