Open robegan21 opened 2 years ago
I too have this problem, and I also need clang-upc for HipMer. The HipMer helper script for this uses the following CMake options:
-DCMAKE_INSTALL_PREFIX:PATH=(install destination) -DLLVM_TARGETS_TO_BUILD:=host -DCMAKE_BUILD_TYPE:=Release
I tried GCC 11.2.0, GCC 9.3.0 and GCC 8.2.0, all with similar results to @robegan21 .
I did a successful build using GCC 7.3.0-2.30 and CMake 3.12.1 (as provided by EasyBuild). There is still "a ton of warnings", but at least it completes.
Is this fork still maintained?
@Ghepardo Our team is currently in the process of completing the paperwork that will enable us to take over maintenance of this project. I don't have a concrete time estimate, but a release that builds with modern versions of GCC and Clang should appear soon after those formalities are completed.
Posting this in relation to supporting users running HipMer which requires Berkeley UPC to use the Clang UPC2C translator.
3.9.1-1 builds and works fine with gcc 7.5, but fails with some newer versions, I chose 10.3.0 to demonstrate. In both builds there are a ton of warnings, but it actually errors with 10.3.0:
~~~~~ In file included from /dev/shm/bupc-regan-hipmer-builds/clang-upc-3.9.1-1/tools/lli/lli.cpp:30: /dev/shm/bupc-regan-hipmer-builds/clang-upc-3.9.1-1/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h: In member function ‘llvm::Expected<std::vector~~~~^~~~~