Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600005 > unrolled thread
| Started by | Alexey Kardashevskiy <aik@ozlabs.ru> |
|---|---|
| First post | 2017-03-14 04:00 +0100 |
| Last post | 2017-03-27 04:40 +0200 |
| Articles | 3 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC PATCH kernel] gcc-goto.sh: Allow to pass with CONFIG_DEBUG_INFO_SPLIT=y Alexey Kardashevskiy <aik@ozlabs.ru> - 2017-03-14 04:00 +0100
Re: [RFC PATCH kernel] gcc-goto.sh: Allow to pass with CONFIG_DEBUG_INFO_SPLIT=y Alexey Kardashevskiy <aik@ozlabs.ru> - 2017-03-15 03:30 +0100
Re: [RFC PATCH kernel] gcc-goto.sh: Allow to pass with CONFIG_DEBUG_INFO_SPLIT=y Alexey Kardashevskiy <aik@ozlabs.ru> - 2017-03-27 04:40 +0200
| From | Alexey Kardashevskiy <aik@ozlabs.ru> |
|---|---|
| Date | 2017-03-14 04:00 +0100 |
| Subject | Re: [RFC PATCH kernel] gcc-goto.sh: Allow to pass with CONFIG_DEBUG_INFO_SPLIT=y |
| Message-ID | <tkKQO-1VS-7@gated-at.bofh.it> |
On 03/03/17 11:51, Alexey Kardashevskiy wrote:
> With just CONFIG_DEBUG_INFO=y, the makefile adds "-g" to
> KBUILD_CFLAGS/KBUILD_AFLAGS and the test passes.
>
> However, if CONFIG_DEBUG_INFO_SPLIT is also enabled, the makefile
> adds "-gsplit-dwarf" instead which makes the test fail with $?==1
> because of objcopy trying to split the debug info:
>
> objcopy: Warning: '/dev/null' is not an ordinary file
>
> This changes the output to $(mktemp) which fixes the problem.
>
> I am pretty sure there better ways, this is just to demonstrate the bug.
>
> gcc 5.4.1, ppc64le (does not really matter).
>
> Cc: Jason Baron <jbaron@redhat.com>
Ping?
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> ---
> scripts/gcc-goto.sh | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh
> index c9469d34ecc6..ab21216ab68d 100755
> --- a/scripts/gcc-goto.sh
> +++ b/scripts/gcc-goto.sh
> @@ -2,7 +2,8 @@
> # Test for gcc 'asm goto' support
> # Copyright (C) 2010, Jason Baron <jbaron@redhat.com>
>
> -cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
> +TMPOUT=$(mktemp)
> +cat << "END" | $@ -x c - -c -o $TMPOUT >/dev/null 2>&1 && echo "y"
> int main(void)
> {
> #if defined(__arm__) || defined(__aarch64__)
> @@ -19,3 +20,5 @@ entry:
> return 0;
> }
> END
> +
> +rm $TMPOUT 2>/dev/null 2>&1
>
--
Alexey
[toc] | [next] | [standalone]
| From | Alexey Kardashevskiy <aik@ozlabs.ru> |
|---|---|
| Date | 2017-03-15 03:30 +0100 |
| Message-ID | <tl6Rj-Sv-9@gated-at.bofh.it> |
| In reply to | #1600005 |
On 14/03/17 13:54, Alexey Kardashevskiy wrote:
> On 03/03/17 11:51, Alexey Kardashevskiy wrote:
>> With just CONFIG_DEBUG_INFO=y, the makefile adds "-g" to
>> KBUILD_CFLAGS/KBUILD_AFLAGS and the test passes.
>>
>> However, if CONFIG_DEBUG_INFO_SPLIT is also enabled, the makefile
>> adds "-gsplit-dwarf" instead which makes the test fail with $?==1
>> because of objcopy trying to split the debug info:
>>
>> objcopy: Warning: '/dev/null' is not an ordinary file
>>
>> This changes the output to $(mktemp) which fixes the problem.
>>
>> I am pretty sure there better ways, this is just to demonstrate the bug.
>>
>> gcc 5.4.1, ppc64le (does not really matter).
>>
>> Cc: Jason Baron <jbaron@redhat.com>
>
>
> Ping?
I am adding more folks as Jason's mail server rejects mails with "Recipient
address rejected: Access denied ".
>
>
>
>> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
>> ---
>> scripts/gcc-goto.sh | 5 ++++-
>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh
>> index c9469d34ecc6..ab21216ab68d 100755
>> --- a/scripts/gcc-goto.sh
>> +++ b/scripts/gcc-goto.sh
>> @@ -2,7 +2,8 @@
>> # Test for gcc 'asm goto' support
>> # Copyright (C) 2010, Jason Baron <jbaron@redhat.com>
>>
>> -cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
>> +TMPOUT=$(mktemp)
>> +cat << "END" | $@ -x c - -c -o $TMPOUT >/dev/null 2>&1 && echo "y"
>> int main(void)
>> {
>> #if defined(__arm__) || defined(__aarch64__)
>> @@ -19,3 +20,5 @@ entry:
>> return 0;
>> }
>> END
>> +
>> +rm $TMPOUT 2>/dev/null 2>&1
>>
>
>
--
Alexey
[toc] | [prev] | [next] | [standalone]
| From | Alexey Kardashevskiy <aik@ozlabs.ru> |
|---|---|
| Date | 2017-03-27 04:40 +0200 |
| Message-ID | <tpsJz-Zp-1@gated-at.bofh.it> |
| In reply to | #1601002 |
On 15/03/17 13:27, Alexey Kardashevskiy wrote:
> On 14/03/17 13:54, Alexey Kardashevskiy wrote:
>> On 03/03/17 11:51, Alexey Kardashevskiy wrote:
>>> With just CONFIG_DEBUG_INFO=y, the makefile adds "-g" to
>>> KBUILD_CFLAGS/KBUILD_AFLAGS and the test passes.
>>>
>>> However, if CONFIG_DEBUG_INFO_SPLIT is also enabled, the makefile
>>> adds "-gsplit-dwarf" instead which makes the test fail with $?==1
>>> because of objcopy trying to split the debug info:
>>>
>>> objcopy: Warning: '/dev/null' is not an ordinary file
>>>
>>> This changes the output to $(mktemp) which fixes the problem.
>>>
>>> I am pretty sure there better ways, this is just to demonstrate the bug.
>>>
>>> gcc 5.4.1, ppc64le (does not really matter).
>>>
>>> Cc: Jason Baron <jbaron@redhat.com>
>>
>>
>> Ping?
>
> I am adding more folks as Jason's mail server rejects mails with "Recipient
> address rejected: Access denied ".
Anyone, ping?
>
>
>>
>>
>>
>>> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
>>> ---
>>> scripts/gcc-goto.sh | 5 ++++-
>>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh
>>> index c9469d34ecc6..ab21216ab68d 100755
>>> --- a/scripts/gcc-goto.sh
>>> +++ b/scripts/gcc-goto.sh
>>> @@ -2,7 +2,8 @@
>>> # Test for gcc 'asm goto' support
>>> # Copyright (C) 2010, Jason Baron <jbaron@redhat.com>
>>>
>>> -cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
>>> +TMPOUT=$(mktemp)
>>> +cat << "END" | $@ -x c - -c -o $TMPOUT >/dev/null 2>&1 && echo "y"
>>> int main(void)
>>> {
>>> #if defined(__arm__) || defined(__aarch64__)
>>> @@ -19,3 +20,5 @@ entry:
>>> return 0;
>>> }
>>> END
>>> +
>>> +rm $TMPOUT 2>/dev/null 2>&1
>>>
>>
>>
>
>
--
Alexey
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web