Problem found when building games/bastet on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit, running on Apple Powerbook 17". /usr/ports/games/bastet # make -DBATCH install clean ===> Building for bastet-0.43.2_1 gmake[1]: Entering directory '/usr/ports/games/bastet/work/bastet-0.43.2' c++ -o bastet Ui.o Block.o Well.o BlockPosition.o Config.o BlockChooser.o BastetBlockChooser.o main.o -Wl,-rpath=/usr/local/lib -fstack-protector-strong -L/usr/local/lib -lncurses -lboost_program_options Config.o: In function `Bastet::Config::Config()': Config.cpp:(.text+0x22dc): undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)' Config.cpp:(.text+0x2484): undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)' ..... ..... ..... /usr/local/lib/libboost_program_options.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace(unsigned int, unsigned int, wchar_t const*, unsigned int)@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference to `std::basic_istream<wchar_t, std::char_traits<wchar_t> >& std::getline<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >(std::basic_istream<wchar_t, std::char_traits<wchar_t> >&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, wchar_t)@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()@GLIBCXX_3.4.21' gmake[1]: *** [Makefile:18: bastet] Error 1 gmake[1]: Leaving directory '/usr/ports/games/bastet/work/bastet-0.43.2' ===> 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/games/bastet
Does adding "compiler:c++14-lang" to USES help?
(In reply to Dmitry Marakasov from comment #1) Can you give me the exact command line to use please ? (I'm no developer and a bit lost with GCC options)
Change in the Makefile the line USES= gmake localbase:ldflags ncurses tar:tgz to USES= compiler:c++14-lang gmake localbase:ldflags ncurses tar:tgz
(In reply to Walter Schwarzenfeld from comment #3) Following modification of Makefile, build is now successful (with 2 compilations warning). See log attached.
Created attachment 211185 [details] FreeBSD.bug.bastet-build.successful
Fixed in 524717.