[games/traingame] Build failures with FreeBSD 10

Rusmir Dusko nemysis at FreeBSD.org
Thu Mar 13 11:31:44 UTC 2014


Hello

Trainm Game not build more in FreeBSD 10.

With FreeBSD 9.1, 9.2 have all good worked.


10.0-RELEASE-p4 FreeBSD 10.0-RELEASE-p4 #0: Tue Jan 14 20:48:07 UTC 2014 amd64

This is first Cmake and then GCC Port.

Have too not worked in FreeBSD 10 with older boost 1.52.0.


Train Game not more builds in FreeBSD 10

http://www.doof.me.uk/train-game/


I have now switched to GitHub

https://github.com/nickg/traingame

but not helps with build.

USE_GITHUB=     yes
GH_ACCOUNT=     nickg
GH_PROJECT=     traingame
GH_TAGNAME=     ${GH_COMMIT}
GH_COMMIT=      83abcc9


And use too compat9x

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 1000009
LIB_DEPENDS+=   libarchive.so.5:${PORTSDIR}/misc/compat9x
.endif


Have had many emails with Upstream, but it can't help.


I have look into

Re: [graphics/libcdr] Boost issue breaks build?

and tried to adjust /etc/make.conf not helps

.if !empty(.CURDIR:M/usr/local/ports/local/In-Review/games/traingame) && exists(/usr/local/bin/gcc47)
CC=gcc47
CXX=g++47
CPP=cpp47
.endif


Have used from rawtherapee, but not helps

graphics/rawtherapee


When i use GCC
USE_GCC=        yes

or

USE_GCC=        4.7+
USE_GCC=        4.8+

http://beefy2.isc.freebsd.org/bulk/10amd64-quarterly/2014-03-12_01h01m40s/logs/traingame-0.2.2_2.log

http://beefy1.isc.freebsd.org/bulk/10i386-quarterly/2014-03-12_01h01m59s/logs/traingame-0.2.2_2.log

http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2014-03-06_23h32m53s/logs/traingame-0.2.2_3.log

http://beefy1.isc.freebsd.org/bulk/head-i386-default/2014-03-06_20h47m47s/logs/traingame-0.2.2_3.log

and more build failures in FreeBSD 10 

also local

...
[ 87%] Building CXX object CMakeFiles/TrainGame.dir/src/Mesh.cpp.o
[ 89%] Building CXX object CMakeFiles/TrainGame.dir/src/RenderStats.cpp.o
[ 91%] Building CXX object CMakeFiles/TrainGame.dir/src/SplineTrack.cpp.o
[ 93%] Building CXX object CMakeFiles/TrainGame.dir/src/Map.cpp.o
[ 94%] Building CXX object CMakeFiles/TrainGame.dir/src/SmokeTrail.cpp.o
[ 96%] Building CXX object CMakeFiles/TrainGame.dir/src/SkyBox.cpp.o
[ 98%] Building CXX object CMakeFiles/TrainGame.dir/src/Logger.cpp.o
[100%] Building CXX object CMakeFiles/TrainGame.dir/src/Industry.cpp.o
Linking CXX executable bin/TrainGame
Linking CXX executable bin/TrainGame
CMakeFiles/TrainGame.dir/src/Resource.cpp.o: In function `path<boost::filesystem::directory_entry>':
/usr/local/include/boost/filesystem/path.hpp:139: undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, s
td::string&, std::codecvt<wchar_t, char, __mbstate_t> const&)'
CMakeFiles/TrainGame.dir/src/Main.cpp.o: In function `boost::program_options::typed_value<std::string, char>::xparse(boost::any&, std::vector<std::string, std:
:allocator<std::string> > const&) const':
/usr/local/include/boost/program_options/detail/value_semantic.hpp:170: undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::
string, std::allocator<std::string> > const&, std::string*, int)'
CMakeFiles/TrainGame.dir/src/Main.cpp.o: In function `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind
_t, std::string const&, std::string const&, int)':
/usr/local/include/boost/program_options/errors.hpp:372: undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::st
ring const&, std::string const&, std::string const&, int)'
CMakeFiles/TrainGame.dir/src/Main.cpp.o: In function `to_internal<std::basic_string<char> >':
/usr/local/include/boost/program_options/detail/convert.hpp:79: undefined reference to `boost::program_options::to_internal(std::string const&)'
CMakeFiles/TrainGame.dir/src/Main.cpp.o: In function `boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char const* const
*)':
/usr/local/include/boost/program_options/detail/parsers.hpp:43: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::strin
g, std::allocator<std::string> > const&)'
CMakeFiles/TrainGame.dir/src/Main.cpp.o: In function `parse_options':
/usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9/src/Main.cpp:54: undefined reference to `boost::program_options::options_descript
ion::options_description(std::string const&, unsigned int, unsigned int)'
/usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9/src/Main.cpp:80: undefined reference to `boost::program_options::operator<<(std::
ostream&, boost::program_options::options_description const&)'
CMakeFiles/TrainGame.dir/src/Main.cpp.o: In function `void boost::program_options::validate<int, char>(boost::any&, std::vector<std::basic_string<char, std::ch
ar_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, int*, long)':
/usr/local/include/boost/program_options/detail/value_semantic.hpp:92: undefined reference to `boost::program_options::invalid_option_value::invalid_option_val
ue(std::string const&)'
CMakeFiles/TrainGame.dir/src/Main.cpp.o:(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x30): undefi
ned reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
CMakeFiles/TrainGame.dir/src/Main.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueISscEE[_ZTVN5boost15program_options11typed_valueISscEE]+0x38): undefi
ned reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&
, bool) const'
CMakeFiles/TrainGame.dir/src/Main.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueIicEE[_ZTVN5boost15program_options11typed_valueIicEE]+0x38): undefine
d reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, 
bool) const'
CMakeFiles/TrainGame.dir/src/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE[_ZTVN5boost16exce
ption_detail19error_info_injectorINS_15program_options16validation_errorEEE]+0x30): undefined reference to `boost::program_options::error_with_option_name::sub
stitute_placeholders(std::string const&) const'
CMakeFiles/TrainGame.dir/src/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEE
E[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE]+0x38): undefined reference to `boost::progra
m_options::error_with_option_name::substitute_placeholders(std::string const&) const'
CMakeFiles/TrainGame.dir/src/Main.cpp.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x30)
: undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
CMakeFiles/TrainGame.dir/src/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[_ZTVN5boost16
exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE]+0x30): undefined reference to `boost::program_options::error_with_option_n
ame::substitute_placeholders(std::string const&) const'
CMakeFiles/TrainGame.dir/src/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_value
EEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE]+0x38): undefined reference to `boost
::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'
collect2: error: ld returned 1 exit status
--- bin/TrainGame ---
*** [bin/TrainGame] Error code 1

make[4]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
1 error

make[4]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
--- CMakeFiles/TrainGame.dir/all ---
*** [CMakeFiles/TrainGame.dir/all] Error code 2

make[3]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
1 error

make[3]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
--- all ---
*** [all] Error code 2

make[2]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
1 error

make[2]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
===> Compilation failed unexpectedly.  
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/local/ports/local/In-Review/games/traingame
*** Error code 1

Stop.
make: stopped in /usr/local/ports/local/In-Review/games/traingame


With newest GCC

USE_GCC=        4.9+


[  1%] Building CXX object CMakeFiles/TrainGame.dir/src/Building.cpp.o
[  3%] Building CXX object CMakeFiles/TrainGame.dir/src/Points.cpp.o
[  6%] Building CXX object CMakeFiles/TrainGame.dir/src/SlopeTrack.cpp.o
[  5%] Building CXX object CMakeFiles/TrainGame.dir/src/ClipVolume.cpp.o
[  8%] Building CXX object CMakeFiles/TrainGame.dir/src/Frustum.cpp.o
[ 10%] Building CXX object CMakeFiles/TrainGame.dir/src/MessageArea.cpp.o
[ 12%] Building CXX object CMakeFiles/TrainGame.dir/src/XMLParser.cpp.o
[ 13%] Building CXX object CMakeFiles/TrainGame.dir/src/TrackGraph.cpp.o
[ 15%] Building CXX object CMakeFiles/TrainGame.dir/src/Tree.cpp.o
/usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9/src/TrackGraph.cpp: In member function 'graph::Node& TrackGraph::add_node(graph::
NodeType)':
/usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9/src/TrackGraph.cpp:83:31: error: converting to 'std::vector<graph::Arc>' from ini
tializer list would use explicit constructor 'std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = graph::Arc; _Alloc = std::allocator<graph::Ar
c>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<graph::Arc>]'
    graph::Node n = { id, type };
                               ^
--- CMakeFiles/TrainGame.dir/src/TrackGraph.cpp.o ---
*** [CMakeFiles/TrainGame.dir/src/TrackGraph.cpp.o] Error code 1

make[4]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
1 error

make[4]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
--- CMakeFiles/TrainGame.dir/all ---
*** [CMakeFiles/TrainGame.dir/all] Error code 2

make[3]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
1 error

make[3]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
--- all ---
*** [all] Error code 2

make[2]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
1 error

make[2]: stopped in /usr/local/ports/local/In-Review/games/traingame/work/nickg-traingame-83abcc9
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/local/ports/local/In-Review/games/traingame
*** Error code 1

Stop.
make: stopped in /usr/local/ports/local/In-Review/games/traingame



With Clang not works at all.

-- 
Best regards,
Rusmir Dusko


More information about the freebsd-ports mailing list