RejectedSoftware Forums

Sign up

Can't build via DUB, but building manually works

So, I have a project:

{
	"name": "dgame",
	"description": "An example project skeleton",
	"homepage": "http://example.org",
	"copyright": "Copyright © 2000, Your Name",
	"authors": [
		"Your Name"
	],
	"dependencies": {
	},
  "dflags": [
    "-I/Users/jared/src/DSFML/lib/",
    "-I/Users/jared/src/DSFML/src/"
  ],
  "lflags": [
    "-L/Users/jared/src/DSFML-C-Builds/clang/lib/",
  ],
  "sourceFiles": [
    "/Users/jared/src/DSFML/lib/libdsfml-system.a",
    "/Users/jared/src/DSFML/lib/libdsfml-graphics.a",
    "/Users/jared/src/DSFML/lib/libdsfml-window.a"
  ],
  "libs": [
    "dsfml-system.2",
    "dsfml-window.2",
    "dsfml-graphics.2",
  ]
}

When run, the compilation looks like this:

dmd -I/Users/jared/src/DSFML/lib/ -I/Users/jared/src/DSFML/src/ -w -g -debug -c -of/tmp/dub/369882575/temp.o -version=Have_dgame -I/Users/jared/Code/DGame/source -J/Users/jared/Code/DGame/views source/app.d source/mapping/generator.d source/mapping/map.d source/mapping/tile.d ../../src/DSFML/lib/libdsfml-system.a ../../src/DSFML/lib/libdsfml-graphics.a ../../src/DSFML/lib/libdsfml-window.a
Linking...
dmd -of/tmp/dub/369882575/dgame /tmp/dub/369882575/temp.o -L-L/Users/jared/src/DSFML-C-Builds/clang/lib/ -L-ldsfml-system.2 -L-ldsfml-window.2 -L-ldsfml-graphics.2 -g

And errors:

Undefined symbols for architecture x86_64:
  "_D5dsfml8graphics3all12__ModuleInfoZ", referenced from:
      _D3app12__ModuleInfoZ in temp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
Error: Link command failed with exit code 1

Full exception: object.Exception@source/dub/compilers/dmd.d(120): Link command failed with exit code 1
----------------
5   dub                                 0x0000000103246657 pure @safe bool std.exception.enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) + 107
6   dub                                 0x00000001032300ff void dub.compilers.dmd.DmdCompiler.invokeLinker(const(dub.compilers.compiler.BuildSettings), const(dub.compilers.compiler.BuildPlatform), immutable(char)[][]) + 987
7   dub                                 0x0000000103233f05 void dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings) + 4897
8   dub                                 0x000000010320c2e4 void dub.dub.Dub.generateProject(immutable(char)[], dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000103200fbd _Dmain + 6333
10  dub                                 0x00000001032e9951 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33
11  dub                                 0x00000001032e949d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
12  dub                                 0x00000001032e999d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 61
13  dub                                 0x00000001032e949d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
14  dub                                 0x00000001032e9451 _d_run_main + 457
15  dub                                 0x00000001032e9280 main + 20
16  libdyld.dylib                       0x00007fff9338b5fd start + 1
17  ???                                 0x0000000000000002 0x0 + 2

But! If I run it manually, as a single command works:

dmd -I/Users/jared/src/DSFML/lib/ -I/Users/jared/src/DSFML/src/ -w -g -debug -version=Have_dgame -I/Users/jared/Code/DGame/source -J/Users/jared/Code/DGame/views source/app.d source/mapping/generator.d source/mapping/map.d source/mapping/tile.d ../../src/DSFML/lib/libdsfml-system.a ../../src/DSFML/lib/libdsfml-graphics.a ../../src/DSFML/lib/libdsfml-window.a -L-L/Users/jared/src/DSFML-C-Builds/clang/lib/ -L-ldsfml-system.2 -L-ldsfml-window.2 -L-ldsfml-graphics.2 -g

Has anyone else run into this?

Re: Can't build via DUB, but building manually works

On Tue, 12 Nov 2013 00:26:15 GMT, Jared wrote:

So, I have a project:

{
	"name": "dgame",
	"description": "An example project skeleton",
	"homepage": "http://example.org",
	"copyright": "Copyright © 2000, Your Name",
	"authors": [
		"Your Name"
	],
	"dependencies": {
	},
  "dflags": [
    "-I/Users/jared/src/DSFML/lib/",
    "-I/Users/jared/src/DSFML/src/"
  ],
  "lflags": [
    "-L/Users/jared/src/DSFML-C-Builds/clang/lib/",
  ],
  "sourceFiles": [
    "/Users/jared/src/DSFML/lib/libdsfml-system.a",
    "/Users/jared/src/DSFML/lib/libdsfml-graphics.a",
    "/Users/jared/src/DSFML/lib/libdsfml-window.a"
  ],
  "libs": [
    "dsfml-system.2",
    "dsfml-window.2",
    "dsfml-graphics.2",
  ]
}

When run, the compilation looks like this:

dmd -I/Users/jared/src/DSFML/lib/ -I/Users/jared/src/DSFML/src/ -w -g -debug -c -of/tmp/dub/369882575/temp.o -version=Have_dgame -I/Users/jared/Code/DGame/source -J/Users/jared/Code/DGame/views source/app.d source/mapping/generator.d source/mapping/map.d source/mapping/tile.d ../../src/DSFML/lib/libdsfml-system.a ../../src/DSFML/lib/libdsfml-graphics.a ../../src/DSFML/lib/libdsfml-window.a
Linking...
dmd -of/tmp/dub/369882575/dgame /tmp/dub/369882575/temp.o -L-L/Users/jared/src/DSFML-C-Builds/clang/lib/ -L-ldsfml-system.2 -L-ldsfml-window.2 -L-ldsfml-graphics.2 -g

And errors:

Undefined symbols for architecture x86_64:
  "_D5dsfml8graphics3all12__ModuleInfoZ", referenced from:
      _D3app12__ModuleInfoZ in temp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
Error: Link command failed with exit code 1

Full exception: object.Exception@source/dub/compilers/dmd.d(120): Link command failed with exit code 1
----------------
5   dub                                 0x0000000103246657 pure @safe bool std.exception.enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) + 107
6   dub                                 0x00000001032300ff void dub.compilers.dmd.DmdCompiler.invokeLinker(const(dub.compilers.compiler.BuildSettings), const(dub.compilers.compiler.BuildPlatform), immutable(char)[][]) + 987
7   dub                                 0x0000000103233f05 void dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings) + 4897
8   dub                                 0x000000010320c2e4 void dub.dub.Dub.generateProject(immutable(char)[], dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000103200fbd _Dmain + 6333
10  dub                                 0x00000001032e9951 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33
11  dub                                 0x00000001032e949d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
12  dub                                 0x00000001032e999d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 61
13  dub                                 0x00000001032e949d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
14  dub                                 0x00000001032e9451 _d_run_main + 457
15  dub                                 0x00000001032e9280 main + 20
16  libdyld.dylib                       0x00007fff9338b5fd start + 1
17  ???                                 0x0000000000000002 0x0 + 2

(...)

This seems to be caused by DUB inserting the .a files on the compiler command line instead of the linker command line. I've committed a fix to git master.

Re: Can't build via DUB, but building manually works

On Tue, 12 Nov 2013 09:56:34 GMT, Sönke Ludwig wrote:

This seems to be caused by DUB inserting the .a files on the compiler command line instead of the linker command line. I've committed a fix to git master.

Thanks for getting this fixed so quickly! I'm now getting a different build error:

dub -v
Using dub registry url 'http://code.dlang.org/'
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Note: Failed to determine version of package dgame at /Users/jared/Code/DGame. Assuming ~master.
Collecting dependencies for dgame
Checking dependencies in '/Users/jared/Code/DGame'
Generating using build
Target is up to date. Skipping build.
Running dgame 
Error: Executable file not found: 

Full exception: std.process.ProcessException@std/process.d(389): Executable file not found: 
----------------
5   dub                                 0x0000000100e15ef1 @trusted std.process.Pid std.process.spawnProcess(const(char[][]), std.stdio.File, std.stdio.File, std.stdio.File, const(immutable(char)[][immutable(char)[]]), std.process.Config) + 181
6   dub                                 0x0000000100d2c4f1 void dub.generators.build.BuildGenerator.runTarget(dub.internal.vibecompat.inet.path.Path, dub.compilers.compiler.BuildSettings, immutable(char)[][]) + 941
7   dub                                 0x0000000100d29cc4 void dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings) + 1288
8   dub                                 0x0000000100cfffbc void dub.dub.Dub.generateProject(immutable(char)[], dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000100cf4165 _Dmain + 6965
10  dub                                 0x0000000100de4bc1 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33
11  dub                                 0x0000000100de470d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
12  dub                                 0x0000000100de4c0d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 61
13  dub                                 0x0000000100de470d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
14  dub                                 0x0000000100de46c1 _d_run_main + 457
15  dub                                 0x0000000100de44f0 main + 20
16  libdyld.dylib                       0x00007fff92d135fd start + 1
17  ???                                 0x0000000000000002 0x0 + 2
Run 'dub help' for usage information.

Re: Can't build via DUB, but building manually works

On Tue, 12 Nov 2013 18:03:11 GMT, Jared wrote:

On Tue, 12 Nov 2013 09:56:34 GMT, Sönke Ludwig wrote:

This seems to be caused by DUB inserting the .a files on the compiler command line instead of the linker command line. I've committed a fix to git master.

Thanks for getting this fixed so quickly! I'm now getting a different build error:

dub -v
Using dub registry url 'http://code.dlang.org/'
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Note: Failed to determine version of package dgame at /Users/jared/Code/DGame. Assuming ~master.
Collecting dependencies for dgame
Checking dependencies in '/Users/jared/Code/DGame'
Generating using build
Target is up to date. Skipping build.
Running dgame 
Error: Executable file not found: 

(...)

Do you have the "dgame" executable in the cwd? If not, is it in .dub/build/*/?

I'll add some more diagnostic output that should be helpful.

Re: Can't build via DUB, but building manually works

On Wed, 13 Nov 2013 12:14:16 GMT, Sönke Ludwig wrote:

Do you have the "dgame" executable in the cwd? If not, is it in .dub/build/*/?

I'll add some more diagnostic output that should be helpful.

I do, which is odd:

[jared@Adam-Smith DGame (master)]$ ll
total 2120
drwxr-xr-x  22 jared  staff   748B Nov 13 10:22 .
drwxr-xr-x   7 jared  staff   238B Nov 11 15:14 ..
drwxr-xr-x   4 jared  staff   136B Nov 12 10:00 .dub
-rwxr-xr-x   1 jared  staff    79K Nov 11 16:20 libdsfml-audio.2.0.dylib
-rwxr-xr-x   1 jared  staff    79K Nov 11 16:20 libdsfml-audio.2.dylib
-rwxr-xr-x   1 jared  staff    79K Nov 11 16:20 libdsfml-audio.dylib
-rwxr-xr-x   1 jared  staff    90K Nov 11 16:20 libdsfml-graphics.2.0.dylib
-rwxr-xr-x   1 jared  staff    90K Nov 11 16:20 libdsfml-graphics.2.dylib
-rwxr-xr-x   1 jared  staff    90K Nov 11 16:20 libdsfml-graphics.dylib
-rwxr-xr-x   1 jared  staff    83K Nov 11 16:20 libdsfml-network.2.0.dylib
-rwxr-xr-x   1 jared  staff    83K Nov 11 16:20 libdsfml-network.2.dylib
-rwxr-xr-x   1 jared  staff    83K Nov 11 16:20 libdsfml-network.dylib
-rwxr-xr-x   1 jared  staff    39K Nov 11 16:20 libdsfml-system.2.0.dylib
-rwxr-xr-x   1 jared  staff    39K Nov 11 16:20 libdsfml-system.2.dylib
-rwxr-xr-x   1 jared  staff    39K Nov 11 16:20 libdsfml-system.dylib
-rwxr-xr-x   1 jared  staff    54K Nov 11 16:20 libdsfml-window.2.0.dylib
-rwxr-xr-x   1 jared  staff    54K Nov 11 16:20 libdsfml-window.2.dylib
-rwxr-xr-x   1 jared  staff    54K Nov 11 16:20 libdsfml-window.dylib
-rw-r--r--   1 jared  staff   633B Nov 11 16:11 package.json
drwxr-xr-x   2 jared  staff    68B Nov  5 21:36 public
drwxr-xr-x   5 jared  staff   170B Nov 11 16:21 source
drwxr-xr-x   2 jared  staff    68B Nov  5 21:36 views


[jared@Adam-Smith DGame (master)]$ dub -v
Using dub registry url 'http://code.dlang.org/'
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Note: Failed to determine version of package dgame at /Users/jared/Code/DGame. Assuming ~master.
Collecting dependencies for dgame
Checking dependencies in '/Users/jared/Code/DGame'
Generating using build
Target is up to date. Skipping build.
Running dgame 
Error: Executable file not found: 

Full exception: std.process.ProcessException@std/process.d(389): Executable file not found: 
----------------
5   dub                                 0x00000001041c6ef1 @trusted std.process.Pid std.process.spawnProcess(const(char[][]), std.stdio.File, std.stdio.File, std.stdio.File, const(immutable(char)[][immutable(char)[]]), std.process.Config) + 181
6   dub                                 0x00000001040dd4f1 void dub.generators.build.BuildGenerator.runTarget(dub.internal.vibecompat.inet.path.Path, dub.compilers.compiler.BuildSettings, immutable(char)[][]) + 941
7   dub                                 0x00000001040dacc4 void dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings) + 1288
8   dub                                 0x00000001040b0fbc void dub.dub.Dub.generateProject(immutable(char)[], dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x00000001040a5165 _Dmain + 6965
10  dub                                 0x0000000104195bc1 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33
11  dub                                 0x000000010419570d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
12  dub                                 0x0000000104195c0d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 61
13  dub                                 0x000000010419570d extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45
14  dub                                 0x00000001041956c1 _d_run_main + 457
15  dub                                 0x00000001041954f0 main + 20
16  libdyld.dylib                       0x00007fff8d18d5fd start + 1
17  ???                                 0x0000000000000002 0x0 + 2
Run 'dub help' for usage information.


[jared@Adam-Smith DGame (master)]$ ll
total 4160
drwxr-xr-x  23 jared  staff   782B Nov 13 10:22 .
drwxr-xr-x   7 jared  staff   238B Nov 11 15:14 ..
drwxr-xr-x   4 jared  staff   136B Nov 12 10:00 .dub
-rwxr-xr-x   1 jared  staff   1.0M Nov 12 10:00 dgame
-rwxr-xr-x   1 jared  staff    79K Nov 11 16:20 libdsfml-audio.2.0.dylib
-rwxr-xr-x   1 jared  staff    79K Nov 11 16:20 libdsfml-audio.2.dylib
-rwxr-xr-x   1 jared  staff    79K Nov 11 16:20 libdsfml-audio.dylib
-rwxr-xr-x   1 jared  staff    90K Nov 11 16:20 libdsfml-graphics.2.0.dylib
-rwxr-xr-x   1 jared  staff    90K Nov 11 16:20 libdsfml-graphics.2.dylib
-rwxr-xr-x   1 jared  staff    90K Nov 11 16:20 libdsfml-graphics.dylib
-rwxr-xr-x   1 jared  staff    83K Nov 11 16:20 libdsfml-network.2.0.dylib
-rwxr-xr-x   1 jared  staff    83K Nov 11 16:20 libdsfml-network.2.dylib
-rwxr-xr-x   1 jared  staff    83K Nov 11 16:20 libdsfml-network.dylib
-rwxr-xr-x   1 jared  staff    39K Nov 11 16:20 libdsfml-system.2.0.dylib
-rwxr-xr-x   1 jared  staff    39K Nov 11 16:20 libdsfml-system.2.dylib
-rwxr-xr-x   1 jared  staff    39K Nov 11 16:20 libdsfml-system.dylib
-rwxr-xr-x   1 jared  staff    54K Nov 11 16:20 libdsfml-window.2.0.dylib
-rwxr-xr-x   1 jared  staff    54K Nov 11 16:20 libdsfml-window.2.dylib
-rwxr-xr-x   1 jared  staff    54K Nov 11 16:20 libdsfml-window.dylib
-rw-r--r--   1 jared  staff   633B Nov 11 16:11 package.json
drwxr-xr-x   2 jared  staff    68B Nov  5 21:36 public
drwxr-xr-x   5 jared  staff   170B Nov 11 16:21 source
drwxr-xr-x   2 jared  staff    68B Nov  5 21:36 views

Re: Can't build via DUB, but building manually works

On Wed, 13 Nov 2013 12:14:16 GMT, Sönke Ludwig wrote:

Do you have the "dgame" executable in the cwd? If not, is it in .dub/build/*/?

I'll add some more diagnostic output that should be helpful.

Using your latest on GitHub (with additional output) I'm getting:

$ dub -v
Using dub registry url 'http://code.dlang.org/'
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Note: Failed to determine version of package dgame at /Users/jared/Code/DGame. Assuming ~master.
Collecting dependencies for dgame
Checking dependencies in '/Users/jared/Code/DGame'
Generating using build
Target is up to date. Skipping build.
Copying target from /Users/jared/Code/DGame/.dub/build/application-debug-x86_64-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/dgame to 
Running dgame 
Error: Executable file not found: 

Full exception: std.process.ProcessException@std/process.d(370): Executable file not found: 
----------------
5   dub                                 0x0000000101f98b79 @trusted std.process.Pid std.process.spawnProcess(const(char[][]), std.stdio.File, std.stdio.File, std.stdio.File, const(immutable(char)[][immutable(char)[]]), std.process.Config) + 181
6   dub                                 0x0000000101ec1bb9 void dub.generators.build.BuildGenerator.runTarget(dub.internal.vibecompat.inet.path.Path, dub.compilers.compiler.BuildSettings, immutable(char)[][]) + 941
7   dub                                 0x0000000101ebf34c void dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings) + 1288
8   dub                                 0x0000000101e8df8c void dub.dub.Dub.generateProject(immutable(char)[], dub.generators.generator.GeneratorSettings) + 160
9   dub                                 0x0000000101e83b92 int dub.commandline.runDubCommandLine(immutable(char)[][]) + 6838
10  dub                                 0x0000000101e812e0 _Dmain + 32
11  dub                                 0x0000000101f660e1 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1() + 33
12  dub                                 0x0000000101f6602d void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) + 45
13  dub                                 0x0000000101f6608d void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() + 45
14  dub                                 0x0000000101f6602d void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) + 45
15  dub                                 0x0000000101f65fa9 _d_run_main + 449
16  dub                                 0x0000000101e8130a main + 34
17  libdyld.dylib                       0x00007fff8d18d5fd start + 1
18  ???                                 0x0000000000000002 0x0 + 2
Run 'dub help' for usage information.

Re: Can't build via DUB, but building manually works

Am 13.11.2013 21:30, schrieb Jared:

On Wed, 13 Nov 2013 12:14:16 GMT, Sönke Ludwig wrote:

Do you have the "dgame" executable in the cwd? If not, is it in .dub/build/*/?

I'll add some more diagnostic output that should be helpful.

Using your latest on GitHub (with additional output) I'm getting:

$ dub -v
Using dub registry url 'http://code.dlang.org/'
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Note: Failed to determine version of package dgame at /Users/jared/Code/DGame. Assuming ~master.
Collecting dependencies for dgame
Checking dependencies in '/Users/jared/Code/DGame'
Generating using build
Target is up to date. Skipping build.
Copying target from /Users/jared/Code/DGame/.dub/build/application-debug-x86_64-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/dgame to 
Running dgame 
Error: Executable file not found: 

Full exception: std.process.ProcessException@std/process.d(370): Executable file not found: 
(...)

Should be fixed now by
https://github.com/rejectedsoftware/dub/commit/37871e7f7b9de1e560c196750abc6ff5b98475d5

Re: Can't build via DUB, but building manually works

On Tue, 19 Nov 2013 13:30:39 +0100, Sönke Ludwig wrote:

Am 13.11.2013 21:30, schrieb Jared:

On Wed, 13 Nov 2013 12:14:16 GMT, Sönke Ludwig wrote:

Do you have the "dgame" executable in the cwd? If not, is it in .dub/build/*/?

I'll add some more diagnostic output that should be helpful.

Using your latest on GitHub (with additional output) I'm getting:

$ dub -v
Using dub registry url 'http://code.dlang.org/'
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /Users/jared/.dub/packages/local-packages.json
Note: Failed to determine version of package dgame at /Users/jared/Code/DGame. Assuming ~master.
Collecting dependencies for dgame
Checking dependencies in '/Users/jared/Code/DGame'
Generating using build
Target is up to date. Skipping build.
Copying target from /Users/jared/Code/DGame/.dub/build/application-debug-x86_64-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/dgame to 
Running dgame 
Error: Executable file not found: 

Full exception: std.process.ProcessException@std/process.d(370): Executable file not found: 
(...)

Should be fixed now by
https://github.com/rejectedsoftware/dub/commit/37871e7f7b9de1e560c196750abc6ff5b98475d5

That worked! Thank you very much