-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Building koch on OpenBSD fails unless the Nim directory is in $PATH
#13758
Comments
Note that even with `koch boot` output
|
Try to modify typetraits so that it does |
If the error also happens for the devel compiler (not the one built with csources), then you should check to see if |
I “fixed” `getAppFilename()` on OpenBSD a while ago, but will try with the devel compiler once I work out how.
…On Wed, 25 Mar 2020, at 21:01, alaviss wrote:
If the error also happens for the devel compiler (not the one built
with csources), then you should check to see if `getAppFilename()` is
implemented correctly. It's used by the compiler to derive a lot of
paths, so if there's any problem it'd be in there.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13758 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW24NOUSBKAXI4UK5FKXDRJJWJNANCNFSM4LTXED3Q>.
|
@alaviss I'm not sure if these are the right steps to try the devel compiler, but it works:
If those aren't the correct steps to try the devel compiler, I'd welcome any tips 😄 |
It's fine, now please create a PR for this required change and add a comment so that we don't forget we must import it via |
* properly fix #12389 * use --lib:lib in koch.nim.cfg instead * third time is the charm
…nim-lang#14291) * properly fix nim-lang#12389 * use --lib:lib in koch.nim.cfg instead * third time is the charm
|
When building
koch
on OpenBSD using the following steps:The final step (
bin/nim c koch
) fails with the following output:`bin/nim c koch` output
``` euan@corellia ~/Nim> bin/nim c koch Hint: used config file 'config/nim.cfg' [Conf] Hint: used config file '/home/euan/Nim/koch.nim.cfg' [Conf] Hint: used config file 'config/config.nims' [Conf] /home/euan/Nim/lib/system/io.nim(89, 6) Hint: 'c_clearerr' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(143, 6) Hint: 'strerror' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(117, 6) Hint: 'c_ferror' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(440, 6) Hint: 'readAllFile' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(91, 6) Hint: 'c_feof' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(461, 6) Hint: 'writeLn' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(124, 6) Hint: 'c_fputc' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(45, 3) Hint: 'nil' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(504, 5) Hint: 'NimString' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(1815, 7) Hint: 'NimStackTrace' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(1169, 10) Hint: 'sysAssert' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(211, 7) Hint: 'ThisIsSystem' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(1061, 3) Hint: 'hasSharedHeap' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(1039, 3) Hint: 'strlitFlag' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/fatal.nim(15, 9) Hint: 'gotoBasedExceptions' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(1817, 10) Hint: 'coroutinesSupportedPlatform' is declared but not used [XDeclaredButNotUsed] Hint: system [Processing] Hint: widestrs [Processing] Hint: io [Processing] /home/euan/Nim/lib/system/io.nim(461, 6) Hint: 'writeLn' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(440, 6) Hint: 'readAllFile' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(91, 6) Hint: 'c_feof' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/io.nim(124, 6) Hint: 'c_fputc' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/gc.nim(143, 10) Hint: 'color' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/mmdisp.nim(17, 3) Hint: 'debugGC' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/dyncalls.nim(18, 3) Hint: 'NilLibHandle' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/repr.nim(147, 8) Hint: 'reprBreak' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/dyncalls.nim(72, 8) Hint: 'dlerror' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/cellsets.nim(184, 10) Hint: 'elements' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/cellsets.nim(163, 6) Hint: 'excl' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(1817, 10) Hint: 'coroutinesSupportedPlatform' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/gc.nim(850, 8) Hint: 'GC_setStrategy' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/cellsets.nim(66, 6) Hint: 'deinit' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/alloc.nim(1001, 6) Hint: 'getFreeMem' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/alloc.nim(1024, 8) Hint: 'deallocOsPages' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/sysstr.nim(111, 6) Hint: 'newOwnedString' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(2177, 5) Hint: 'SafePoint' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(45, 3) Hint: 'nil' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/mmdisp.nim(38, 3) Hint: 'PByte' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system.nim(211, 7) Hint: 'ThisIsSystem' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/gc.nim(39, 3) Hint: 'rcPurple' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/alloc.nim(979, 6) Hint: 'realloc0' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/alloc.nim(1002, 6) Hint: 'getTotalMem' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/cellsets.nim(45, 6) Hint: 'contains' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/mmdisp.nim(39, 3) Hint: 'PString' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/osalloc.nim(27, 7) Hint: 'doNotUnmap' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/cellsets.nim(237, 10) Hint: 'elementsExcept' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/avltree.nim(27, 6) Hint: 'find' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/gc.nim(144, 10) Hint: 'setColor' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/alloc.nim(815, 6) Hint: 'rawAlloc0' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/gc.nim(38, 3) Hint: 'rcWhite' is declared but not used [XDeclaredButNotUsed] /home/euan/Nim/lib/system/gc.nim(37, 3) Hint: 'rcGray' is declared but not used [XDeclaredButNotUsed] Hint: koch [Processing] Hint: os [Processing] Hint: strutils [Processing] Hint: parseutils [Processing] Hint: math [Processing] Hint: bitops [Processing] Hint: macros [Processing] Hint: algorithm [Processing] Hint: unicode [Processing] Hint: pathnorm [Processing] Hint: osseps [Processing] /home/euan/Nim/lib/pure/pathnorm.nim(46, 10) Hint: 'dirs' is declared but not used [XDeclaredButNotUsed] Hint: posix [Processing] Hint: times [Processing] Hint: options [Processing] Hint: typetraits [Processing] /home/euan/Nim/lib/pure/typetraits.nim(92, 11) Error: cannot open file: std/macros ```However, if we add
$HOME/Nim/bin
to the path, then run the command asnim c koch
instead, the build completes successfully:`nim c koch` output
If we run
nim dump
with thenim
binary built fromcsources
, we get the following output:`nim dump` output
I'm not sure what else to do in order to troubleshoot this...
The text was updated successfully, but these errors were encountered: