doe300 / VC4C

Compiler for the VC4CL OpenCL implementation
MIT License
118 stars 37 forks source link

Cross-compiled build does not run on Rpi B #66

Closed doe300 closed 6 years ago

doe300 commented 6 years ago

The cross-compiled build does not run on original Raspberry Pi B (not B+, not 2B) due to probably architecture mismatch. The original error message when trying to execute VC4C is:

Illegal instruction

cat /proc/cpuinfo spills out:

ARMv6-compatible processor rev 7 (v6l)

readelf -A /usr/local/bin/VC4C gives

Tag_CPU_name: "7-A"
Tag_CPU_arch: v7
nomaddo commented 6 years ago

This is a problem of dockage images. Currently, we use packages of debian armhf (see https://github.com/nomaddo/cross-rpi/blob/master/Dockerfile#L4). These seem to include ARMv7 instructions (https://wiki.debian.org/RaspberryPi):

Debian armhf will not work (see below) for the first version but does work with the second one. The Zero uses the same SoC/CPU as the first version, so they should function identically.
nomaddo commented 6 years ago

solved by

88 and https://github.com/doe300/VC4CL/pull/30