Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572554 - games-action/openclonk-7.0 fails to build
Summary: games-action/openclonk-7.0 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-21 21:57 UTC by Linubie
Modified: 2016-03-16 03:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
CMakeOutput.log (CMakeOutput.log,40.83 KB, text/x-log)
2016-01-21 21:57 UTC, Linubie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Linubie 2016-01-21 21:57:12 UTC
Created attachment 423572 [details]
CMakeOutput.log

emerge -av openclonk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ~] games-action/openclonk-7.0::gentoo [6.1::gentoo] USE="-dedicated -doc" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) games-action/openclonk-7.0::gentoo
 * openclonk-7.0-src.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking openclonk-7.0-src.tar.bz2 to /var/tmp/portage/games-action/openclonk-7.0/work
>>> Source unpacked in /var/tmp/portage/games-action/openclonk-7.0/work
>>> Preparing source in /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0-src ...
 * Applying openclonk-7.0-paths.patch ...                                                                                                              [ ok ]
 * Applying openclonk-7.0-postinst.patch ...                                                                                                           [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0-src ...
>>> Working in BUILD_DIR: "/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DUSE_CONSOLE=OFF -DUSE_X11=ON -DUSE_GTK=ON -DUSE_GTK3=ON -DWITH_AUTOMATIC_UPDATE=OFF -DINSTALL_GAMES_BINDIR=/usr/games/bin -DINSTALL_DATADIR=/usr/share/games -DUSE_STATIC_BOOST=OFF -DUSE_SYSTEM_TINYXML=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/gentoo_toolchain.cmake  /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0-src
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 4.8.5
-- The C compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test USE_GCC_STD_14
-- Performing Test USE_GCC_STD_14 - Failed
-- Performing Test HAVE_C11_SMART_PTRS
-- Performing Test HAVE_C11_SMART_PTRS - Failed
CMake Error at cmake/RequireCXXSourceCompiles.cmake:19 (MESSAGE):
  HAVE_C11_SMART_PTRS is required for this project to build properly.
  Aborting.
Call Stack (most recent call first):
  CMakeLists.txt:162 (REQUIRE_CXX_SOURCE_COMPILES)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeError.log".
 * ERROR: games-action/openclonk-7.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_configure
 *   environment, line 4776:  Called cmake-utils_src_configure
 *   environment, line 1058:  Called _execute_optionally 'src_configure'
 *   environment, line  366:  Called enable_cmake-utils_src_configure
 *   environment, line 1531:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=games-action/openclonk-7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-action/openclonk-7.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/games-action/openclonk-7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-action/openclonk-7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build'
 * S: '/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0-src'

>>> Failed to emerge games-action/openclonk-7.0, Log file:

>>>  '/var/tmp/portage/games-action/openclonk-7.0/temp/build.log'

 * Messages for package games-action/openclonk-7.0:

 * ERROR: games-action/openclonk-7.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_configure
 *   environment, line 4776:  Called cmake-utils_src_configure
 *   environment, line 1058:  Called _execute_optionally 'src_configure'
 *   environment, line  366:  Called enable_cmake-utils_src_configure
 *   environment, line 1531:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=games-action/openclonk-7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-action/openclonk-7.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/games-action/openclonk-7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-action/openclonk-7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build'
 * S: '/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0-src'

# cat /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test USE_GCC_STD_14 failed with the following output:
Change Dir: /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_8c635/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_8c635.dir/build.make CMakeFiles/cmTC_8c635.dir/build
gmake[1]: Entering directory '/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_8c635.dir/src.cxx.o
/usr/bin/x86_64-pc-linux-gnu-g++     -DNDEBUG -O2 -pipe -march=native  -DUSE_GCC_STD_14   -std=gnu++14 -o CMakeFiles/cmTC_8c635.dir/src.cxx.o -c /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx
x86_64-pc-linux-gnu-g++: error: unrecognized command line option '-std=gnu++14'
CMakeFiles/cmTC_8c635.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_8c635.dir/src.cxx.o' failed
gmake[1]: *** [CMakeFiles/cmTC_8c635.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_8c635/fast' failed
gmake: *** [cmTC_8c635/fast] Error 2

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAVE_C11_SMART_PTRS failed with the following output:
Change Dir: /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_961a5/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_961a5.dir/build.make CMakeFiles/cmTC_961a5.dir/build
gmake[1]: Entering directory '/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_961a5.dir/src.cxx.o
/usr/bin/x86_64-pc-linux-gnu-g++     -DNDEBUG -O2 -pipe -march=native -Wall -Wextra -Wredundant-decls -Wendif-labels -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Winit-self -Wsign-promo -Wno-reorder -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -DHAVE_C11_SMART_PTRS   -o CMakeFiles/cmTC_961a5.dir/src.cxx.o -c /var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx
/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx:2:14: error: ‘unique_ptr’ is not a member of ‘std’
 int main() { std::unique_ptr<int> a; std::shared_ptr<int> b; }
              ^
/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx:2:30: error: expected primary-expression before ‘int’
 int main() { std::unique_ptr<int> a; std::shared_ptr<int> b; }
                              ^
/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx:2:30: error: expected ‘;’ before ‘int’
/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx:2:38: error: ‘shared_ptr’ is not a member of ‘std’
 int main() { std::unique_ptr<int> a; std::shared_ptr<int> b; }
                                      ^
/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx:2:54: error: expected primary-expression before ‘int’
 int main() { std::unique_ptr<int> a; std::shared_ptr<int> b; }
                                                      ^
/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp/src.cxx:2:54: error: expected ‘;’ before ‘int’
CMakeFiles/cmTC_961a5.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_961a5.dir/src.cxx.o' failed
gmake[1]: *** [CMakeFiles/cmTC_961a5.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/var/tmp/portage/games-action/openclonk-7.0/work/openclonk-7.0_build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_961a5/fast' failed
gmake: *** [cmTC_961a5/fast] Error 2

Source file was:
#include <memory>
int main() { std::unique_ptr<int> a; std::shared_ptr<int> b; }
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2016-03-16 03:59:44 UTC
You need at least gcc-4.9.  I updated the ebuild to enforce that.  thanks for the bug report.