Compiler build error

Alex sascha.orlov at gmail.com
Sat Aug 4 23:16:02 UTC 2018


On Saturday, 4 August 2018 at 22:50:49 UTC, kinke wrote:
> On Saturday, 4 August 2018 at 18:12:05 UTC, Alex wrote:
>> /snap/ldc2/78/bin/ldc2(_start+0x29)[0x8b7ee9]
>
> You haven't specified the DMD version you are using. Your LDC 
> is 'outdated', so make sure to first check whether it still 
> fails with an up-to-date version before potentially wasting 
> time.


DMD64 D Compiler v2.081.1


and the output for

LDC - the LLVM D compiler (1.8.0):
   based on DMD v2.078.3 and LLVM 5.0.1
   built with LDC - the LLVM D compiler (0.17.5)

is:

/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2a)[0x7fb1945551fa]
/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x56)[0x7fb194553416]
/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1(+0x7a754b)[0x7fb19455354b]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fb193997890]
ldc2(_D3dmd13expressionsem18functionParametersFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd5mtype12TypeFunctionC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayC3dmd4func15FuncDeclarationPC3dmd5mtype4TypePC3dmd10expression10ExpressionZb+0xd1e)[0x560e820d100e]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x338b)[0x560e820dd2fb]
ldc2(_D3dmd13expressionsem18resolvePropertiesXFPS3dmd6dscope5ScopeC3dmd10expression10ExpressionC3dmd10expression10ExpressionZC3dmd10expression10Expression+0xcaa)[0x560e820cfb5a]
ldc2(_Z17resolvePropertiesP5ScopeP10Expression+0x11)[0x560e81fe5201]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x6e)[0x560e8219cd3e]
ldc2(_ZN24StatementSemanticVisitor5visitEP14DebugStatement+0x5d)[0x560e821b0d6d]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0x707)[0x560e8219f197]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0xfd)[0x560e8219eb8d]
ldc2(_ZN24StatementSemanticVisitor5visitEP16ForeachStatement+0x5eb2)[0x560e821a5302]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP21UnrolledLoopStatement+0x87)[0x560e8219dc77]
ldc2(_ZN24StatementSemanticVisitor5visitEP16ForeachStatement+0x781)[0x560e8219fbd1]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21]
ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d]
ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x160f)[0x560e820db57f]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21]
ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d]
ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x160f)[0x560e820db57f]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x122)[0x560e8207c352]
ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc83)[0x560e82091233]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP8ScopeExp+0xf8)[0x560e820d63c8]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x58b)[0x560e820da4fb]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x122)[0x560e8207c352]
ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc83)[0x560e82091233]
ldc2(_D3dmd9dtemplate15functionResolveFPS3dmd11declaration5MatchC3dmd7dsymbol7DsymbolS3dmd7globals3LocPS3dmd6dscope5ScopePS3dmd4root5array45__T5ArrayTC3dmd4root10rootobject10RootObjectZ5ArrayC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0x183)[0x560e820a8a73]
ldc2(_Z15resolveFuncCall3LocP5ScopeP7DsymbolP5ArrayIP10RootObjectEP4TypePS4_IP10ExpressionEi+0xfd)[0x560e81fe97bd]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x1e30)[0x560e820dbda0]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x1d03)[0x560e820dbc73]
ldc2(_ZN24StatementSemanticVisitor5visitEP15ReturnStatement+0x328)[0x560e821abfb8]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x122)[0x560e8207c352]
ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc83)[0x560e82091233]
ldc2(_D3dmd9dtemplate15functionResolveFPS3dmd11declaration5MatchC3dmd7dsymbol7DsymbolS3dmd7globals3LocPS3dmd6dscope5ScopePS3dmd4root5array45__T5ArrayTC3dmd4root10rootobject10RootObjectZ5ArrayC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0x183)[0x560e820a8a73]
ldc2(_Z15resolveFuncCall3LocP5ScopeP7DsymbolP5ArrayIP10RootObjectEP4TypePS4_IP10ExpressionEi+0xfd)[0x560e81fe97bd]
ldc2(_D3dmd13expressionsem18resolvePropertiesXFPS3dmd6dscope5ScopeC3dmd10expression10ExpressionC3dmd10expression10ExpressionZC3dmd10expression10Expression+0x824)[0x560e820cf6d4]
ldc2(_Z17resolvePropertiesP5ScopeP10Expression+0x11)[0x560e81fe5201]
ldc2(_ZN16InferTypeVisitor5visitEP14ExpInitializer+0x6e)[0x560e82124ede]
ldc2(_ZN22DsymbolSemanticVisitor5visitEP14VarDeclaration+0x31c)[0x560e82086f9c]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP14DeclarationExp+0xa8)[0x560e820de6d8]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0x707)[0x560e8219f197]
ldc2(_ZN24StatementSemanticVisitor5visitEP14WhileStatement+0xaa)[0x560e8219e4ba]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21]
ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d]
ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x160f)[0x560e820db57f]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2]
ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21]
ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d]
ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x160f)[0x560e820db57f]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21]
ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d]
ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21]
ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0x11a)[0x560e820e7fca]
ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x104e)[0x560e82151fae]
ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x29e)[0x560e820bf04e]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1e)[0x560e820e7dae]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21]
ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0x11a)[0x560e820e7fca]
ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x104e)[0x560e82151fae]
ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x29e)[0x560e820bf04e]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1e)[0x560e820e7dae]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21]
ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0x11a)[0x560e820e7fca]
ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x104e)[0x560e82151fae]
ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x29e)[0x560e820bf04e]
ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1e)[0x560e820e7dae]
ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c]
ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff]
ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399]
ldc2(_ZN16Semantic3Visitor5visitEP20AggregateDeclaration+0x8e)[0x560e820863ee]
ldc2(_ZN16Semantic3Visitor5visitEP6Module+0x6d)[0x560e8207c9ad]
ldc2(_Z13mars_mainBodyR5ArrayIPKcES3_+0x1782)[0x560e82144af2]
ldc2(_Z7cppmainiPPc+0x2170)[0x560e8226a6a0]
ldc2(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv+0xf)[0x560e82344daf]
ldc2(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv+0x14)[0x560e82344cf4]
ldc2(_d_run_main+0x203)[0x560e82344c13]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fb192c71b97]
ldc2(_start+0x2a)[0x560e81fde51a]
Segmentation fault (core dumped)
ldc2 failed with exit code 139.


More information about the Digitalmars-d-learn mailing list