Bug 24137 – Link failure on macOS with symbol count from symbol table and dynamic symbol table differ

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2023-09-08T10:59:23Z
Last change time
2024-03-01T23:56:58Z
Keywords
pull
Assigned to
No Owner
Creator
s.trump
See also
https://issues.dlang.org/show_bug.cgi?id=24399

Comments

Comment #0 by s.trump — 2023-09-08T10:59:23Z
Downloaded https://downloads.dlang.org/releases/2.x/2.105.0/dmd.2.105.0.osx.tar.xz and unpacked. Trying to build hello_world.d ``` import std.stdio; void main() { writeln("Hello, World!"); } ``` with command `dmd hello_world.d` Getting error: ``` ld: multiple errors: symbol count from symbol table and dynamic symbol table differ in '/Users/***/tmp/hello_world/hello_world.o' in '/Users/***/tmp/hello_world/hello_world.o'; address=0x0 points to section(2) with no content in '/Users/***/dmd2/osx/lib/libphobos2.a[3177](config_a68_4c3.o)' clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1 ```
Comment #1 by ibuclaw — 2024-02-20T13:31:49Z
There are two linker errors, separated them into different issues. This is for the symbol/dynamic table mismatch. Issue 24399 is for the section with no content.
Comment #2 by dlang-bot — 2024-02-22T01:16:09Z
@ibuclaw created dlang/dmd pull request #16221 "Fix Bugzilla 24137 - Link failure on macOS with symbol count from symbol table and dynamic symbol table differ" fixing this issue: - Fix Bugzilla 24137 - Link failure on macOS with symbol count from symbol table and dynamic symbol table differ https://github.com/dlang/dmd/pull/16221
Comment #3 by dlang-bot — 2024-02-22T08:16:27Z
dlang/dmd pull request #16221 "Fix Bugzilla 24137 - Link failure on macOS with symbol count from symbol table and dynamic symbol table differ" was merged into stable: - 3585196dc24f8566a5e47d4249d814ae401b21bd by Iain Buclaw: Fix Bugzilla 24137 - Link failure on macOS with symbol count from symbol table and dynamic symbol table differ https://github.com/dlang/dmd/pull/16221
Comment #4 by dlang-bot — 2024-03-01T23:56:58Z
dlang/dmd pull request #16276 "merge stable" was merged into master: - 53d3810128a043821be4f93c073598809a8dcbb9 by Iain Buclaw: Fix Bugzilla 24137 - Link failure on macOS with symbol count from symbol table and dynamic symbol table differ https://github.com/dlang/dmd/pull/16276