Post

Replies

Boosts

Views

Activity

Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
HI! ModuleA and Module are the same except for C++ namespace. test.h namespace ModuleA { void test(); } #include <ModuleA/test.h> test.cpp #include namespace ModuleA { void test() { std::cout << "ModuleA::test" << std::endl; } } main.cpp: #include <ModuleA/test.h> #include <ModuleB/test.h> int main() { ModuleA::test(); ModuleB::test(); return 0; } P.S. I've found flag LD_DETERMINISTIC_MODE=NO that disables -Xlinker -repducible in Xcode
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! Content of ModuleA and ModuleB is similar, one function test() which just printnig something. The differences are only in namespace. And in main.cpp i call both: ModuleA::test(); ModuleB::test(); clang++ -g -o ModuleA/test.o -Iinclude -c ModuleA/test.cpp clang++ -g -o ModuleB/test.o -Iinclude -c ModuleB/test.cpp libtool -static -a -o module.a ModuleA/test.o ModuleB/test.o clang++ -g -o main.o -Iinclude -c main.cpp clang++ -Xlinker -reproducible main.o module.a -o main
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! Thank you for your investigation. I will file a bug later. Just for info: I've found solution to disable reproducible flag in Xcode: LD_DETERMINISTIC_MODE=NO in Build settings, i've found this flag in /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources/Ld.xcspec
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! Thank you for response. Here is full example: https://www.icloud.com/iclouddrive/0ebCLpsupi8JN6BqagjQysjAQ#cppmodule P.S. I've found flag LD_DETERMINISTIC_MODE=NO that disables -Xlinker -repducible in Xcode
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! Thank you for response. Here is full example: https://www.icloud.com/iclouddrive/0ebCLpsupi8JN6BqagjQysjAQ#cppmodule P.S. I've found flag LD_DETERMINISTIC_MODE=NO that disables -Xlinker -repducible in Xcode
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! Thank you for response. Here is full example: https://www.icloud.com/iclouddrive/0ebCLpsupi8JN6BqagjQysjAQ#cppmodule P.S. I've found flag LD_DETERMINISTIC_MODE=NO that disables -Xlinker -repducible in Xcode
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
HI! ModuleA and Module are the same except for C++ namespace. test.h namespace ModuleA { void test(); } #include <ModuleA/test.h> test.cpp #include namespace ModuleA { void test() { std::cout << "ModuleA::test" << std::endl; } } main.cpp: #include <ModuleA/test.h> #include <ModuleB/test.h> int main() { ModuleA::test(); ModuleB::test(); return 0; } P.S. I've found flag LD_DETERMINISTIC_MODE=NO that disables -Xlinker -repducible in Xcode
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! https://www.icloud.com/iclouddrive/0ebCLpsupi8JN6BqagjQysjAQ#cppmodule
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! Here's full example: https://shorturl.at/brovs
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Here is full example
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Sorry for spam, I've been receiving the error «Your post could not be saved. Please try again in a few moments.» repeatedly.
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! Content of ModuleA and ModuleB is similar, one function test() which just printnig something. The differences are only in namespace. And in main.cpp i call both: ModuleA::test(); ModuleB::test(); clang++ -g -o ModuleA/test.o -Iinclude -c ModuleA/test.cpp clang++ -g -o ModuleB/test.o -Iinclude -c ModuleB/test.cpp libtool -static -a -o module.a ModuleA/test.o ModuleB/test.o clang++ -g -o main.o -Iinclude -c main.cpp clang++ -Xlinker -reproducible main.o module.a -o main
Replies
Boosts
Views
Activity
May ’25
Comment on -Xlinker -reproducible flag breaks debug symbols for static library which object files has same name
Hi! Thank you for your investigation. I will file a bug later. Just for info: I've found solution to disable reproducible flag in Xcode: LD_DETERMINISTIC_MODE=NO in Build settings, i've found this flag in /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources/Ld.xcspec
Replies
Boosts
Views
Activity
May ’25