Thread overview | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
July 22, 2014 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 --- Comment #1 from maarten <maartenvd1994@gmail.com> --- it's possible to remove the linker errors by adding std/exception.d to the to-compile file list but then the program immediatly runs out of memory, even though it doesn't when you don't optimize it. -- |
July 22, 2014 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 --- Comment #2 from maarten <maartenvd1994@gmail.com> --- commenting out the line with errnoEnforce in std/stdio.d fixes my problems (but probably breaks a few things). It's not worthy of a patch but it's good enough for me. -- |
July 24, 2014 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 jyxent@mailinator.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jyxent@mailinator.com --- Comment #3 from jyxent@mailinator.com --- I get the same issue on linux with dmd git head. The -inline flag causes the issue for me. I can add -O -release and -noboundscheck without getting the linker issue. -- |
July 28, 2014 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 Ivan Kazmenko <gassa@mail.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gassa@mail.ru --- Comment #4 from Ivan Kazmenko <gassa@mail.ru> --- I got that bug, too. I have a small family of examples here. -----example1.d:OK----- import std.stdio; void main () { ubyte [256] buf; stdin.rawRead (buf); } ----- -----example2.d:Fails with -inline----- import std.stdio; void main () { ushort [256] buf; // same with uint stdin.rawRead (buf); } ----- Checked with DMD 2.064.2, DMD 2.065.0 and DMD 2.066-0-b6, the results are roughly the same. Example 1 is OK. In example 2, certain optimizations lead to linker errors. To compile successfully, just run "dmd <file>.d". For versions 2.064 and 2.066, just adding "-inline" causes a linker error. For 2.065, the error requires the full "-release -inline -noboundscheck" to be reproduced locally. -----With "-m32" (OPTLINK):----- OPTLINK (R) for Win32 Release 8.00.15 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html example2.obj(example2) Error 42: Symbol Undefined _D3std9exception140__T12errnoEnforceTbVAyaa53_433a5c546f6f6c735c646d645c77696e646f77735c62696e5cE611F934D2BE6B410FCD651C953DEFB1 --- errorlevel 1 ----- -----With "-m64" (MS VS 12.0 linker):----- example2.obj : error LNK2019: unresolved external symbol _D3std9exception140__T12errnoEnforceTbVAyaa53_433a5c546f6f6c735c646d645c77696e646f77735c62696e5c2e2e5c2e2e5c7372635c70686f626f735c7374645c737464696f2e64Vmi717Z12errnoEnforceFNfbLAyaZb referenced in function _D3std5stdio4File14__T7rawReadTtZ7rawReadMFAtZAt example2.exe : fatal error LNK1120: 1 unresolved externals --- errorlevel 1120 ----- -- |
July 28, 2014 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 --- Comment #5 from Ivan Kazmenko <gassa@mail.ru> --- Created attachment 1372 --> https://issues.dlang.org/attachment.cgi?id=1372&action=edit example 1: OK -- |
July 28, 2014 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 --- Comment #6 from Ivan Kazmenko <gassa@mail.ru> --- Created attachment 1373 --> https://issues.dlang.org/attachment.cgi?id=1373&action=edit example 2: fails with -inline -- |
December 27, 2014 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 Aleksi Sapon <qctechs@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |qctechs@gmail.com --- Comment #7 from Aleksi Sapon <qctechs@gmail.com> --- *** Issue 13898 has been marked as a duplicate of this issue. *** -- |
January 28, 2015 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 Aleksi Sapon <qctechs@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |GenericNPC@gmail.com --- Comment #8 from Aleksi Sapon <qctechs@gmail.com> --- *** Issue 14043 has been marked as a duplicate of this issue. *** -- |
February 10, 2015 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 Tomer Filiba <tomerfiliba@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomerfiliba@gmail.com --- Comment #9 from Tomer Filiba <tomerfiliba@gmail.com> --- Any news on this one? I think I'm seeing something similar in my code, but it's too much code to pin-point an excerpt and post here. -- |
February 10, 2015 [Issue 13172] optimize and rawread cause symbol undefined errors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13172 Ketmar Dark <ketmar@ketmar.no-ip.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ketmar@ketmar.no-ip.org --- Comment #10 from Ketmar Dark <ketmar@ketmar.no-ip.org> --- can't confirm on GNU/Linux x86, dmd git head, commit b9c8ded6 -- |
Copyright © 1999-2021 by the D Language Foundation