From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: qemu-user-static build of other architectures Date: Sat, 26 Nov 2022 23:24:55 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7508977941999382665==" List-Id: --===============7508977941999382665== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi All, I tried to run a aarch64 build of samba so that I could get the correct rootf= ile but I had a few problems. I installed qemu-user-static on Arch Linux but when I tried to run the gettoo= lchain command I got an error message about not finding the binfmt_misc helpe= r. Figured out that I needed to also install qemu-user-static-binfmt as well. Th= en the error message changed to the fact that it could not find /usr/bin/qemu= -aarch64-static but it was in that directory. Eventually used the find static command from ./make.sh and found that on Arch= Linux it does not have "statically linked" but "static-pie linked". Changing= the ./make.sh find static command to look for "static-pie linked" then allow= ed the build for aarch64 to proceed. Of course having changed ./make.sh means that it now shows up as a modified f= ile in the git status. I will look at changing the find static command to loo= k for either "statically linked" or "static-pie linked" and submit it as a pa= tch for consideration. Regards, Adolf. --===============7508977941999382665==--