View Issue Details

IDProjectCategoryView StatusLast Update
0033812CommunityOCCT:Configurationpublic2024-09-08 13:20
Reporterformisliberating Assigned Tobugmaster  
PrioritynormalSeveritymajor 
Status verifiedResolutionfixed 
PlatformMacOSOS 
Product Version7.8.0 
Target Version7.9.0Fixed in Version7.9.0 
Summary0033812: Configuration, MacOS - Debug Symbols Stripped From Dynamic Libraries
DescriptionOn Mac OS X, the dynamic libraries produced by building OCCT in debug mode (i.e. BUILD_WITH_DEBUG=ON and CMAKE_BUILD_TYPE=Debug) don't contain debug maps. This is because they are stripped at the link step. The logic on line 171 in file "adm/cmake/occt_defs_flags.cmake" is incorrect. There should be some logic that only strips the dynamic libraries if the build is not in debug mode. I suspect that this bug exists on other platforms too, but I haven't tested them.
Steps To ReproduceBuild OCCT with the CMake cache variables BUILD_WITH_DEBUG and CMAKE_BUILD_TYPE set to ON and Debug respectively. Then pick any dynamic library produced by the build and run "dsymutil --dump-debug-map aLib.dylib". No debug map will be printed.
TagsNo tags attached.
Test case numbernone

Activities

dpasukhi

2024-08-30 16:17

administrator   ~0116573

Fix: https://dev.opencascade.org/node/87805#comment-26322
Need to check other OS

Issue History

Date Modified Username Field Change
2024-08-30 06:20 formisliberating New Issue
2024-08-30 06:20 formisliberating Assigned To => dpasukhi
2024-08-30 10:39 dpasukhi Summary Debug Symbols Stripped From Dynamic Libraries When They Shouldn't Be => Configuration, MacOS - Debug Symbols Stripped From Dynamic Libraries
2024-08-30 10:48 dpasukhi Target Version => 7.9.0
2024-08-30 16:17 dpasukhi Note Added: 0116573
2024-09-07 00:22 dpasukhi Status new => resolved
2024-09-08 13:20 dpasukhi Assigned To dpasukhi => bugmaster
2024-09-08 13:20 dpasukhi Status resolved => reviewed
2024-09-08 13:20 dpasukhi Status reviewed => verified
2024-09-08 13:20 dpasukhi Resolution open => fixed
2024-09-08 13:20 dpasukhi Fixed in Version => 7.9.0
2024-09-08 13:20 dpasukhi Test case number => none