https://bugs.openldap.org/show_bug.cgi?id=10504
Issue ID: 10504 Summary: Linker warning on newer build tools Product: LMDB Version: unspecified Hardware: All OS: Mac OS Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
Newer linker complains
ld: warning: symbols in __TEXT,text_env (/Users/selsta/dev/monero/build/Darwin/master/release/external/db_drivers/liblmdb/liblmdb.a[2](mdb.c.o)) have unwind information, but it's not a code section (missing 'regular,pure_instructions' section flag)
When built with
clang --version
Apple clang version 21.0.0 (clang-2100.1.1.101) Target: arm64-apple-darwin25.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
ld -v
@(#)PROGRAM:ld PROJECT:ld-1267 BUILD 17:51:50 Apr 22 2026 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em armv8m.main armv8.1m.main will use ld-classic for: armv6 armv7 armv7s i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 21.0.0 (static support for 30, runtime is 30) TAPI support using: Apple TAPI version 21.0.0 (tapi-2100.0.2.6)
As reported on https://github.com/monero-project/monero/pull/10585
Adding the missing flags silences the warning. Works fine on older toolchains as well.
Apple docs are a bit ambiguous about whether "pure_instructions" is required or valid on static builds. https://developer.apple.com/library/archive/documentation/DeveloperTools/Ref...
https://bugs.openldap.org/show_bug.cgi?id=10504
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #1 from Howard Chu hyc@openldap.org --- fixed in git
https://bugs.openldap.org/show_bug.cgi?id=10504
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- mdb.master:
9352b7d37b8400caa086f215a98fff1cb1628d29
mdb.master3:
83992afea72b6c30768e2479f4dbaaf336380ecc
mdb.RE/1.0:
e67d370cabbc47f8efea29c34728c260983bc70c
mdb.RE/0.9:
52d4a039da276602172cf07a263852f9f37148f1
https://bugs.openldap.org/show_bug.cgi?id=10504
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hyc@openldap.org Target Milestone|--- |0.9.36 Keywords|needs_review |