Open DapengFeng opened 1 week ago
I ran into the same issue. I got compilation to run by modifying the cxx_compile_flags_override.cmake
(in /home/dapeng/.conan/data/z3/4.13.0/_/_/source/32317304257841009ca799ee836f0a44fa3b7b73/src/cmake
) and changing it to:
# This file overrides the default compiler flags for CMake's built-in
# configurations (CMAKE_BUILD_TYPE). Most compiler flags should not be set here.
# The main purpose is to have very fine grained control of the compiler flags.
# We only override the defaults for Clang and GCC right now.
# CMake's MSVC logic is complicated so for now it's better to just inherit CMake's defaults.
if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") OR ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU"))
# Taken from Modules/Compiler/GNU.cmake
set(CMAKE_CXX_FLAGS_INIT "-fexceptions")
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g -O0 -fexceptions")
set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG -fexceptions")
set(CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG -fexceptions")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g -DNDEBUG -fexceptions")
endif()
Unfortunately, (at least for me) the build is producing further issues when compiling the actual code base for Orbit. After I removed -Werror=ignored-attributes
from the add_compile_options
section in CMakeList.txt in the local orbit source code checkout, the compilation works. One test case fails, though, but that seems to be related to the code being a pre-release. Starting Orbit just works fine.