Bug 13733 – DMD produce object file that cause gold to crash

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2014-11-14T23:09:56Z
Last change time
2024-12-13T18:35:03Z
Assigned to
No Owner
Creator
deadalnix
Moved to GitHub: dmd#18913 →

Comments

Comment #0 by deadalnix — 2014-11-14T23:09:56Z
From a test to make C++ and D talk to each others: D side: import std.stdio; extern (C++) void CallFromCPlusPlusTest() { writeln("You can call me from C++"); } C++ side: #include <iostream> using namespace std; void CallFromCPlusPlusTest(); int main() { cout << "hello world"<<"\n"; CallFromCPlusPlusTest(); } flags used for DMD: -g -debug -w Linking the 2 objects files with gold produce the following error: bin/gold/ld: internal error in make_view, at fileread.cc:395 collect2: error: ld returned 1 exit status I suspect this is a gold bug rather than a dmd bug, but as the problem do not manifest with gcc and/or clang, I doubt we get much traction on their side. The version of gold used is "GNU gold (GNU Binutils 2.21.1) 1.11"
Comment #1 by robert.schadek — 2024-12-13T18:35:03Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18913 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB