-
Notifications
You must be signed in to change notification settings - Fork 4
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
identifier "__builtin_ia32_serialize" is undefined #2
Comments
Same for me:
@HareInWeed, do you know possible solutions? |
|
When I try to specify compilers: set(CMAKE_CXX_COMPILER /usr/bin/g++)
set(CMAKE_CUDA_COMPILER /usr/bin/nvcc) Configuration loops infinitely with message:
Probably it is because of CMake, because with simple set(GEC_HOME ${CMAKE_SOURCE_DIR}/libs/gec)
set(GEC_INCLUDE_DIR ${GEC_HOME}/include)
set(GEC_SOURCE_DIR ${GEC_HOME}/src)
file(GLOB GEC_SOURCES "${GEC_SOURCE_DIR}/*.cpp")
add_library(gec STATIC
${GEC_SOURCES}
)
target_include_directories(gec PUBLIC
${GEC_INCLUDE_DIR}
) it works without looping. |
Someone said this is GCC bug Qiskit/qiskit-aer#1874 (comment) |
Solved by updating to GCC 12 and CUDA Toolkit 12.5 and set(CMAKE_CXX_COMPILER /usr/bin/g++-12)
set(CMAKE_CUDA_COMPILER /usr/local/cuda-12.5/bin/nvcc)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -ccbin /usr/bin/g++-12") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(https://stackoverflow.com/questions/76504758/compiler-error-saying-identifier-builtin-ia32-serialize-is-undefined-while)
The text was updated successfully, but these errors were encountered: