bam icon indicating copy to clipboard operation
bam copied to clipboard

build error on ubuntu 24.04 after following the build guide

Open gaowayne opened this issue 4 months ago • 2 comments

Describe the bug A clear and concise description of what the bug is. it is build error To Reproduce Steps to reproduce the behavior: following the guide to make libnvm on ubuntu24.04 Expected behavior A clear and concise description of what you expected to happen. should build well Screenshots If applicable, add screenshots to help explain your problem.

[ 10%] Building CXX object CMakeFiles/libnvm.dir/src/admin.cpp.o
In file included from /root/wayne/bam/bam/include/freestanding/include/simt/type_traits:36,
                 from /root/wayne/bam/bam/include/freestanding/include/simt/atomic:57,
                 from /root/wayne/bam/bam/include/nvm_types.h:10,
                 from /root/wayne/bam/bam/src/admin.cpp:1:
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1461:8: error: expected identifier before ‘__is_convertible’
 1461 | struct __is_convertible
      |        ^~~~~~~~~~~~~~~~
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1461:8: error: expected unqualified-id before ‘__is_convertible’
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1467:40: error: expected identifier before ‘__is_convertible’
 1467 | template <class _T1, class _T2> struct __is_convertible<_T1, _T2, 0, 1> : public false_type {};
      |                                        ^~~~~~~~~~~~~~~~
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1467:40: error: expected unqualified-id before ‘__is_convertible’
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1468:40: error: expected identifier before ‘__is_convertible’
 1468 | template <class _T1, class _T2> struct __is_convertible<_T1, _T2, 1, 1> : public false_type {};
      |                                        ^~~~~~~~~~~~~~~~
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1468:40: error: expected unqualified-id before ‘__is_convertible’
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1469:40: error: expected identifier before ‘__is_convertible’
 1469 | template <class _T1, class _T2> struct __is_convertible<_T1, _T2, 2, 1> : public false_type {};
      |                                        ^~~~~~~~~~~~~~~~
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1469:40: error: expected unqualified-id before ‘__is_convertible’
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1470:40: error: expected identifier before ‘__is_convertible’
 1470 | template <class _T1, class _T2> struct __is_convertible<_T1, _T2, 3, 1> : public false_type {};
      |                                        ^~~~~~~~~~~~~~~~
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1470:40: error: expected unqualified-id before ‘__is_convertible’
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1472:40: error: expected identifier before ‘__is_convertible’
 1472 | template <class _T1, class _T2> struct __is_convertible<_T1, _T2, 0, 2> : public false_type {};
      |                                        ^~~~~~~~~~~~~~~~
/root/wayne/bam/bam/include/freestanding/include/simt/../../libcxx/include/type_traits:1472:40: error: expected unqualified-id before ‘__is_convertible’

Machine Setup (please complete the following information):

  • OS: ubuntu 24.04
  • NVIDIA Driver, CUDA Versions, GPU name, root@salab-hpedl380g11-01:~/wayne/bam/bam/build# nvidia-smi Sun Oct 13 04:20:13 2024
    +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA L40S Off | 00000000:8A:00.0 Off | 0 | | N/A 36C P8 34W / 350W | 1MiB / 46068MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | No running processes found | +-----------------------------------------------------------------------------------------+

  • SSD used
  • one NVMe SSD

Additional context Add any other context about the problem here. Add as many description as possible to help you out faster. This is a system's setup, knowing about the system is critical to understand the problem. my GCC version is 13.2

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 13.2.0-23ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-13-uJ7kn6/gcc-13-13.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-13-uJ7kn6/gcc-13-13.2.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Ubuntu 13.2.0-23ubuntu4) 

cmake log below

root@salab-hpedl380g11-01:~/wayne/bam/bam/build# cmake .. -Wno-dev
-- The CUDA compiler identification is NVIDIA 12.0.140
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found CUDA: /usr (found suitable version "12.0", minimum required is "8.0") 
-- Using NVIDIA driver found in /usr/src/nvidia-535.183.01
-- Not building FIO
-- Configuring libnvm without SmartIO
-- Configuring kernel module without CUDA
-- Found CUDA: /usr (found suitable version "12.0", minimum required is "10.0") 
-- Found CUDA: /usr (found suitable version "12.0", minimum required is "8.0") 
-- Configuring done (1.7s)
-- Generating done (0.0s)
-- Build files have been written to: /root/wayne/bam/bam/build

gaowayne avatar Oct 13 '24 04:10 gaowayne