-
Notifications
You must be signed in to change notification settings - Fork 399
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
Installing pcscd library with arm-unknown-linux-gnueabihf DockerFile #1076
Comments
So there is a solution here it seems: LD_PRELOAD=/lib/arm-linux-gnueabihf/libz.so.1 apt-get install --assume-yes pcscd:armhf libpcsclite-dev:armhf This will correctly fail to preload the ARM zlib library on the A side note, the image you're using is out-of-date by over a year. You should be using |
arm-unknown-linux-gnueabihf-specificNOTE: You're probably going to run into #1017, since the Debian repositories generally are built against ARMv7-a and not an ARMv6 architecture: $ readelf -a /usr/lib/arm-linux-gnueabihf/libpcsclite.so.1.0.0
File Attributes
Tag_CPU_name: "7-A"
Tag_CPU_arch: v7
Tag_CPU_arch_profile: Application
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-2
Tag_FP_arch: VFPv3-D16
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_VFP_args: VFP registers
Tag_CPU_unaligned_access: v6 This will give you illegal instructions on your RPi 0 or RPi W. You will have to build those dependencies from source. More GeneralThere's a better solution: add the FROM ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:main
# useful in case anything wants an interactive prompt
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN dpkg --add-architecture armhf && \
apt-get update
RUN apt-get install --assume-yes zlib1g:armhf --no-install-recommends
RUN apt-get install --assume-yes pcscd:armhf libpcsclite-dev:armhf --no-install-recommends I'll document this on the wiki. |
Closing since the wiki has been updated and I've confirmed the deny lists are working for the latest images. This means that all $ docker pull ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:main
$ docker run -it --rm ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:main bash
$ dpkg --add-architecture armhf && apt-get update && apt-get install --assume-yes zlib1g:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package zlib1g:armhf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
zlib1g zlib1g:i386
E: Package 'zlib1g:armhf' has no installation candidate
$ cat /etc/apt/preferences.d/all-packages
Package: *:armhf
Pin: release *
Pin-Priority: -1 |
Sorry to bring this old issue back up and I'm not 100% sure about this, but isn't it reasonable to want to install Debian/Ubuntu's armhf (v7) -dev packages into a (v6) arm-unknown-linux-gnueabihf container for use in builds? If so, is there a way to override the deny list? |
removing |
Super, thanks! |
I'm trying to use cross with Docker to develop for Raspberry Pi. I have created a Dockerfile in order to recreate the enviroment but am not able to install the needed Rust library.
When installing pcscd i get the error:
The text was updated successfully, but these errors were encountered: