Re: [Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop

2016-01-19 Thread Richard Henderson
On 01/19/2016 10:15 AM, Peter Maydell wrote: > On 15 January 2016 at 18:15, Richard Henderson wrote: >>.../qemu/run/qemu-alpha -> .../gcc/run-cross/alphaev67-linux/sys-root >>.../qemu/run/qemu-arm -> .../gcc/run-cross/arm-linux-gnueabi/sys-root >>.../qemu/run/qemu-sparc -> .../gcc/run-

Re: [Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop

2016-01-19 Thread Peter Maydell
On 15 January 2016 at 18:15, Richard Henderson wrote: > On 01/15/2016 09:53 AM, Peter Maydell wrote: >>> @@ -58,7 +58,7 @@ static struct pathelem *new_entry(const char *root, >>> #if defined(DT_DIR) && defined(DT_UNKNOWN) && defined(DT_LNK) >>> # define dirent_type(dirent) ((dirent)->d_type) >>>

Re: [Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop

2016-01-15 Thread Richard Henderson
On 01/15/2016 09:53 AM, Peter Maydell wrote: >> @@ -58,7 +58,7 @@ static struct pathelem *new_entry(const char *root, >> #if defined(DT_DIR) && defined(DT_UNKNOWN) && defined(DT_LNK) >> # define dirent_type(dirent) ((dirent)->d_type) >> # define is_dir_maybe(type) \ >> -((type) == DT_DIR ||

Re: [Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop

2016-01-15 Thread Peter Maydell
On 6 January 2016 at 15:21, Wei-Bo, Chen wrote: > Detail bug report in the following url: > https://bugs.launchpad.net/qemu/+bug/1245703 > > Remove is_dir_maybe macro condition DT_LNK in util/path.c > > Signed-off-by: Wei-Bo, Chen > --- > util/path.c | 2 +- > 1 file changed, 1 insertion(+), 1 d

Re: [Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop

2016-01-11 Thread Peter Maydell
On 11 January 2016 at 18:52, 陳威伯 wrote: > ping!! This is on my list to look at. It's a long-standing bug, because -L was never designed to be pointed at an arbitrary directory tree: it's supposed to point to a fairly small set of libraries in a 'system root' generated for a cross-compiling toolch

Re: [Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop

2016-01-11 Thread 陳威伯
ping!!

Re: [Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop

2016-01-06 Thread 陳威伯
For further explaination of endless loop happen in util/path.c For example, set the QEMU_LD_PREFIX="/home/apple/i386" sudo debootstrap --arch=i386 trusty /home/apple/i386 http://archive.ubuntu.com/ubuntu/ magic is a normal dynamic-linkd 32-bit elf. qemu-i386 -L /home/apple/i386 /home/apple/magic Th

[Qemu-devel] [RFC] util: Fix QEMU_LD_PREFIX endless loop

2016-01-06 Thread Wei-Bo, Chen
Detail bug report in the following url: https://bugs.launchpad.net/qemu/+bug/1245703 Remove is_dir_maybe macro condition DT_LNK in util/path.c Signed-off-by: Wei-Bo, Chen --- util/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/path.c b/util/path.c index 4e4877e.