Skip to content

Commit 3cf3671

Browse files
committed
fix(vc4c,vc4cl): fix build configuration for 32-bit Raspberry Pi OS
vc4c-git: - Add VC4CL_STDLIB_DIR to point to installed stdlib headers - Disable VC4CL_STDLIB_PRECOMPILE to avoid permission errors during build vc4cl-git: - Add ocl-icd-dev to build dependencies for ICD support - Enable BUILD_ICD for proper OpenCL ICD loader integration - Disable INCLUDE_COMPILER to avoid runtime crash in libVC4CC Tested on Raspberry Pi 3B+ with 32-bit Bookworm. clinfo now works.
1 parent 7c44aec commit 3cf3671

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

vc4c-git/lure.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ build() {
4040
cd build
4141

4242
# VC4C has multiple frontends - try to enable what's available
43+
# Disable stdlib precompilation during build - it tries to write to /usr/include
4344
cmake .. \
4445
-DCMAKE_INSTALL_PREFIX=/usr \
4546
-DCMAKE_BUILD_TYPE=Release \
46-
-DBUILD_TESTING=OFF
47+
-DBUILD_TESTING=OFF \
48+
-DVC4CL_STDLIB_DIR=/usr/include/vc4cl-stdlib \
49+
-DVC4CL_STDLIB_PRECOMPILE=OFF
4750

4851
make -j1
4952
}

vc4cl-git/lure.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ build_deps=(
2222
"opencl-headers"
2323
"ocl-icd-opencl-dev"
2424
"vc4c"
25+
"ocl-icd-dev"
2526
)
2627

2728
sources=("git+https://github.com/doe300/VC4CL.git")
@@ -46,7 +47,9 @@ build() {
4647
cmake .. \
4748
-DCMAKE_INSTALL_PREFIX=/usr \
4849
-DCMAKE_BUILD_TYPE=Release \
49-
-DMULTI_THREADED=ON
50+
-DBUILD_TESTING=OFF \
51+
-DBUILD_ICD=ON \
52+
-DINCLUDE_COMPILER=OFF
5053

5154
make -j1
5255
}

0 commit comments

Comments
 (0)