Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"koch web" fails in HEAD #1898

Closed
stefantalpalaru opened this issue Jan 7, 2015 · 9 comments
Closed

"koch web" fails in HEAD #1898

stefantalpalaru opened this issue Jan 7, 2015 · 9 comments
Labels

Comments

@stefantalpalaru
Copy link
Contributor

Relevant output:

nim doc2 --hint[Conf]:off --hint[Path]:off --hint[Processing]:off --putenv:nimversion=0.10.3 --docSeeSrcUrl:https://github.com/Araq/Nim/tree/master/lib -o:web/upload/system.html --index:on lib/system.nim
system.nim(2547, 15) Info: instantiation from here
system.nim(1115, 15) Error: undeclared identifier: 'useSysAssert'
system.nim(2547, 15) Info: instantiation from here
system.nim(2547, 15) Info: instantiation from here
system.nim(1115, 14) Error: internal error: cannot generate code for: mDefined
No stack traceback available
external program failed
Error: execution of an external program failed
@stefantalpalaru
Copy link
Contributor Author

The error was actually my fault because a previous version of nim was used due to the wrong PATH order. After putting "./bin" first I get another error from 'PATH="./bin:$PATH" ./koch web':

nim doc2 --hint[Conf]:off --hint[Path]:off --hint[Processing]:off --putenv:nimversion=0.10.3 --docSeeSrcUrl:https://github.com/Araq/Nim/tree/master/lib/impure -o:web/upload/graphics.html --index:on lib/impure/graphics.nim
SIGSEGV: Illegal storage access. (Try to compile with -d:useSysAssert -d:useGcAssert for details.)
external program failed
Error: execution of an external program failed
FAILURE

@Araq
Copy link
Member

Araq commented Jan 7, 2015

OS? Used C compiler? CPU?

@stefantalpalaru
Copy link
Contributor Author

Linux amd 3.18.1-gentoo #1 SMP PREEMPT Thu Dec 18 17:45:09 CET 2014 x86_64 AMD FX-8320E Eight-Core Processor AuthenticAMD GNU/Linux

gcc-4.8.4

@Araq
Copy link
Member

Araq commented Jan 11, 2015

Works for me on Linux 64, gcc-4.8.2.

@dom96 dom96 added the Tools label Jan 13, 2015
@reactormonk
Copy link
Contributor

Works here as well. @stefantalpalaru could you provide some more information? To get a stracktrace, boot the compiler without the -d:release flag.

@oderwat
Copy link
Contributor

oderwat commented Feb 15, 2015

Is this related? I tried to create the docs on my system (osx) with ./koch web and got a similar error.

Short version:

# in nim repo root
nim doc2 lib/system.nim

...
...
system.nim(2612, 15) Info: template/generic instantiation from here
system.nim(1117, 15) Error: undeclared identifier: 'useSysAssert'
system.nim(2612, 15) Info: template/generic instantiation from here
system.nim(2612, 15) Info: template/generic instantiation from here
system.nim(1117, 14) Error: internal error: cannot generate code for: mDefined
No stack traceback available
To create a stacktrace, rerun compilation with ./koch temp c <file>

I also have an earlier problem with includes not working well. Line 23 in system.nim does:

## .. include:: ../doc/exception_hierarchy_fragment.txt

But that fails when I ./koch web. First failure is when it descent into lib/wrapper/mysql .. copying /doc/exeption... there works :) .. but not the right thing to do!

I then included the exception_hierarchy_fragment.txt manual into system.nim and installed the compiler new. It loads the libs for creating the docs from the installed version when runnig ./koch web what I think is a bit odd to do?

Anyway after this I run into the above problem with system.nim failing to doc2 itself.

Originally I wanted to call nim doc2 somefile.nim on a file to look for effects annotations as described in the docs.

This failed with:

lib/nim/system.nim(24, 3) Error: cannot open '../doc/exception_hierarchy_fragment.txt'
Error: unhandled exception: lib/nim/system.nim(24, 3) Error: cannot open '../doc/exception_hierarchy_fragment.txt' [ERecoverableError]

and lead to this odyssey...

@stefantalpalaru
Copy link
Contributor Author

It now works with gcc-4.9.2.

@eyan
Copy link

eyan commented May 12, 2015

I get a similar error when doing './koch web'. Using nim-0.11.2 release on OSX Mavericks.

lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing main as an async proc. [User]
lib/pure/httpclient.nim(825, 17) Info: template/generic instantiation from here
lib/pure/asyncdispatch.nim(1196, 8) Warning: 'cb' is not GC-safe as it accesses 'nameIterVar' which is a global using GC'ed memory
external program failed
Error: execution of an external program failed
FAILURE
~/bin/nim-0.11.2
eyan@Devi$ E[V]? uname -a
Darwin Devi 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64

@Araq
Copy link
Member

Araq commented May 31, 2016

koch web now works on Mac OS X.

@Araq Araq closed this as completed May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants