You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuration files are used, Clang internally updates the argument list according to the configuration file, but in that process it canonicalizes option spellings. #15274 makes two options aliases except it then checks for the exact spelling that is used to distinguish between them. Naturally, that breaks.
To reproduce
Configure DPC++ on Linux. Include NativeCPU for easy reproduction.
Drop an empty x86_64-unknown-linux-gnu.cfg in the bin directory.
Try to generate lib/libsycl-nativecpu_utils.bc: ninja -v lib/libsycl-nativecpu_utils.bc
Expected: success
Actual:
FAILED: lib/libsycl-nativecpu_utils.bc /home/harald/dpcppllvm/build/x86_64-linux/lib/libsycl-nativecpu_utils.bc
cd /home/harald/dpcppllvm/build/x86_64-linux/tools/libdevice && /home/harald/dpcppllvm/build/x86_64-linux/bin/clang-20 -I /home/harald/dpcppllvm/build/x86_64-linux/include/sycl -I /home/harald/dpcppllvm/build/x86_64-linux/include -Wno-sycl-strict -Wno-undefined-internal -sycl-std=2020 -I /home/harald/dpcppllvm/build/x86_64-linux/_deps/unified-runtime-src/source/adapters/native_cpu -fsycl-targets=native_cpu -fsycl-device-only -fsycl-device-obj=llvmir /home/harald/dpcppllvm/libdevice/nativecpu_utils.cpp -o /home/harald/dpcppllvm/build/x86_64-linux/./lib/libsycl-nativecpu_utils.bc
clang-20: error: '-fsycl-targets' must be used in conjunction with '-fsycl' to enable offloading
ninja: build stopped: subcommand failed.
…and some cleanup (intel#15274)"
This partially reverts commit fd4b409,
undoing the change to alias -fsycl-device-only and
--offload-device-only but keeping the other cleanups, and adds a test
showing why the alias does not work.
Fixesintel#15319
Describe the bug
When configuration files are used, Clang internally updates the argument list according to the configuration file, but in that process it canonicalizes option spellings. #15274 makes two options aliases except it then checks for the exact spelling that is used to distinguish between them. Naturally, that breaks.
To reproduce
x86_64-unknown-linux-gnu.cfg
in thebin
directory.lib/libsycl-nativecpu_utils.bc
:ninja -v lib/libsycl-nativecpu_utils.bc
Expected: success
Actual:
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: