Package Details: vc4c-git r709.e3eed1e-3

Git Clone URL: (read-only, click to copy)
Package Base: vc4c-git
Description: Compiler for the VC4CL OpenCL-implementation
Upstream URL:
Licenses: MIT
Provides: opencl-compiler, vc4-compiler, vc4c
Submitter: satcom886
Maintainer: satcom886 (bronze)
Last Packager: satcom886
Votes: 0
Popularity: 0.000000
First Submitted: 2019-08-17 01:07 (UTC)
Last Updated: 2020-10-05 21:40 (UTC)

Latest Comments

bronze commented on 2020-07-14 00:58 (UTC) (edited on 2020-07-14 03:10 (UTC) by bronze)

I got around the error below by disabling distcc in /etc/makepkg.conf

The next (and final?) error, I get:

[100%] Built target VC4C
Install the project...
-- Install configuration: "Release"
-- Installing: /mnt/usb/jlbakker/dev/vc4c-git/pkg/vc4c-git/usr/local/bin/vc4asm
-- Installing: ~/dev/vc4c-git/pkg/vc4c-git/usr/local/include/vc4cc/tools.h
[E] Mon Jul 13 19:51:51 2020: Errors in precompilation:
[E] Mon Jul 13 19:51:51 2020: error: unable to open output file '~/dev/vc4c-git/pkg/vc4c-git///usr/local/include/vc4cl-stdlib//VC4CLStdLib.h.pch': 'No such file or directory'
1 error generated.

terminate called after throwing an instance of 'vc4c::CompilationError'
what():  Pre-compilation: Error in precompilation: error: unable to open output file '~/dev/vc4c-git/pkg/vc4c-git///usr/local/include/vc4cl-stdlib//VC4CLStdLib.h.pch': 'No such file or directory'
1 error generated.

[E] Mon Jul 13 19:51:51 2020: Received signal: SIGABRT

Note, I found it here /usr/include/vc4clstdlib-git/include/VC4CLStdLib.h.pch

bronze commented on 2020-07-11 15:21 (UTC) (edited on 2020-07-12 17:01 (UTC) by bronze)

Due to I modified the cmake line in the PKGBUILD and added 'VC4CL_STDLIB_PRECOMPILE':

cmake "$srcdir/VC4C" -DCMAKE_BUILD_TYPE=Release -DMULTI_THREADED=true -DCLANG_FOUND=/usr/bin/clang -DVC4CL_STDLIB_DIR=/usr/local/include/vc4cl-stdlib -DVC4CL_STDLIB_PRECOMPILE=OFF -Wno-dev

I also changed the dependency on ocl-icd to khronos-ocl-icd. This is an experiment.

I got here, before I hit a familiar error:

[ 82%] Built target VC4CC
Scanning dependencies of target VC4C
[ 84%] Built target qpu_emulator
[ 98%] Built target TestVC4C
[100%] Building CXX object src/CMakeFiles/VC4C.dir/main.cpp.o
distcc[22756] (main) CRITICAL! distcc seems to have invoked itself recursively!distcc[22756] (main) CRITICAL! distcc seems to have invoked itself recursively!
distcc[22755] ERROR: compile (null) on localhost failed with exit code 111
distcc[22754] (dcc_select_for_write) ERROR: IO timeout
distcc[22754] ERROR: timeout while connecting to
distcc[22754] Warning: failed to distribute ~/dev/vc4c-git/src/VC4C/src/main.cpp to, running locally instead
distcc[22758] (main) CRITICAL! distcc seems to have invoked itself recursively!
distcc[22757] ERROR: compile (null) on localhost failed with exit code 111
distcc[22754] ERROR: compile ~/dev/vc4c-git/src/VC4C/src/main.cpp on localhost failed with exit code 111
make[2]: *** [src/CMakeFiles/VC4C.dir/build.make:83: src/CMakeFiles/VC4C.dir/main.cpp.o] Error 111
make[1]: *** [CMakeFiles/Makefile2:2042: src/CMakeFiles/VC4C.dir/all] Error 2
make: *** [Makefile:183: all] Error 2
==> ERROR: A failure occurred in package().

Seems at this part in the process CLANG_FOUND=/usr/bin/clang is ignored?

katt commented on 2020-06-29 22:10 (UTC)

@satcom886 If they don't have any releases tags then the example labeled:

If there are no tags then use number of revisions since beginning of the history

should be used

satcom886 commented on 2020-06-29 22:08 (UTC)

@katt Oops! Sorry. I only added pkgver() to one of the packages.

Also, what pkgver should I choose if the upstream doesn't have any releases/tags?

katt commented on 2020-06-29 21:48 (UTC)

Please take a look at and adjust your PKGBUILD accordingly. Applies to your your other packages as well.

satcom886 commented on 2020-06-29 20:11 (UTC)

I think I separated the packages without completely breaking something.

satcom886 commented on 2020-06-29 19:46 (UTC)

Ok, it should be fixed now.

satcom886 commented on 2020-06-28 15:42 (UTC)

I'm a little busy these days, but I should have time tomorrow. I'll add the clang path and vc4clstdlib path into the PKGBUILD. I think $srcdir/VC4CLStdLib-master/include should work, but we'll see.

bronze commented on 2020-06-27 01:04 (UTC)

I managed to build and install the package (seemingly error-free). I had to set:


(needed in case you run distcc)



(needed because the CMakeFile.txt uses a relative path that doesn't exist)

However, "sudo clinfo" doesn't give the desired result, so some more work to do?

bronze commented on 2020-06-25 12:50 (UTC)

This ( may be a problem in the PKGBUILD file, due to merging the 3 packages? Cannot find VC4CLStdLib.h

satcom886 commented on 2020-06-24 14:09 (UTC)

Sorry but the stuff you are discussing on GitHub is way over my head. I have only a very basic knowledge of C and C++. (◕‿◕)

bronze commented on 2020-06-24 12:39 (UTC)

I haven't used it yet :) I am fine to go with your recommendation. That said reducing the compilations/writes on RPi is best for its memory card?

Do you know what the problem with the cmake file is (applies to disctcc users)?

satcom886 commented on 2020-06-24 10:06 (UTC) (edited on 2020-06-24 10:06 (UTC) by satcom886)

@bronze What would you prefer as a user? Just a single package for everything VC4 related or separating into 3 packages?

I also added the patch to vc4cl-git and added the 2 other packages as conflicts for now.

I also want to thank you because if it weren't for you and your communication with doe300 I would have never gotten myself to actually make the package work. So thanks!

satcom886 commented on 2020-06-24 09:54 (UTC) (edited on 2020-06-24 09:54 (UTC) by satcom886)

Wow! It actually looks like I made separate packages for all the components but never finished them. They actually contain some of the same files so they conflict each other. (just a note for myself) 2 possible solutions:

  1. Actually separate the packages (vc4c-git wouldn't contain anything from vc4clstdlib-git)
  2. Just delete the 2 redundant packages and leave only vc4cl-git

Option 2 would be much simpler.

bronze commented on 2020-06-23 22:37 (UTC)

The patch works! Thx. Can you also apply the patch to package "vc4cl-git", file "vc4cl-git/src/VC4C-master/src/ProcessUtil.cpp"?

I now encountered a cmake error here (having to with a REGEX and bypassing distcc, it seems):

I don't know if this REGEX problem is an arch package problem.

satcom886 commented on 2020-06-21 21:09 (UTC) (edited on 2020-06-21 21:12 (UTC) by satcom886)

I created a patch for what was suggested by doe300 on GitHub. I hope it works! I also added all the packages you mentioned as dependencies and build dependencies (I'm not sure what packages are required only for building the package so I took a guess).

bronze commented on 2020-06-20 18:46 (UTC)

The package installed after implementing the fix here:

bronze commented on 2020-06-20 15:43 (UTC) (edited on 2020-06-20 18:44 (UTC) by bronze)

EDIT: I installed the following additional packages: "clinfo", "llvm", "opencl-headers" and "ocl-icd"

I have not made progress other than verifying that threads can be found (after creating a CMakeList.txt with "cmake_minimum_required (VERSION 2.8.7)" & "find_package(Threads)"):

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/lib/distcc/cc
-- Check for working C compiler: /usr/lib/distcc/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/distcc/c++
-- Check for working CXX compiler: /usr/lib/distcc/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: ~/dev/cmake_threads

Assuming that the problem must thus be elsewhere, I found a long list of dependencies for a Raspbian system:

sudo apt install build-essential git llvm clang clang-format libclang-dev libbsd0  libc6  libedit2  libffi6  libgcc1  libllvm  libncurses5  libstdc++6  libtinfo5 zlib1g llvm-dev ocl-icd-opencl-dev ocl-icd-dev opencl-headers clinfo

I may not have installed all dependencies partially because I don't know which are really needed or how they translate to Arch package names ...

satcom886 commented on 2020-06-08 08:56 (UTC)

I also added clang as a dependency

satcom886 commented on 2020-06-08 08:53 (UTC) (edited on 2020-06-08 08:53 (UTC) by satcom886)

If you wish to modify the source code before building the package, you can do that with

git clone
cd vc4c-git
makepkg --nobuild -s
(this installs the dependencies, downloads and extracts the sources without building the package)
*make the changes*
makepkg --noextract -i
(this builds the package without replacing the source files and installs it after building it)

bronze commented on 2020-06-08 02:49 (UTC)

Should clang be listed as optional dependency? I noticed some complaints when I tried to build the package. Also, I submitted "" but it may be an arch issue. I cannot or failed to perform doe300's suggestion. Tips?