Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support arm64 #97

Open
jasonwee opened this issue Sep 5, 2020 · 10 comments
Open

support arm64 #97

jasonwee opened this issue Sep 5, 2020 · 10 comments

Comments

@jasonwee
Copy link

jasonwee commented Sep 5, 2020

Hi,

this documentation is helpful, https://github.com/doe300/VC4CL/wiki/How-to-get but there is something wrong with this command output.

curl "https://circleci.com/api/v1.1/project/github/doe300/VC4C/$(python ./build_num.py /tmp/json)/artifacts" --output /tmp/dump

it return html, I have to change branch to devel and then able to proceed to the next line of documentation.

also, it seem that the package is build for armhf? is it possible to include support for arm64? That would be fantastic and my o/s is ubuntu server.

Thank you.

@doe300
Copy link
Owner

doe300 commented Sep 5, 2020

Yeah, CircleCI by default only lists the last few builds, which may result in no "master" build being in the list if there was heavy activity on other branches, see also the latest VC4CL devel change here.

I have no clue how good the support for the mailbox interface and the V3D hardware registers is on arm64. And only if these work properly, I might consider supporting 64-bit system. But this will probably be a lot of effort...

@jasonwee
Copy link
Author

jasonwee commented Sep 5, 2020

yes, thanks, it works and so maybe should change the line in the doc from

curl "https://circleci.com/api/v1.1/project/github/doe300/VC4C" --output /tmp/json

to

curl "https://circleci.com/api/v1.1/project/github/doe300/VC4C?limit=100&filter=successful" --output /tmp/json

and i got the debs.

ubuntu@ubuntu:/tmp$ sudo dpkg -i vc4cl-stdlib.deb
dpkg: warning: downgrading vc4cl-stdlib:armhf from 0.4-2020-09-02 to 0.4-2020-08-18
(Reading database ... 116299 files and directories currently installed.)
Preparing to unpack vc4cl-stdlib.deb ...
Unpacking vc4cl-stdlib:armhf (0.4-2020-08-18) over (0.4-2020-09-02) ...
Setting up vc4cl-stdlib:armhf (0.4-2020-08-18) ...
ubuntu@ubuntu:/tmp$ sudo dpkg -i vc4c.deb
Selecting previously unselected package vc4c:armhf.
(Reading database ... 116299 files and directories currently installed.)
Preparing to unpack vc4c.deb ...
Unpacking vc4c:armhf (0.4.2048-2020-08-18) ...
dpkg: dependency problems prevent configuration of vc4c:armhf:
 vc4c:armhf depends on clang-6.0.
 vc4c:armhf depends on llvm-6.0.
 vc4c:armhf depends on llvm-6.0-dev.

dpkg: error processing package vc4c:armhf (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 vc4c:armhf
ubuntu@ubuntu:/tmp$ 
ubuntu@ubuntu:/tmp$ dpkg --print-architecture
arm64
ubuntu@ubuntu:/tmp$ sudo dpkg --add-architecture armhf
ubuntu@ubuntu:/tmp$ uname -a
Linux ubuntu 5.4.0-1015-raspi #15-Ubuntu SMP Fri Jul 10 05:34:24 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu:/tmp$ 

yes, if you need assistance, please let me know. coding, testing, just send me a message and I will do my best to help. But I need some guidance where to begin offer assistance.

@doe300
Copy link
Owner

doe300 commented Sep 5, 2020

The VC4CC compiler does not care about 32-bit or 64-bit system, it also runs well on my 64-bit host machine.

For the VC4CL run-time, there are a few things have to be figured out/tested/fixed:

  • Does the 64-bit OS even support access to the mailbox interface?
  • Does VC4CL build on a 64-bit OS (without cross-compiling or mocked hardware)? Can it correctly link against the /opt/vc/lib/bcm_host.so library, i.e. is this library provided as 64-bit library?
  • Does the syscall and hardware register access still work, e.g. can kernels be executed? There is a good chance that I have some unchecked assumption somewhere that the host-pointers are 32-bit or that some syscall does not work without changes.

@jasonwee
Copy link
Author

jasonwee commented Sep 5, 2020

sorry, do you mean this?

ubuntu@ubuntu:~$ locate -b '\Mailbox.h'
ubuntu@ubuntu:~$ 

can you send the steps for the 3 points? I can paste you the output of the commands output.

@doe300
Copy link
Owner

doe300 commented Sep 5, 2020

I don't know any fixed steps, at least not for points 1 and 3, but something like this:

  1. So according to Add bcm_host to ARM64 builds raspberrypi/userland#455, the bcm_host.so library builds for arm64, but Add bcm_host library support for arm64 raspberrypi/userland#391 (comment) lists a few problems to actually make it work. So the task here where to run some tests, whether it works as expected. If 2. works, this can also be combined with 3.
  2. This is the most straight-forward. To test this, VC4CL needs to be just compiled natively on an arm64 system and checked whether the compilation works without a problem.
  3. If 2. is done, at least the basic functionality can be tested by trying to run https://github.com/Oblomov/clinfo or https://github.com/krrishnarraj/clpeak with the natively compiled VC4CL library.

@jasonwee
Copy link
Author

jasonwee commented Sep 8, 2020

i tried on another version of ubuntu, same error

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 5.4.0-1015-raspi #15~18.04.1-Ubuntu SMP Fri Jul 10 09:20:51 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu:~$ uname -r
5.4.0-1015-raspi
ubuntu@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic
ubuntu@ubuntu:~$ 

don't have knowledge on c nor cpp, think cannot help much though but will try again this weekend

@jasonwee
Copy link
Author

jasonwee commented Oct 1, 2020

i follow the instruction in https://github.com/doe300/VC4CL/blob/master/.circleci/config.yml

idein@1681b1c7be7f:~/VC4CL/build$ ls src/libVC4CL.so.0.4.1 
src/libVC4CL.so.0.4.1
idein@1681b1c7be7f:~/VC4CL/build$ ls test/TestVC4CL 
test/TestVC4CL
idein@1681b1c7be7f:~/VC4CL/build$ vc4cl-0.4-Linux.deb
bash: vc4cl-0.4-Linux.deb: command not found
idein@1681b1c7be7f:~/VC4CL/build$ ls vc4cl-0.4-Linux.deb
vc4cl-0.4-Linux.deb
idein@1681b1c7be7f:~/VC4CL/build$ 

@jasonwee
Copy link
Author

jasonwee commented Oct 1, 2020

when i run this step in container

      - run: dpkg -i /tmp/vc4cl-stdlib.deb /tmp/vc4c.deb build/vc4cl-0.4-Linux.deb
root@82dfc1affaad:~/project# dpkg -i /tmp/vc4cl-stdlib.deb /tmp/vc4c.deb vc4cl-0.4-Linux.deb 
(Reading database ... 23334 files and directories currently installed.)
Preparing to unpack /tmp/vc4cl-stdlib.deb ...
Unpacking vc4cl-stdlib (0.4-2020-09-30) over (0.4-2020-09-30) ...
Preparing to unpack /tmp/vc4c.deb ...
Unpacking vc4c (0.4.2156-2020-09-30) over (0.4.2156-2020-09-30) ...
dpkg: error processing archive vc4cl-0.4-Linux.deb (--install):
 package architecture (armhf) does not match system (amd64)
Setting up vc4cl-stdlib (0.4-2020-09-30) ...
Setting up vc4c (0.4.2156-2020-09-30) ...
[VC4C] Extended library load path by: /usr/local/lib
[E] Thu Oct  1 14:28:21 2020: Errors in precompilation:
[E] Thu Oct  1 14:28:21 2020: sh: 1: /usr/bin/clang-7: not found

[E] Thu Oct  1 14:28:21 2020:  (1) /usr/local/lib/libVC4CC.so.1.2 : vc4c::CompilationError::CompilationError(vc4c::CompilationStep, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x121 [0x7f4c18acca37]
[E] Thu Oct  1 14:28:21 2020:  (2) /usr/local/lib/libVC4CC.so.1.2 : vc4c::precompilation::runPrecompiler(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::istream*, std::ostream*)+0x1cf [0x7f4c18e8f3f6]
[E] Thu Oct  1 14:28:21 2020:  (3) /usr/local/lib/libVC4CC.so.1.2 : vc4c::Precompiler::precompileStandardLibraryFiles(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x2c6 [0x7f4c18ea7650]
[E] Thu Oct  1 14:28:21 2020:  (4) /usr/local/bin/vc4c : main+0xa63 [0x563c7422a8a2]
[E] Thu Oct  1 14:28:21 2020:  (5) /lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main+0xeb [0x7f4c14146bbb]
[E] Thu Oct  1 14:28:21 2020:  (6) /usr/local/bin/vc4c : _start+0x2a [0x563c742285ea]
terminate called after throwing an instance of 'vc4c::CompilationError'
  what():  Pre-compilation: Error in precompilation: sh: 1: /usr/bin/clang-7: not found

[E] Thu Oct  1 14:28:21 2020: Received signal: SIGABRT
[E] Thu Oct  1 14:28:21 2020:  (1) /usr/local/lib/libVC4CC.so.1.2 : +0x93f9f4 [0x7f4c18b2c9f4]
[E] Thu Oct  1 14:28:21 2020:  (2) /lib/x86_64-linux-gnu/libpthread.so.0 : +0x13520 [0x7f4c181da520]
[E] Thu Oct  1 14:28:21 2020:  (3) /lib/x86_64-linux-gnu/libc.so.6 : gsignal+0x141 [0x7f4c14159f61]
[E] Thu Oct  1 14:28:21 2020:  (4) /lib/x86_64-linux-gnu/libc.so.6 : abort+0x121 [0x7f4c14145535]
[E] Thu Oct  1 14:28:21 2020:  (5) /usr/lib/x86_64-linux-gnu/libstdc++.so.6 : +0x9a80a [0x7f4c146d880a]
[E] Thu Oct  1 14:28:21 2020:  (6) /usr/lib/x86_64-linux-gnu/libstdc++.so.6 : +0xa5906 [0x7f4c146e3906]
[E] Thu Oct  1 14:28:21 2020:  (7) /usr/lib/x86_64-linux-gnu/libstdc++.so.6 : +0xa5971 [0x7f4c146e3971]
[E] Thu Oct  1 14:28:21 2020:  (8) /usr/lib/x86_64-linux-gnu/libstdc++.so.6 : +0xa5c15 [0x7f4c146e3c15]
[E] Thu Oct  1 14:28:21 2020:  (9) /usr/local/lib/libVC4CC.so.1.2 : vc4c::precompilation::runPrecompiler(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::istream*, std::ostream*)+0x20f [0x7f4c18e8f436]
[E] Thu Oct  1 14:28:21 2020:  (10) /usr/local/lib/libVC4CC.so.1.2 : vc4c::Precompiler::precompileStandardLibraryFiles(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x2c6 [0x7f4c18ea7650]
[E] Thu Oct  1 14:28:21 2020:  (11) /usr/local/bin/vc4c : main+0xa63 [0x563c7422a8a2]
[E] Thu Oct  1 14:28:21 2020:  (12) /lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main+0xeb [0x7f4c14146bbb]
[E] Thu Oct  1 14:28:21 2020:  (13) /usr/local/bin/vc4c : _start+0x2a [0x563c742285ea]
dpkg: error processing package vc4c (--install):
 subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
 vc4cl-0.4-Linux.deb
 vc4c
root@82dfc1affaad:~/project# clang
clang++-3.9                   clang-apply-replacements-3.9  clang-cl-3.9                  clang-format-7                clang-include-fixer-3.9       clang-rename-3.9
clang-3.9                     clang-check-3.9               clang-format                  clang-format-diff-7           clang-query-3.9               clang-tblgen-3.9
root@82dfc1affaad:~/project# clang-7^C
root@82dfc1affaad:~/project# apt-cache search clang-7
root@82dfc1affaad:~/project# apt search
E: You must give at least one search pattern
root@82dfc1affaad:~/project# apt search foo
Sorting... Done
Full Text Search... Done
root@82dfc1affaad:~/project# apt-get update
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [600 kB]
Ign:3 http://deb.debian.org/debian stretch InRelease                     
Get:4 http://ftp.debian.org/debian unstable InRelease [146 kB]
Get:5 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:6 http://deb.debian.org/debian stretch Release [118 kB]       
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [2596 B]                                                                                                              
Get:8 http://deb.debian.org/debian stretch Release.gpg [2410 B]                                                                                                                              
Get:9 http://ftp.debian.org/debian unstable/non-free amd64 Packages [104 kB]                                                                                                                 
Get:10 http://deb.debian.org/debian stretch/main amd64 Packages [7080 kB]                                                                                                                    
Get:11 http://ftp.debian.org/debian unstable/contrib amd64 Packages [59.1 kB]                                                                                                                
Get:12 http://ftp.debian.org/debian unstable/main amd64 Packages [8402 kB]                                                                                                                   
Fetched 16.7 MB in 46s (355 kB/s)                                                                                                                                                            
Reading package lists... Done
root@82dfc1affaad:~/project# apt-cache search clang-7
clang-7 - C, C++ and Objective-C compiler
clang-7-doc - C, C++ and Objective-C compiler - Documentation
clang-7-examples - Clang examples
libclang-7-dev - Clang library - Development package
python-clang-7 - Clang Python Bindings
librust-clang-sys-dev - Rust bindings for libclang - Rust source code
root@82dfc1affaad:~/project# apt-get install clang-7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 clang-7 : Depends: libclang-common-7-dev (= 1:7.0.1-8~deb9u4) but it is not going to be installed
           Recommends: llvm-7-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@82dfc1affaad:~/project# apt-get install clang-7 libclang-common-7-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libclang-common-7-dev : Depends: lib32gcc1 (>= 1:4.2) but it is not going to be installed
                         Depends: lib32stdc++6 (>= 4.1.1) but it is not going to be installed
                         Depends: libc6-i386 (>= 2.17) but it is not going to be installed
                         Depends: libllvm7 (= 1:7.0.1-8~deb9u4) but 1:7.0.1-10 is to be installed
E: Unable to correct problems, you have held broken packages.
root@82dfc1affaad:~/project# 

@doe300
Copy link
Owner

doe300 commented Oct 1, 2020

It looks like your vc4cl-xxx.deb package was built with a different clang version than you have installed.

Where did you take the Debian package from?

@jasonwee
Copy link
Author

jasonwee commented Oct 2, 2020

nevermind that failures, because this time I got a little bit further.

jason@localhost:~$ docker pull doe300/native
Using default tag: latest
latest: Pulling from doe300/native
57df1a1f1ad8: Pull complete 
ac9d4d5e2db5: Pull complete 
ee030873f186: Pull complete 
Digest: sha256:bfe38a2a13dae54a8b6465a5485fa446f92f5af66d002bafe4cac5977ae8583c
Status: Downloaded newer image for doe300/native:latest
docker.io/doe300/native:latest
jason@localhost:~$ docker run -it --rm doe300/native bash
root@f4bf62ff788d:/# git clone https://github.com/doe300/VC4CL.git
Cloning into 'VC4CL'...
remote: Enumerating objects: 152, done.
remote: Counting objects: 100% (152/152), done.
remote: Compressing objects: 100% (101/101), done.
remote: Total 1700 (delta 85), reused 86 (delta 51), pack-reused 1548
Receiving objects: 100% (1700/1700), 1.00 MiB | 264.00 KiB/s, done.
Resolving deltas: 100% (1259/1259), done.
root@f4bf62ff788d:/# curl "https://circleci.com/api/v1.1/project/github/doe300/VC4C?limit=100&filter=successful" --output /tmp/json
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  406k    0  406k    0     0  45990      0 --:--:--  0:00:09 --:--:-- 87025
root@f4bf62ff788d:/# #curl "https://circleci.com/api/v1.1/project/github/doe300/VC4C/$(Vcircleci/build_num.py /tmp/json build)/artifacts" --output /tmp/dump
root@f4bf62ff788d:/# ls
VC4CL  boot  etc   lib	  lib64  mnt  proc  run   srv  tmp  var
bin    dev   home  lib32  media  opt  root  sbin  sys  usr
root@f4bf62ff788d:/# mv VC4CL/ root/
root@f4bf62ff788d:/# ls
bin   dev  home  lib32	media  opt   root  sbin  sys  usr
boot  etc  lib	 lib64	mnt    proc  run   srv	 tmp  var
root@f4bf62ff788d:/# cd root/
root@f4bf62ff788d:~# ls
VC4CL
root@f4bf62ff788d:~# cd VC4CL/
root@f4bf62ff788d:~/VC4CL# ls
CMakeLists.txt	LICENSE  Readme.md  cmake  src	test  tools
root@f4bf62ff788d:~/VC4CL# curl "https://circleci.com/api/v1.1/project/github/doe300/VC4C/$(.circleci/build_num.py /tmp/json build)/artifacts" --output /tmp/dump
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   599  100   599    0     0    460      0  0:00:01  0:00:01 --:--:--   460
root@f4bf62ff788d:~/VC4CL# apt-get update
Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
Get:2 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 Packages [7906 kB]
Get:4 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [234 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [7868 B]               
Fetched 8387 kB in 8s (1057 kB/s)                                                            
Reading package lists... Done
root@f4bf62ff788d:~/VC4CL# apt-get install vim
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libgpm2 vim-common vim-runtime xxd
Suggested packages:
  gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
  libgpm2 vim vim-common vim-runtime xxd
0 upgraded, 5 newly installed, 0 to remove and 10 not upgraded.
Need to get 7425 kB of archives.
After this operation, 33.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://deb.debian.org/debian buster/main amd64 xxd amd64 2:8.1.0875-5 [140 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 vim-common all 2:8.1.0875-5 [195 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 libgpm2 amd64 1.20.7-5 [35.1 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 vim-runtime all 2:8.1.0875-5 [5775 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 vim amd64 2:8.1.0875-5 [1280 kB]
Fetched 7425 kB in 3s (2278 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package xxd.
(Reading database ... 22536 files and directories currently installed.)
Preparing to unpack .../xxd_2%3a8.1.0875-5_amd64.deb ...
Unpacking xxd (2:8.1.0875-5) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../vim-common_2%3a8.1.0875-5_all.deb ...
Unpacking vim-common (2:8.1.0875-5) ...
Selecting previously unselected package libgpm2:amd64.
Preparing to unpack .../libgpm2_1.20.7-5_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-5) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../vim-runtime_2%3a8.1.0875-5_all.deb ...
Adding 'diversion of /usr/share/vim/vim81/doc/help.txt to /usr/share/vim/vim81/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim81/doc/tags to /usr/share/vim/vim81/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.1.0875-5) ...
Selecting previously unselected package vim.
Preparing to unpack .../vim_2%3a8.1.0875-5_amd64.deb ...
Unpacking vim (2:8.1.0875-5) ...
Setting up libgpm2:amd64 (1.20.7-5) ...
Setting up xxd (2:8.1.0875-5) ...
Setting up vim-common (2:8.1.0875-5) ...
Setting up vim-runtime (2:8.1.0875-5) ...
Setting up vim (2:8.1.0875-5) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for mime-support (3.62) ...
root@f4bf62ff788d:~/VC4CL# vim /tmp/dump 
root@f4bf62ff788d:~/VC4CL# wget -O /tmp/vc4cl-stdlib.deb $(python .circleci/get_url.py "vc4cl-stdlib-" "/tmp/dump")
--2020-10-02 17:24:04--  https://2156-106166771-gh.circle-artifacts.com/0/build/vc4cl-stdlib-0.4-Linux.deb
Resolving 2156-106166771-gh.circle-artifacts.com (2156-106166771-gh.circle-artifacts.com)... 34.198.109.169, 52.72.185.216, 50.16.142.25
Connecting to 2156-106166771-gh.circle-artifacts.com (2156-106166771-gh.circle-artifacts.com)|34.198.109.169|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://circle-production-customer-artifacts.s3.amazonaws.com/picard/5a2047c4c9e77c0001e5631d/5f7424ae32d57375ed2c78f8-0-build/artifacts/build/vc4cl-stdlib-0.4-Linux.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20201002T172407Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIAJR3Q6CR467H7Z55A%2F20201002%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=061fe06cc7c545e0a0070586ad86a7e74404150a44e3df22035c3d1e371362dc [following]
--2020-10-02 17:24:07--  https://circle-production-customer-artifacts.s3.amazonaws.com/picard/5a2047c4c9e77c0001e5631d/5f7424ae32d57375ed2c78f8-0-build/artifacts/build/vc4cl-stdlib-0.4-Linux.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20201002T172407Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIAJR3Q6CR467H7Z55A%2F20201002%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=061fe06cc7c545e0a0070586ad86a7e74404150a44e3df22035c3d1e371362dc
Resolving circle-production-customer-artifacts.s3.amazonaws.com (circle-production-customer-artifacts.s3.amazonaws.com)... 52.217.42.228
Connecting to circle-production-customer-artifacts.s3.amazonaws.com (circle-production-customer-artifacts.s3.amazonaws.com)|52.217.42.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 130396 (127K) [application/x-debian-package]
Saving to: '/tmp/vc4cl-stdlib.deb'

/tmp/vc4cl-stdlib.deb   100%[=============================>] 127.34K   169KB/s    in 0.8s    

2020-10-02 17:24:14 (169 KB/s) - '/tmp/vc4cl-stdlib.deb' saved [130396/130396]

root@f4bf62ff788d:~/VC4CL# ls /tmp/vc4cl-stdlib.deb 
/tmp/vc4cl-stdlib.deb
root@f4bf62ff788d:~/VC4CL# wget -O /tmp/vc4c.deb $(python .circleci/get_url.py "vc4c-" "/tmp/dump")
--2020-10-02 17:24:40--  https://2156-106166771-gh.circle-artifacts.com/0/build/vc4c-0.4-Linux.deb
Resolving 2156-106166771-gh.circle-artifacts.com (2156-106166771-gh.circle-artifacts.com)... 34.198.109.169, 52.72.185.216, 50.16.142.25
Connecting to 2156-106166771-gh.circle-artifacts.com (2156-106166771-gh.circle-artifacts.com)|34.198.109.169|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://circle-production-customer-artifacts.s3.amazonaws.com/picard/5a2047c4c9e77c0001e5631d/5f7424ae32d57375ed2c78f8-0-build/artifacts/build/vc4c-0.4-Linux.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20201002T172441Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIAJR3Q6CR467H7Z55A%2F20201002%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=ccdf1b5f95cde586034250cb8e86b0b97881a4bf695da284fec029aba82f6401 [following]
--2020-10-02 17:24:41--  https://circle-production-customer-artifacts.s3.amazonaws.com/picard/5a2047c4c9e77c0001e5631d/5f7424ae32d57375ed2c78f8-0-build/artifacts/build/vc4c-0.4-Linux.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20201002T172441Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIAJR3Q6CR467H7Z55A%2F20201002%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=ccdf1b5f95cde586034250cb8e86b0b97881a4bf695da284fec029aba82f6401
Resolving circle-production-customer-artifacts.s3.amazonaws.com (circle-production-customer-artifacts.s3.amazonaws.com)... 52.216.10.163
Connecting to circle-production-customer-artifacts.s3.amazonaws.com (circle-production-customer-artifacts.s3.amazonaws.com)|52.216.10.163|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23035002 (22M) [application/x-debian-package]
Saving to: '/tmp/vc4c.deb'

/tmp/vc4c.deb           100%[=============================>]  21.97M  1.12MB/s    in 23s     

2020-10-02 17:25:07 (997 KB/s) - '/tmp/vc4c.deb' saved [23035002/23035002]

root@f4bf62ff788d:~/VC4CL# ls /tmp/*.deb
/tmp/vc4c.deb  /tmp/vc4cl-stdlib.deb
root@f4bf62ff788d:~/VC4CL# dpkg-deb -x /tmp/vc4cl-stdlib.deb / && dpkg-deb -x /tmp/vc4c.deb /
root@f4bf62ff788d:~/VC4CL# cd /
root@f4bf62ff788d:/# ls
bin   dev  home  lib32	media  opt   root  sbin  sys  usr
boot  etc  lib	 lib64	mnt    proc  run   srv	 tmp  var
root@f4bf62ff788d:/# 
root@f4bf62ff788d:/# cd -
/root/VC4CL
root@f4bf62ff788d:~/VC4CL# ls
CMakeLists.txt	LICENSE  Readme.md  cmake  src	test  tools
root@f4bf62ff788d:~/VC4CL# #mkdir build && cd build && cmake ../ -DBUILD_NUMBER=$CIRCLE_BUILD_NUM -DBUILD_TESTING=ON -DINCLUDE_COMPILER=ON -DMOCK_HAL=ON
root@f4bf62ff788d:~/VC4CL# CIRCLE_BUILD_NUM=1
root@f4bf62ff788d:~/VC4CL# mkdir build && cd build && cmake ../ -DBUILD_NUMBER=$CIRCLE_BUILD_NUM -DBUILD_TESTING=ON -DINCLUDE_COMPILER=ON -DMOCK_HAL=ON
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/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/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - found
-- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so (found version "2.2") 
-- Found headers for OpenCL up to version 2.2 located in /usr/include
-- VC4C library found: /usr/local/lib/libVC4CC.so
-- VC4C compiler header found at: /usr/local/include/vc4cc/VC4C.h
-- Building with ICD support
-- Checking for one of the modules 'ocl-icd>=1.3'
-- Found Khronos ICD Loader in version 2.2.12 in /usr/lib/x86_64-linux-gnu
-- Looking for clCreateProgramWithIL
-- Looking for clCreateProgramWithIL - found
-- Looking for wsyncup in /usr/lib/x86_64-linux-gnu/libcurses.so
-- Looking for wsyncup in /usr/lib/x86_64-linux-gnu/libcurses.so - found
-- Looking for cbreak in /usr/lib/x86_64-linux-gnu/libncurses.so
-- Looking for cbreak in /usr/lib/x86_64-linux-gnu/libncurses.so - found
-- Found Curses: /usr/lib/x86_64-linux-gnu/libncurses.so  
-- found clang-format: /usr/bin/clang-format-7
-- Configuring done
-- Generating done
-- Build files have been written to: /root/VC4CL/build
root@f4bf62ff788d:~/VC4CL/build# make -j`nproc`
Scanning dependencies of target GetGitCommit
Scanning dependencies of target cpptest-lite-project-build
[  2%] Creating directories for 'cpptest-lite-project'
[  2%] Built target GetGitCommit
Scanning dependencies of target VC4CL
[  6%] Building CXX object src/CMakeFiles/VC4CL.dir/Buffer.cpp.o
[  6%] Building CXX object src/CMakeFiles/VC4CL.dir/barriers.cpp.o
[  8%] Building CXX object src/CMakeFiles/VC4CL.dir/Context.cpp.o
[ 10%] Building CXX object src/CMakeFiles/VC4CL.dir/CommandQueue.cpp.o
[ 12%] Building CXX object src/CMakeFiles/VC4CL.dir/common.cpp.o
[ 14%] Building CXX object src/CMakeFiles/VC4CL.dir/Device.cpp.o
[ 16%] Building CXX object src/CMakeFiles/VC4CL.dir/Event.cpp.o
[ 18%] Performing download step (git clone) for 'cpptest-lite-project'
Cloning into 'cpptest-lite'...
[ 20%] Building CXX object src/CMakeFiles/VC4CL.dir/executor.cpp.o
[ 22%] Building CXX object src/CMakeFiles/VC4CL.dir/extensions.cpp.o
[ 24%] Building CXX object src/CMakeFiles/VC4CL.dir/icd_loader.cpp.o
[ 26%] Building CXX object src/CMakeFiles/VC4CL.dir/Image.cpp.o
[ 28%] Building CXX object src/CMakeFiles/VC4CL.dir/Kernel.cpp.o
[ 30%] Building CXX object src/CMakeFiles/VC4CL.dir/Mailbox.cpp.o
[ 32%] Building CXX object src/CMakeFiles/VC4CL.dir/ObjectTracker.cpp.o
[ 34%] Building CXX object src/CMakeFiles/VC4CL.dir/PerformanceCounter.cpp.o
[ 36%] Building CXX object src/CMakeFiles/VC4CL.dir/Platform.cpp.o
[ 38%] Building CXX object src/CMakeFiles/VC4CL.dir/Program.cpp.o
[ 40%] Building CXX object src/CMakeFiles/VC4CL.dir/queue_handler.cpp.o
[ 42%] Building CXX object src/CMakeFiles/VC4CL.dir/TextureFormat.cpp.o
Already on 'master'
Your branch is up to date with 'origin/master'.
[ 44%] No patch step for 'cpptest-lite-project'
[ 46%] Building CXX object src/CMakeFiles/VC4CL.dir/V3D.cpp.o
[ 48%] Performing update step for 'cpptest-lite-project'
[ 51%] Building CXX object src/CMakeFiles/VC4CL.dir/hal.cpp.o
From https://github.com/doe300/cpptest-lite
 * branch            HEAD       -> FETCH_HEAD
Already up to date.
[ 53%] Performing configure step for 'cpptest-lite-project'
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/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/bin/c++
-- Check for working CXX compiler: /usr/bin/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
[ 55%] Linking CXX shared library libVC4CL.so
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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: /root/VC4CL/build/cpptest-lite/src/cpptest-lite-project-build
[ 57%] Performing build step for 'cpptest-lite-project'
Scanning dependencies of target cpptest-lite
[ 10%] Building CXX object CMakeFiles/cpptest-lite.dir/src/ConsoleOutput.cpp.o
[ 20%] Building CXX object CMakeFiles/cpptest-lite.dir/src/CollectorOutput.cpp.o
[ 30%] Building CXX object CMakeFiles/cpptest-lite.dir/src/CompilerOutput.cpp.o
[ 40%] Building CXX object CMakeFiles/cpptest-lite.dir/src/BDDSuite.cpp.o
[ 50%] Building CXX object CMakeFiles/cpptest-lite.dir/src/HTMLOutput.cpp.o
[ 60%] Building CXX object CMakeFiles/cpptest-lite.dir/src/ParallelSuite.cpp.o
[ 70%] Building CXX object CMakeFiles/cpptest-lite.dir/src/SynchronizedOutput.cpp.o
[ 57%] Built target VC4CL
Scanning dependencies of target v3d_info
[ 59%] Building CXX object tools/CMakeFiles/v3d_info.dir/V3DInfo.cpp.o
[ 80%] Building CXX object CMakeFiles/cpptest-lite.dir/src/TestSuite.cpp.o
Scanning dependencies of target vc4cl_dump_analyzer
[ 61%] Building CXX object tools/CMakeFiles/vc4cl_dump_analyzer.dir/DumpAnalyzer.cpp.o
[ 90%] Building CXX object CMakeFiles/cpptest-lite.dir/src/TextOutput.cpp.o
Scanning dependencies of target v3d_profile
[ 63%] Building CXX object tools/CMakeFiles/v3d_profile.dir/V3DProfile.cpp.o
[ 65%] Linking CXX executable v3d_info
/root/VC4CL/tools/V3DProfile.cpp: In function 'void drawHistogram(WINDOW*, Histogram&, unsigned int, unsigned int)':
/root/VC4CL/tools/V3DProfile.cpp:133:29: warning: conversion from 'std::size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
         mvwprintw(window, y + i, x, tmp.data());
                           ~~^~~
/root/VC4CL/tools/V3DProfile.cpp: In function 'int main(int, char**)':
/root/VC4CL/tools/V3DProfile.cpp:237:58: warning: conversion from 'unsigned int' to 'uint8_t' {aka 'unsigned char'} may change value [-Wconversion]
             newCounters[i] = V3D::instance()->getCounter(i);
                                                          ^
[ 67%] Linking CXX executable vc4cl_dump_analyzer
[100%] Linking CXX shared library libcpptest-lite.so
[100%] Built target cpptest-lite
[ 67%] Built target cpptest-lite-project-build
Scanning dependencies of target TestVC4CL
[ 69%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestCommandQueue.cpp.o
[ 71%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestBuffer.cpp.o
[ 73%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestContext.cpp.o
[ 75%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestBuiltins.cpp.o
[ 77%] Building CXX object test/CMakeFiles/TestVC4CL.dir/test.cpp.o
[ 77%] Built target v3d_info
[ 79%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestDevice.cpp.o
[ 81%] Linking CXX executable v3d_profile
[ 81%] Built target vc4cl_dump_analyzer
[ 83%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestEvent.cpp.o
[ 83%] Built target v3d_profile
[ 85%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestExecutions.cpp.o
In file included from /root/VC4CL/lib/cpptest-lite/include/asserts.h:11,
                 from /root/VC4CL/lib/cpptest-lite/include/cpptest.h:11,
                 from /root/VC4CL/test/TestCommandQueue.h:12,
                 from /root/VC4CL/test/TestCommandQueue.cpp:7:
/root/VC4CL/lib/cpptest-lite/include/comparisons.h: In instantiation of 'bool Test::Comparisons::isSame(const T1&, const T2&) [with T1 = int; T2 = long unsigned int]':
/root/VC4CL/test/TestCommandQueue.cpp:73:5:   required from here
/root/VC4CL/lib/cpptest-lite/include/comparisons.h:70:16: warning: comparison of integer expressions of different signedness: 'const int' and 'const long unsigned int' [-Wsign-compare]
    return val1 == val2;
           ~~~~~^~~~~~~
In file included from /root/VC4CL/lib/cpptest-lite/include/asserts.h:11,
                 from /root/VC4CL/lib/cpptest-lite/include/cpptest.h:11,
                 from /root/VC4CL/test/TestBuiltins.h:10,
                 from /root/VC4CL/test/TestBuiltins.cpp:7:
/root/VC4CL/lib/cpptest-lite/include/comparisons.h: In instantiation of 'bool Test::Comparisons::isSame(const T1&, const T2&) [with T1 = double; T2 = float]':
/root/VC4CL/test/TestBuiltins.cpp:182:5:   required from here
/root/VC4CL/lib/cpptest-lite/include/comparisons.h:70:16: warning: implicit conversion from 'float' to 'double' to match other operand of binary expression [-Wdouble-promotion]
    return val1 == val2;
           ~~~~~^~~~~~~
[ 87%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestExtension.cpp.o
[ 89%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestImage.cpp.o
[ 91%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestKernel.cpp.o
[ 93%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestPlatform.cpp.o
In file included from /root/VC4CL/lib/cpptest-lite/include/asserts.h:11,
                 from /root/VC4CL/lib/cpptest-lite/include/cpptest.h:11,
                 from /root/VC4CL/test/TestExecutions.h:12,
                 from /root/VC4CL/test/TestExecutions.cpp:7:
/root/VC4CL/lib/cpptest-lite/include/comparisons.h: In instantiation of 'bool Test::Comparisons::isSame(const T1&, const T2&) [with T1 = int; T2 = unsigned int]':
/root/VC4CL/test/TestExecutions.cpp:626:2:   required from here
/root/VC4CL/lib/cpptest-lite/include/comparisons.h:70:16: warning: comparison of integer expressions of different signedness: 'const int' and 'const unsigned int' [-Wsign-compare]
    return val1 == val2;
           ~~~~~^~~~~~~
[ 95%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestProgram.cpp.o
[ 97%] Building CXX object test/CMakeFiles/TestVC4CL.dir/TestSystem.cpp.o
/root/VC4CL/test/TestImage.cpp: In member function 'void TestImage::testImageFormats()':
/root/VC4CL/test/TestImage.cpp:120:22: warning: variable 'format' set but not used [-Wunused-but-set-variable]
  for(cl_image_format format : remainingRequiredFormats)
                      ^~~~~~
/root/VC4CL/test/TestProgram.cpp: In member function 'void TestProgram::checkBuildStatus(cl_program)':
/root/VC4CL/test/TestProgram.cpp:39:12: warning: variable 'state' set but not used [-Wunused-but-set-variable]
     cl_int state = VC4CL_FUNC(clGetProgramBuildInfo)(program, Platform::getVC4CLPlatform().VideoCoreIVGPU.toBase(),
            ^~~~~
[100%] Linking CXX executable TestVC4CL
[100%] Built target TestVC4CL
root@f4bf62ff788d:~/VC4CL/build# ls
CMakeCache.txt	   CPackSourceConfig.cmake  cmake		   cpptest-lite  tools
CMakeFiles	   CTestTestfile.cmake	    cmake_install.cmake    src
CPackConfig.cmake  Makefile		    compile_commands.json  test
root@f4bf62ff788d:~/VC4CL/build# cpack -G DEB
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: VC4CL
CPack: - Install project: VC4CL
CPack: Create package
CPack: - package: /root/VC4CL/build/vc4cl-0.4-Linux.deb generated.
root@f4bf62ff788d:~/VC4CL/build# ls
CMakeCache.txt		 CTestTestfile.cmake  cmake_install.cmake    src
CMakeFiles		 Makefile	      compile_commands.json  test
CPackConfig.cmake	 _CPack_Packages      cpptest-lite	     tools
CPackSourceConfig.cmake  cmake		      install_manifest.txt   vc4cl-0.4-Linux.deb
root@f4bf62ff788d:~/VC4CL/build# dpkg -c vc4cl-0.4-Linux.deb 
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/bin/
-rwxr-xr-x root/root    556296 2020-10-02 17:30 ./usr/local/bin/v3d_info
-rwxr-xr-x root/root    432088 2020-10-02 17:30 ./usr/local/bin/v3d_profile
-rwxr-xr-x root/root    285208 2020-10-02 17:30 ./usr/local/bin/vc4cl_dump_analyzer
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/lib/
lrwxrwxrwx root/root         0 2020-10-02 17:30 ./usr/local/lib/libVC4CL.so -> libVC4CL.so.1.2
-rw-r--r-- root/root   7722176 2020-10-02 17:30 ./usr/local/lib/libVC4CL.so.0.4.1
lrwxrwxrwx root/root         0 2020-10-02 17:30 ./usr/local/lib/libVC4CL.so.1.2 -> libVC4CL.so.0.4.1
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/share/
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/share/vc4cl/
-rw-r--r-- root/root       782 2020-10-02 17:28 ./usr/local/share/vc4cl/VC4CL-targets-debug.cmake
-rw-r--r-- root/root      3569 2020-10-02 17:28 ./usr/local/share/vc4cl/VC4CL-targets.cmake
root@f4bf62ff788d:~/VC4CL/build# ls src/libVC4CL.so.0.4.1 
src/libVC4CL.so.0.4.1
root@f4bf62ff788d:~/VC4CL/build# ls test/TestVC4CL 
test/TestVC4CL
root@f4bf62ff788d:~/VC4CL/build# test/TestVC4CL 
Test-method 'TestProgram::testCreateProgramWithSource()' failed with exception!
	Exception: Input file could not be opened: ./test/hello_world_vector.cl
	Errno: 2
	Error: No such file or directory
Test 'TestProgram::testCompileProgram()' failed!
	Suite: TestProgram
	File: TestProgram.cpp
	Line: 148
	Failure: Got -44, expected 0
^C
root@f4bf62ff788d:~/VC4CL/build# ls vc4cl-0.4-Linux.deb 
vc4cl-0.4-Linux.deb
root@f4bf62ff788d:~/VC4CL/build# dpkg -c vc4cl-0.4-Linux.deb 
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/bin/
-rwxr-xr-x root/root    556296 2020-10-02 17:30 ./usr/local/bin/v3d_info
-rwxr-xr-x root/root    432088 2020-10-02 17:30 ./usr/local/bin/v3d_profile
-rwxr-xr-x root/root    285208 2020-10-02 17:30 ./usr/local/bin/vc4cl_dump_analyzer
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/lib/
lrwxrwxrwx root/root         0 2020-10-02 17:30 ./usr/local/lib/libVC4CL.so -> libVC4CL.so.1.2
-rw-r--r-- root/root   7722176 2020-10-02 17:30 ./usr/local/lib/libVC4CL.so.0.4.1
lrwxrwxrwx root/root         0 2020-10-02 17:30 ./usr/local/lib/libVC4CL.so.1.2 -> libVC4CL.so.0.4.1
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/share/
drwxr-xr-x root/root         0 2020-10-02 17:30 ./usr/local/share/vc4cl/
-rw-r--r-- root/root       782 2020-10-02 17:28 ./usr/local/share/vc4cl/VC4CL-targets-debug.cmake
-rw-r--r-- root/root      3569 2020-10-02 17:28 ./usr/local/share/vc4cl/VC4CL-targets.cmake
root@f4bf62ff788d:~/VC4CL/build# mkdir /root/project
root@f4bf62ff788d:~/VC4CL/build# cd ..
root@f4bf62ff788d:~/VC4CL# ls
CMakeLists.txt	LICENSE  Readme.md  build  cmake  lib  src  test  tools
root@f4bf62ff788d:~/VC4CL# cp .circleci/build_num.py /root/project/
root@f4bf62ff788d:~/VC4CL# cp .circleci/get_url.py /root/project/
root@f4bf62ff788d:~/VC4CL# cp build/test/TestVC4CL /root/project/
root@f4bf62ff788d:~/VC4CL# cp build/cpptest-lite/src/cpptest-lite-project-build/libcpptest-lite.so.0.9 /root/project/
root@f4bf62ff788d:~/VC4CL# cp test/hello_world_vector.cl /root/project/
root@f4bf62ff788d:~/VC4CL# ls
CMakeLists.txt	LICENSE  Readme.md  build  cmake  lib  src  test  tools
root@f4bf62ff788d:~/VC4CL# cd /root/project/
root@f4bf62ff788d:~/project# ls
TestVC4CL  build_num.py  get_url.py  hello_world_vector.cl  libcpptest-lite.so.0.9
root@f4bf62ff788d:~/project# 
root@f4bf62ff788d:~/project# 
root@f4bf62ff788d:~/project# ls   
TestVC4CL     get_url.py	     libcpptest-lite.so.0.9
build_num.py  hello_world_vector.cl
root@f4bf62ff788d:~/project# ls *deb
ls: cannot access '*deb': No such file or directory
root@f4bf62ff788d:~/project# cd
root@f4bf62ff788d:~# ls
VC4CL  project
root@f4bf62ff788d:~# cd VC4CL/
root@f4bf62ff788d:~/VC4CL# ls
CMakeLists.txt	LICENSE  Readme.md  build  cmake  lib  src  test  tools
root@f4bf62ff788d:~/VC4CL# cd build/
root@f4bf62ff788d:~/VC4CL/build# ls
CMakeCache.txt		 _CPack_Packages	src
CMakeFiles		 cmake			test
CPackConfig.cmake	 cmake_install.cmake	testResult.log
CPackSourceConfig.cmake  compile_commands.json	tools
CTestTestfile.cmake	 cpptest-lite		vc4cl-0.4-Linux.deb
Makefile		 install_manifest.txt
root@f4bf62ff788d:~/VC4CL/build# ls *deb
vc4cl-0.4-Linux.deb
root@f4bf62ff788d:~/VC4CL/build# cp vc4cl-0.4-Linux.deb /root/project/
root@f4bf62ff788d:~/VC4CL/build# cd /root/project/
root@f4bf62ff788d:~/project# ls
TestVC4CL     get_url.py	     libcpptest-lite.so.0.9
build_num.py  hello_world_vector.cl  vc4cl-0.4-Linux.deb
root@f4bf62ff788d:~/project# ls vc4cl-0.4-Linux.deb ^C
root@f4bf62ff788d:~/project# cp /tmp/vc4cl-stdlib.deb /tmp/vc4c.deb  .
root@f4bf62ff788d:~/project# ls
TestVC4CL     hello_world_vector.cl   vc4cl-0.4-Linux.deb
build_num.py  libcpptest-lite.so.0.9  vc4cl-stdlib.deb
get_url.py    vc4c.deb
root@f4bf62ff788d:~/project# ls *.deb
vc4c.deb  vc4cl-0.4-Linux.deb  vc4cl-stdlib.deb
root@f4bf62ff788d:~/project# dpkg -i vc4cl-stdlib.deb vc4c.deb vc4cl-0.4-Linux.deb 
Selecting previously unselected package vc4cl-stdlib.
(Reading database ... 24429 files and directories currently installed.)
Preparing to unpack vc4cl-stdlib.deb ...
Unpacking vc4cl-stdlib (0.4-2020-09-30) ...
Selecting previously unselected package vc4c.
Preparing to unpack vc4c.deb ...
Unpacking vc4c (0.4.2156-2020-09-30) ...
Selecting previously unselected package vc4cl.
Preparing to unpack vc4cl-0.4-Linux.deb ...
Unpacking vc4cl (0.4.1-2020-10-02) ...
Setting up vc4cl-stdlib (0.4-2020-09-30) ...
Setting up vc4c (0.4.2156-2020-09-30) ...
[VC4C] Extended library load path by: /usr/local/lib
[VC4C] VC4CL standard library precompiled into /usr/local/include/vc4cl-stdlib/
Setting up vc4cl (0.4.1-2020-10-02) ...
root@f4bf62ff788d:~/project# #ln -s libcpptest-lite.so.0.9 /usr/lib/libcpptest-lite.so.1.1.2
root@f4bf62ff788d:~/project# ls -l libcpptest-lite.so.0.9 /usr/lib/libcpptest-lite.so.1.1.2
ls: cannot access '/usr/lib/libcpptest-lite.so.1.1.2': No such file or directory
-rwxr-xr-x 1 root root 226848 Oct  2 17:35 libcpptest-lite.so.0.9
root@f4bf62ff788d:~/project# ln -s libcpptest-lite.so.0.9 /usr/lib/libcpptest-lite.so.1.1.2
root@f4bf62ff788d:~/project# ls -l libcpptest-lite.so.0.9 /usr/lib/libcpptest-lite.so.1.1.2
lrwxrwxrwx 1 root root     22 Oct  2 17:53 /usr/lib/libcpptest-lite.so.1.1.2 -> libcpptest-lite.so.0.9
-rwxr-xr-x 1 root root 226848 Oct  2 17:35 libcpptest-lite.so.0.9
root@f4bf62ff788d:~/project# ldconfig
root@f4bf62ff788d:~/project# vc4c
vc4c                 vc4cl_dump_analyzer  
root@f4bf62ff788d:~/project# vc4c
vc4c                 vc4cl_dump_analyzer  
root@f4bf62ff788d:~/project# vc4c --version
Running VC4C in version: 0.4.2156 (569e1bc)
Build configuration: debug mode; multi-threaded optimization; builtin SPIR-V front-end; LLVM library front-end with libLLVM 7; vc4asm verification

Standard library location:
	header in /usr/local/include/vc4cl-stdlib/defines.h
	PCH in /usr/local/include/vc4cl-stdlib/VC4CLStdLib.h.pch
	LLVM module in /usr/local/include/vc4cl-stdlib/VC4CLStdLib.bc
Tool locations:
	clang in /usr/bin/clang-7 (default)
	llvm-spirv in /opt/SPIRV-LLVM-Translator/build/tools/llvm-spirv/llvm-spirv (default)
	llvm-link in /usr/bin/llvm-link-7 (default)
	opt in /usr/bin/opt-7 (default)
	llvm-dis in /usr/bin/llvm-dis-7 (default)
	llvm-as in /usr/bin/llvm-as-7 (default)
	spirv-link in /usr/bin/spirv-link (default)
root@f4bf62ff788d:~/project# v3d_info 
V3D Info:

                  Model:         unknown
              Processor:         unknown
          Warranty void:             yes
NOTE: Raspberry Pi 4 is not supported!
VC4CL info:
                Version:           0.4.1
               Compiler:       available
     ICD loader support:        disabled
          Image support:        disabled
         Execution mode:         mailbox
Mailbox Info:
      Firmware Revision:        deadbeef
            Board Model:      3735928559
         Board Revision:        deadbeef
            MAC Address:        deadbeef
           Board Serial:        deadbeef caffee11
             ARM Memory:      4294967295 Bytes (4095 MB)
    VideoCore IV Memory:         8388608 Bytes (8 MB)
       Clock Rate (ARM):             250 MHz (250 to 250 MHz)
      Clock Rate (Core):             250 MHz (250 to 250 MHz)
       Clock Rate (V3D):             250 MHz (250 to 250 MHz)
       Clock Rate (PWM):             250 MHz (250 to 250 MHz)
        SoC Temperature:          250000 C (max 250000 C)
V3D Status Register Info:
           V3D revision:               1
            HDR support:              no
             Semaphores:              16
                   QPUs:              12
                 Slices:               3
        VPM Memory size:              12 KB
          VPM User size:               0 KB
          Program queue:           0/0/0 requests/completed/in queue
                 Errors:                
Testing maximum single allocation size:
Maximum single allocation: 4194304 bytes (4 MB)
root@f4bf62ff788d:~/project# ./TestVC4CL --output=plain --mode=verbose --buffer --context --device --events --platform --programs --queue --system --kernels
Running suite 'TestBuffer' with 17 tests...
Suite 'TestBuffer' finished, 17/17 successful (100%) in 1122 microseconds (1.122 ms).
Running suite 'TestContext' with 5 tests...
Suite 'TestContext' finished, 5/5 successful (100%) in 77 microseconds (0.077 ms).
Running suite 'TestDevice' with 5 tests...
Suite 'TestDevice' finished, 5/5 successful (100%) in 371 microseconds (0.371 ms).
Running suite 'TestEvent' with 12 tests...
Suite 'TestEvent' finished, 12/12 successful (100%) in 163 microseconds (0.163 ms).
Running suite 'TestPlatform' with 2 tests...
Suite 'TestPlatform' finished, 2/2 successful (100%) in 15 microseconds (0.015 ms).
Running suite 'TestProgram' with 11 tests...
Test-method 'TestProgram::testCreateProgramWithSource()' failed with exception!
	Exception: Input file could not be opened: ./test/hello_world_vector.cl
	Errno: 2
	Error: No such file or directory
Test 'TestProgram::testCompileProgram()' failed!
	Suite: TestProgram
	File: TestProgram.cpp
	Line: 148
	Failure: Got -44, expected 0
^C
root@f4bf62ff788d:~/project#
root@f4bf62ff788d:~/project# cat /etc/issue.net 
Debian GNU/Linux 10
root@f4bf62ff788d:~/project# uname -a           
Linux f4bf62ff788d 5.2.0-3-amd64 #1 SMP Debian 5.2.17-1 (2019-09-26) x86_64 GNU/Linux
root@f4bf62ff788d:~/project# uname -r
5.2.0-3-amd64
root@f4bf62ff788d:~/project# cat /etc/deb
debconf.conf    debian_version  
root@f4bf62ff788d:~/project# cat /etc/debian_version 
10.5
root@f4bf62ff788d:~/project# dpkg --print-architecture
amd64
root@f4bf62ff788d:~/project# 

now I just need to get the right debian os and figure out how to get the package install into rpi3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants