* [Buildroot] [PATCH 1/1] package/pipewire: link examples with -latomic
@ 2022-01-26 20:29 Fabrice Fontaine
2022-01-26 22:16 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-01-26 20:29 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fabrice Fontaine
Link examples with -latomic to avoid the following build failure raised
since commit 3edc1cc44c7bd2deed31d28fa9534e67f32334e8:
FAILED: spa/examples/adapter-control
/home/buildroot/autobuild/instance-0/output-1/host/bin/sparc-linux-gcc -o spa/examples/adapter-control spa/examples/adapter-control.p/adapter-control.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group -lintl -ldl -pthread -lm -Wl,--end-group
/home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: spa/examples/adapter-control.p/adapter-control.c.o: in function `spa_graph_node_trigger':
adapter-control.c:(.text+0xdf4): undefined reference to `__atomic_fetch_sub_4'
Fixes:
- http://autobuild.buildroot.org/results/192f40a5c6e05fc11507494e19db52a47082fc35
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...eson.build-add-atomic_dep-dependency.patch | 40 +++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 package/pipewire/0001-spa-meson.build-add-atomic_dep-dependency.patch
diff --git a/package/pipewire/0001-spa-meson.build-add-atomic_dep-dependency.patch b/package/pipewire/0001-spa-meson.build-add-atomic_dep-dependency.patch
new file mode 100644
index 0000000000..b91adbe7e4
--- /dev/null
+++ b/package/pipewire/0001-spa-meson.build-add-atomic_dep-dependency.patch
@@ -0,0 +1,40 @@
+From 8d9dc023ac12cf305c28786891d5b15e13f29a3d Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 25 Jan 2022 17:22:02 +0100
+Subject: [PATCH] spa/meson.build: add atomic_dep dependency
+
+Commit fa64d93e64592d5edd8767f722cf4ea093641052 moved the atomic_dep
+from pipewire-jack to pipewire_dep however atomic_dep should also be
+added to spa_dev to avoid the following build failure when building
+examples (which don't depend on pipewire_dep):
+
+FAILED: spa/examples/adapter-control
+/home/buildroot/autobuild/instance-0/output-1/host/bin/sparc-linux-gcc -o spa/examples/adapter-control spa/examples/adapter-control.p/adapter-control.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group -lintl -ldl -pthread -lm -Wl,--end-group
+/home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: spa/examples/adapter-control.p/adapter-control.c.o: in function `spa_graph_node_trigger':
+adapter-control.c:(.text+0xdf4): undefined reference to `__atomic_fetch_sub_4'
+
+Fixes:
+ - http://autobuild.buildroot.org/results/192f40a5c6e05fc11507494e19db52a47082fc35
+
+[Retrieved from:
+https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/8d9dc023ac12cf305c28786891d5b15e13f29a3d]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ spa/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/spa/meson.build b/spa/meson.build
+index 4ad37cdb4..2404748df 100644
+--- a/spa/meson.build
++++ b/spa/meson.build
+@@ -9,6 +9,7 @@ spa_dep = declare_dependency(
+ include_directories : [
+ include_directories('include'),
+ ],
++ dependencies : [atomic_dep],
+ version : spaversion,
+ variables : {
+ 'plugindir' : meson.current_build_dir() / 'plugins',
+--
+GitLab
+
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/pipewire: link examples with -latomic
2022-01-26 20:29 [Buildroot] [PATCH 1/1] package/pipewire: link examples with -latomic Fabrice Fontaine
@ 2022-01-26 22:16 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-01-26 22:16 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: James Hilliard, buildroot
On Wed, 26 Jan 2022 21:29:42 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Link examples with -latomic to avoid the following build failure raised
> since commit 3edc1cc44c7bd2deed31d28fa9534e67f32334e8:
>
> FAILED: spa/examples/adapter-control
> /home/buildroot/autobuild/instance-0/output-1/host/bin/sparc-linux-gcc -o spa/examples/adapter-control spa/examples/adapter-control.p/adapter-control.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group -lintl -ldl -pthread -lm -Wl,--end-group
> /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: spa/examples/adapter-control.p/adapter-control.c.o: in function `spa_graph_node_trigger':
> adapter-control.c:(.text+0xdf4): undefined reference to `__atomic_fetch_sub_4'
>
> Fixes:
> - http://autobuild.buildroot.org/results/192f40a5c6e05fc11507494e19db52a47082fc35
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...eson.build-add-atomic_dep-dependency.patch | 40 +++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 package/pipewire/0001-spa-meson.build-add-atomic_dep-dependency.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-26 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-26 20:29 [Buildroot] [PATCH 1/1] package/pipewire: link examples with -latomic Fabrice Fontaine
2022-01-26 22:16 ` Thomas Petazzoni
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.