digitalmars.D - Unable to run D program on mac system when using dependency.
- Harbeer Kadian (39/39) Jan 10 2018 I am pretty new to D language. I am working on existing code
- Colin (3/8) Jan 10 2018 What version of DMD are you using?
- Simen =?UTF-8?B?S2rDpnLDpXM=?= (9/22) Jan 10 2018 This seems to be a bug in Botan - the GitHub page lists the build
I am pretty new to D language. I am working on existing code developed by others. Previous developers were using linux environment to build and run the D Application. I am trying to do the same in MAC as it is my local environment. Here is how my jub.json file looks like { "name" : "dsmasher", "description" : "Hello World - A minimal DUB bundle.", "dependencies" : { "d2sqlite3": "~>0.9.7", "botan": "~>1.12.9" } } The program is very simple import std.stdio; int main () { return 0; } But when I build it throws following errors. /Library/D/dmd/src/druntime/import/object.d(3440,23): Error: template memutils.refcounted.RefCounted!(X509CertificateImpl, ThreadMem).RefCounted.opCast does not match any template declaration /Library/D/dmd/src/druntime/import/object.d(3440,49): Error: template memutils.refcounted.RefCounted!(X509CertificateImpl, ThreadMem).RefCounted.opCast does not match any template declaration /Library/D/dmd/src/druntime/import/object.d(3441,39): Error: template memutils.refcounted.RefCounted!(X509CertificateImpl, ThreadMem).RefCounted.opCast does not match any template declaration ../../../.dub/packages/memutils-0.4.9/memutils/source/memuti s/vector.d(790,10): Error: template instance object.__equals!(const(RefCounted!(X509CertificateImpl, ThreadMem)), const(RefCounted!(X509CertificateImpl, ThreadMem))) error instantiating ../../../.dub/packages/memutils-0.4.9/memutils/source/memuti s/helpers.d(71,27): instantiated from here: opEquals!() ../../../.dub/packages/botan-1.12.9/botan/source/botan/tls/server.d(689,38): instantiated from here: opEquals!(RefCounted!(Vector!(RefCounted!(X509CertificateImpl, ThreadMem), ThreadMem), ThreadMem)) /Library/D/dmd/bin/dmd failed with exit code 1. ^^^ Terminated, exit code: 2 ^^^ ************ Build terminated. ************ I am using dmd compiler for this. Please help if you have any idea.
Jan 10 2018
On Wednesday, 10 January 2018 at 12:44:01 UTC, Harbeer Kadian wrote:I am pretty new to D language. I am working on existing code developed by others. Previous developers were using linux environment to build and run the D Application. I am trying to do the same in MAC as it is my local environment. [...]What version of DMD are you using?
Jan 10 2018
On Wednesday, 10 January 2018 at 12:44:01 UTC, Harbeer Kadian wrote:I am pretty new to D language. I am working on existing code developed by others. Previous developers were using linux environment to build and run the D Application. I am trying to do the same in MAC as it is my local environment. Here is how my jub.json file looks like { "name" : "dsmasher", "description" : "Hello World - A minimal DUB bundle.", "dependencies" : { "d2sqlite3": "~>0.9.7", "botan": "~>1.12.9" } }This seems to be a bug in Botan - the GitHub page lists the build as failing, and a look[1] at the build shows the exact same error messages. -- Simen [0]: https://github.com/etcimon/botan [1]: https://travis-ci.org/etcimon/botan/jobs/308953168
Jan 10 2018