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

Raytracing example doesnt compile with threads #177

Closed
gavr123456789 opened this issue Sep 7, 2021 · 1 comment
Closed

Raytracing example doesnt compile with threads #177

gavr123456789 opened this issue Sep 7, 2021 · 1 comment

Comments

@gavr123456789
Copy link

nim version: 1.4.8 [Linux: amd64]

Error:

raytracing ) nim c -d:danger --threads:on smallpt.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/etc/nim/config.nims' [Conf]
Hint: used config file '/home/gavr/Projects/nim/weave-master/nim.cfg' [Conf]
....................................
/home/gavr/Projects/nim/weave-master/weave/cross_thread_com/scoped_barriers.nim(66, 12) Warning: Moving a shared resource (an atomic type). [User]
..................................Traceback from system (most recent call last)
Error: unhandled exception: 'sym' is not accessible using discriminant 'kind' of type 'TNode' [FieldDefect]

With threads on all works:

raytracing ) nim c -d:danger --threads:off smallpt.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/etc/nim/config.nims' [Conf]
Hint: used config file '/home/gavr/Projects/nim/weave-master/nim.cfg' [Conf]
...................CC: stdlib_formatfloat.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_parseutils.nim
CC: stdlib_unicode.nim
CC: stdlib_strutils.nim
CC: stdlib_strformat.nim
CC: stdlib_pathnorm.nim
CC: stdlib_times.nim
CC: stdlib_os.nim
CC: smallpt.nim

Hint:  [Link]
Hint: 52978 lines; 1.761s; 61.355MiB peakmem; Dangerous Release build; proj: /home/gavr/Projects/nim/weave-master/demos/raytracing/smallpt.nim; out: /home/gavr/Projects/nim/weave-master/demos/raytracing/smallpt [SuccessX]
@gavr123456789
Copy link
Author

Oh, looks like copy of #171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant