www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - -allinst and linker errors

reply Anonymouse <asdf asdf.net> writes:
I'm trying to build my project with -allinst, after reading the 
comments of issue 18026[1]. Manjaro/Arch 64-bit, dmd 2.081.1 and 
ldc 1.0.0.

I get a wall of text with linker errors, both with dmd and ldc. 
Demangled excerpt:

 characterencodings.o: In function `pure nothrow  nogc  safe 
 void 
 std.range.primitives.doPut!(std.format.hasToString!(std.datet
me.systime.SysTime, char).__lambda2().S, char).doPut(ref
std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, ref
char)':
 source/kameloso/uda.d:(.text.pure nothrow  nogc  safe void 
 std.range.primitives.doPut!(std.format.hasToString!(std.datet
me.systime.SysTime, char).__lambda2().S, char).doPut(ref
std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, ref
char)[pure nothrow  nogc  safe void
std.range.primitives.doPut!(std.format.hasToString!(std.datet
me.systime.SysTime, char).__lambda2().S, char).doPut(ref
std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, ref
char)]+0x14): undefined reference to `pure nothrow  nogc  safe void
std.format.hasToString!(std.datetime.systime.SysTime,
char).__lambda2().S.put(char)'
 characterencodings.o: In function `pure nothrow  nogc  safe 
 void 
 std.range.primitives.doPut!(std.format.hasToString!(std.datet
me.systime.SysTime, char).__lambda2().S, char).doPut(ref
std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S,
char)':
 source/kameloso/uda.d:(.text.pure nothrow  nogc  safe void 
 std.range.primitives.doPut!(std.format.hasToString!(std.datet
me.systime.SysTime, char).__lambda2().S, char).doPut(ref
std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S,
char)[pure nothrow  nogc  safe void
std.range.primitives.doPut!(std.format.hasToString!(std.datet
me.systime.SysTime, char).__lambda2().S, char).doPut(ref
std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S,
char)]+0x14): undefined reference to `pure nothrow  nogc  safe void
std.format.hasToString!(std.datetime.systime.SysTime,
char).__lambda2().S.put(char)'
 [...]
Full output: https://pastebin.com/raw/zX5ua1BT What can I do? [1]: https://issues.dlang.org/show_bug.cgi?id=18026#c17
Jul 25 2018
parent Basile B. <b2.temp gmx.com> writes:
On Wednesday, 25 July 2018 at 15:56:50 UTC, Anonymouse wrote:
 I'm trying to build my project with -allinst, after reading the 
 comments of issue 18026[1]. Manjaro/Arch 64-bit, dmd 2.081.1 
 and ldc 1.0.0.

 I get a wall of text with linker errors, both with dmd and ldc. 
 Demangled excerpt:
 [...]
 What can I do?

 [1]: https://issues.dlang.org/show_bug.cgi?id=18026#c17
Sorry if i've mislead you in the comment but -allinst works for the reduced test case. What you get now seems to be another problem. Maybe even the true, deep issue that caused the ICE previously (hopefully ?)
Jul 25 2018