Bug 17475 – [REG2.075] linker error on specific code

Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-06-07T10:07:00Z
Last change time
2017-06-07T16:11:49Z
Assigned to
nobody
Creator
b2.temp

Comments

Comment #0 by b2.temp — 2017-06-07T10:07:52Z
with dmd at 5f2f2811a3d756777bcf098983b94db543f1dfcf with druntime at 2b14f6cd6b3ed338bbb54b0a3fe30427cf050d0b with phobos at f036ef12eafda45b9bcb31c4d06975adb6313e6a this code: ==== void main() { import std.stdio; import std.compiler; writeln(vendor); } ==== cannot be linked: /tmp/temp_7F12E3A4FF10.o : Dans la fonction « _D3std6format60__T14formatUnsignedTS3std5stdio4File17LockingTextWriterTmTaZ14formatUnsignedFNfS3std5stdio4File17LockingTextWritermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv » : /tmp/temp_7F12E3A4FF10.d:(.text._D3std6format60__T14formatUnsignedTS3std5stdio4File17LockingTextWriterTmTaZ14formatUnsignedFNfS3std5stdio4File17LockingTextWritermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv[_D3std6format60__T14formatUnsignedTS3std5stdio4File17LockingTextWriterTmTaZ14formatUnsignedFNfS3std5stdio4File17LockingTextWritermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv]+0x312) : référence indéfinie vers « _D3std6format18__T10FormatSpecTaZ10FormatSpec11flSeparatorMxFNaNbNdNiNfZb » /tmp/temp_7F12E3A4FF10.d:(.text._D3std6format60__T14formatUnsignedTS3std5stdio4File17LockingTextWriterTmTaZ14formatUnsignedFNfS3std5stdio4File17LockingTextWritermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv[_D3std6format60__T14formatUnsignedTS3std5stdio4File17LockingTextWriterTmTaZ14formatUnsignedFNfS3std5stdio4File17LockingTextWritermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv]+0x436) : référence indéfinie vers « _D3std6format18__T10FormatSpecTaZ10FormatSpec11flSeparatorMxFNaNbNdNiNfZb » /tmp/temp_7F12E3A4FF10.o : Dans la fonction « _D3std6format64__T14formatUnsignedTS3std5array17__T8AppenderTAyaZ8AppenderTmTaZ14formatUnsignedFNaNfS3std5array17__T8AppenderTAyaZ8AppendermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv » : /tmp/temp_7F12E3A4FF10.d:(.text._D3std6format64__T14formatUnsignedTS3std5array17__T8AppenderTAyaZ8AppenderTmTaZ14formatUnsignedFNaNfS3std5array17__T8AppenderTAyaZ8AppendermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv[_D3std6format64__T14formatUnsignedTS3std5array17__T8AppenderTAyaZ8AppenderTmTaZ14formatUnsignedFNaNfS3std5array17__T8AppenderTAyaZ8AppendermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv]+0x316) : référence indéfinie vers « _D3std6format18__T10FormatSpecTaZ10FormatSpec11flSeparatorMxFNaNbNdNiNfZb » /tmp/temp_7F12E3A4FF10.d:(.text._D3std6format64__T14formatUnsignedTS3std5array17__T8AppenderTAyaZ8AppenderTmTaZ14formatUnsignedFNaNfS3std5array17__T8AppenderTAyaZ8AppendermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv[_D3std6format64__T14formatUnsignedTS3std5array17__T8AppenderTAyaZ8AppenderTmTaZ14formatUnsignedFNaNfS3std5array17__T8AppenderTAyaZ8AppendermKxS3std6format18__T10FormatSpecTaZ10FormatSpeckbZv]+0x43a) : référence indéfinie vers « _D3std6format18__T10FormatSpecTaZ10FormatSpec11flSeparatorMxFNaNbNdNiNfZb » collect2: error: ld returned 1 exit status
Comment #1 by dlang-bugzilla — 2017-06-07T15:59:05Z
You have a mismatching libphobos again. In the future, please test with a D build tool that removes the possibility of user errors, such as Digger.
Comment #2 by b2.temp — 2017-06-07T16:01:54Z
(In reply to Vladimir Panteleev from comment #1) > You have a mismatching libphobos again. > > In the future, please test with a D build tool that removes the possibility > of user errors, such as Digger. Are you sure ? See here: https://forum.dlang.org/thread/[email protected] The script i use to build worked well since months.
Comment #3 by dlang-bugzilla — 2017-06-07T16:11:49Z
(In reply to b2.temp from comment #2) > Are you sure ? Yes: ~/work/Digger/work/repo » git checkout 13da2d4e97bf15c7049138012bde243a221be117 ; git submodule update ; git submodule status M dlang.org HEAD is now at 13da2d4e97... phobos: Merge pull request #5444 from klickverbot/quad-lrint Submodule path 'dlang.org': checked out '9f1f0155b03141dd842cd9664e1fc638c1a1aa9c' 9f1f0155b03141dd842cd9664e1fc638c1a1aa9c dlang.org (v2.074.1-82-g9f1f0155) 5f2f2811a3d756777bcf098983b94db543f1dfcf dmd (v2.074.1-347-g5f2f2811a) 2b14f6cd6b3ed338bbb54b0a3fe30427cf050d0b druntime (v2.074.1-60-g2b14f6cd) 19843d82476837ede8f2079fa8e5b405d481235a installer (v2.074.1-7-g19843d8) f036ef12eafda45b9bcb31c4d06975adb6313e6a phobos (v2.074.1-326-gf036ef12e) ed24fb441744a6c168d394970186456ae1484f5c tools (v2.073.2-26-ged24fb4) ~/work/Digger/work/repo » digger build 13da2d4e97bf15c7049138012bde243a221be117 ... ~/tmp/2017-06-07-scratch/15:52:31 » ( d-digger ; dmd --version ; dmd -run test.d ) DMD64 D Compiler v2.075.0-devel-5f2f2811a-dirty Copyright (c) 1999-2017 by Digital Mars written by Walter Bright digitalMars > The script i use to build worked well since months. I can't vouch for your script. If it's broken, it's your problem.