[ https://issues.apache.org/jira/browse/THRIFT-3541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15134375#comment-15134375 ]
Lucas Burson commented on THRIFT-3541: -------------------------------------- I replaced some of the Apache Thrift code (in src/lib/d) with source with the facebook thrift, and it worked. I wasn't able to find which change would help but I think the answer is buried in the diff between the two. > Make tutorial fails to compile for dmd v2.069.2 > ----------------------------------------------- > > Key: THRIFT-3541 > URL: https://issues.apache.org/jira/browse/THRIFT-3541 > Project: Thrift > Issue Type: Bug > Components: D - Library > Affects Versions: 0.9.3 > Environment: Using dmd v2.069.2 and thrift 0.9.3 on Ubuntu 15.04. > Reporter: Lucas Burson > > The D compiler dmd v2.069.2 does not compile the Apache Thrift v0.9.3 > tutorial and fails in lib/d/src/thrift/internal/codegen.d:361. > Snippet of log: > {code} > [1m../../lib/d/src/thrift/codegen/processor.d-mixin-85(107): [1;31mError: > [mtemplate instance thrift.codegen.processor.TArgsStruct!(Calculator, "ping") > error instantiating > [1m../../lib/d/src/thrift/codegen/processor.d-mixin-85(100): [1;31m > [minstantiated from here: process_ping!(TProtocol, TProtocol) > [1mserver.d(101): [1;31m [minstantiated from here: > TServiceProcessor!(Calculator) > [1m../../lib/d/src/thrift/codegen/processor.d-mixin-85(130): [1;31mError: > [mtemplate instance thrift.codegen.processor.TResultStruct!(Calculator, > "ping") error instantiating > [1m../../lib/d/src/thrift/codegen/processor.d-mixin-85(100): [1;31m > [minstantiated from here: process_ping!(TProtocol, TProtocol) > [1mserver.d(101): [1;31m [minstantiated from here: > TServiceProcessor!(Calculator) > [1m../../lib/d/src/thrift/codegen/base.d(472): [1;31mError: [minvalid foreach > aggregate StaticFilter!(All, "key", "thrift", "This", "isSetFlags", > "fieldMeta", "set", "unset", "isSet", "toString", "opEquals", "toHash", > "thriftToStringImpl", "thriftOpEqualsImpl", "thriftToHashImpl", "read", > "write") > [1m../../lib/d/src/thrift/internal/codegen.d(272): [1;31mError: [mtemplate > instance thrift.internal.codegen.Target!(TArgsStruct!(SharedService, > "getStruct"), "toHash") error instantiating > [1m../../lib/d/src/thrift/internal/codegen.d(361): [1;31m > [minstantiated from here: Template!"toHash" > [1m../../lib/d/src/thrift/internal/codegen.d(380): [1;31m > [minstantiated from here: Instantiate!(PApply, "toHash") > [1m../../lib/d/src/thrift/internal/codegen.d(361): [1;31m > [minstantiated from here: Template!"toHash" > [1m../../lib/d/src/thrift/internal/codegen.d(381): [1;31m [m... (17 > instantiations, -v to show) ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)