gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libobjc2 on OpenBSD 6.8 build errors - C++ runtime not found


From: Frederik Seiffert
Subject: Re: libobjc2 on OpenBSD 6.8 build errors - C++ runtime not found
Date: Fri, 5 Mar 2021 16:20:42 +0100

Hi Riccardo,

Am 02.02.2021 um 15:22 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:

-- No useable C++ runtime found


why doesn't it like my runtime library?

The crude way I’ve been debugging the C++ runtime detection (in my Android/Windows endeavors) was by logging the output from try_compile() with this change in CMakeLists:

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,7 +234,9 @@ function(test_cxx CXX_RUNTIME_NAME IS_STDLIB)
                        "${CMAKE_BINARY_DIR}/CMake"
                        "${CMAKE_CURRENT_LIST_DIR}/CMake"
                        test_cxx_runtime
-                       CMAKE_FLAGS "-DCXX_RUNTIME=${CXX_RUNTIME_LIB}" ${CXX_RUNTIME_FLAGS})
+                       CMAKE_FLAGS "-DCXX_RUNTIME=${CXX_RUNTIME_LIB}" ${CXX_RUNTIME_FLAGS}
+                       OUTPUT_VARIABLE TRY_COMPILE_OUTPUT)
+               message(WARNING ${TRY_COMPILE_OUTPUT})
                if (USERUNTIME)
                        set(CXX_RUNTIME ${CXX_RUNTIME_LIB} PARENT_SCOPE)
                else ()


This will show you the compiler/linker invocation for the test program and any errors. Maybe that helps.

Frederik


reply via email to

[Prev in Thread] Current Thread [Next in Thread]