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
aarch64 mock shell failed with error: /usr/sbin/ldconfig: No such file or directory #277
Comments
I cannot reproduce. :( |
Thanks for the advice. I tried the
I also checked with debug options, but I could not find the cause of the error. :<
|
I would be surprised if this worked. It takes system, i.e. x86_64 DNF, and tries to execute scriptlets which are aarch64 native code ... |
I just sit together with @junaruga and we found no differences. We come as deep as that:
on my system execute And another strange thing that while dnf claims that glibc is installed (and is trying postintall scriptlet) there is missing /var/lib/mock/fedora-30-aarch64/root/sbin/glibc_post_upgrade.aarch64 file on @junaruga machine. Dunno why. |
I remembered I did run below program related to qemu.
That's to execute below scripts to register "binfmt-conf" strings to I suspect this is related to the issue. https://github.com/multiarch/qemu-user-static/blob/master/register/Dockerfile @xsuchy do you have below file and mount entry on your environment?
On Fedora there is |
|
Today I did run below commands sitting together with @xsuchy .
What I did during last time before running the commands are to run below commands.
When I faced the issue again, I let you know. |
So we can close this now, right? |
@praiskup I think we can reopen this ticket now. Because I succeeded to reproduce the issue now. Run below command (detail: https://github.com/multiarch/qemu-user-static)
Then below
But after running below commands,
below mock commands are succeeded.
multiarch/qemu-user-static:registerWhat
Here are the actual messages for the command.
|
I talked with @xsuchy, We agreed for keeping closing the ticket for now. |
I found the essential reason of this issue. I share it for someone who faced this issue. Feodra's qemu-user-static RPMs install But when other programs update the files from
The meaning of the flag: F is to keep the qemu setting for persistent on memory. Initial condition.
Below is ok case.
Now update the file from
Then
The solution is as I mentioned, below command.
or restart systemd-binfmt service. The service recreates
I opened the ticket to discuss the qemu-user-static's behavior on Fedora qemu-user-static. |
I experimented above using mock's chroot. First, okay case with default
Now update the file from
Below command is failed, because when the flag F is not set, "interpreter /usr/bin/qemu-aarch64-static" is need inside of the chroot to run the emulation.
But after copying
|
Wow. Nice findings. Thank you. |
Hi, i'm running Mageia9, none above workaround worked, because to recreate /proc/sys/fs/binfmt_misc/qemu* i need to reboot the computer :-D |
Short description of the problem
mock -r fedora-rawhide-aarch64 --forcearch=aarch64 shell
to run aarch64 environment is failed with the below error on my x86_64 Fedora 30 host environment.Could you give me some advices to fix the issue?
Thanks.
Output of
rpm -q mock
Steps to reproduce issue
Run below command with /etc/mock/fedora-rawhide-aarch64.cfg following this document.
Do not forget to mention full commandline with the mock command you executed.
The outputted full log is here.
Any additional notes
Consider adding output of
mock --debug-config
this can help developers to reproduce the issue.Thanks for your help!
The text was updated successfully, but these errors were encountered: