Closed meso-uca closed 3 weeks ago
I was able to build onnxruntime (with updated cmake) on 22.04, so it's probably related to the device selection and not to the OS
Just testing a build with Linux Mint 21.03 which is based on to ubuntu 22.04 and at least there the build system cmake has been new enough. But we have done couple of dependency updates... I will put more info after couple of hours.
I'm running Mint 21.3, it gets cmake from Ubuntu and it's version is 3.25.1, I'm not sure what version onnxruntime required, I think it was 3.26 or 3.28.
What version of cmake do you have? (/usr/bin/cmake --version
for the distro version, cmake --version
for the active one). Maybe some package installed cmake as dependency with pip
I pushed small change to install_debs.sh script. If it detects that the the distro is ubuntu 22.04 version, it will install in addition of apps installed also for never versions, also do the:
sudo apt install libstdc++-12-dev libgfortran-12-dev gfortran-12
Onnxruntime build problem is still here, I also got the error on Linux Mint about too old cmake.
CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
CMake 3.26 or higher is required. You are running version 3.22.1
Does ubuntu offer any official backport build of cmake that could be installed?
I believe I have fix coming for this, just testing.
This should have now been fixed. Tested on Linux Mint but can you verify it by running these commands so that you get changes in without need to rebuild other packages.
rm -rf src_projects/onnxruntime/build
git pull
./babs.sh -i
./babs.sh -co
./babs.sh -ap
./babs.sh -b
Basically it will now build the cmake 3.26.6 under /opt/rocm_sdk_611/cmake directory and use it when building onnxruntime if it detects that the version provided by the linux distribution is too old.
Ok to close this now?
Now, with the current version (git pull && checkout && apply patches), error when building GraphBLAS :
[ 89%] Building C object GraphBLAS/CMakeFiles/GraphBLAS.dir/Source/GrB_IndexUnaryOp_free.c.o
cd /home/ubuntu/rocm_sdk_builder/builddir/023_04_SuiteSparse/GraphBLAS && /opt/rocm_sdk_611/bin/clang -DGraphBLAS_EXPORTS -DHAVE_DLFCN_H -DHAVE_STRONG_GETAUXVAL -I/home/ubuntu/rocm_sdk_builder/builddir/023_04_SuiteSparse/GraphBLAS -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/cpu_features/include -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/cpu_features -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/cpu_features/src -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/cpu_features/include/internal -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/Template -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Include -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/Shared -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Config -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/xxHash -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/lz4 -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/zstd -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/zstd/zstd_subset -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/JITpackage -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/FactoryKernels -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/Factories -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Demo/Include -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/rmm_wrap -I/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/JitKernels -I/opt/rocm_sdk_611/include -I/opt/rocm_sdk_611/hsa/include -I/opt/rocm_sdk_611/rocm_smi/include -I/opt/rocm_sdk_611/rocblas/include -Wno-pointer-sign -O3 -DNDEBUG -Wno-extra-semi-stmt -Wno-extra-semi-stmt -O3 -DNDEBUG -Wno-extra-semi-stmt -Wno-extra-semi-stmt -std=gnu11 -fPIC -fopenmp=libomp -MD -MT GraphBLAS/CMakeFiles/GraphBLAS.dir/Source/GrB_IndexUnaryOp_free.c.o -MF CMakeFiles/GraphBLAS.dir/Source/GrB_IndexUnaryOp_free.c.o.d -o CMakeFiles/GraphBLAS.dir/Source/GrB_IndexUnaryOp_free.c.o -c /home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/GrB_IndexUnaryOp_free.c
In file included from /home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/GB_zstd.c:63:
/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/zstd/zstd_subset/compress/zstd_compress.c:573:10: error: use of undeclared identifier 'ZSTD_c_experimentalParam6'
573 | case ZSTD_c_targetCBlockSize:
| ^
/home/ubuntu/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/zstd/zstd_subset/common/../common/../zstd.h:1952:33: note: expanded from macro 'ZSTD_c_targetCBlockSize'
1952 | #define ZSTD_c_targetCBlockSize ZSTD_c_experimentalParam6
| ^
I'm using the ubuntu 22.04 LTS cloud image : https://cloud-images.ubuntu.com/jammy/current/
I applied a lot of fixes in pull request https://github.com/lamikr/rocm_sdk_builder/pull/59 and at least on Ubuntu 22.04 based Linux Mint 21 the clean build worked without issues. Can you re-open if needed.
I'm also getting these errors with gfx1100
commit c3a13864f4b762e1d7dfb202cb38630228f80166
In file included from /home/flip111/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/GB_zstd.c:63:
/home/flip111/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/zstd/zstd_subset/compress/zstd_compress.c:943:24: error: use of undeclared identifier 'ZSTD_c_experimentalParam6'
943 | BOUNDCHECK(ZSTD_c_targetCBlockSize, value);
| ^
In file included from /home/flip111/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/Source/GB_zstd.c:63:
/home/flip111/rocm_sdk_builder/src_projects/SuiteSparse/GraphBLAS/zstd/zstd_subset/compress/zstd_compress.c:1114:10: error: use of undeclared identifier 'ZSTD_c_experimentalParam6'
1114 | case ZSTD_c_targetCBlockSize :
| ^
@lamikr any chance we can reopen this? Or do you prefer a new issue?
build env : ubuntu 22.04 + cmake 3.29.3 (distro cmake version was not enough for build system)
Process :
Error on building onnxruntime :
The generated clang options seem strange :
Any idea ?