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

PHP 7.1 and certain libraries not installing ARMv6 (cross compile for kerberos.io Docker image) #1455

Closed
1 task done
dbwest opened this issue Aug 27, 2020 · 2 comments
Closed
1 task done

Comments

@dbwest
Copy link

dbwest commented Aug 27, 2020

Frequently asked questions

Describe the bug
A clear and concise description of what the bug is.

Hi, all. This bug happens when trying to do a Docker build for ARMv6 arch. The particular Docker build using sury.org for PHP packages and libraries. Specifically it tries to install PHP 7.1 with mcrypt and some other things on ARMv6 Debian Stretch.

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/kerberos-io/kerberos-docker.git
  2. Use Docker Desktop (may need Edge version not stable) with Experimental Mode enabled for the following cross-compile build. Also possible with regular Docker-CE or Docker-EE on Linux?
docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d

docker buildx create --name nubuilder --driver docker-container

docker buildx use nubuilder

docker buildx inspect --bootstrap

docker buildx build --platform linux/arm/v6 -t kerberos-io-armv6 .
  1. See error "packages not found from packages.sury.org" . If I change the PHP version to 7.3 it gets another error install PHP-mcrypt

Expected behavior
Docker Cross Build should create an image and should be able to find all needed packages for ARMv6 on packages.sury.org (provided you intend to support ARMv6 PHP7.1)

Distribution (please complete the following information):

  • OS: Debian Stretch and Stretch-Lite
  • Architecture: armv6
  • Repository: packages.sury.org

Package(s) (please complete the following information):
Output of apt-cache policy <package> works best.

Additional context
maybe packages were not genned for armv6 PHP 7.1?

@todeveni
Copy link
Contributor

See #988

armv6 isn't supported, you need at least armv7-a

@oerdnj oerdnj closed this as completed Aug 27, 2020
@dbwest
Copy link
Author

dbwest commented Aug 27, 2020

why? Nothing else is supported but ArmHardFloatPort (armhf)? What about arm-linux-gnueabihf?

per https://wiki.debian.org/ArmPorts:

Raspbian - Uses the hard-float version of the "new" ABI (EABI) like Debian armhf but targets v6 rather than v7. Currently tracks Debian jessie and stretch. Primarily but not exclusively targeted at the Raspberry Pi. GNU Triplet: arm-linux-gnueabihf

For those that are curious using a raspbian base image works.

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

3 participants