hpx: Build error on macOS with GCC
Expected Behavior
I want to build HPX on macOS with GCC 11, and its standard C++ library.
Actual Behavior
I see this error:
In file included from /var/folders/gb/x5lhfpj15ln66g6br549tz5m0000gn/T/eschnett/spack-stage/spack-stage-hpx-1.6.0-i7cpnv4wlp2wc7f6552qiatdkn4dhavv/spack-src/hpx/lcos/packaged_action.hpp:11,
from /var/folders/gb/x5lhfpj15ln66g6br549tz5m0000gn/T/eschnett/spack-stage/spack-stage-hpx-1.6.0-i7cpnv4wlp2wc7f6552qiatdkn4dhavv/spack-src/hpx/runtime/components/default_distribution_policy.hpp:20,
from /var/folders/gb/x5lhfpj15ln66g6br549tz5m0000gn/T/eschnett/spack-stage/spack-stage-hpx-1.6.0-i7cpnv4wlp2wc7f6552qiatdkn4dhavv/spack-src/hpx/runtime/components/new.hpp:18,
from /var/folders/gb/x5lhfpj15ln66g6br549tz5m0000gn/T/eschnett/spack-stage/spack-stage-hpx-1.6.0-i7cpnv4wlp2wc7f6552qiatdkn4dhavv/spack-src/libs/full/collectives/src/detail/communication_set_node.cpp:22:
/var/folders/gb/x5lhfpj15ln66g6br549tz5m0000gn/T/eschnett/spack-stage/spack-stage-hpx-1.6.0-i7cpnv4wlp2wc7f6552qiatdkn4dhavv/spack-src/libs/core/config/include/hpx/config/detail/compat_error_code.hpp: In destructor 'hpx::compat_error_code::~compat_error_code()':
/var/folders/gb/x5lhfpj15ln66g6br549tz5m0000gn/T/eschnett/spack-stage/spack-stage-hpx-1.6.0-i7cpnv4wlp2wc7f6552qiatdkn4dhavv/spack-src/libs/core/config/include/hpx/config/detail/compat_error_code.hpp:34:19: error: no match for 'operator=' (operand types are 'std::error_code' and 'boost::system::error_code')
34 | _ec = _compat;
| ^~~~~~~
Steps to Reproduce the Problem
I installed GCC 11.1.0 on macOS 11.4 via Spack. Using this GCC I then want to install HPX.
- spack install gcc
- spack compiler find
- spack install hpx networking=none %gcc
Specifications
… Please describe your environment
- HPX Version: 1.6.0
- Platform (compiler, OS): macOS 11.4, GCC 11.1.0
The complete build output from Spack is spack-build-out.txt
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (19 by maintainers)
With the various patches to Boost, and with HPX 1.7.0, I can build and link with GCC on macOS. Thanks for all the help!
(This is with
boost @develop.)To clarify: I can build
hpxfine on macOS when I just sayspack install hpx. This uses Apple’s Clang compiler. However, I want to use GCC for various reasons (openMP, Fortran, consistency with other platforms), and this fails.… and the first issue is fixed, the second is actually a problem in Spack.
Reported as https://github.com/boostorg/filesystem/issues/199 and https://github.com/boostorg/property_map/issues/22 .
I’m currently trying to build with
boost @develop; so far without success.This is the requested output: