Closed maxfrei750 closed 1 year ago
Hi @maxfrei750
Looks like compilers disagree on the C++ standard: https://stackoverflow.com/a/54899693 I can also confirm that this is no longer an issue with clang 14.
I guess we should have explicit narrowing on those lines, i.e. if constexpr (bool(Flags & SomeFlag))
or if constexpr ((Flags & SomeFlag) != 0)
. I'll push a patch later today.
This is now fixed on master
(https://github.com/mitsuba-renderer/drjit/commit/02f716223bdfd92e85e24dd4ddcb8927e0ff8f8d).
Thanks for the quick fix and the tip regarding clang 14. I noticed that the mitsuba
repository still references an older version of drjit
as a submodule. Is this only updated periodically, or would you mind pushing the changes to the mitsuba
repository as well? Thanks!
We try not to go overboard with the number of submodule updates, it keeps the history cleaner which is really helpful when bisecting. There's nothing stopping you from pulling the new submodule yourself. Or am I missing something?
I was suspecting something along those lines. Thanks for elaborating! I was just hoping for a push to the mitsuba repo, since then it would just require minute changes in my dockerfile to get the latest version. But that's no problem, you already helped me more than enough today. :smile: Thanks once again!
Hello again!
I'm trying to debug an error and therefore wanted to compile mitsuba and drjit in debug mode. However, compilation fails with the following error:
Compiling in release mode works just fine. I suspect it might be related to the clang version (11.1)?
As always, any help is greatly appreciated.
PS: Code version is master (mitsuba 43a6b65ba435de3ce29a33cf27a38823a5db8afe).