Package Details: vc4c-git r709.e3eed1e-3

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

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

k8ie 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)?

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

@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!

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

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): https://github.com/doe300/VC4CL/issues/92#issuecomment-648276809

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

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

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: https://github.com/doe300/VC4C/issues/145#issuecomment-647030474

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
-- 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 ...

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

I also added clang as a dependency

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

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

git clone https://aur.archlinux.org/vc4c-git.git
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)