I am observing the following in the build log : [ 55%] Linking CXX executable ../Bin/Gentoo/icinga-studio cd /data/build/portage/net-analyzer/icinga2-2.6.3/work/icinga2-2.6.3_build/icinga-studio && /usr/bin/cmake -E cmake_link_script CMakeFiles/icinga-studio.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -lpthread -pthread -fvisibility=hidden -std=c++0x -pthread -Wl,-O1 - Wl,--as-needed -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list -data -rdynamic CMakeFiles/icinga-studio.dir/icinga-studio.cpp.o CMakeFiles/icinga-studio.dir/forms.cpp.o CMakeFiles/icinga-stud io.dir/aboutform.cpp.o CMakeFiles/icinga-studio.dir/connectform.cpp.o CMakeFiles/icinga-studio.dir/mainform.cpp.o -o ../Bin/Gen too/icinga-studio -Wl,-rpath,/data/build/portage/net-analyzer/icinga2-2.6.3/work/icinga2-2.6.3_build/Bin/Gentoo: -lboost_thread- mt -lboost_system-mt -lboost_program_options-mt -lboost_regex-mt -lboost_chrono-mt -lboost_date_time-mt -lboost_atomic-mt -L/usr /lib64 -pthread -lwx_gtk2u_core-3.0 -lwx_baseu-3.0 -lwx_gtk2u_propgrid-3.0 -lwx_gtk2u_adv-3.0 ../Bin/Gentoo/libremote.so.2.6.3 . ./Bin/Gentoo/libconfig.so.2.6.3 ../Bin/Gentoo/libbase.so.2.6.3 -ldl -lboost_thread-mt -lboost_system-mt -lboost_program_options- mt -lboost_regex-mt -lboost_chrono-mt -lboost_date_time-mt -lboost_atomic-mt -lssl -lcrypto -lyajl ../Bin/Gentoo/libmmatch.so.2. 6.3 ../Bin/Gentoo/libsocketpair.so.2.6.3 ../Bin/Gentoo/libexecvpe.so.2.6.3 ../Bin/Gentoo/libremote.so.2.6.3: undefined reference to `boost::re_detail_106300::cpp_regex_traits_implementation<char>::transf orm_primary[abi:cxx11](char const*, char const*) const' ../Bin/Gentoo/libremote.so.2.6.3: undefined reference to `boost::re_detail_106300::cpp_regex_traits_implementation<char>::transf orm[abi:cxx11](char const*, char const*) const' collect2: error: ld returned 1 exit status make[2]: *** [icinga-studio/CMakeFiles/icinga-studio.dir/build.make:225: Bin/Gentoo/icinga-studio] Błąd 1 make[2]: Opuszczenie katalogu '/data/build/portage/net-analyzer/icinga2-2.6.3/work/icinga2-2.6.3_build' make[1]: *** [CMakeFiles/Makefile2:2452: icinga-studio/CMakeFiles/icinga-studio.dir/all] Błąd 2 I already verified the linking correctness in my system and no rebuilds are necessary. This is happening during a icinga2 rebuild, which is triggered by some depending package updates. eix information on package and build options ( it's likely it will bulid with USE=-studio ) [I] net-analyzer/icinga2 Available versions: 2.5.4-r1 2.6.2 2.6.3{tbz2} **9999 {apache2 classicui console libressl lto mail minimal +mysql nano-syntax +plugins postgres studio +vim-syntax} Installed versions: 2.6.3{tbz2}(11:41:56 30.03.2017)(mysql plugins postgres studio vim-syntax -apache2 -classicui -console -libressl -lto -mail -minimal -nano-syntax) Homepage: http://icinga.org/icinga2 Description: Distributed, general purpose, network monitoring engine Reproducible: Always
Thank you for the report. Please add always the full package name in the title. Please attach all the logfiles https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29 and reopen this ticket (Status:unconfirmed). Pay attention to set LANG=C, please.
Created attachment 486664 [details] build log
Created attachment 486666 [details] emerge --info
I have attached the logs.
Created attachment 486874 [details] build.log I see the same issue. Build.log attached
Created attachment 486876 [details] info.log
Rebuilding boost fixes the issue!
I actually had the same bug when building without the studio use flag and had to reinstall boost as well. So... boost bug?
To be more specific, I was using binpkgs, it looked like the same version of boost with the same flags didn't give access to the same symbols, which is neat...
I'll try rebuilding boost, since i have the exact same error on icinga2-2.7.0
With flags: apache2 mysql plugins vim-syntax -classicui -console -libressl -lto -mail -minimal -nano-syntax -postgres -studio if fails with: [ 92%] Linking CXX executable ../Bin/Gentoo/icinga2 cd /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3_build/icinga-app && /usr/bin/cmake -E cmake_link_script CMakeFiles/icinga-app.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -lpthread -pthread -flto -fvisibility=hidden -std=c++0x -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data -flto CMakeFiles/icinga-app.dir/icinga.cpp.o -o ../Bin/Gentoo/icinga2 -Wl,-rpath,/var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3_build/Bin/Gentoo: -rdynamic -lboost_thread-mt -lboost_system-mt -lboost_program_options-mt -lboost_regex-mt -lboost_chrono-mt -lboost_date_time-mt -lboost_atomic-mt ../Bin/Gentoo/libcli.so.2.6.3 ../Bin/Gentoo/libremote.so.2.6.3 ../Bin/Gentoo/libconfig.so.2.6.3 ../Bin/Gentoo/libbase.so.2.6.3 -ldl -lboost_thread-mt -lboost_system-mt -lboost_program_options-mt -lboost_regex-mt -lboost_chrono-mt -lboost_date_time-mt -lboost_atomic-mt -lssl -lcrypto -lyajl ../Bin/Gentoo/libmmatch.so.2.6.3 ../Bin/Gentoo/libsocketpair.so.2.6.3 ../Bin/Gentoo/libexecvpe.so.2.6.3 -ledit -lncurses /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans0.ltrans.o: In function `Main()': <artificial>:(.text+0x786): undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)' <artificial>:(.text+0x8d2): undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)' <artificial>:(.text+0xbf7): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' <artificial>:(.text+0x133b): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' <artificial>:(.text+0x1449): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' <artificial>:(.text+0x16f4): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' <artificial>:(.text+0x1b06): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans0.ltrans.o:<artificial>:(.text+0x2315): more undefined references to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' follow /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans3.ltrans.o:(.rodata+0x818): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans3.ltrans.o:(.rodata+0x8b8): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans5.ltrans.o: In function `boost::program_options::typed_value<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, char>::name() const': <artificial>:(.text+0x4db): undefined reference to `boost::program_options::arg[abi:cxx11]' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans5.ltrans.o: In function `boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::xparse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) const': <artificial>:(.text+0x147): undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans7.ltrans.o: In function `boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::name() const': <artificial>:(.text+0x9cb): undefined reference to `boost::program_options::arg[abi:cxx11]' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans9.ltrans.o: In function `void boost::program_options::validate<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*, int) [clone .constprop.0]': <artificial>:(.text+0x2c5): undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)' <artificial>:(.text+0x71d): undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans9.ltrans.o:(.rodata+0x358): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans9.ltrans.o:(.rodata+0x408): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans9.ltrans.o:(.rodata+0x4d8): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/temp/cctUQuZf.ltrans9.ltrans.o:(.rodata+0x510): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' ../Bin/Gentoo/libcli.so.2.6.3: undefined reference to `boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)' ../Bin/Gentoo/libcli.so.2.6.3: undefined reference to `boost::program_options::validation_error::get_template[abi:cxx11](boost::program_options::validation_error::kind_t)' ../Bin/Gentoo/libcli.so.2.6.3: undefined reference to `boost::program_options::option_description::long_name[abi:cxx11]() const' ../Bin/Gentoo/libcli.so.2.6.3: undefined reference to `boost::program_options::options_description::find_nothrow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool, bool) const' ../Bin/Gentoo/libcli.so.2.6.3: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)' ../Bin/Gentoo/libcli.so.2.6.3: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)' ../Bin/Gentoo/libcli.so.2.6.3: undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' ../Bin/Gentoo/libcli.so.2.6.3: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld generated: undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld generated: undefined reference to `boost::program_options::arg[abi:cxx11]' /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld generated: undefined reference to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld generated: undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)' /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld generated: undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)' /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld generated: undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld generated: undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const' collect2: error: ld returned 1 exit status make[2]: *** [icinga-app/CMakeFiles/icinga-app.dir/build.make:124: Bin/Gentoo/icinga2] Error 1
Rebuilding boost before icinga2 again solved the link errors... Q remains how did boost fail to be consistent.
trying to activate studio fails to compile. [ 92%] Building CXX object icinga-studio/CMakeFiles/icinga-studio.dir/icinga-studio.cpp.o cd /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3_build/icinga-studio && /usr/bin/x86_64-pc-linux-gnu-g++ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3 -I/var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3/lib -I/var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3_build -I/var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3_build/lib -isystem /usr/lib64/wx/include/base-unicode-3.0 -isystem /usr/include/wx-3.0 -DNDEBUG -DNDEBUG -O2 -pipe -lpthread -pthread -flto -fvisibility=hidden -std=c++0x -pthread -o CMakeFiles/icinga-studio.dir/icinga-studio.cpp.o -c /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3/icinga-studio/icinga-studio.cpp In file included from /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3/icinga-studio/connectform.hpp:24:0, from /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3/icinga-studio/icinga-studio.cpp:20: /var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3/icinga-studio/forms.h:11:24: fatal error: wx/artprov.h: No such file or directory compilation terminated. make[2]: *** [icinga-studio/CMakeFiles/icinga-studio.dir/build.make:66: icinga-studio/CMakeFiles/icinga-studio.dir/icinga-studio.cpp.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3_build' make[1]: *** [CMakeFiles/Makefile2:2386: icinga-studio/CMakeFiles/icinga-studio.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/net-analyzer/icinga2-2.6.3-r1/work/icinga2-2.6.3_build' make: *** [Makefile:164: all] Error 2 This missing file (wx/artprov.h) is provided by wxGTK, so icinga2 might miss some depenencies. This wxGTK wasn't installed on this system.
2.7.0 help? I'm guessing not, but worth a try.
2.7.0 does compile including with USE=studio
2.7.0-r1 also compiled.
ok, closing this then