Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#54184 - [nim] Cannot compile program importing os module
Attached to Project:
Community Packages
Opened by Erwan Ameil (Wan) - Thursday, 25 May 2017, 13:21 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 19 July 2017, 14:02 GMT
Opened by Erwan Ameil (Wan) - Thursday, 25 May 2017, 13:21 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 19 July 2017, 14:02 GMT
|
DetailsDescription:
When trying to compile a nim program that imports `os`, the nim compiler stops with the error: lib/nim/pure/os.nim(802, 33) Error: cannot evaluate at compile time: environment Additional info: - affects package nim 0.17.0-1 Steps to reproduce: - Create a file with this content: import os ; echo "asdf" - Try to compile with `nim c test.nim` How to fix: - Apply modifications to the PKGBUILD in the attached patch |
This task depends upon
Closed by Levente Polyak (anthraxx)
Wednesday, 19 July 2017, 14:02 GMT
Reason for closing: Fixed
Additional comments about closing: nim-0.17.0-2
Wednesday, 19 July 2017, 14:02 GMT
Reason for closing: Fixed
Additional comments about closing: nim-0.17.0-2
Comment by Levente Polyak (anthraxx) -
Wednesday, 19 July 2017, 10:57 GMT
simple removing compiler distribution is not a solution as it breaks tools like nimble to be built with system nim. Upstream needs to do something to make both happy at the same time.
Comment by Levente Polyak (anthraxx) -
Wednesday, 19 July 2017, 14:01 GMT
fixed via https://github.com/nim-lang/Nim/issues/5867
nim_package_fix.patch