Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during compilation with NVCC #198

Closed
thompsonnoahe opened this issue Apr 5, 2023 · 2 comments
Closed

Error during compilation with NVCC #198

thompsonnoahe opened this issue Apr 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@thompsonnoahe
Copy link

thompsonnoahe commented Apr 5, 2023

Environment

toml++ version and/or commit hash: v3.3.0

Compiler: nvcc V10.2.300

C++ standard mode: 17

Target arch: aarch64

Library configuration overrides: None

Relevant compilation flags: --compiler-options -std=c++17

Describe the bug

During compilation of toml++ with nvcc, NVIDIA's CUDA Compiler, the compiler errors out with the following status:

/usr/local/include/toml++/impl/preprocessor.h:275:59: error: missing ')' after "__has_attribute"
 #elif TOML_GCC || TOML_CLANG || TOML_HAS_ATTR(__noinline__)

/usr/local/include/toml++/impl/preprocessor.h:275:47: error: missing binary operator before token "("
 #elif TOML_GCC || TOML_CLANG || TOML_HAS_ATTR(__noinline__)

Additional information

NVIDIA CUDA Runtime v10.2.

@thompsonnoahe thompsonnoahe added the bug Something isn't working label Apr 5, 2023
@marzer
Copy link
Owner

marzer commented May 18, 2023

@thompsonnoahe I'm looking into this now. Looks like CUDA reserves __noinline__ for it's own purposes, causing this issue: https://stackoverflow.com/questions/70301375/noinline-macro-conflict-between-glib-and-cuda/

@marzer marzer closed this as completed in e6d1958 May 18, 2023
@marzer
Copy link
Owner

marzer commented May 18, 2023

Alright I've pushed a fix for this. I'm not easily able to test this myself currently so if you still have further issues feel free to re-open it and I'll have a deeper look into it. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants