huntlabs / grpc-dlang

Grpc for D programming language, hunt-http library based.
Apache License 2.0
44 stars 6 forks source link

ldc2 build on windows 10 fails #1

Open truedat101 opened 6 years ago

truedat101 commented 6 years ago

First of all, thank you for creating the grpc binding. I try to build, but get a failure:

$ dub --compiler=ldc2
Fetching hunt-security 0.0.2 (getting selected version)...
Fetching boringssl 0.0.1 (getting selected version)...
Fetching openssl 1.1.6+1.0.1g (getting selected version)...
Fetching hunt 1.0.0-beta.4 (getting selected version)...
Fetching hunt-net 0.0.3 (getting selected version)...
Fetching protobuf 0.3.1 (getting selected version)...
Fetching hunt-http 0.0.4 (getting selected version)...
Performing "debug" build using ldc2 for x86_64.
hunt-grpc ~master: building configuration "hunt-grpc"...
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(106,20): Error: undefined identifier WSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(395,20): Error: undefined identifier WSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(396,20): Error: undefined identifier WSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(523,16): Error: undefined identifier WSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(684,5): Error: undefined identifier LPWSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(686,5): Error: undefined identifier LPWSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(687,5): Error: undefined identifier LPWSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(690,5): Error: undefined identifier LPWSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(692,5): Error: undefined identifier LPWSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\event\socket\iocp.d(693,5): Error: undefined identifier LPWSABUF
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\io\TcpStream.d(138,19): Error: function hunt.io.TcpStream.TcpStream.start does not override any function
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\io\TcpStream.d(191,19): Error: function hunt.io.TcpStream.TcpStream.onRead does not override any function
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\io\TcpStream.d(220,19): Error: function hunt.io.TcpStream.TcpStream.onClose does not override any function
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\io\TcpStream.d(240,19): Error: function hunt.io.TcpStream.TcpStream.onWrite does not override any function
..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\io\TcpListener.d(122,19): Error: function hunt.io.TcpListener.TcpListener.start does not override any function ..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\io\TcpListener.d(130,19): Error: function hunt.io.TcpListener.TcpListener.close does not override any function ..\..\..\AppData\Roaming\dub\packages\hunt-1.0.0-beta.4\hunt\source\hunt\io\TcpListener.d(139,29): Error: function hunt.io.TcpListener.TcpListener.onRead does not override any function

ldc2 failed with exit code 1.
Heromyth commented 6 years ago

Run:

dub upgrade

to upgrade all the dependencies.

It can be built with DMD.

dub build --config=example --arch=x86_64 --build=debug --compiler=dmd

It fails when building with LDC

dub build --config=example --arch=x86_64 --build=debug --compiler=ldc2

We are fixing it.

Heromyth commented 6 years ago

See also: https://github.com/dcarp/protobuf-d/issues/8

truedat101 commented 6 years ago

Thank you, will review that. Sounds like upstream module issue .

thewilsonator commented 5 years ago

Upstream bug was fixed is this still an issue?

mw66 commented 3 years ago

Yes, it still is an issue, ldc2 build fails also on Linux.

https://github.com/huntlabs/hunt/issues/89