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

hotcodereloading compile error with orc/arc #18393

Open
n0bra1n3r opened this issue Jun 30, 2021 · 1 comment
Open

hotcodereloading compile error with orc/arc #18393

n0bra1n3r opened this issue Jun 30, 2021 · 1 comment
Labels
ARC/ORC Memory Management Hot Code Reloading stale Staled PR/issues; remove the label after fixing them

Comments

@n0bra1n3r
Copy link

--hotcodereloading:on and --gc:orc causes a compile error on Windows on latest devel and 1.4.8. A similar error message is printed if --define:useNimRtl is passed instead of --hotcodereloading. Compilation works with the traditional GC.

Example

nim.exe c --hotcodereloading:on --gc:orc main.nim

Output

C:\Users\User\.choosenim\toolchains\nim-#devel\lib\system\mmdisp.nim(86, 25) template/generic instantiation of `instantiateForRegion` from here
C:\Users\User\.choosenim\toolchains\nim-#devel\lib\system\alloc.nim(1028, 3) Error: redefinition of 'deallocOsPages'; previous declaration here: C:\Users\User\.choosenim\toolchains\nim-#devel\lib\system\threads.nim(112, 8)
The terminal process "C:\Users\User\.nimble\bin\nim.exe 'check', '--errorMax:1', 'main.nim'" terminated with exit code: 1.

Expected Output

Successful compile.

Nim Compiler Version 1.5.1 [Windows: amd64]
Compiled at 2021-06-29
Copyright (c) 2006-2021 by Andreas Rumpf

active boot switches: -d:release
# Nim 2021-06-29-devel-6387e289631c22b8fa81e8e478c97cc500b90e26
@ringabout
Copy link
Member

Related
#16458

@ringabout ringabout self-assigned this Feb 6, 2022
@ringabout ringabout removed their assignment Jun 21, 2022
@metagn metagn added the stale Staled PR/issues; remove the label after fixing them label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARC/ORC Memory Management Hot Code Reloading stale Staled PR/issues; remove the label after fixing them
Projects
None yet
Development

No branches or pull requests

3 participants