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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:
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
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

Loading...