* [meta-networking][PATCH] kea: replace -Og with -O
@ 2019-06-10 7:13 mingli.yu
2019-06-10 13:35 ` Adrian Bunk
0 siblings, 1 reply; 4+ messages in thread
From: mingli.yu @ 2019-06-10 7:13 UTC (permalink / raw)
To: raj.khem, openembedded-devel
From: Mingli Yu <mingli.yu@windriver.com>
With below logic in local.conf:
MACHINE ??= "qemumips64"
MULTILIB_GLOBAL_VARIANTS_append = " libn32"
MULTILIBS ?= "multilib:lib32 multilib:libn32"
DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
require conf/multilib.conf
DEBUG_BUILD = "1"
$ bitbake lib32-kea
[snip]
{standard input}: Assembler messages:
{standard input}:305030: Error: branch out of range
{standard input}:305041: Error: branch out of range
{standard input}:305432: Error: branch out of range
{standard input}:305443: Error: branch out of range
Makefile:707: recipe for target 'dhcp4_parser.lo' failed
make[6]: *** [dhcp4_parser.lo] Error 1
[snip]
When DEBUG_BUILD enabled, -Og pass to compiler,
replace -Og with -O to fix the above compile error.
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
meta-networking/recipes-connectivity/kea/kea_1.5.0.bb | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meta-networking/recipes-connectivity/kea/kea_1.5.0.bb b/meta-networking/recipes-connectivity/kea/kea_1.5.0.bb
index 9210ac1bc..fb166df60 100644
--- a/meta-networking/recipes-connectivity/kea/kea_1.5.0.bb
+++ b/meta-networking/recipes-connectivity/kea/kea_1.5.0.bb
@@ -23,6 +23,16 @@ inherit autotools systemd
SYSTEMD_SERVICE_${PN} = "kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service"
SYSTEMD_AUTO_ENABLE = "disable"
+DEBUG_OPTIMIZATION_remove_mips = " -Og"
+DEBUG_OPTIMIZATION_append_mips = " -O"
+BUILD_OPTIMIZATION_remove_mips = " -Og"
+BUILD_OPTIMIZATION_append_mips = " -O"
+
+DEBUG_OPTIMIZATION_remove_mipsel = " -Og"
+DEBUG_OPTIMIZATION_append_mipsel = " -O"
+BUILD_OPTIMIZATION_remove_mipsel = " -Og"
+BUILD_OPTIMIZATION_append_mipsel = " -O"
+
do_configure_prepend_class-target() {
mkdir -p ${B}/src/lib/log/compiler/
ln -sf ${STAGING_BINDIR_NATIVE}/kea-msg-compiler ${B}/src/lib/log/compiler/kea-msg-compiler
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-networking][PATCH] kea: replace -Og with -O
2019-06-10 7:13 [meta-networking][PATCH] kea: replace -Og with -O mingli.yu
@ 2019-06-10 13:35 ` Adrian Bunk
2019-06-11 2:50 ` Yu, Mingli
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2019-06-10 13:35 UTC (permalink / raw)
To: mingli.yu; +Cc: openembedded-devel
On Mon, Jun 10, 2019 at 12:13:10AM -0700, mingli.yu@windriver.com wrote:
> From: Mingli Yu <mingli.yu@windriver.com>
>
> With below logic in local.conf:
> MACHINE ??= "qemumips64"
> MULTILIB_GLOBAL_VARIANTS_append = " libn32"
> MULTILIBS ?= "multilib:lib32 multilib:libn32"
> DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
> DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
> require conf/multilib.conf
> DEBUG_BUILD = "1"
> $ bitbake lib32-kea
> [snip]
> {standard input}: Assembler messages:
> {standard input}:305030: Error: branch out of range
> {standard input}:305041: Error: branch out of range
> {standard input}:305432: Error: branch out of range
> {standard input}:305443: Error: branch out of range
> Makefile:707: recipe for target 'dhcp4_parser.lo' failed
> make[6]: *** [dhcp4_parser.lo] Error 1
> [snip]
>
> When DEBUG_BUILD enabled, -Og pass to compiler,
> replace -Og with -O to fix the above compile error.
>...
This sounds like a toolchain bug in gcc or binutils that should
be fixed there.
I've opened #13387 in bugzilla so that this doesn't get lost.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-networking][PATCH] kea: replace -Og with -O
2019-06-10 13:35 ` Adrian Bunk
@ 2019-06-11 2:50 ` Yu, Mingli
2019-06-11 21:02 ` Adrian Bunk
0 siblings, 1 reply; 4+ messages in thread
From: Yu, Mingli @ 2019-06-11 2:50 UTC (permalink / raw)
To: Adrian Bunk; +Cc: openembedded-devel
On 2019年06月10日 21:35, Adrian Bunk wrote:
> On Mon, Jun 10, 2019 at 12:13:10AM -0700, mingli.yu@windriver.com wrote:
>> From: Mingli Yu <mingli.yu@windriver.com>
>>
>> With below logic in local.conf:
>> MACHINE ??= "qemumips64"
>> MULTILIB_GLOBAL_VARIANTS_append = " libn32"
>> MULTILIBS ?= "multilib:lib32 multilib:libn32"
>> DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
>> DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
>> require conf/multilib.conf
>> DEBUG_BUILD = "1"
>> $ bitbake lib32-kea
>> [snip]
>> {standard input}: Assembler messages:
>> {standard input}:305030: Error: branch out of range
>> {standard input}:305041: Error: branch out of range
>> {standard input}:305432: Error: branch out of range
>> {standard input}:305443: Error: branch out of range
>> Makefile:707: recipe for target 'dhcp4_parser.lo' failed
>> make[6]: *** [dhcp4_parser.lo] Error 1
>> [snip]
>>
>> When DEBUG_BUILD enabled, -Og pass to compiler,
>> replace -Og with -O to fix the above compile error.
>> ...
>
> This sounds like a toolchain bug in gcc or binutils that should
> be fixed there.
>
> I've opened #13387 in bugzilla so that this doesn't get lost.
Could you help to post the link here about the issue you opened?
Thanks,
>
> cu
> Adrian
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-networking][PATCH] kea: replace -Og with -O
2019-06-11 2:50 ` Yu, Mingli
@ 2019-06-11 21:02 ` Adrian Bunk
0 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2019-06-11 21:02 UTC (permalink / raw)
To: Yu, Mingli; +Cc: openembedded-devel
On Tue, Jun 11, 2019 at 10:50:31AM +0800, Yu, Mingli wrote:
>
>
> On 2019年06月10日 21:35, Adrian Bunk wrote:
> > On Mon, Jun 10, 2019 at 12:13:10AM -0700, mingli.yu@windriver.com wrote:
> > > From: Mingli Yu <mingli.yu@windriver.com>
> > >
> > > With below logic in local.conf:
> > > MACHINE ??= "qemumips64"
> > > MULTILIB_GLOBAL_VARIANTS_append = " libn32"
> > > MULTILIBS ?= "multilib:lib32 multilib:libn32"
> > > DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
> > > DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
> > > require conf/multilib.conf
> > > DEBUG_BUILD = "1"
> > > $ bitbake lib32-kea
> > > [snip]
> > > {standard input}: Assembler messages:
> > > {standard input}:305030: Error: branch out of range
> > > {standard input}:305041: Error: branch out of range
> > > {standard input}:305432: Error: branch out of range
> > > {standard input}:305443: Error: branch out of range
> > > Makefile:707: recipe for target 'dhcp4_parser.lo' failed
> > > make[6]: *** [dhcp4_parser.lo] Error 1
> > > [snip]
> > >
> > > When DEBUG_BUILD enabled, -Og pass to compiler,
> > > replace -Og with -O to fix the above compile error.
> > > ...
> >
> > This sounds like a toolchain bug in gcc or binutils that should
> > be fixed there.
> >
> > I've opened #13387 in bugzilla so that this doesn't get lost.
>
> Could you help to post the link here about the issue you opened?
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13387
> Thanks,
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-06-11 21:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-10 7:13 [meta-networking][PATCH] kea: replace -Og with -O mingli.yu
2019-06-10 13:35 ` Adrian Bunk
2019-06-11 2:50 ` Yu, Mingli
2019-06-11 21:02 ` Adrian Bunk
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.