Open baryluk opened 3 years ago
@baryluk yes, with dub build --compiler=ldc2
, I saw lots of undefined reference error too.
But if you just use dub build
, the build will succeed.
~/project/contrib/grpc-dlang 03:12:29$ dub build
Fetching hunt-http 0.7.3 (getting selected version)...
Fetching hunt-openssl 1.0.5 (getting selected version)...
Fetching hunt 1.7.7 (getting selected version)...
Fetching hunt-net 0.6.6 (getting selected version)...
Fetching hunt-extra 1.1.3 (getting selected version)...
Performing "debug" build using /usr/bin/dmd for x86_64.
grpc 0.4.0-beta.1: building configuration "library"...
Maybe something with ldc2
build, so just using dmd
for now.
@mingwugmail No. Maybe something wrong with your library. I am using ldc2
for dozen other projects just fine.
It seems that you have both dmd and ldc2 installed. You can uninstall one of both for test.
It seems that you have both dmd and ldc2 installed. You can uninstall one of both for test.
I don't have or ever had dmd installed on this system. I have ldc2 1.24.0 and gdc (10.2.1).
@baryluk can you install dmd for now to circumvent this build issue?
Yes, it is an issue, but not the main network issue we want to solve:
@baryluk can you install dmd for now to circumvent this build issue?
Yes, it is an issue, but not the main network issue we want to solve:
No problem. I will use dmd shortly. Sorry about that.
@Heromyth
user@debian:~/grpc-dlang$ dub build --compiler=ldc2
...
Performing "debug" build using ldc2 for x86_64.
grpc 0.4.0-beta.1: building configuration "library"...
/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o:function _start: error: undefined reference to 'main'
library
, but why it looking for main
?"targetType": "library",
"targetType": "dynamicLibrary",
"targetType": "staticLibrary",
but all build with dub build --compiler=ldc2
failed. Do you know where else we should investigate?
BTW, this build issue should really be filed on the https://github.com/huntlabs/grpc-dlang/ repo.
Just FYI, this is a dub bug, the details are here:
Since https://github.com/dlang/dub/issues/2133 is fixed, and closed.
Gonna close this, feel free to reopen if you have another reproduction case.
Hi,
Linux, amd64
ldc2 version 1.24.0 (DMD v2.094.1, LLVM 11.0.1)
DUB version 1.24.0-1, built on Jan 27 2021
I was following readme for
grpc-dlang
:I am not great with
dub
, so I am not sure where is the problem.EDIT. Sorry, for filling this in the wrong repository.