From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: Re: Cross-compiling for aarch64 and armv6l on x86_64 does not seem to work Date: Sun, 09 Jan 2022 14:36:23 +0100 Message-ID: <3a1ce1fa-59e8-02b0-f37a-073a60b1a67a@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4215548632302568844==" List-Id: --===============4215548632302568844== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Michael, thanks for your reply. > You will need to have the =E2=80=94-target switch before the command: >=20 > ./make.sh =E2=80=94-target=3Daarch64 build >=20 > Don=E2=80=99t forget to fetch the toolchain first and you might need to ins= tall a couple of packages that will emulate this architecture. An error messa= ge should let you know if anything is missing. I did so, installed some missing packages, ran "/usr/sbin/qemu-binfmt-conf.sh= ", downloaded the toolchain for aarch64, and tried to start the build. Sadly, it aborts without any (obvi= ous) error message: Packaged toolchain compilation = = =20 Checking for necessary space on disk = = [ = DONE ] Building LFS = = =20 stage2 = = [ = FAIL ] Jan 9 13:31:47: Building stage2 ERROR: Building stage2 = = [ = FAIL ] Check /home/pmu/devel/IPFire-development/ipfire-2.x/log/_build.base.log f= or errors if applicable = [ = FAIL ] machine:/home/pmu/devel/IPFire-development/ipfire-2.x # cat /home/pmu/devel/I= PFire-development/ipfire-2.x/log/_build.base.log Jan 9 13:31:47: Building stage2=20 That's literally it. Since make.sh does not seem to support a debug/verbose s= witch, and the output of "bash -x ./make.sh --target=3Daarch64 build" does not gives any helpful infor= mation either, I'm afraid I have to ask for help again. In case it helps: # cat /proc/sys/fs/binfmt_misc/qemu-aarch64 enabled interpreter /usr/bin/qemu-aarch64-binfmt flags: P offset 0 magic 7f454c460201010000000000000000000200b700 mask ffffffffffffff00fffffffffffffffffeffffff Thanks in advance, and best regards, Peter M=C3=BCller --===============4215548632302568844==--