* [Buildroot] [PATCH] fxload: do not pass -g on Microblaze
@ 2017-05-15 20:01 Thomas Petazzoni
2017-05-16 5:38 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-15 20:01 UTC (permalink / raw)
To: buildroot
gcc on Microblaze is affected by PR63261, which causes a build failure
when optimization *and* debugging symbols are enabled. As a
work-around, do not build fxload with debugging symbols.
Fixes:
http://autobuild.buildroot.net/results/24640a042d84f45339246c0a18e10905494b2199/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
A possible alternate solution is to disable fxload on Microblaze
entirely. If you prefer this option, let me know, and I'll send a
different patch.
---
package/fxload/fxload.mk | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/package/fxload/fxload.mk b/package/fxload/fxload.mk
index 94b11d0..04adbad 100644
--- a/package/fxload/fxload.mk
+++ b/package/fxload/fxload.mk
@@ -9,8 +9,18 @@ FXLOAD_SITE = http://downloads.sourceforge.net/project/linux-hotplug/fxload/$(FX
FXLOAD_LICENSE = GPL-2.0+
FXLOAD_LICENSE_FILES = COPYING
+# Gcc on Microblaze is affected by PR63261, which causes a build
+# failure when -g is passed.
+ifeq ($(BR2_microblaze),y)
+FXLOAD_CFLAGS = $(filter-out $(TARGET_DEBUGGING),$(TARGET_CFLAGS))
+else
+FXLOAD_CFLAGS = $(TARGET_CFLAGS)
+endif
+
define FXLOAD_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(FXLOAD_CFLAGS)" \
+ -C $(@D) all
endef
define FXLOAD_INSTALL_TARGET_CMDS
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] fxload: do not pass -g on Microblaze
2017-05-15 20:01 [Buildroot] [PATCH] fxload: do not pass -g on Microblaze Thomas Petazzoni
@ 2017-05-16 5:38 ` Peter Korsgaard
2017-05-16 6:55 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2017-05-16 5:38 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> gcc on Microblaze is affected by PR63261, which causes a build failure
> when optimization *and* debugging symbols are enabled. As a
> work-around, do not build fxload with debugging symbols.
> Fixes:
> http://autobuild.buildroot.net/results/24640a042d84f45339246c0a18e10905494b2199/
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> A possible alternate solution is to disable fxload on Microblaze
> entirely. If you prefer this option, let me know, and I'll send a
> different patch.
I wouldn't mind just disabling fxload. I personally haven't seen any hw
with the cypress 8051's needing fxload in the last 10 years or so, and
there are no reverse dependencies.
I see that the bug is very old :/ I wonder why we don't have a lot of
other fallout from it - Is fxload really the only package passing -g or
is the fxload source code so special that the bug only triggers there?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] fxload: do not pass -g on Microblaze
2017-05-16 5:38 ` Peter Korsgaard
@ 2017-05-16 6:55 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-16 6:55 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 16 May 2017 07:38:36 +0200, Peter Korsgaard wrote:
> > A possible alternate solution is to disable fxload on Microblaze
> > entirely. If you prefer this option, let me know, and I'll send a
> > different patch.
>
> I wouldn't mind just disabling fxload. I personally haven't seen any hw
> with the cypress 8051's needing fxload in the last 10 years or so, and
> there are no reverse dependencies.
OK, I'll send a patch disabling fxload entirely then.
> I see that the bug is very old :/ I wonder why we don't have a lot of
> other fallout from it - Is fxload really the only package passing -g or
> is the fxload source code so special that the bug only triggers there?
We don't seem to see it with other packages, so there must be something
special in fxload's code that triggers the bug. But I must say I
haven't looked too deeply, fixing Microblaze gcc issues is not really my
top priority.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-16 6:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-15 20:01 [Buildroot] [PATCH] fxload: do not pass -g on Microblaze Thomas Petazzoni
2017-05-16 5:38 ` Peter Korsgaard
2017-05-16 6:55 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox