id summary reporter owner description type status milestone component version severity resolution keywords cc 13166 gcc static linking with LTO flag with boost filesystem fails mettbest@… Beman Dawes "boost version 1.64 \\ gcc version 6.4.1 \\ Linux OpenSuse x64 42.2 \\ Cmake 3.5.2 \\ \\ **[linking, no LTO] works:** \\ -std=gnu++11 -O2 -fopenmp -static /opt/lib64/libboost_filesystem.a /opt/lib64/libboost_system.a \\ **[linking, with LTO] does not work:** \\ -std=gnu++11 -O2 -fopenmp -flto=8 -static /opt/lib64/libboost_filesystem.a /opt/lib64/libboost_system.a **error:** {{{ /opt/lib64/libboost_filesystem.a(operations.o): In function `boost::filesystem::detail::is_empty(boost::filesystem::path const&, boost::system::error_code*)': operations.cpp:(.text+0x536a): undefined reference to `vtable for boost::detail::sp_counted_impl_p' /opt/lib64/libboost_filesystem.a(operations.o): In function `(anonymous namespace)::remove_all_aux(boost::filesystem::path const&, boost::filesystem::file_type, boost::system::error_code*)': operations.cpp:(.text+0x699d): undefined reference to `vtable for boost::detail::sp_counted_impl_p' operations.cpp:(.text+0x6add): undefined reference to `vtable for boost::detail::sp_counted_impl_p' collect2: error: ld returned 1 exit status CMakeFiles/zebr.dir/build.make:137: recipe for target 'zebr' failed }}} " Bugs new To Be Determined filesystem Boost 1.64.0 Problem lto gcc linking mika.fischer@…