Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

libcudaxx and mingw #213

Closed
3rav opened this issue Oct 20, 2021 · 2 comments
Closed

libcudaxx and mingw #213

3rav opened this issue Oct 20, 2021 · 2 comments

Comments

@3rav
Copy link

3rav commented Oct 20, 2021

I have error with Ninja generator:

-- The CXX compiler identification is Clang 13.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is Clang 13.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Enabled CUDA architectures: sm_35 sm_50 sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_72 sm_75 sm_80 compute_80
-- Configuring for standalone build.
-- Found LLVM_CONFIG_PATH as C:/msys64/mingw64/bin/llvm-config.exe
-- Found ZLIB: C:/msys64/mingw64/lib/libz.dll.a (found version "1.2.11")
-- Found LibXml2: C:/msys64/mingw64/lib/libxml2.dll.a (found version "2.9.12")
-- Found PythonInterp: C:/msys64/mingw64/bin/python.exe (found version "3.9.7")
-- Looking for fopen in c
-- Looking for fopen in c - not found
-- Looking for __gcc_personality_v0 in gcc_s
-- Looking for __gcc_personality_v0 in gcc_s - not found
-- Performing Test LIBCXX_SUPPORTS_NODEFAULTLIBS_FLAG
-- Performing Test LIBCXX_SUPPORTS_NODEFAULTLIBS_FLAG - Success
-- Performing Test LIBCXX_HAS_COMMENT_LIB_PRAGMA
-- Performing Test LIBCXX_HAS_COMMENT_LIB_PRAGMA - Failed
-- Performing Test LIBCXX_HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test LIBCXX_HAVE_CXX_ATOMICS_WITHOUT_LIB - Failed
CMake Warning at libcxx/cmake/Modules/CheckLibcxxAtomic.cmake:54 (message):
  Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
  libcxx/cmake/config-ix.cmake:76 (include)
  libcxx/CMakeLists.txt:488 (include)


-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for ccos in m
-- Looking for ccos in m - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Performing Test LIBCXX_SUPPORTS_EHS_FLAG
-- Performing Test LIBCXX_SUPPORTS_EHS_FLAG - Failed
-- Performing Test LIBCXX_SUPPORTS_EHA_FLAG
-- Performing Test LIBCXX_SUPPORTS_EHA_FLAG - Failed
-- Performing Test LIBCXX_SUPPORTS_FNO_EXCEPTIONS_FLAG
-- Performing Test LIBCXX_SUPPORTS_FNO_EXCEPTIONS_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_GR_FLAG
-- Performing Test LIBCXX_SUPPORTS_GR_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_FNO_RTTI_FLAG
-- Performing Test LIBCXX_SUPPORTS_FNO_RTTI_FLAG - Success
-- Generating custom __config for non-DLL Windows build
-- Performing Test LIBCXX_SUPPORTS_ZL_FLAG
-- Performing Test LIBCXX_SUPPORTS_ZL_FLAG - Failed
-- Performing Test LIBCXX_SUPPORTS_NODEFAULTLIB_FLAG
-- Performing Test LIBCXX_SUPPORTS_NODEFAULTLIB_FLAG - Failed
-- Performing Test LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG
-- Performing Test LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_STD_COLON_CXX11_FLAG
-- Performing Test LIBCXX_SUPPORTS_STD_COLON_CXX11_FLAG - Failed
-- Performing Test LIBCXX_SUPPORTS_NOSTDINCXX_FLAG
-- Performing Test LIBCXX_SUPPORTS_NOSTDINCXX_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test LIBCXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_FVISIBILITY_EQ_HIDDEN_FLAG
-- Performing Test LIBCXX_SUPPORTS_FVISIBILITY_EQ_HIDDEN_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WALL_FLAG
-- Performing Test LIBCXX_SUPPORTS_WALL_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WEXTRA_FLAG
-- Performing Test LIBCXX_SUPPORTS_WEXTRA_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_W_FLAG
-- Performing Test LIBCXX_SUPPORTS_W_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WWRITE_STRINGS_FLAG
-- Performing Test LIBCXX_SUPPORTS_WWRITE_STRINGS_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WNO_UNUSED_PARAMETER_FLAG
-- Performing Test LIBCXX_SUPPORTS_WNO_UNUSED_PARAMETER_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WNO_LONG_LONG_FLAG
-- Performing Test LIBCXX_SUPPORTS_WNO_LONG_LONG_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WERROR_EQ_RETURN_TYPE_FLAG
-- Performing Test LIBCXX_SUPPORTS_WERROR_EQ_RETURN_TYPE_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WEXTRA_SEMI_FLAG
-- Performing Test LIBCXX_SUPPORTS_WEXTRA_SEMI_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WNO_USER_DEFINED_LITERALS_FLAG
-- Performing Test LIBCXX_SUPPORTS_WNO_USER_DEFINED_LITERALS_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WNO_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test LIBCXX_SUPPORTS_WNO_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WNO_IGNORED_ATTRIBUTES_FLAG
-- Performing Test LIBCXX_SUPPORTS_WNO_IGNORED_ATTRIBUTES_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_WNO_ERROR_FLAG
-- Performing Test LIBCXX_SUPPORTS_WNO_ERROR_FLAG - Success
CMake Warning at C:/msys64/mingw64/lib/cmake/llvm/AddLLVM.cmake:1732 (message):
  LLVM_EXTERNAL_LIT set to C:/_/M/mingw-w64-clang/src/llvm/utils/lit/lit.py,
  but the path does not exist.
Call Stack (most recent call first):
  C:/msys64/mingw64/lib/cmake/llvm/AddLLVM.cmake:1777 (get_llvm_lit_path)
  C:/msys64/mingw64/lib/cmake/llvm/AddLLVM.cmake:1822 (add_lit_target)
  libcxx/test/CMakeLists.txt:81 (add_lit_testsuite)


-- there is no pre-generated ABI list for the requested libc++ configuration. check-cxx-abilist target is not supported
-- Configuring done
-- Generating done
-- Build files have been written to: C:/msys64/usr/local/pkg_libcxx/src/build-x86_64-w64-mingw32
ninja: error: 'C:/msys64/usr/local/pkg_libcxx/src/libcudacxx-1.5.0/include/__config', needed by 'libcxx/__generated_config', missing and no known rule to make it

but with "MSYS Makefiles" generator error occurs at 95%:

C:/msys64/usr/local/pkg_libcxx/src/libcudacxx-1.5.0/libcxx/src/support/win32/thread_win32.cpp:133:5: error: redefinition of '__libcpp_condvar_destroy'
int __libcpp_condvar_destroy(__libcpp_condvar_t *__cv)
    ^
C:/msys64/usr/local/pkg_libcxx/src/libcudacxx-1.5.0/libcxx/include/__threading_support:429:5: note: previous definition is here
int __libcpp_condvar_destroy(__libcpp_condvar_t *__cv)
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [libcxx/src/CMakeFiles/cxx_static.dir/build.make:594: libcxx/src/CMakeFiles/cxx_static.dir/support/win32/thread_win32.cpp.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:540: libcxx/src/CMakeFiles/cxx_static.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@wmaxey
Copy link
Member

wmaxey commented Oct 20, 2021

Please add full steps for what you are trying to do, generally consumers do not need to build or configure the library.

@wmaxey
Copy link
Member

wmaxey commented May 9, 2022

Closing, we now have some proper support for being used as a sub project in CMake which may solve issues such as this.

#242

@wmaxey wmaxey closed this as completed May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants