Closed dusanx closed 1 year ago
I've never seen this issue before, and there's no problem with clang 14.0.3 on macOS at lest.
I can't easily downgrade past 14.0.6 on Arch to test. If I comment out that function body at line 200 to test, everything else builds perfectly, so the only issue I have is at libs/utils/include/utils/JobSystem.h:200:35.
If there is something I could test on this end I'd gladly do it.
I tried to repro, but was not able to. I used ubuntu and clang-15.
You can try clang-14 by installing clang-14 (no downgrade needed) and then.
CC=/usr/bin/clang-14 CXX=/usr/bin/clang++-14 ./build.sh -p desktop -i release
I can confirm that pulling latest main branch, git clone on empty folder, currently on commit 626577fe3, now builds well on both 14.0.6 and 15.0.7 on Arch Linux. Thank you.
I had to debug this to understand, actual reason for that error is my build script sourcing other build script that had
export CXXFLAGS=-fno-builtin
required for other project. That export and nothing else makes filament build to fail, so nothing to do with filament. Thank you for your time, definitely resolved.
Describe the bug Trying to build latest filament, main branch, latest commit 0e31d6936, on Arch results in compile error in libs/utils/include/utils/JobSystem.h that prevents building.
To Reproduce Steps to reproduce the behavior:
.../filament/libs/utils/include/utils/JobSystem.h:200:35: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning] Job* job = create(parent, [](void* user, JobSystem& js, Job* job){
Expected behavior build.sh to finish building desktop/release
Logs
Desktop (please complete the following information):
Additional context Filament was successfully building on Arch before, so this is caused by Arch clang version or filament progression. Same happens on both latest clang available on Arch (15.0.7) and earlier (14.0.6) which is earliest easy to install on Arch.