www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21047] New: Linker error: GOT load reloc does not point to a

https://issues.dlang.org/show_bug.cgi?id=21047

          Issue ID: 21047
           Summary: Linker error: GOT load reloc does not point to a movq
                    instruction
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

This happens while running the C++ interop tests / Run (macOS-10.15) tests in
the test suite. The trigger is the OPmul case in:

 https://github.com/dlang/dmd/pull/11423

The other tests for the macOS in the test suite work fine.

The complete message is:
----
GOT load reloc does not point to a movq instructionC++ interop tests / Run
(macOS-10.15)
/Users/runner/work/dmd/dmd/dmd/generated/osx/release/64/dmd -conf= -m64
-Irunnable_cxx  -fPIC -L-lstdc++ -L--no-demangle -O
-od/Users/runner/work/dmd/dmd/dmd/test/test_results/runnable_cxx
-of/Users/runner/work/dmd/dmd/dmd/test/test_results/runnable_cxx/externmangle_8
 runnable_cxx/externmangle.d
/Users/runner/work/dmd/dmd/dmd/test/test_results/runnable_cx
/externmangle.cpp.o 
ld: GOT load reloc does not point to a movq instruction in '__Dmain' from
/Users/runner/work/dmd/dmd/dmd/test/test_results/runnable_cxx/externmangle_8.o
for architecture x86_64
----

Possibly related to https://issues.dlang.org/show_bug.cgi?id=14814

--
Jul 16 2020