You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2018/04/03 17:21:00 UTC

[jira] [Commented] (THRIFT-4478) Thrift will not build with dlang 2.078 or later

    [ https://issues.apache.org/jira/browse/THRIFT-4478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424321#comment-16424321 ] 

James E. King, III commented on THRIFT-4478:
--------------------------------------------

As a result of this, dlang will be disabled in the upcoming bionic dockerfile because it won't install properly:
{noformat}
Step 16/43 : RUN `# D dependencies` wget -q http://downloads.dlang.org/releases/2.x/${D_VERSION}/${DMD_DEB} && dpkg --install ${DMD_DEB} && rm -f ${DMD_DEB} && mkdir -p /usr/include/dmd/druntime/import/deimos /usr/include/dmd/druntime/import/C && curl -sSL https://github.com/D-Programming-Deimos/libevent/archive/master.tar.gz| tar xz && mv libevent-master/deimos/* /usr/include/dmd/druntime/import/deimos/ && mv libevent-master/C/* /usr/include/dmd/druntime/import/C/ && rm -rf libevent-master && curl -sSL https://github.com/D-Programming-Deimos/openssl/archive/master.tar.gz| tar xz && mv openssl-master/deimos/* /usr/include/dmd/druntime/import/deimos/ && mv openssl-master/C/* /usr/include/dmd/druntime/import/C/ && rm -rf openssl-master
---> Running in 7323d82d3bc9
Selecting previously unselected package dmd.
(Reading database ... 50152 files and directories currently installed.)
Preparing to unpack dmd_2.077.1-0_amd64.deb ...
Unpacking dmd (2.077.1-0) ...
Processing triggers for mime-support (3.60ubuntu1) ...
dpkg: dependency problems prevent configuration of dmd:
dmd depends on libcurl3; however:
Package libcurl3 is not installed.

dpkg: error processing package dmd (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.2-1) ...
Errors were encountered while processing:
dmd
{noformat}

> Thrift will not build with dlang 2.078 or later
> -----------------------------------------------
>
>                 Key: THRIFT-4478
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4478
>             Project: Thrift
>          Issue Type: Bug
>          Components: D - Compiler
>    Affects Versions: 0.11.0
>            Reporter: James E. King, III
>            Priority: Critical
>
> I tried to move the ubuntu-artful dlang version up from 2.076.0 to 2.078.1 and the build failed here:
> {noformat}
> dmd -L-fuse-ld=gold -L-levent ../libthriftd-event.a -L-fuse-ld=gold -L-lssl -L-lcrypto ../libthriftd-ssl.a -w -wi -O -release -inline -I../../../lib/d/src -Igen-d ../../../lib/d/libthriftd.a -ofserialization_benchmark serialization_benchmark.d gen-d/DebugProtoTest_types.d
> thrift_test_client.d(128): Deprecation: struct std.datetime.StopWatch is deprecated - Use std.datetime.stopwatch.StopWatch.
> thrift_test_client.d(128): Deprecation: struct std.datetime.StopWatch is deprecated - Use std.datetime.stopwatch.StopWatch.
> serialization_benchmark.d(16): Deprecation: alias std.datetime.AutoStart is deprecated - Use std.datetime.stopwatch.AutoStart.
> serialization_benchmark.d(16): Deprecation: alias std.datetime.AutoStart is deprecated - Use std.datetime.stopwatch.AutoStart.
> serialization_benchmark.d(16): Deprecation: struct std.datetime.StopWatch is deprecated - Use std.datetime.stopwatch.StopWatch.
> serialization_benchmark.d(16): Deprecation: struct std.datetime.StopWatch is deprecated - Use std.datetime.stopwatch.StopWatch.
> thrift_test_client.d(338): Deprecation: struct std.datetime.StopWatch is deprecated - Use std.datetime.stopwatch.StopWatch.
> thrift_test_client.d(338): Deprecation: alias std.datetime.AutoStart is deprecated - Use std.datetime.stopwatch.AutoStart.
> thrift_test_client.d(338): Deprecation: struct std.datetime.StopWatch is deprecated - Use std.datetime.stopwatch.StopWatch.
> serialization_benchmark.d(42): Deprecation: struct std.datetime.StopWatch is deprecated - Use std.datetime.stopwatch.StopWatch.
> serialization_benchmark.d(60): Deprecation: struct std.datetime.StopWatch is deprecated - Use std.datetime.stopwatch.StopWatch.
> /usr/include/dmd/druntime/import/object.d(3461): Error: no property 'tupleof' for type 'const(HashSet!(string[immutable(Insanity)][])[int][immutable(HashSet!int)])'
> /usr/include/dmd/druntime/import/object.d(3461): Error: no property 'tupleof' for type 'const(HashSet!(string[immutable(Insanity)][])[int][immutable(HashSet!int)])'
> ../../../lib/d/src/thrift/codegen/base.d(466): Error: template instance object.__equals!(const(HashSet!(string[immutable(Insanity)][])[int][immutable(HashSet!int)]), const(HashSet!(string[immutable(Insanity)][])[int][immutable(HashSet!int)])) error instantiating
> /usr/include/dmd/druntime/import/object.d(3461): Error: no property 'tupleof' for type 'const(HashSet!string[int])'
> /usr/include/dmd/druntime/import/object.d(3461): Error: no property 'tupleof' for type 'const(HashSet!string[int])'
> ../../../lib/d/src/thrift/codegen/base.d(466): Error: template instance object.__equals!(const(HashSet!string[int]), const(HashSet!string[int])) error instantiating
> Makefile:803: recipe for target 'thrift_test_client' failed
> make[5]: *** [thrift_test_client] Error 1
> make[5]: *** Waiting for unfinished jobs....
> /usr/include/dmd/druntime/import/object.d(3461): Error: no property 'tupleof' for type 'const(HashSet!(string[immutable(Insanity)][])[int][immutable(HashSet!int)])'
> /usr/include/dmd/druntime/import/object.d(3461): Error: no property 'tupleof' for type 'const(HashSet!(string[immutable(Insanity)][])[int][immutable(HashSet!int)])'
> ../../../lib/d/src/thrift/codegen/base.d(466): Error: template instance object.__equals!(const(HashSet!(string[immutable(Insanity)][])[int][immutable(HashSet!int)]), const(HashSet!(string[immutable(Insanity)][])[int][immutable(HashSet!int)])) error instantiating
> /usr/include/dmd/druntime/import/object.d(3461): Error: no property 'tupleof' for type 'const(HashSet!string[int])'
> /usr/include/dmd/druntime/import/object.d(3461): Error: no property 'tupleof' for type 'const(HashSet!string[int])'
> ../../../lib/d/src/thrift/codegen/base.d(466): Error: template instance object.__equals!(const(HashSet!string[int]), const(HashSet!string[int])) error instantiating
> Makefile:806: recipe for target 'thrift_test_server' failed
> make[5]: *** [thrift_test_server] Error 1
> make[5]: Leaving directory '/thrift/src/lib/d/test'
> {noformat}
> When I backed it down to 2.077.1, things worked again.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)