clone 931825 -1
reassign -1 gdc-8 8.3.0-6
retitle -1 gdc-8: Unable to link D applications against runtime/stdlib
thankyou

This issue is actually bigger than I thought.... You currently can't
even rebuild dub with GDC, because the linking step fails when linking
against Phobos/DRuntime:
```
gdc -Wall -obin/dub -fversion=DubUseCurl -Isource
-Wl,--push-state,--no-as-needed -lcurl -lz -Wl,--pop-state
@build-files.txt

/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D3dub11commandline17runDubCommandLineFAAyaZi':
app.d:(.text+0x797): undefined reference to
`_D3std5stdio23__T10makeGlobalS5stdinZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D3dub11commandline15DustmiteCommand7executeMFC3dub3dub3DubAAyaAAyaZi':
app.d:(.text+0x11098): undefined reference to
`_D3std5stdio23__T10makeGlobalS5stdinZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x110cf): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stdoutZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x11106): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stderrZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D3dub3dub3Dub13convertRecipeMFAyabZv':
app.d:(.text+0x2631e): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stdoutZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D3dub9compilers8compiler8Compiler10invokeToolMFAAyaDFiAyaZvZv':
app.d:(.text+0x6463f): undefined reference to
`_D3std5stdio23__T10makeGlobalS5stdinZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x64676): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stdoutZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x646ad): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stderrZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D3dub10generators5build14BuildGenerator16performRDMDBuildMFS3dub10generators9generator17GeneratorSettingsKS3dub9compilers13buildsettings13BuildSettingsxC3dub8package_7PackageAyaJS3dub8internal10vibecompat4inet4path10NativePathZv':
app.d:(.text+0x72999): undefined reference to
`_D3std5stdio23__T10makeGlobalS5stdinZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x729d0): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stdoutZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x72a07): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stderrZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D3dub10generators5build14BuildGenerator9runTargetMFS3dub8internal10vibecompat4inet4path10NativePathxS3dub9compilers13buildsettings13BuildSettingsAAyaS3dub10generators9generator17GeneratorSettingsZv':
app.d:(.text+0x7690b): undefined reference to
`_D3std5stdio23__T10makeGlobalS5stdinZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x76942): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stdoutZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x76979): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stderrZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D3dub8internal5utils11runCommandsFxAAyaHAyaAyaZv':
app.d:(.text+0x9ed61): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stdoutZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x9ed8c): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stderrZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: app.d:(.text+0x9f026): undefined reference to
`_D3std5stdio23__T10makeGlobalS5stdinZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D4core8internal4hash15__T6hashOfTAyaZ6hashOfFNaNbNiKAyamZm':
app.d:(.text._D4core8internal4hash15__T6hashOfTAyaZ6hashOfFNaNbNiKAyamZm[_D4core8internal4hash15__T6hashOfTAyaZ6hashOfFNaNbNiKAyamZm]+0x41):
undefined reference to `_D4core8internal4hash9bytesHashFNaNbNiPxvmmZm'
/usr/bin/ld: /tmp/ccoCvOX1.o: in function
`_D4core8internal4hash15__T6hashOfTAxaZ6hashOfFNaNbNiKAxamZm':
app.d:(.text._D4core8internal4hash15__T6hashOfTAxaZ6hashOfFNaNbNiKAxamZm[_D4core8internal4hash15__T6hashOfTAxaZ6hashOfFNaNbNiKAxamZm]+0x41):
undefined reference to `_D4core8internal4hash9bytesHashFNaNbNiPxvmmZm'
[....]
collect2: error: ld returned 1 exit status
```

Something is wrong with either the compiler, or the standardlibrary
(gphobos) and runtime (druntime) don't export some expected symbols.

I cloned this issue because this first needs to be fixed in GCC, and
then dub will still likely need a rebuild anyway.

Cheers,
    Matthias

-- 
I welcome VSRE emails. See http://vsre.info/

Reply via email to