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
xdp_vlan01_kern.c:66:2: error: loop not unrolled: 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]
#411
Open
NobinPegasus opened this issue
Mar 26, 2024
· 5 comments
When I try to compile the codes the xdp_vlan01_kern.c uses #pragma unroll, it throws error.
CC xdp_prog_user
CLANG xdp_prog_kern_02.o
LLC xdp_prog_kern_02.o
CLANG xdp_prog_kern_03.o
LLC xdp_prog_kern_03.o
CLANG tc_reply_kern_02.o
LLC tc_reply_kern_02.o
CLANG xdp_vlan01_kern.o
xdp_vlan01_kern.c:66:2: error: loop not unrolled: 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]
66 | for (i = 0; i < VLAN_MAX_DEPTH; i++) {
| ^
1 error generated.
make: *** [../common/common.mk:116: xdp_vlan01_kern.o] Error 1
When I try to compile the codes the xdp_vlan01_kern.c uses #pragma unroll, it throws error.
```
CC xdp_prog_user
CLANG xdp_prog_kern_02.o
LLC xdp_prog_kern_02.o
CLANG xdp_prog_kern_03.o
LLC xdp_prog_kern_03.o
CLANG tc_reply_kern_02.o
LLC tc_reply_kern_02.o
CLANG xdp_vlan01_kern.o
xdp_vlan01_kern.c:66:2: error: loop not unrolled: 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]
66 | for (i = 0; i < VLAN_MAX_DEPTH; i++) {
| ^
1 error generated.
make: *** [../common/common.mk:116: xdp_vlan01_kern.o] Error 1
```
I'm using the latest clang
```
***@***.***:~/Documents/xdp-tutorial/packet-solutions$ clang --version
clang version 19.0.0git (https://github.com/llvm/llvm-project.git 815644b4dd882ade2e5649d4f97c3dd6f7aea200)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/pegasus/Documents/llvm-project/build/bin
```
Hmm, this sounds like a regression in clang, then, so I would suggest
reporting it to the LLVM developers...
When I try to compile the codes the xdp_vlan01_kern.c uses #pragma unroll, it throws error.
I'm using the latest clang
The text was updated successfully, but these errors were encountered: