Open
Description
Describe the bug
A project build fails with no package 'libunwind' found, even though it's installed. The error log as shown below:
cmake -B build/linux -S . -GNinja Multi-Config -DLY_3RDPARTY_PATH=/home/archerallstars/.o3de/3rdParty
-- Selecting engine '/snap/o3de/11/23.10.0' from 'engine_path' in '<project>/user/project.json'.
-- The C compiler identification is Clang 17.0.4
-- The CXX compiler identification is Clang 17.0.4
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang-17.0.4 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++-17.0.4 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /snap/o3de/11/usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libunwind'
-- No package 'libunwind' found
CMake Error at /snap/o3de/11/23.10.0/cmake/Platform/Linux/libunwind_linux.cmake:15 (message):
Compiling on linux requires the unwind development libraries and headers as
well as pkg-config. Try using your package manager to install the
libunwind-dev libraries.
Call Stack (most recent call first):
/snap/o3de/11/23.10.0/cmake/Platform/Linux/PAL_linux.cmake:65 (include)
/snap/o3de/11/23.10.0/cmake/PAL.cmake:433 (include)
/snap/o3de/11/23.10.0/CMakeLists.txt:37 (include)
-- Configuring incomplete, errors occurred!
Steps to reproduce
Steps to reproduce the behavior:
- Start O3DE.
- Create a new project.
- Build the project. The build will fail with
libunwind
error.
Expected behavior
The project should be able to build successfully.
Actual behavior
The project build fails with libunwind
error.
Found in Branch
Latest/stable 23.10.0, Snap.
Desktop/Device (please complete the following information):
- Device: PC
- OS: Linux, openSUSE Tumbleweed
- Version: Linux 6.6.1-1-default
- CPU: Intel® Core™ i5-8250U
- GPU: Intel® UHD Graphics 620 (KBL GT2)
- Memory: 8GB
Additional context
cmake version 3.27.7
libunwind-devel install file list
/usr/include/libunwind-common.h
/usr/include/libunwind-coredump.h
/usr/include/libunwind-dynamic.h
/usr/include/libunwind-ptrace.h
/usr/include/libunwind-x86_64.h
/usr/include/libunwind.h
/usr/include/unwind.h
/usr/lib64/libunwind-coredump.so
/usr/lib64/libunwind-generic.so
/usr/lib64/libunwind-ptrace.so
/usr/lib64/libunwind-setjmp.so
/usr/lib64/libunwind-x86_64.so
/usr/lib64/libunwind.so
/usr/lib64/pkgconfig/libunwind-coredump.pc
/usr/lib64/pkgconfig/libunwind-generic.pc
/usr/lib64/pkgconfig/libunwind-ptrace.pc
/usr/lib64/pkgconfig/libunwind-setjmp.pc
/usr/lib64/pkgconfig/libunwind.pc
/usr/share/man/man3/_U_dyn_cancel.3.gz
/usr/share/man/man3/_U_dyn_register.3.gz
/usr/share/man/man3/libunwind-dynamic.3.gz
/usr/share/man/man3/libunwind-ia64.3.gz
/usr/share/man/man3/libunwind-ptrace.3.gz
/usr/share/man/man3/libunwind-setjmp.3.gz
/usr/share/man/man3/libunwind.3.gz
/usr/share/man/man3/unw_apply_reg_state.3.gz
/usr/share/man/man3/unw_backtrace.3.gz
/usr/share/man/man3/unw_create_addr_space.3.gz
/usr/share/man/man3/unw_destroy_addr_space.3.gz
/usr/share/man/man3/unw_flush_cache.3.gz
/usr/share/man/man3/unw_get_accessors.3.gz
/usr/share/man/man3/unw_get_fpreg.3.gz
/usr/share/man/man3/unw_get_proc_info.3.gz
/usr/share/man/man3/unw_get_proc_info_by_ip.3.gz
/usr/share/man/man3/unw_get_proc_info_in_range.3.gz
/usr/share/man/man3/unw_get_proc_name.3.gz
/usr/share/man/man3/unw_get_proc_name_by_ip.3.gz
/usr/share/man/man3/unw_get_reg.3.gz
/usr/share/man/man3/unw_getcontext.3.gz
/usr/share/man/man3/unw_init_local.3.gz
/usr/share/man/man3/unw_init_local2.3.gz
/usr/share/man/man3/unw_init_remote.3.gz
/usr/share/man/man3/unw_is_fpreg.3.gz
/usr/share/man/man3/unw_is_signal_frame.3.gz
/usr/share/man/man3/unw_reg_states_iterate.3.gz
/usr/share/man/man3/unw_regname.3.gz
/usr/share/man/man3/unw_resume.3.gz
/usr/share/man/man3/unw_set_cache_size.3.gz
/usr/share/man/man3/unw_set_caching_policy.3.gz
/usr/share/man/man3/unw_set_fpreg.3.gz
/usr/share/man/man3/unw_set_reg.3.gz
/usr/share/man/man3/unw_step.3.gz
/usr/share/man/man3/unw_strerror.3.gz
libunwind8 install file list
/usr/lib64/libunwind-x86_64.so.8
/usr/lib64/libunwind-x86_64.so.8.0.1
/usr/lib64/libunwind.so.8
/usr/lib64/libunwind.so.8.0.1
/usr/share/doc/packages/libunwind8
/usr/share/doc/packages/libunwind8/NEWS
/usr/share/doc/packages/libunwind8/README
/usr/share/licenses/libunwind8
/usr/share/licenses/libunwind8/COPYING
Activity