Skip to content

Issue building on Fedora 42 #254

Description

@hongcheng79

Managed to run install_deps.sh without issue. But I encounter compiling issue at llvm stage with bunch of warning and finally failed build
/home/chc/development/rocm_sdk_builder/src_projects/llvm-project/llvm/lib/Support/BalancedPartitioning.cpp:178:19: required from here
178 | llvm::erase_if(N.UtilityNodes, [&](auto &UN) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
179 | return UtilityNodeDegree[UN] <= 1 || UtilityNodeDegree[UN] >= NumNodes;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180 | });
| ~~
/usr/include/c++/15/initializer_list:101:5: note: candidate 6: ‘template constexpr const _Tp* std::end(initializer_list<_Tp>)’
101 | end(initializer_list<_Tp> __ils) noexcept
| ^~~
/usr/include/c++/15/initializer_list:101:5: note: template argument deduction/substitution failed:
/home/chc/development/rocm_sdk_builder/src_projects/llvm-project/llvm/include/llvm/ADT/ADL.h:36:20: note: ‘llvm::SmallVector<unsigned int, 4>’ is not derived from ‘std::initializer_list<_Tp>’
36 | -> decltype(end(std::forward(range))) {
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/chc/development/rocm_sdk_builder/src_projects/llvm-project/llvm/include/llvm/ADT/STLExtras.h: In instantiation of ‘void llvm::erase_if(Container&, UnaryPredicate) [with Container = SmallVector<unsigned int, 4>; UnaryPredicate = BalancedPartitioning::runIterations(FunctionNodeRange, unsigned int, unsigned int, unsigned int, std::mt19937&) const::<lambda(auto:41&)>]’:
/home/chc/development/rocm_sdk_builder/src_projects/llvm-project/llvm/lib/Support/BalancedPartitioning.cpp:178:19: required from here
178 | llvm::erase_if(N.UtilityNodes, [&](auto &UN) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
179 | return UtilityNodeDegree[UN] <= 1 || UtilityNodeDegree[UN] >= NumNodes;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180 | });
| ~~
/home/chc/development/rocm_sdk_builder/src_projects/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2032:30: error: ‘class llvm::SmallVector<unsigned int, 4>’ has no member named ‘end’
2032 | C.erase(remove_if(C, P), C.end());
| ^
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:247: lib/Support/CMakeFiles/LLVMSupport.dir/BalancedPartitioning.cpp.o] Error 1
make[2]: Leaving directory '/home/chc/development/rocm_sdk_builder/builddir/003_llvm_project_llvm'
make[1]: *** [CMakeFiles/Makefile2:31944: lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make[2]: Leaving directory '/home/chc/development/rocm_sdk_builder/builddir/003_llvm_project_llvm'
[ 12%] Built target generated-table
make[1]: Leaving directory '/home/chc/development/rocm_sdk_builder/builddir/003_llvm_project_llvm'
make: *** [Makefile:156: all] Error 2
build failed: llvm-project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions