-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dub generate empty/invalid -J [was: grpc-dlang build failure with ldc2] #2133
Comments
I tried to use It is building a library: (I specifically added: "targetType": "library" to the dub.json)
with this same dub.json file,
The error is here: According to @kinke , ldc-developers/ldc#3723 """ I don't think I missed it, and I copied the lines before the command (it says: building configuration "library"), and 1 line after the command (it's the error: undefined reference to 'main') I didn't see any linker command. |
@kinke find the cause of the problem: The dub.json that triggered this problem is in the above comments #2133 (comment) |
Thank you for following this issue. |
reproduction case with https://github.com/huntlabs/grpc-dlang/blob/919cd6ae95fd0f0d380f5abe2603c9fac07374fc/dub.json works with current dub version, the -J -lib issue doesn't seem to appear anymore. Gonna close this, feel free to reopen if you have another reproduction case. |
update:
@kinke find the cause of the problem:
"""
it looks like
-J -lib
is the problem. LDC accepts -Jmy/dir as well as -J my/dir, so an empty/invalid -J swallows the consecutive -lib arg."""
The dub.json that triggered this problem is in the comments #2133 (comment)
System information
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
Bug Description
grpc-dlang build failure with ldc2
dub build
with dmd works finedub build --compiler=ldc2
fails with many undefined reference errors.How to reproduce?
Follow instructions on:
https://github.com/huntlabs/grpc-dlang/blob/master/README.md
dub build --compiler=ldc2
Expected Behavior
ldc2 build should be successful.
Logs
more detailed log is here huntlabs/hunt#89
the first few errors:
The build file is very simple, nothing suspicious:
https://github.com/huntlabs/grpc-dlang/blob/master/dub.json
See also: ldc-developers/ldc#3723
The text was updated successfully, but these errors were encountered: