The final linking fails: Linking C executable luaconfig cd /var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build/lua/luaconfig && /usr/bin/cmake -E cmake_link_script CMakeFiles/luaconfig.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fno-ident -ggdb -Wl,-O1 -Wl,--as-needed CMakeFiles/luaconfig.dir/luaconfig.o CMakeFiles/luaconfig.dir/luaconfig_buttons_frame.o CMakeFiles/luaconfig.dir/luaconfig_configuration_dialog.o CMakeFiles/luaconfig.dir/luaconfig_cpi_selector.o CMakeFiles/luaconfig.dir/luaconfig_handedness_selector.o CMakeFiles/luaconfig.dir/luaconfig_key_combo_box.o CMakeFiles/luaconfig.dir/luaconfig_light_frame.o CMakeFiles/luaconfig.dir/luaconfig_polling_rate_selector.o CMakeFiles/luaconfig.dir/luaconfig_profile_page.o CMakeFiles/luaconfig.dir/luaconfig_surface_check.o CMakeFiles/luaconfig.dir/luaconfig_window.o -o luaconfig -rdynamic ../liblua/liblua.so.2.2.0 ../../libroccat/libroccat.so.2.2.0 ../../libroccatwidget/libroccatwidget.so.2.2.0 -latk-1.0 -lcairo -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lglib-2.0 -lgobject-2.0 -lgtk-x11-2.0 -lpango-1.0 /usr/lib64/gaminggear-0/libgaminggearwidget.so -ldbus-glib-1 ../../libroccat/libroccat.so.2.2.0 /usr/lib64/gaminggear-0/libgaminggear.so -lgudev-1.0 ../../libroccathelper/libroccathelper.a -Wl,-rpath,/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build/lua/liblua:/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build/libroccat:/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build/libroccatwidget:/usr/lib64/gaminggear-0: ../../libroccatwidget/libroccatwidget.so.2.2.0: error: undefined reference to 'ceil' ../../libroccatwidget/libroccatwidget.so.2.2.0: error: undefined reference to 'sqrt' collect2: error: ld returned 1 exit status lua/luaconfig/CMakeFiles/luaconfig.dir/build.make:355: recipe for target 'lua/luaconfig/luaconfig' failed make[2]: *** [lua/luaconfig/luaconfig] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build' CMakeFiles/Makefile2:712: recipe for target 'lua/luaconfig/CMakeFiles/luaconfig.dir/all' failed make[1]: *** [lua/luaconfig/CMakeFiles/luaconfig.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-apps/roccat-tools-2.2.0/work/roccat-tools-2.2.0_build' Makefile:126: recipe for target 'all' failed A bit of googling told me to pass the flag -lm to the linker. Adding that to my LDFLAGS helped but looks like a ugly workaround to me. Reproducible: Always
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.
Created attachment 391660 [details] Output from emerge --info
Created attachment 391662 [details] build.log
This has been fixed in version 2.3.0. It will be in the main tree soon, the bug for version bump is here: https://bugs.gentoo.org/show_bug.cgi?id=537490