* [Buildroot] [PATCH] package/kf5/kf5-kcoreaddons: don't treat ld warnings as errors
@ 2019-12-18 16:19 Giulio Benetti
2019-12-18 22:23 ` Thomas Petazzoni
2019-12-23 22:14 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Giulio Benetti @ 2019-12-18 16:19 UTC (permalink / raw)
To: buildroot
Microblaze ld emits warnings like:
'
FDE encoding in
CMakeFiles/KF5CoreAddons.dir/KF5CoreAddons_autogen/mocs_compilation.cpp.o(.eh_frame)
prevents .eh_frame_hdr table being created
'
Since '-Wl,--fatal-warnings' is passed by default, build fails, so don't
treat warnings as errors by appending "-Wl,--no-fatal-warnings" to
CMAKE_SHARED_LINKER_FLAGS that is previously defined in package
dependency kf5-extra-cmake-modules.
Fixes:
http://autobuild.buildroot.net/results/f19/f198c86930535c50393e17fc7a70fb4f27b096ee/
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk b/package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk
index 164bad1225..5b3e9acd90 100644
--- a/package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk
+++ b/package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk
@@ -21,4 +21,9 @@ endif
KF5_KCOREADDONS_CONF_OPTS = -DCMAKE_CXX_FLAGS="$(KF5_KCOREADDONS_CXXFLAGS)"
+ifeq ($(BR2_microblaze),y)
+# Microblaze ld emits warnings, make warnings not to be treated as errors
+KF5_KCOREADDONS_CONF_OPTS = -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-fatal-warnings"
+endif
+
$(eval $(cmake-package))
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/kf5/kf5-kcoreaddons: don't treat ld warnings as errors
2019-12-18 16:19 [Buildroot] [PATCH] package/kf5/kf5-kcoreaddons: don't treat ld warnings as errors Giulio Benetti
@ 2019-12-18 22:23 ` Thomas Petazzoni
2019-12-23 22:14 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-12-18 22:23 UTC (permalink / raw)
To: buildroot
On Wed, 18 Dec 2019 17:19:57 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:
> Microblaze ld emits warnings like:
> '
> FDE encoding in
> CMakeFiles/KF5CoreAddons.dir/KF5CoreAddons_autogen/mocs_compilation.cpp.o(.eh_frame)
> prevents .eh_frame_hdr table being created
> '
> Since '-Wl,--fatal-warnings' is passed by default, build fails, so don't
> treat warnings as errors by appending "-Wl,--no-fatal-warnings" to
> CMAKE_SHARED_LINKER_FLAGS that is previously defined in package
> dependency kf5-extra-cmake-modules.
>
> Fixes:
> http://autobuild.buildroot.net/results/f19/f198c86930535c50393e17fc7a70fb4f27b096ee/
>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk | 5 +++++
> 1 file changed, 5 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/kf5/kf5-kcoreaddons: don't treat ld warnings as errors
2019-12-18 16:19 [Buildroot] [PATCH] package/kf5/kf5-kcoreaddons: don't treat ld warnings as errors Giulio Benetti
2019-12-18 22:23 ` Thomas Petazzoni
@ 2019-12-23 22:14 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-12-23 22:14 UTC (permalink / raw)
To: buildroot
>>>>> "Giulio" == Giulio Benetti <giulio.benetti@benettiengineering.com> writes:
> Microblaze ld emits warnings like:
> '
> FDE encoding in
> CMakeFiles/KF5CoreAddons.dir/KF5CoreAddons_autogen/mocs_compilation.cpp.o(.eh_frame)
> prevents .eh_frame_hdr table being created
> '
> Since '-Wl,--fatal-warnings' is passed by default, build fails, so don't
> treat warnings as errors by appending "-Wl,--no-fatal-warnings" to
> CMAKE_SHARED_LINKER_FLAGS that is previously defined in package
> dependency kf5-extra-cmake-modules.
> Fixes:
> http://autobuild.buildroot.net/results/f19/f198c86930535c50393e17fc7a70fb4f27b096ee/
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Committed to 2019.02.x and 2019.11.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-12-23 22:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-18 16:19 [Buildroot] [PATCH] package/kf5/kf5-kcoreaddons: don't treat ld warnings as errors Giulio Benetti
2019-12-18 22:23 ` Thomas Petazzoni
2019-12-23 22:14 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox