On Funtoo Linux I found that games-strategy/wesnoth-1.13.6-r1 fails to emerge giving the error:
removing NDEBUG flag from CMAKE_CXX_FLAGS_RELEASE
removing NDEBUG flag from CMAKE_C_FLAGS_RELEASE
removing NDEBUG flag from CMAKE_CXX_FLAGS_RELWITHDEBINFO
removing NDEBUG flag from CMAKE_C_FLAGS_RELWITHDEBINFO
removing NDEBUG flag from CMAKE_CXX_FLAGS_MINSIZEREL
removing NDEBUG flag from CMAKE_C_FLAGS_MINSIZEREL
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp=libomp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindOpenMP.cmake:316 (find_package_handle_standard_args)
CMakeLists.txt:542 (find_package)
-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6_build/CMakeFiles/CMakeError.log".
* ERROR: games-strategy/wesnoth-1.13.6-r1::games-overlay failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 115: Called src_configure
* environment, line 3553: Called cmake-utils_src_configure
* environment, line 855: Called _cmake_execute_optionally 'src_configure'
* environment, line 326: Called enable_cmake-utils_src_configure
* environment, line 1399: 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-strategy/wesnoth-1.13.6-r1::games-overlay'`,
* the complete build log and the output of `emerge -pqv '=games-strategy/wesnoth-1.13.6-r1::games-overlay'`.
* The complete build log is located at '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/environment'.
* Working directory: '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6_build'
* S: '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6'
>>> Failed to emerge games-strategy/wesnoth-1.13.6-r1, Log file:
>>> '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/build.log'
* Messages for package games-strategy/wesnoth-1.13.6-r1:
* ERROR: games-strategy/wesnoth-1.13.6-r1::games-overlay failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 115: Called src_configure
* environment, line 3553: Called cmake-utils_src_configure
* environment, line 855: Called _cmake_execute_optionally 'src_configure'
* environment, line 326: Called enable_cmake-utils_src_configure
* environment, line 1399: 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-strategy/wesnoth-1.13.6-r1::games-overlay'`,
* the complete build log and the output of `emerge -pqv '=games-strategy/wesnoth-1.13.6-r1::games-overlay'`.
* The complete build log is located at '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/environment'.
* Working directory: '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6_build'
* S: '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6'
* Regenerating GNU info directory index...
* Processed 153 info files.
* After world updates, it is important to remove obsolete packages with
* emerge --depclean. Refer to `man emerge` for more information.
Based on the error I'm guessing a workaround would be to build without the openmp USE flag, although I am hoping for a solution instead of a workaround, if it is possible.
Hi,
On Funtoo Linux I found that games-strategy/wesnoth-1.13.6-r1 fails to emerge giving the error:
Full build log is here. emerge -pqv returns:
emerge --info '=games-strategy/wesnoth-1.13.6-r1::games-overlay'
returns:Based on the error I'm guessing a workaround would be to build without the openmp USE flag, although I am hoping for a solution instead of a workaround, if it is possible.
Thanks for your time, Brenton