From: petrcvekcz@gmail.com (Petr Cvek)
To: linux-arm-kernel@lists.infradead.org
Subject: ARM: pxa/corgi: armv5te kernel 4.12 fails to decompress compiled with gcc7
Date: Mon, 16 Oct 2017 13:55:18 +0200 [thread overview]
Message-ID: <f1631768-b26e-62ae-db1f-65686cd0c4de@gmail.com> (raw)
In-Reply-To: <20171015104640.hazujjkbqyik7fgg@darkstar.musicnaut.iki.fi>
Hi,
Dne 15.10.2017 v 12:46 Aaro Koskinen napsal(a):
> Hi,
>
> On Sat, Oct 14, 2017 at 11:57:30PM +0200, Robert Jarzmik wrote:
>> Aaro Koskinen <aaro.koskinen@iki.fi> writes:
>>> On Sat, Sep 02, 2017 at 11:50:55PM +0200, Andrea Adami wrote:
>>>> On Thu, Jul 20, 2017 at 8:57 AM, Robert Jarzmik <robert.jarzmik@free.fr> wrote:
>>>>> Andrea Adami <andrea.adami@gmail.com> writes:
>>>>> I have the same report on userspace side on buildroot from Petr [1], which
>>>>> triggers endless segfaults in userspace (init) with gcc7 while everything is
>>>>> fine with gcc6. I have confirmation on my test farm the problem happens as well.
>>>>>
>>>>> Since debugging in userspace is far easier, I would suggest attacking the debug
>>>>> with Petr on userspace side, and once sorted out, come back to kernel side.
>>>>
>>>> sorry for the delay, I was awaiting to test gcc 7.2 and binutils 2.29.
>>>> Unfortunately, same issue: XZ-compressed data is corrupt - System Halted.
>>>
>>> Has anyone been able to debug this further? It seems there are also issues
>>> on iop32x/n2100 with GCC 7.2 and binutils 2.29.1 - early boot hangs silently
>>> and I cannot get earlyprintk to work. Compiling with GCC 6.4.0 it's OK.
>>
>> I didn't find the time for GCC 7.2 testing.
>> Yet I have earlyprintk working on my platforms, you need :
>> - on kernel command line for ttyS0 in my case :
>> earlycon=early_pxa,mmio,0x40100000
>
> It dies already during decompression so earlycon does not help much.
>
> This seems to be simpler to debug/reproduce using busybox. Compiling
> just busybox with GCC 7.2 and march=armv5te/mtune=xscale already
> produces failing xz decompression:
>
Does it fail too when compiled with gcc 7.2 and with march=armv5t and/or
march=armv4t ?
> root at thecus-n2100:~$ echo foo > foo.txt
> root at thecus-n2100:~$ xz foo.txt
> root at thecus-n2100:~$ ./busybox.gcc-7.2 xz -d foo.txt.xz
> xz: corrupted data
> root at thecus-n2100:~$ ./busybox.gcc-6.4 xz -d foo.txt.xz
> root at thecus-n2100:~$ cat foo.txt
> foo
>
> gzip is no better:
>
> root at thecus-n2100:~$ gzip foo.txt
> root at thecus-n2100:~$ ./busybox.gcc-7.2 gzip -d foo.txt.gz
> gzip: crc error
> root at thecus-n2100:~$ ./busybox.gcc-6.4 gzip -d foo.txt.gz
> root at thecus-n2100:~$ cat foo.txt
> foo
>
Is it really compiled with armv5te ("readelf -n -A")? I've just found my
old gcc 6.3 compiled some code with a default armv4t.
Petr
next prev parent reply other threads:[~2017-10-16 11:55 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-19 13:13 ARM: pxa/corgi: armv5te kernel 4.12 fails to decompress compiled with gcc7 Andrea Adami
2017-07-20 6:57 ` Robert Jarzmik
2017-09-02 21:50 ` Andrea Adami
2017-10-14 21:50 ` Aaro Koskinen
2017-10-14 21:57 ` Robert Jarzmik
2017-10-15 10:46 ` Aaro Koskinen
2017-10-15 13:01 ` Russell King - ARM Linux
2017-10-15 15:14 ` Aaro Koskinen
2017-10-16 11:55 ` Petr Cvek [this message]
2017-10-17 8:02 ` Andrea Adami
2017-10-17 8:10 ` Petr Cvek
2017-10-17 8:18 ` Andrea Adami
2017-10-18 10:39 ` Petr Cvek
2017-10-18 10:44 ` Russell King - ARM Linux
2017-10-18 11:12 ` Petr Cvek
2017-10-24 8:34 ` Andrea Adami
2017-10-24 8:43 ` Andrea Adami
2017-10-17 20:33 ` Aaro Koskinen
2017-10-18 9:57 ` Petr Cvek
2017-10-14 22:00 ` Petr Cvek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1631768-b26e-62ae-db1f-65686cd0c4de@gmail.com \
--to=petrcvekcz@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.