nim doc2 fails on ARM when running against lib/pure/coro.nim #4879

Closed
FedericoCeratto opened this Issue Oct 11, 2016 · 1 comment

Projects

None yet

1 participant

@FedericoCeratto
Contributor
FedericoCeratto commented Oct 11, 2016 edited

The following step of ./koch web fails on ARM:
bin/nim doc2 --hint[Conf]:off --hint[Path]:off --hint[Processing]:off --putenv:nimversion=0.15.0 --git.url:https://github.com/nim-lang/Nim -o:web/upload/coro.html --index:on lib/pure/coro.nim

lib/arch/arch.nim(47, 10) Error: Unsupported architecture
lib/arch/arch.nim(52, 19) Error: undeclared identifier: 'JmpBufReg'
lib/arch/arch.nim(52, 28) Error: undeclared field: 'TOTAL'
lib/arch/arch.nim(52, 28) Error: expression '.' cannot be called
lib/arch/arch.nim(52, 28) Error: VM problem: dest register is not set
lib/system/gc.nim(736, 19) template/generic instantiation from here
lib/system/gc_common.nim(243, 11) Error: invalid type: 'Registers'
lib/system/gc.nim(736, 19) template/generic instantiation from here
lib/system/gc.nim(736, 19) template/generic instantiation from here
Error: internal error: forward type in typeRel()
No stack traceback available
To create a stacktrace, rerun compilation with ./koch temp doc2

Steps to reproduce:
tar xfJ nim-0.15.0.tar.xz; cd nim-0.15.0; sh build.sh; ./bin/nim c koch.nim; ./koch web

@FedericoCeratto
Contributor

coro.nim imports lib/arch/arch.nim uncoditionally even when nimdoc is defined.
The latter triggers "Error: Unsupported architecture" and so on.

@Araq Araq added a commit that closed this issue Oct 20, 2016
@Araq Araq fixes #4879 db6b2bf
@Araq Araq closed this in db6b2bf Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment