RejectedSoftware Forums

Sign up

Untracked file found, .dub/packages/libevent-master/C/event2

I tried install VibeNews on another computer:

$cd vibenews
$dub run
FAIL ../../home/donald/.dub/packages/vibe-d-0.7.21-alpha.1/.dub/build/libevent-debug-linux.posix-x86_64-dmd-AB0707232CA963B5DA23C2232BBED51B vibe-d staticLibrary
Error executing command run: DMD compile run failed with exit code -9
$dub upgrade
Removing present package of libevent ~master
Error executing command upgrade: Untracked file found, aborting package removal: /home/donald/.dub/packages/libevent-master/C/event2

$ dub list
Packages present in the system and known to dub:
  vibenews ~master: /opt/vibenews
  libev ~master: /home/donald/.dub/packages/libev-master
  libevent ~master: /home/donald/.dub/packages/libevent-master
  vibe-d 0.7.21-alpha.1: /home/donald/.dub/packages/vibe-d-0.7.21-alpha.1
  userman 0.0.12: /home/donald/.dub/packages/userman-0.0.12
  openssl ~master: /home/donald/.dub/packages/openssl-master
  antispam 0.0.5: /home/donald/.dub/packages/antispam-0.0.5

How do I fix this?

Re: Untracked file found, .dub/packages/libevent-master/C/event2

On Mon, 30 Jun 2014 08:23:00 GMT, donald wrote:

I tried install VibeNews on another computer:

$cd vibenews
$dub run
FAIL ../../home/donald/.dub/packages/vibe-d-0.7.21-alpha.1/.dub/build/libevent-debug-linux.posix-x86_64-dmd-AB0707232CA963B5DA23C2232BBED51B vibe-d staticLibrary
Error executing command run: DMD compile run failed with exit code -9
$dub upgrade
Removing present package of libevent ~master
Error executing command upgrade: Untracked file found, aborting package removal: /home/donald/.dub/packages/libevent-master/C/event2

$ dub list
Packages present in the system and known to dub:
  vibenews ~master: /opt/vibenews
  libev ~master: /home/donald/.dub/packages/libev-master
  libevent ~master: /home/donald/.dub/packages/libevent-master
  vibe-d 0.7.21-alpha.1: /home/donald/.dub/packages/vibe-d-0.7.21-alpha.1
  userman 0.0.12: /home/donald/.dub/packages/userman-0.0.12
  openssl ~master: /home/donald/.dub/packages/openssl-master
  antispam 0.0.5: /home/donald/.dub/packages/antispam-0.0.5

How do I fix this?

Just doing rm -rf /home/donald/.dub/packages/libevent-master should do the trick. With recent versions of DUB, its also possible to specify the --force-remove option to let DUB ignore any untracked files (also mentioned as a suggestion in the error message there).

Re: Untracked file found, .dub/packages/libevent-master/C/event2

Just doing rm -rf /home/donald/.dub/packages/libevent-master should do the trick. With recent versions of DUB, its also possible to specify the --force-remove option to let DUB ignore any untracked files (also mentioned as a suggestion in the error message there).

Still the same issue:

$cd vibenews
$sudo rm -rf ~/.dub/packages/libevent-master
$dub run
Building vibe-d configuration "libevent", build type debug.
Running dmd...
FAIL .dub/packages/vibe-d-0.7.21-alpha.1/.dub/build/libevent-debug-linux.posix-x86_64-dmd-AB0707232CA963B5DA23C2232BBED51B vibe-d staticLibrary
Error executing command run: DMD compile run failed with exit code -9
$cd ~/.dub/packages/vibe-d-0.7.21-alpha.1
$dub run
FAIL .dub/build/libevent-debug-linux.posix-x86_64-dmd-2494B3E0AC5A6FFE1AD0A6AEA442D8E6 vibe-d staticLibrary
Error executing command run: DMD compile run failed with exit code -9

Then I tried to build latest dub:

git clone github.com/D-Programming-Language/dub.dub
cd dub
./build.sh
Running dmd...
Unable to fork: Cannot allocate memory

Re: Untracked file found, .dub/packages/libevent-master/C/event2

$dub build --force-remove
Building vibe-d configuration "libevent", build type debug.
Running dmd...
FAIL /.dub/packages/vibe-d-0.7.21-alpha.1/.dub/build/libevent-debug-linux.posix-x86_64-dmd-AB0707232CA963B5DA23C2232BBED51B vibe-d staticLibrary
Error executing command build: DMD compile run failed with exit code -9

Re: Untracked file found, .dub/packages/libevent-master/C/event2

On Mon, 30 Jun 2014 09:22:45 GMT, donald wrote:

Just doing rm -rf /home/donald/.dub/packages/libevent-master should do the trick. With recent versions of DUB, its also possible to specify the --force-remove option to let DUB ignore any untracked files (also mentioned as a suggestion in the error message there).

Still the same issue:

$cd vibenews
$sudo rm -rf ~/.dub/packages/libevent-master
$dub run
Building vibe-d configuration "libevent", build type debug.
Running dmd...
FAIL .dub/packages/vibe-d-0.7.21-alpha.1/.dub/build/libevent-debug-linux.posix-x86_64-dmd-AB0707232CA963B5DA23C2232BBED51B vibe-d staticLibrary
Error executing command run: DMD compile run failed with exit code -9
$cd ~/.dub/packages/vibe-d-0.7.21-alpha.1
$dub run
FAIL .dub/build/libevent-debug-linux.posix-x86_64-dmd-2494B3E0AC5A6FFE1AD0A6AEA442D8E6 vibe-d staticLibrary
Error executing command run: DMD compile run failed with exit code -9

Then I tried to build latest dub:

git clone github.com/D-Programming-Language/dub.dub
cd dub
./build.sh
Running dmd...
Unable to fork: Cannot allocate memory

How much RAM does that machine have? The exit codes, as well as the last error message indicate that it runs out of memory (the kernel then kills the process with SIGKILL (9)).

In this case you could either just copy the binary over to that machine, or set up a swap file, but that may of course result in very slow compilation.

Re: Untracked file found, .dub/packages/libevent-master/C/event2

On Mon, 30 Jun 2014 09:59:50 GMT, Sönke Ludwig wrote:

In this case you could either just copy the binary over to that machine, or set up a swap file, but that may of course result in very slow compilation.

$ free -m
             total       used       free     shared    buffers     cached
Mem:           490         82        407          0          3         43
-/+ buffers/cache:         36        453
Swap:          511         45        466

I'll copy the binary to that computer.

Thanks a lot:)

Re: Untracked file found, .dub/packages/libevent-master/C/event2

On Mon, 30 Jun 2014 10:12:40 GMT, donald wrote:

On Mon, 30 Jun 2014 09:59:50 GMT, Sönke Ludwig wrote:

In this case you could either just copy the binary over to that machine, or set up a swap file, but that may of course result in very slow compilation.

$ free -m
             total       used       free     shared    buffers     cached
Mem:           490         82        407          0          3         43
-/+ buffers/cache:         36        453
Swap:          511         45        466

I'll copy the binary to that computer.

Thanks a lot:)

Hopefully, DMD will soon get better with its memory consumption! BTW, for DUB master it's also possible to use dub build --build-mode=singleFile to reduce the memory consumption per process invocation at the cost of a longer overall compile time. So that might be another option.