hpx: HPX 1.9.0 does not compile with GCC on Windows
Expected Behavior
HPX 1.9.0 should compile with GCC 12.2.0
Actual Behavior
- HPX 1.9.0 CMake Configure step succeeds (log file: https://pastebin.com/6SHy5Fvm)
- HPX 1.9.0 compilation fails (log file: https://pastebin.com/cTfM06VC)
Steps to Reproduce the Problem
- Set up Boost 1.78.0
1. Download Boost 1.78.0 https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.7z
2. Unpack Boost 1.78.0 to
c:/dev/cpplibs/boost_1_78_03. Runbootstrap.batwithgccargument 4. Build Boost 1.78.0
.\b2.exe link=static,shared variant=release,debug architecture=x86 address-model=64 threading=multi --build-type=complete install
- Set up HWLOC 2.8.0
1. Download HWLOC 2.8.0 binaries https://download.open-mpi.org/release/hwloc/v2.8/hwloc-win64-build-2.8.0.zip
2. Unpack HWLOC 2.8.0 to
c:/dev/cpplibs/hwloc-win64-build-2.8.0 - Set up HPX 1.9.0 in
c:/dev/cpplibs/hpxdirectory
git clone https://github.com/STEllAR-GROUP/hpx.git
cd hpx
git checkout v1.9.0
cmake -S "c:/dev/cpplibs/hpx" -B "c:/dev/cpplibs/hpx_build" -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_INSTALL_PREFIX="c:/dev/cpplibs/hpx_bin" -DBOOST_ROOT="c:/Boost" -DHWLOC_ROOT="c:/dev/cpplibs/hwloc-win64-build-2.8.0" -DHPX_WITH_CXX_STANDARD=20 -DHPX_WITH_STATIC_LINKING=ON -DHPX_WITH_MALLOC=system -DHPX_WITH_FETCH_ASIO=ON -DHPX_WITH_PKGCONFIG=OFF -DHPX_DATASTRUCTURES_WITH_ADAPT_STD_TUPLE=ON -DHPX_DATASTRUCTURES_WITH_ADAPT_STD_VARIANT=ON -DHPX_WITH_DATAPAR=OFF -DHPX_WITH_DATAPAR_BACKEND=NONE -DHPX_WITH_DATAPAR_VC_NO_LIBRARY=ON
cmake --build "c:/dev/cpplibs/hpx_build" --target install --config Release -j16
The compilation of HPX 1.9.0 project fails at this last stage.
Specifications
- HPX Version: 1.9.0
- BOOST Version: 1.78.0
- HWLOC Version: 2.8.0
- Platform (compiler, OS): GCC 12.2.0, Windows 11 Pro 22H2
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 26 (14 by maintainers)
After I fetched the latest commit, the CMake configuration stage fails with the following message:
Sure, here is the link to error output: https://pastebin.com/ZBDdxB56
I believe this is a different error, now it mostly complains about missing symbols from libatomic. Looks like progress, after all.
Sure. I installed CMake and GCC using the chocolatey package manager
Pathvariable (Start -> Edit the system environment variables -> Environment variables -> Path -> Edit) - addC:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin- addC:\Program Files\CMake\bin- restart shell or cmdI don’t know if I can help with this issue as I am not an expert in platform-specific C++ build configurations and this is my first experience with the HPX project. If I can provide you with more information or logs that might be helpful to you, just let me know.
P.S.: HPX 1.9.0 builds with no issues on Ubuntu 22.04, GCC 11.3.0