Skip to content

Build fails on Ubuntu 24.04 with CUDA 12.6: missing launch.cuh and _Float* type errors #4

Description

@nurartun

markdown

System Information

  • OS: Ubuntu 24.04.4 LTS
  • GCC: 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1)
  • CUDA: 12.6.85
  • GPU: NVIDIA GeForce RTX 5060 Ti (Compute Capability 12.0 - Blackwell)

Build Attempts & Errors

1. Standard CMake + Ninja

  • Command: cmake -G Ninja .. && ninja
  • Error: CMake fails during compiler detection phase with _Float64, _Float128 type errors in glibc headers.

2. Direct nvcc compilation (all .cu and .cpp files)

  • Command:
    nvcc -std=c++17 -arch=sm_89 -I src/ src/cuda/launch.cu src/cuda/cuda_kernels.cu src/bindings.cpp src/insertion_points.cpp src/run_mcswell.cpp -o gci -lz -lpthread

Error:

text
src/cuda/launch.cu:22:10: fatal error: cuda/launch.cuh: No such file or directory
CMake with forced C++17 and STDC_WANT_IEC_60559_TYPES_EXT

Command:

bash
cmake -G Ninja
-DCMAKE_CXX_STANDARD=17
-DCMAKE_CUDA_STANDARD=17
-DCMAKE_CXX_FLAGS="-D__STDC_WANT_IEC_60559_TYPES_EXT__"
-DCMAKE_CUDA_FLAGS="-D__STDC_WANT_IEC_60559_TYPES_EXT__ -arch=sm_89"
-DCMAKE_CUDA_ARCHITECTURES="89"
-DCMAKE_CXX_COMPILER_WORKS=ON
-DCMAKE_CUDA_COMPILER_WORKS=ON
..
Error: Still fails with iscanonical and issignaling redeclaration errors due to glibc C23 float types.Full Error Logs (Relevant parts)
text
src/cuda/launch.cu:22:10: fatal error: cuda/launch.cuh: No such file or directory
22 | #include "cuda/launch.cuh"
| ^~~~~~~~~~~~~~~~~
text
/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h:24:8: error: ‘_Float64’ does not name a type; did you mean ‘_Float16’?
text
/usr/include/x86_64-linux-gnu/bits/iscanonical.h:51:24: error: ‘_Float128’ was not declared in this scope; did you mean ‘__float128’?
text
/usr/include/math.h:1082:24: error: ‘int issignaling’ redeclared as different kind of entity
Request
I am using this tool for a molecular glue design project (Glioblastoma research). I need to run MCSwell to perform hydration mapping on a protein-protein interface.

Could you please:

Provide the missing launch.cuh file (or update the repository with it), and/or

Point me to a precompiled binary for Linux x86_64 with CUDA 12 support, or

Advise on a workaround for the glibc (C23) _Float* compatibility issue on modern Ubuntu systems.

I am happy to test any fixes or provide further logs if needed. Thank you for your time and this great tool

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions