All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] fio: disable compiler optimizations
@ 2018-08-20  9:41 mingli.yu
  2018-08-21  7:19 ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: mingli.yu @ 2018-08-20  9:41 UTC (permalink / raw)
  To: openembedded-devel

From: Mingli Yu <Mingli.Yu@windriver.com>

Add parameter "--disable-optimizations" to
configure script to disable compiler optimizations
to fix below issue:
$ gdb /usr/bin/fio
(gdb) r -h
Starting program: /usr/bin/fio -h
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
61	index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
(gdb) bt
 #0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
 #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,
    argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
    at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
 #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
    argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
    at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264
 #3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
---
 meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-benchmark/fio/fio_3.7.bb b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
index 410e27b..9bec2df 100644
--- a/meta-oe/recipes-benchmark/fio/fio_3.7.bb
+++ b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
@@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
 DISABLE_STATIC = ""
 
 EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
+EXTRA_OECONF = "--disable-optimizations"
 
 do_configure() {
     ./configure ${EXTRA_OECONF}
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] fio: disable compiler optimizations
  2018-08-20  9:41 [meta-oe][PATCH] fio: disable compiler optimizations mingli.yu
@ 2018-08-21  7:19 ` Khem Raj
  2018-08-21  7:19   ` Yu, Mingli
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2018-08-21  7:19 UTC (permalink / raw)
  To: Mingli Yu; +Cc: openembeded-devel

On Mon, Aug 20, 2018 at 2:42 AM <mingli.yu@windriver.com> wrote:
>
> From: Mingli Yu <Mingli.Yu@windriver.com>
>
> Add parameter "--disable-optimizations" to
> configure script to disable compiler optimizations
> to fix below issue:
> $ gdb /usr/bin/fio
> (gdb) r -h
> Starting program: /usr/bin/fio -h
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
>
> Program received signal SIGILL, Illegal instruction.
> 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
> 61      index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
> (gdb) bt
>  #0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
>  #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,
>     argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
>     at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
>  #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
>     argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
>     fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
>     at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264
>  #3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120
>

Please check if you see this issue on master branch
secondly, while you are here please upgrade to 3.8 release and see
if this fixes the issue you are seeing.

> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
> ---
>  meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-benchmark/fio/fio_3.7.bb b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
> index 410e27b..9bec2df 100644
> --- a/meta-oe/recipes-benchmark/fio/fio_3.7.bb
> +++ b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
> @@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
>  DISABLE_STATIC = ""
>
>  EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
> +EXTRA_OECONF = "--disable-optimizations"
>
>  do_configure() {
>      ./configure ${EXTRA_OECONF}
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] fio: disable compiler optimizations
  2018-08-21  7:19 ` Khem Raj
@ 2018-08-21  7:19   ` Yu, Mingli
  2018-08-21  7:24     ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Yu, Mingli @ 2018-08-21  7:19 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel



On 2018年08月21日 15:19, Khem Raj wrote:
> On Mon, Aug 20, 2018 at 2:42 AM <mingli.yu@windriver.com> wrote:
>>
>> From: Mingli Yu <Mingli.Yu@windriver.com>
>>
>> Add parameter "--disable-optimizations" to
>> configure script to disable compiler optimizations
>> to fix below issue:
>> $ gdb /usr/bin/fio
>> (gdb) r -h
>> Starting program: /usr/bin/fio -h
>> [Thread debugging using libthread_db enabled]
>> Using host libthread_db library "/lib64/libthread_db.so.1".
>>
>> Program received signal SIGILL, Illegal instruction.
>> 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
>> 61      index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
>> (gdb) bt
>>   #0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
>>   #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,
>>      argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
>>      at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
>>   #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
>>      argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
>>      fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
>>      at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264
>>   #3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120
>>
>
> Please check if you see this issue on master branch
> secondly, while you are here please upgrade to 3.8 release and see
> if this fixes the issue you are seeing.

Yes, this issue exists in master, and even upgrade to 3.8, the issue 
still exist.

Thanks,

>
>> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
>> ---
>>   meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-oe/recipes-benchmark/fio/fio_3.7.bb b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
>> index 410e27b..9bec2df 100644
>> --- a/meta-oe/recipes-benchmark/fio/fio_3.7.bb
>> +++ b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
>> @@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
>>   DISABLE_STATIC = ""
>>
>>   EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
>> +EXTRA_OECONF = "--disable-optimizations"
>>
>>   do_configure() {
>>       ./configure ${EXTRA_OECONF}
>> --
>> 2.7.4
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] fio: disable compiler optimizations
  2018-08-21  7:19   ` Yu, Mingli
@ 2018-08-21  7:24     ` Khem Raj
  2018-08-21  7:25       ` Yu, Mingli
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2018-08-21  7:24 UTC (permalink / raw)
  To: Mingli Yu; +Cc: openembeded-devel

On Tue, Aug 21, 2018 at 12:21 AM Yu, Mingli <mingli.yu@windriver.com> wrote:
>
>
>
> On 2018年08月21日 15:19, Khem Raj wrote:
> > On Mon, Aug 20, 2018 at 2:42 AM <mingli.yu@windriver.com> wrote:
> >>
> >> From: Mingli Yu <Mingli.Yu@windriver.com>
> >>
> >> Add parameter "--disable-optimizations" to
> >> configure script to disable compiler optimizations
> >> to fix below issue:
> >> $ gdb /usr/bin/fio
> >> (gdb) r -h
> >> Starting program: /usr/bin/fio -h
> >> [Thread debugging using libthread_db enabled]
> >> Using host libthread_db library "/lib64/libthread_db.so.1".
> >>
> >> Program received signal SIGILL, Illegal instruction.
> >> 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
> >> 61      index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
> >> (gdb) bt
> >>   #0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
> >>   #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,
> >>      argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
> >>      at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
> >>   #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
> >>      argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
> >>      fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
> >>      at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264
> >>   #3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120
> >>
> >
> > Please check if you see this issue on master branch
> > secondly, while you are here please upgrade to 3.8 release and see
> > if this fixes the issue you are seeing.
>
> Yes, this issue exists in master, and even upgrade to 3.8, the issue
> still exist.
>

OK. lets update regardless.

> Thanks,
>
> >
> >> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
> >> ---
> >>   meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
> >>   1 file changed, 1 insertion(+)
> >>
> >> diff --git a/meta-oe/recipes-benchmark/fio/fio_3.7.bb b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
> >> index 410e27b..9bec2df 100644
> >> --- a/meta-oe/recipes-benchmark/fio/fio_3.7.bb
> >> +++ b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
> >> @@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
> >>   DISABLE_STATIC = ""
> >>
> >>   EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
> >> +EXTRA_OECONF = "--disable-optimizations"
> >>
> >>   do_configure() {
> >>       ./configure ${EXTRA_OECONF}
> >> --
> >> 2.7.4
> >>
> >> --
> >> _______________________________________________
> >> Openembedded-devel mailing list
> >> Openembedded-devel@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] fio: disable compiler optimizations
  2018-08-21  7:24     ` Khem Raj
@ 2018-08-21  7:25       ` Yu, Mingli
  0 siblings, 0 replies; 5+ messages in thread
From: Yu, Mingli @ 2018-08-21  7:25 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel



On 2018年08月21日 15:24, Khem Raj wrote:
> On Tue, Aug 21, 2018 at 12:21 AM Yu, Mingli <mingli.yu@windriver.com> wrote:
>>
>>
>>
>> On 2018年08月21日 15:19, Khem Raj wrote:
>>> On Mon, Aug 20, 2018 at 2:42 AM <mingli.yu@windriver.com> wrote:
>>>>
>>>> From: Mingli Yu <Mingli.Yu@windriver.com>
>>>>
>>>> Add parameter "--disable-optimizations" to
>>>> configure script to disable compiler optimizations
>>>> to fix below issue:
>>>> $ gdb /usr/bin/fio
>>>> (gdb) r -h
>>>> Starting program: /usr/bin/fio -h
>>>> [Thread debugging using libthread_db enabled]
>>>> Using host libthread_db library "/lib64/libthread_db.so.1".
>>>>
>>>> Program received signal SIGILL, Illegal instruction.
>>>> 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
>>>> 61      index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
>>>> (gdb) bt
>>>>    #0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
>>>>    #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,
>>>>       argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
>>>>       at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
>>>>    #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
>>>>       argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
>>>>       fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
>>>>       at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264
>>>>    #3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120
>>>>
>>>
>>> Please check if you see this issue on master branch
>>> secondly, while you are here please upgrade to 3.8 release and see
>>> if this fixes the issue you are seeing.
>>
>> Yes, this issue exists in master, and even upgrade to 3.8, the issue
>> still exist.
>>
>
> OK. lets update regardless.

Okay, I will send v2 to include the upgrade patch.

Thanks,

>
>> Thanks,
>>
>>>
>>>> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
>>>> ---
>>>>    meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
>>>>    1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/meta-oe/recipes-benchmark/fio/fio_3.7.bb b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
>>>> index 410e27b..9bec2df 100644
>>>> --- a/meta-oe/recipes-benchmark/fio/fio_3.7.bb
>>>> +++ b/meta-oe/recipes-benchmark/fio/fio_3.7.bb
>>>> @@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
>>>>    DISABLE_STATIC = ""
>>>>
>>>>    EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
>>>> +EXTRA_OECONF = "--disable-optimizations"
>>>>
>>>>    do_configure() {
>>>>        ./configure ${EXTRA_OECONF}
>>>> --
>>>> 2.7.4
>>>>
>>>> --
>>>> _______________________________________________
>>>> Openembedded-devel mailing list
>>>> Openembedded-devel@lists.openembedded.org
>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-21  7:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-20  9:41 [meta-oe][PATCH] fio: disable compiler optimizations mingli.yu
2018-08-21  7:19 ` Khem Raj
2018-08-21  7:19   ` Yu, Mingli
2018-08-21  7:24     ` Khem Raj
2018-08-21  7:25       ` Yu, Mingli

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.