[PATCH] powerpc64le: gst-plugins-good build link error on aalib (libgstaasink.so)

  • Done
  • quality assurance status badge
Details
2 participants
  • Marcel van der Boom
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Marcel van der Boom
Severity
normal
M
M
Marcel van der Boom wrote on 11 Aug 2022 09:13
powerpc64le: gst-plugins-good build link error on aalib (libgstaasink.so)
(address . bug-guix@gnu.org)
87fsi3cko3.fsf@van-der-boom.nl
Building gst-plugins-good on powerpc64le (Talos II machine)
produces a link error related to aalib.

Commenting out the 'aalib' input makes the build succeed.

Relevant snippet from the build log below.

Toggle snippet (103 lines)
[444/851] Linking target ext/aalib/libgstaasink.so
FAILED: ext/aalib/libgstaasink.so
gcc -o ext/aalib/libgstaasink.so
ext/aalib/libgstaasink.so.p/gstaasink.c.o
ext/aalib/libgstaasink.so.p/gstaatv.c.o -Wl,--as-needed
-Wl,--no-undefined -shared -fPIC -Wl,--start-group
-Wl,-soname,libgstaasink.so -Wl,-Bsymbolic-functions
-Wl,-rpath=/gnu/store/ypfbdcb16s2mir7x51hv0jckcq8rl15b-gst-plugins-good-1.18.5/lib
/gnu/store/3zfl42ll99vhf8dg1na6vwp7iqn2439q-gst-plugins-base-1.18.5/lib/libgstvideo-1.0.so
/gnu/store/s4hh37b9z35ik9mv5vsxyfdx4pdi84py-gstreamer-1.18.5/lib/libgstbase-1.0.so
/gnu/store/s4hh37b9z35ik9mv5vsxyfdx4pdi84py-gstreamer-1.18.5/lib/libgstreamer-1.0.so
/gnu/store/3d194piqkas8gv66qa9hawa6qa115i6a-glib-2.70.2/lib/libgobject-2.0.so
/gnu/store/3d194piqkas8gv66qa9hawa6qa115i6a-glib-2.70.2/lib/libglib-2.0.so
-laa -Wl,--end-group
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aarender.o):
in function `aa_renderpalette':
(.text+0x798): undefined reference to `pow'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurses.o):(.text+0xe8):
undefined reference to `curs_set'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurses.o):(.text+0x130):
undefined reference to `wrefresh'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurses.o):(.text+0x18c):
undefined reference to `wmove'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurses.o):(.text+0x1d4):
undefined reference to `waddnstr'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurses.o):
in function `curses_init':
(.text+0x250): undefined reference to `initscr'
ld: (.text+0x27c): undefined reference to `termattrs'
ld: (.text+0x2d4): undefined reference to `intrflush'
ld: (.text+0x344): undefined reference to `wclear'
ld: (.text+0x354): undefined reference to `intrflush'
ld: (.text+0x360): undefined reference to `wrefresh'
ld: (.text+0x3a4): undefined reference to `endwin'
ld: (.text+0x46c): undefined reference to `wclear'
ld: (.text+0x47c): undefined reference to `intrflush'
ld: (.text+0x488): undefined reference to `wrefresh'
ld: (.text+0x50c): undefined reference to `endwin'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurses.o):(.toc+0x0):
undefined reference to `stdscr'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x2c):
undefined reference to `nodelay'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x70):
undefined reference to `wgetch'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x104):
undefined reference to `nodelay'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x224):
undefined reference to `initscr'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x254):
undefined reference to `cbreak'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x25c):
undefined reference to `noecho'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x264):
undefined reference to `nonl'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x27c):
undefined reference to `keypad'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x330):
undefined reference to `keypad'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x340):
undefined reference to `nodelay'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x358):
undefined reference to `nocbreak'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x360):
undefined reference to `echo'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x370):
undefined reference to `nl'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x3a8):
undefined reference to `intrflush'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x3b4):
undefined reference to `wclear'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x3c0):
undefined reference to `wrefresh'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.text+0x3dc):
undefined reference to `endwin'
ld:
/gnu/store/xq3kvsvfmbi1hlr6ilpcw8zi7ylxnvl6-aalib-1.4rc5/lib/../lib/libaa.a(aacurkbd.o):(.toc+0x0):
undefined reference to `stdscr'
collect2: error: ld returned 1 exit status
M
M
Marcel van der Boom wrote on 16 Jan 2023 12:19
[PATCH] FIX: Skip `aalib' input on target ppc64le
(address . 57134@debbugs.gnu.org)(name . Marcel van der Boom)(address . marcel@van-der-boom.nl)
83a8cd102e78b7b6aa3c36de9cb9bb16ec9d484f.1673867683.git.marcel@van-der-boom.nl
* gstreamer.scm (gst-plugins-good):
skip aalib input on ppc64le

Linker errors out for unknown reasons. The ascii art is imho not important
enough to skip the whole package from being included for ppc64le.
---
gnu/packages/gstreamer.scm | 75 ++++++++++++++++++++------------------
1 file changed, 39 insertions(+), 36 deletions(-)

Toggle diff (88 lines)
diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 916ab2e990..156ef4eda4 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -687,42 +687,45 @@ (define libsoup
python-wrapper
xorg-server-for-tests))
(inputs
- (list aalib
- bzip2
- cairo
- flac
- (librsvg-for-system)
- glib
- glib-networking
- glu
- gtk+
- jack-2
- lame
- libavc1394
- libcaca
- libdv
- libgudev
- libiec61883
- libjpeg-turbo
- libpng
- libshout
- libsoup
- libvpx
- libx11
- libxdamage
- libxfixes
- libxext
- libxshmfence
- mesa
- mpg123
- orc
- pulseaudio
- speex
- taglib
- twolame
- v4l-utils
- wavpack
- zlib))
+ (append
+ ;; linking aalib on ppc64le errors out;
+ ;; ascii isn't that important to skip the whole package for it.
+ (if (not target-ppc64le?) (list aalib) '())
+ (list bzip2
+ cairo
+ flac
+ (librsvg-for-system)
+ glib
+ glib-networking
+ glu
+ gtk+
+ jack-2
+ lame
+ libavc1394
+ libcaca
+ libdv
+ libgudev
+ libiec61883
+ libjpeg-turbo
+ libpng
+ libshout
+ libsoup
+ libvpx
+ libx11
+ libxdamage
+ libxfixes
+ libxext
+ libxshmfence
+ mesa
+ mpg123
+ orc
+ pulseaudio
+ speex
+ taglib
+ twolame
+ v4l-utils
+ wavpack
+ zlib)))
(propagated-inputs
(list gstreamer gst-plugins-base))
(synopsis "GStreamer plugins and helper libraries")
--
2.38.1
M
M
Marcel van der Boom wrote on 16 Jan 2023 14:37
control message for bug #57134
(address . control@debbugs.gnu.org)
87wn5m61nl.fsf@hsdev.com
retitle 57134 [PATCH] powerpc64le: gst-plugins-good build link error on aalib (libgstaasink.so)
quit
M
M
Marcel van der Boom wrote on 24 Apr 2023 09:51
(no subject)
(address . 57134@debbugs.gnu.org)
87sfcphft9.fsf@van-der-boom.nl
This has been resolved with the 1.22.2 update.

close
quit
M
M
Maxim Cournoyer wrote on 24 Apr 2023 14:28
(name . Marcel van der Boom)(address . marcel@van-der-boom.nl)
87pm7ttqfm.fsf@gmail.com
done
quit

Hello,

Marcel van der Boom <marcel@van-der-boom.nl> writes:

Toggle quote (5 lines)
> This has been resolved with the 1.22.2 update.
>
> close
> quit

I think to get these Debbugs control commands to work, you need to CC
control@debbugs.gnu.org and have the commands appear at the top of the
email body :-).

Otherwise, you can also reply to 57134-done@debbugs.gnu.org as a
shortcut.

--
Thanks,
Maxim
M
M
Maxim Cournoyer wrote on 24 Apr 2023 15:37
Closing (2nd attempt)
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)(address . 57134@debbugs.gnu.org)
87bkjdtn91.fsf_-_@gmail.com
close 57134
quit

2nd close attempt :-)

--
Thanks,
Maxim
M
M
Marcel van der Boom wrote on 24 Apr 2023 16:11
(no subject)
(address . 57134@debbugs.gnu.org)(name . GNU Debbugs)(address . control@debbugs.gnu.org)
87jzy1gyf5.fsf@van-der-boom.nl
reopen 57134
quit

Apologies for the noise. I had a manifest in place working around
the bug, but unfortunately the bug is still there.
M
M
Maxim Cournoyer wrote on 31 Aug 2023 06:49
Re: bug#57134: [PATCH] powerpc64le: gst-plugins-good build link error on aalib (libgstaasink.so)
(name . Marcel van der Boom)(address . marcel@van-der-boom.nl)(address . 57134@debbugs.gnu.org)
8734zz6cko.fsf_-_@gmail.com
Hi Marcel,

Marcel van der Boom <marcel@van-der-boom.nl> writes:

Toggle quote (3 lines)
> * gstreamer.scm (gst-plugins-good):
> skip aalib input on ppc64le

I managed to find the root issue in aalib and sent a patch fixing it in

--
Thanks,
Maxim
M
?