On 5/8/13 5:12 AM, Sönke Ludwig wrote:

On Mon, 06 May 2013 06:24:13 GMT, Sönke Ludwig wrote:

On Sun, 05 May 2013 04:52:20 -0400, Andrew Edwards wrote:

On 5/5/13 3:44 AM, Sönke Ludwig wrote:

So if I understand you correctly, I need to compile and install rdmd.
This, along with the currently installed LDC2 compiler will do the trick
once I modify dub/build.sh match above line of code.

(or maybe that's "ldmd2", not sure)

I use the command "ldc2" to invoke the LDC compiler.

I've tried this suggestion but still encountered some issues. There are
far less errors though, and these errors seem specifically related to curl:

(...)

Did you specify "-lcurl" on the ldc2 command line? Looks like the linker didn't link against libcurl.a.

Anyway, I sped up making the new build script a bit and tested it successfully on CentOS 6.2 with the LDC HEAD/LLVM 3.2. It should also detect LDC automatically now. The new build script is in the latest git HEAD version.

Sorry, I just realized that the linker errors are most probably actually the symptom of the missing "--no-as-needed" workaround. The latest version should work, though.

I updated dub and tried again. It did detect ldc2 during the build but
still resulted in failure because of the same curl linker errors. All
I'm doing at this point is running the dub build script so didn't think
I needed to supply "-lcurl" argument but I tried it anyway and the
result was:

andrew@goldeneye:~/dub$ ./build.sh -lcurl
Running ldmd2...
ldc2: Unknown command line argument '-lcurl'. Try: '/usr/local/bin/ldc2
-help'
ldc2: Did you mean '-c'?

I'm running Ubuntu 12.10 but I don't thing that should matter.

Any ideas?

Thanks,
Andrew