View previous topic :: View next topic |
Author |
Message |
guru meditation Apprentice
Joined: 18 Mar 2018 Posts: 150 Location: Planet Earth
|
Posted: Mon Oct 28, 2024 5:46 pm Post subject: MPV/meson error: cplugins not supported by the os or compile |
|
|
mpv fails to compile with the ebuild for 0.38/0.39:
meson.build:353:34: ERROR: Feature cplugins cannot be enabled: cplugins not supported by the os or compiler!
Code: | Compiler for C supports arguments -Wno-pointer-sign: YES
Compiler for C supports arguments -Wformat -Werror=format-security: YES
Compiler for C supports link arguments -Wl,-z,noexecstack: NO
Compiler for C supports link arguments -Wl,--nxcompat,--no-seh,--dynamicbase: NO
Run-time dependency dl found: YES
Library atomic found: YES
Compiler for C supports link arguments -rdynamic: NO
meson.build:353:34: ERROR: Feature cplugins cannot be enabled: cplugins not supported by the os or compiler! |
meson-log.txt says:
Code: | Command line: `x86_64-pc-linux-gnu-gcc /var/tmp/portage/media-video/mpv-0.39.0/work/mpv-0.39.0-build/meson-private/tmppv6kmnb6/testfile.c -o /var/tmp/portage/media-video/mpv-0.39.0/work/mpv-0.39.0-build/meson-private/tmppv6kmnb6/output.exe -DNDEBUG -D_FILE_OFFSET_BITS=64 -O0 -Wl,--fatal-warnings -rdynamic -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs` -> 1
stderr:
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: warning: -z pack-relative-relocs ignored
collect2: error: ld returned 1 exit status
-----------
Compiler for C supports link arguments -rdynamic: NO
meson.build:353:34: ERROR: Feature cplugins cannot be enabled: cplugins not supported by the os or compiler!
More info: Build started at 2024-10-28T18:25:52.282964
Main binary: /usr/bin/python3.12
Build Options: -Db_lto=false -Db_pch=false -Dwerror=false -Dbuildtype=plain -Dcplayer=true -Dlibmpv=true -Dtests=false -Dhtml-build=enabled -Dmanpage-build=enabled -Dpdf-build=disabled -Dbuild-date=false -Dlibarchive=disabled -Dlibbluray=disabled -Dcdda=disabled -Dcplugins=enabled -Ddvbin=disabled -Ddvdnav=disabled -Dsdl2-gamepad=disabled -Diconv=enabled -Djavascript=disabled -Dlibavdevice=enabled -Dlcms2=disabled -Dlua=luajit -Drubberband=disabled -Dsdl2=disabled -Duchardet=enabled -Dvapoursynth=disabled -Dzimg=disabled -Dzlib=enabled -Dalsa=enabled -Dcoreaudio=disabled -Djack=disabled -Dopenal=disabled -Dpipewire=disabled -Dpulse=disabled -Dsdl2-audio=disabled -Dsndio=disabled -Dx11=enabled -Dcocoa=disabled -Ddrm=enabled -Djpeg=disabled -Dcaca=disabled -Dsdl2-video=disabled -Dsixel=disabled -Dwayland=disabled -Dxv=disabled -Dgl=enabled -Degl=enabled -Degl-x11=enabled -Dgbm=enabled -Degl-drm=enabled -Degl-wayland=disabled -Dplain-gl=enabled -Dgl-x11=disabled -Dgl-cocoa=disabled -Dvulkan=disabled -Dcuda-hwaccel=disabled -Dcuda-interop=disabled -Dvaapi=disabled -Dvaapi-x11=disabled -Dvaapi-drm=disabled -Dvaapi-wayland=disabled -Dvdpau=disabled -Dvdpau-gl-x11=disabled -Dvideotoolbox-gl=disabled -Dprefix=/usr -Dlibdir=lib64 -Dlocalstatedir=/var/lib -Dsysconfdir=/etc -Dwrap_mode=nodownload -Dbuild.pkg_config_path=/var/tmp/portage/media-video/mpv-0.39.0/temp/python3.12/pkgconfig:/var/tmp/portage/media-video/mpv-0.39.0/temp/luajit/pkgconfig:/usr/share/pkgconfig -Dpkg_config_path=/var/tmp/portage/media-video/mpv-0.39.0/temp/python3.12/pkgconfig:/var/tmp/portage/media-video/mpv-0.39.0/temp/luajit/pkgconfig:/usr/share/pkgconfig --native-file=/var/tmp/portage/media-video/mpv-0.39.0/temp/meson.x86_64-pc-linux-gnu.amd64.ini
Python system: Linux
The Meson build system
Version: 1.5.2
Source dir: /var/tmp/portage/media-video/mpv-0.39.0/work/mpv-0.39.0
Build dir: /var/tmp/portage/media-video/mpv-0.39.0/work/mpv-0.39.0-build
Build type: native build
Project name: mpv
Project version: 0.39.0
-----------
Detecting compiler via: `x86_64-pc-linux-gnu-gcc --version` -> 0
stdout:
x86_64-pc-linux-gnu-gcc (Gentoo Hardened 12.4.0 p1) 12.4.0 |
Fetching the mpv source code from Github and compiling via:
meson setup build && meson compile -C build && DESTDIR=/tmp/test meson install -C build
works fine. |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1769 Location: South America
|
Posted: Mon Oct 28, 2024 8:44 pm Post subject: Re: MPV/meson error |
|
|
guru meditation wrote: | meson-log.txt says:
Code: | Command line: `x86_64-pc-linux-gnu-gcc /var/tmp/portage/media-video/mpv-0.39.0/work/mpv-0.39.0-build/meson-private/tmppv6kmnb6/testfile.c -o /var/tmp/portage/media-video/mpv-0.39.0/work/mpv-0.39.0-build/meson-private/tmppv6kmnb6/output.exe -DNDEBUG -D_FILE_OFFSET_BITS=64 -O0 -Wl,--fatal-warnings -rdynamic -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs` -> 1
stderr:
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: warning: -z pack-relative-relocs ignored
collect2: error: ld returned 1 exit status |
|
I'd say compare with the results of the -rdynamic test in the meson-log.txt file from your manual build.
The linker currently selected by your eselect binutils is ignoring the -Wl,-z,pack-relative-relocs option from the 23.0 amd64 profile for the build requested by this test, and telling you. I don't know if this is supposed to happen or not, but it is only a warning. The problem is, a -Wl,--fatal-warnings option is also passed somehow; I don't know where this is coming from —certainly not the profile; maybe it's the build system, maybe not—, but turns the warning into a fatal error, so the Meson test fails. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2027
|
Posted: Tue Oct 29, 2024 3:07 pm Post subject: |
|
|
Old binutils is likely selected. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2882
|
Posted: Tue Oct 29, 2024 3:25 pm Post subject: |
|
|
Using meson directly will work regardless because (by default) it'll disable cplugins support if the test failed while the ebuild expect that test to actually pass and force enables it to be sure. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|