[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: building dif. target system using qemu suit - Update.
From: |
Ken Moffat |
Subject: |
Re: building dif. target system using qemu suit - Update. |
Date: |
Sun, 5 Sep 2021 20:18:46 +0100 |
User-agent: |
Mutt/2.1.2 (2021-08-24) |
On Sun, Sep 05, 2021 at 08:24:08PM +0200, Frans de Boer wrote:
> On 9/4/21 10:31, Frans de Boer wrote:
> > LS,
> >
> > When I use qemu-aarch64to start a chroot jail and within the jail use
> > qemu-aarch64-binfmt to cope with the different binary file headers, I
> > can't use bash properly.
> >
> > That is, the -r and -x flags do not give the normal response. I tested
> > also with -a, -d, -f, -e and -s, and they worked as expected. This
> > behavior stops me from building a new (aarch64) system on a x86_64 build
> > system. Within the chroot jail, I can start programs, run (bash) scripts
> > as long as these scripts do not use the -r and -x tests. There are maybe
> > more tests not working or just working, but these are the ones I tested.
> >
> > Normally, one would use a build system with the same target
> > architecture, but that implies that you already have a target system up
> > and running. Qemu with binfmt sounded as a possible solution, but as
> > reported above, that seems not the case any longer.
> >
> > But maybe I do something wrong and thus seek advice how to proceed from
> > here.
> >
> > Regards, Frans.
> Tried the same with ppc64, same bad results.
>
> Frans.
Frans,
I assume you mean 'test -r ' and 'test -x ' ?
I've never used qemu for compiling a different arch, but I guess
that you have some version of both 'ls' and 'ldd' ? Perhaps,
running 'ls -l' against a file which does exist but fails the '-r'
test, and 'ldd' against a file which is present and excepted to be
executable (and not a script) might provide you with clues.
ĸen
--
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
- Hogfather