Comments (5)
Can you post the output of dub --build=ddox -v
? It should give some more hints of what went wrong.
Bay the way, if the ddox package is installed system wide, you have to either run dub build
in /var/lib/dub/packages/ddox/0.9.8 manually, or run the dub --build=ddox
as root, at least for the first time.
from dub.
$ dub --build=ddox -v
[7F1CCDC9701C:00000000 dbg] Using dub registry url 'http://registry.vibed.org/'
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry dyaml
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry vibe-d
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry ddox
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry pegged
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /home/simendsjo/.dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry dyaml
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry vibe-d
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry ddox
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry pegged
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /home/simendsjo/.dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry dyaml
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry vibe-d
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry ddox
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry pegged
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /home/simendsjo/.dub/packages/
[7F1CCDC9701C:00000000 dbg] Collecting dependencies for cli
[7F1CCDC9701C:00000000 INF] Checking dependencies in '/home/simendsjo/code/tmp/cli'
[7F1CCDC9701C:00000000 dbg] dub initialized
[7F1CCDC9701C:00000000 dbg] Generating using build
[7F1CCDC9701C:00000000 dbg] Using config application for cli
[7F1CCDC9701C:00000000 INF] Building configuration application, build type ddox
[7F1CCDC9701C:00000000 dbg] Application output name is ''
[7F1CCDC9701C:00000000 dbg] Trying to use pkg-config to resolve library flags for [].
[7F1CCDC9701C:00000000 dbg] pkg-config failed: pkg-config exited with error code 1
[7F1CCDC9701C:00000000 dbg] Falling back to direct -lxyz flags.
[7F1CCDC9701C:00000000 INF] Running dmd...
[7F1CCDC9701C:00000000 dbg] dmd -w -c -o- -D -Df__dummy.html -Xfdocs.json -I/home/simendsjo/code/tmp/cli/source -J/home/simendsjo/code/tmp/cli/views source/cli.d source/traits.d source/uda.d source/app.d
[7F1CCDC9701C:00000000 INF] DDOX in /var/lib/dub/packages/ddox/0.9.8 is not built, performing build now.
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry dyaml
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry vibe-d
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry ddox
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry pegged
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /home/simendsjo/.dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry dyaml
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry vibe-d
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry ddox
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry pegged
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /home/simendsjo/.dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry dyaml
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry vibe-d
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry ddox
[7F1CCDC9701C:00000000 dbg] iterating dir /var/lib/dub/packages/ entry pegged
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /var/lib/dub/packages/
[7F1CCDC9701C:00000000 dbg] Looking for local package map at /home/simendsjo/.dub/packages/
[7F1CCDC9701C:00000000 dbg] Collecting dependencies for ddox
[7F1CCDC9701C:00000000 dbg] Found dependency vibe-d ~master: true
[7F1CCDC9701C:00000000 dbg] Collecting dependencies for vibe-d
[7F1CCDC9701C:00000000 ERR] Error: Invliad configuration "" for ddox
[7F1CCDC9701C:00000000 dbg] Full exception: core.exception.AssertError@source/dub/package_.d(191): Invliad configuration "" for ddox
----------------
dub(_d_assert_msg+0x45) [0x612109]
dub(const(immutable(char)[] function(immutable(char)[], const(dub.package_.Package), const(dub.compilers.compiler.BuildPlatform))) dub.package_.Package.getSubConfiguration+0x216) [0x57abba]
dub(const(immutable(char)[][immutable(char)[]] function(const(dub.compilers.compiler.BuildPlatform), immutable(char)[])) dub.project.Project.getPackageConfigs.void determineConfigsRec(const(dub.package_.Package), bool)+0x21c) [0x568d84]
dub(const(immutable(char)[][immutable(char)[]] function(const(dub.compilers.compiler.BuildPlatform), immutable(char)[])) dub.project.Project.getPackageConfigs+0xdf) [0x568b4b]
dub(const(void function(ref dub.compilers.compiler.BuildSettings, const(dub.compilers.compiler.BuildPlatform), immutable(char)[])) dub.project.Project.addBuildSettings+0xa2) [0x569062]
dub(void dub.generators.build.BuildGenerator.generateProject(dub.generators.generator.GeneratorSettings)+0xe9) [0x556bb1]
dub(void dub.dub.Dub.generateProject(immutable(char)[], dub.generators.generator.GeneratorSettings)+0xa7) [0x607eab]
dub(void dub.dub.Dub.runDdox()+0x37c) [0x6097a8]
dub(_Dmain+0x1802) [0x547ad6]
dub(extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain()+0x18) [0x612880]
dub(extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate())+0x2a) [0x6123be]
dub(extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll()+0x3b) [0x6128c7]
dub(extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate())+0x2a) [0x6123be]
dub(_d_run_main+0x1a8) [0x612378]
dub(main+0x17) [0x6121cb]
/usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7f1ccce9fa15]
[7F1CCDC9701C:00000000 INF] Run 'dub help' for usage information.
from dub.
Btw, running using sudo didn't help:
$ sudo dub --build=ddox
[sudo] password for simendsjo:
Checking dependencies in '/home/simendsjo/code/tmp/cli'
Building configuration application, build type ddox
Running dmd...
DDOX in /var/lib/dub/packages/ddox/0.9.8 is not built, performing build now.
Error: Invliad configuration "" for ddox
Run 'dub help' for usage information.
Running sudo dub build
in the ddox directory worked (after dmd used all my memory and swap and the CPU nearly burned down my apartment).
Running ddox gave me a couple of errors though:
$ dub --build=ddox
Checking dependencies in '/home/simendsjo/code/tmp/cli'
Building configuration application, build type ddox
Running dmd...
Reading doc file...
Parsing JSON...
Filtering modules...
Writing filtered docs...
Reading doc file...
Parsing JSON...
Parsing docs...
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
[7F86BACE2086:00000000 ERR] Expected function type for '', got Primitive
Finished parsing docs.
(...)
from dub.
Yeah, I hope that DMD will get some memory optimizations for CTFE soon. It has become a limiting issue by now. I'm surprised that this is not a high-priority issue, as even Phobos can barely be compiled anymore, at least with unit tests enabled.
I think that the errors are fixed with the latest DDOX master, demangling didn't work in 0.9.8 because std.demangle cannot demangle arbitrary types. I tagged a 0.9.9 version with the fixes now, but it will take some minutes to show up in the registry.
from dub.
I still have nightmares after I used D for a production application back in 2007-2008, so I'm waiting for D to mature a bit more before I try that again. If I'm not mistaken, Don is working hard on refactoring CTFE, so hopefully the memory consumption will be lower in a couple of releases.
from dub.
Related Issues (20)
- `dub build -d id` not parsed properly
- Stack traces are useless in release
- null Package pointer HOT 1
- Trying to run a library should fail fast
- `dub init` output is mangled when using Ctrl+D
- Wrong error message when doing `dub init` on an already existing package
- Dub packages that have a submodule won't work HOT 3
- Dependency per system does not work HOT 1
- Dub might be preventing my package from being recognized HOT 4
- dub describe --data=import-paths includes non import related information
- dub describe --data=dflags outputs duplicate dflags HOT 2
- `dub init` colors are broken on cmd HOT 1
- Dub does not show verbose output for projects with preBuildCommand HOT 2
- `dub add` breaks `~>x.0` dependency specification
- Platform filters may have a surprising behavior when cross compiling using --arch
- Dub relinks project that have path-only dependencies
- object files listed in sourceFiles are ignored when building a static library
- Cannot cache build in the presence of `__FILE_FULL_PATH__` HOT 1
- project.dependencies is missing dependencies HOT 1
- Regression / AssertError in cacheArtifactPath
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dub.