mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.84k stars 2.87k forks source link

Build (linking) issue with 0.37.0 #12970

Closed heitbaum closed 9 months ago

heitbaum commented 9 months ago

mpv version and platform versions

If you're not using git master or the latest release, update. Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

Describe the reproduction steps as precise as possible. It's very likely that the bug you experience wasn't reproduced by the developer because the workflow differs from your own.

compile 0.37.0 in LibreELEC build host

Expected behavior

Successful compile

errors with std:%3Afrom_chars(char%20const,%20char%20const,%20double&,%20std%3A%3Achars_format) And present_sync_get_info

Actual behavior

BUILD      mpv-drmprime (target)
    TOOLCHAIN      meson (auto-detect)
Executing (target): meson setup --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --buildtype=plain -Dstrip=true --cross-file=/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/.x86_64-libreelec-linux-gnu/meson.conf --prefix=/usr -Dlibarchive=disabled -Dlua=enabled -Djavascript=disabled -Duchardet=disabled -Drubberband=disabled -Dlcms2=disabled -Dvapoursynth=disabled -Djack=disabled -Dwayland=disabled -Dx11=disabled -Dvulkan=disabled -Dcaca=disabled -Ddrm=enabled -Dgbm=enabled -Degl-drm=enabled -Dmanpage-build=disabled -Dvaapi=disabled -Dpulse=enabled -Dlibbluray=enabled /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0
Directory already configured.

Just run your build command (e.g. ninja) and Meson will regenerate as necessary.
Run "meson setup --reconfigure to force Meson to regenerate.

If build failures persist, run "meson setup --wipe" to rebuild from scratch
using the same options as passed when configuring the build.
Executing (target): ninja 
[0/1] Regenerating build files.
The Meson build system
Version: 1.3.0
Source dir: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0
Build dir: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/.x86_64-libreelec-linux-gnu
Build type: cross build
Project name: mpv
Project version: 0.37.0
C compiler for the host machine: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc (gcc 13.2.0 "x86_64-libreelec-linux-gnu-gcc-13.2.0 (GCC) 13.2.0")
C linker for the host machine: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc ld.gold 2.41
C compiler for the build machine: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/host-gcc (gcc 12.1.0 "gcc (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0")
C linker for the build machine: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/host-gcc ld.bfd 2.38
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Program python3 found: YES (/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/python3)
Dependency libavcodec found: YES 60.3.100 (cached)
Dependency libavfilter found: YES 9.3.100 (cached)
Dependency libavformat found: YES 60.3.100 (cached)
Dependency libavutil found: YES 58.2.100 (cached)
Dependency libswresample found: YES 4.10.100 (cached)
Dependency libswscale found: YES 7.1.100 (cached)
Dependency libplacebo found: YES 6.338.1 (cached)
Dependency libass found: YES 0.17.1 (cached)
Compiler for C supports arguments -Werror=implicit-function-declaration: YES (cached)
Compiler for C supports arguments -Wempty-body: YES (cached)
Compiler for C supports arguments -Wdisabled-optimization: YES (cached)
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wno-format-zero-length: YES (cached)
Compiler for C supports arguments -Wno-redundant-decls: YES (cached)
Compiler for C supports arguments -Wvla: YES (cached)
Compiler for C supports arguments -Wno-format-truncation: YES (cached)
Compiler for C supports arguments -Wimplicit-fallthrough: YES (cached)
Compiler for C supports arguments -fno-math-errno: YES (cached)
Compiler for C supports arguments -Wformat -Werror=format-security: YES (cached)
Compiler for C supports link arguments -Wl,-z,noexecstack: YES (cached)
Compiler for C supports link arguments -Wl,--nxcompat,--no-seh,--dynamicbase: NO (cached)
Dependency dl found: YES unknown (cached)
Library atomic found: NO
Compiler for C supports link arguments -rdynamic: YES (cached)
Dependency threads found: YES unknown (cached)
Header "pthread.h" has symbol "pthread_condattr_setclock" with dependency threads: NO (cached)
Run-time dependency appleframeworks found: NO (tried framework)
Checking for function "ppoll" : YES (cached)
Library windowsapp skipped: feature uwp disabled
Checking for function "glob" : YES (cached)
Header "sys/vt.h" has symbol "VT_GETMODE" : YES (cached)
Checking for function "pthread_setname_np" with dependency threads: YES (cached)
Checking for function "fstatfs" : NO (cached)
Checking for function "fstatfs" : YES (cached)
Checking if "vector check" compiles: YES (cached)
Program /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/TOOLS/docutils-wrapper.py found: YES (/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/TOOLS/docutils-wrapper.py)
Program /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/TOOLS/file2string.py found: YES (/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/TOOLS/file2string.py)
Program /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/TOOLS/matroska.py found: YES (/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/TOOLS/matroska.py)
Dependency libcdio skipped: feature cdda disabled
Dependency libcdio_paranoia skipped: feature cdda disabled
Dependency dvdnav skipped: feature dvdnav disabled
Dependency dvdread skipped: feature dvdnav disabled
Dependency iconv found: YES unknown (cached)
Dependency mujs skipped: feature javascript disabled
Dependency lcms2 skipped: feature lcms2 disabled
Dependency libarchive skipped: feature libarchive disabled
Dependency libavdevice found: YES 60.1.100 (cached)
Dependency libbluray found: YES 1.3.4 (cached)
Library m found: YES
Library rt found: YES
Found pkg-config: YES (/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/pkg-config) 0.29.2
Found CMake: NO
Run-time dependency lua found: NO (tried pkgconfig and cmake)
Dependency lua52 found: YES 5.2.4 (cached)
Dependency rubberband skipped: feature rubberband disabled
Dependency sdl2 skipped: feature sdl2 disabled
Dependency uchardet skipped: feature uchardet disabled
Dependency vapoursynth skipped: feature vapoursynth disabled
Dependency vapoursynth-script skipped: feature vapoursynth disabled
Run-time dependency zimg found: NO (tried pkgconfig and cmake)
Dependency zlib found: YES 1.3 (cached)
Dependency alsa found: YES 1.2.10 (cached)
Run-time dependency appleframeworks found: NO (tried framework)
Header "AudioToolbox/AudioToolbox.h" has symbol "kAudioUnitSubType_RemoteIO" : NO (cached)
Run-time dependency appleframeworks found: NO (tried framework)
Dependency jack skipped: feature jack disabled
Dependency openal skipped: feature openal disabled
Library OpenSLES found: NO
Header "sys/soundcard.h" has symbol "SNDCTL_DSP_HALT" : NO (cached)
Run-time dependency libpipewire-0.3 found: NO (tried pkgconfig and cmake)
Dependency libpulse found: YES 16.99.1 (cached)
Run-time dependency sndio found: NO (tried pkgconfig and cmake)
Header "audioclient.h" has symbol "IAudioClient" : NO (cached)
Dependency caca skipped: feature caca disabled
Has header "d3d9.h" skipped: feature direct3d disabled
Dependency libdrm found: YES 2.4.118 (cached)
Dependency gbm found: YES 23.3.0-rc5 (cached)
Run-time dependency libjpeg found: NO (tried pkgconfig and cmake)
Run-time dependency shaderc found: NO (tried pkgconfig, pkgconfig, pkgconfig and system)
Run-time dependency libsixel found: NO (tried pkgconfig and cmake)
Checking for function "shm_open" : YES (cached)
Run-time dependency spirv-cross-c-shared found: NO (tried pkgconfig and cmake)
Dependency wayland-client skipped: feature wayland disabled
Dependency wayland-cursor skipped: feature wayland disabled
Dependency wayland-protocols skipped: feature wayland disabled
Dependency xkbcommon skipped: feature wayland disabled
Dependency wayland-client skipped: feature wayland disabled
Has header "linux/input-event-codes.h" skipped: feature wayland disabled
Program wayland-scanner skipped: feature wayland disabled
Dependency x11 skipped: feature x11 disabled
Dependency xscrnsaver skipped: feature x11 disabled
Dependency xext skipped: feature x11 disabled
Dependency xpresent skipped: feature x11 disabled
Dependency xrandr skipped: feature x11 disabled
Dependency xv skipped: feature xv disabled
Library EGL found: YES
Dependency egl found: YES 23.3.0-rc5 (cached)
Library EGL skipped: feature egl-android disabled
Run-time dependency wayland-egl found: NO (tried pkgconfig and cmake)
Dependency /opt/vc/lib/pkgconfig/brcmegl.pc skipped: feature rpi disabled
Dependency vulkan skipped: feature vulkan disabled
Checking for function "vkCreateDisplayPlaneSurfaceKHR" with dependency vulkan: NO (cached)
Run-time dependency ffnvcodec found: NO (tried pkgconfig and cmake)
Header "OpenGLES/ES3/glext.h" has symbol "GL_RGB32F" : NO (cached)
Dependency /opt/vc/lib/pkgconfig/mmal.pc skipped: feature rpi-mmal disabled
Dependency libva skipped: feature vaapi disabled
Dependency libva-drm skipped: feature vaapi-drm disabled
Dependency libva-wayland skipped: feature vaapi-wayland disabled
Dependency libva-x11 skipped: feature vaapi-x11 disabled
Dependency vdpau skipped: feature vdpau disabled
Run-time dependency appleframeworks found: NO (tried framework)
Program xcrun skipped: feature swift-build disabled
Program rst2man rst2man.py skipped: feature manpage-build disabled
Program rst2html rst2html.py skipped: feature html-build disabled
Program rst2pdf skipped: feature pdf-build disabled
Configuring config.h using configuration
Message: List of enabled features: alsa av-channel-layout avif-muxer build-date cplugins dmabuf-interop-gl drm egl egl-drm egl-helpers ffmpeg gbm gl glibc-thread-name glob glob-posix gpl iconv jpegxl lavu-uuid libass libavdevice libbluray libdl libm libplacebo librt linux-fstatfs lua52 noexecstack posix posix-shm ppoll pulse threads vector vt.h zlib
Fetching value of define "MPV_CLIENT_API_VERSION" : (((2) << 16) | (2) | 0UL) (cached)
Compiler for C supports link arguments -Wl,-Bsymbolic: YES (cached)
Build targets in project: 21

mpv 0.37.0

    d3d11        : NO
    javascript   : NO
    libmpv       : NO
    lua          : YES
    opengl       : YES
    vulkan       : NO
    wayland      : NO
    x11          : NO

  User defined options
    Cross files  : /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/mpv-drmprime-0.37.0/.x86_64-libreelec-linux-gnu/meson.conf
    bindir       : /usr/bin
    buildtype    : plain
    libdir       : /usr/lib
    libexecdir   : /usr/lib
    localstatedir: /var
    prefix       : /usr
    sbindir      : /usr/sbin
    strip        : true
    sysconfdir   : /etc
    caca         : disabled
    drm          : enabled
    egl-drm      : enabled
    gbm          : enabled
    jack         : disabled
    javascript   : disabled
    lcms2        : disabled
    libarchive   : disabled
    libbluray    : enabled
    lua          : enabled
    manpage-build: disabled
    pulse        : enabled
    rubberband   : disabled
    uchardet     : disabled
    vaapi        : disabled
    vapoursynth  : disabled
    vulkan       : disabled
    wayland      : disabled
    x11          : disabled

Found ninja-1.11.1 at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/ninja
Cleaning... 0 files.
[2/2] Linking target mpv
FAILED: mpv 
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc  -o mpv libmpv.so.2.2.0.p/audio_aframe.c.o libmpv.so.2.2.0.p/audio_chmap.c.o libmpv.so.2.2.0.p/audio_chmap_sel.c.o libmpv.so.2.2.0.p/audio_decode_ad_lavc.c.o libmpv.so.2.2.0.p/audio_decode_ad_spdif.c.o libmpv.so.2.2.0.p/audio_filter_af_drop.c.o libmpv.so.2.2.0.p/audio_filter_af_format.c.o libmpv.so.2.2.0.p/audio_filter_af_lavcac3enc.c.o libmpv.so.2.2.0.p/audio_filter_af_scaletempo.c.o libmpv.so.2.2.0.p/audio_filter_af_scaletempo2.c.o libmpv.so.2.2.0.p/audio_filter_af_scaletempo2_internals.c.o libmpv.so.2.2.0.p/audio_fmt-conversion.c.o libmpv.so.2.2.0.p/audio_format.c.o libmpv.so.2.2.0.p/audio_out_ao.c.o libmpv.so.2.2.0.p/audio_out_ao_lavc.c.o libmpv.so.2.2.0.p/audio_out_ao_null.c.o libmpv.so.2.2.0.p/audio_out_ao_pcm.c.o libmpv.so.2.2.0.p/audio_out_buffer.c.o libmpv.so.2.2.0.p/common_av_common.c.o libmpv.so.2.2.0.p/common_av_log.c.o libmpv.so.2.2.0.p/common_codecs.c.o libmpv.so.2.2.0.p/common_common.c.o libmpv.so.2.2.0.p/common_encode_lavc.c.o libmpv.so.2.2.0.p/common_msg.c.o libmpv.so.2.2.0.p/common_playlist.c.o libmpv.so.2.2.0.p/common_recorder.c.o libmpv.so.2.2.0.p/common_stats.c.o libmpv.so.2.2.0.p/common_tags.c.o libmpv.so.2.2.0.p/common_version.c.o libmpv.so.2.2.0.p/demux_codec_tags.c.o libmpv.so.2.2.0.p/demux_cue.c.o libmpv.so.2.2.0.p/demux_cache.c.o libmpv.so.2.2.0.p/demux_demux.c.o libmpv.so.2.2.0.p/demux_demux_cue.c.o libmpv.so.2.2.0.p/demux_demux_disc.c.o libmpv.so.2.2.0.p/demux_demux_edl.c.o libmpv.so.2.2.0.p/demux_demux_lavf.c.o libmpv.so.2.2.0.p/demux_demux_mf.c.o libmpv.so.2.2.0.p/demux_demux_mkv.c.o libmpv.so.2.2.0.p/demux_demux_mkv_timeline.c.o libmpv.so.2.2.0.p/demux_demux_null.c.o libmpv.so.2.2.0.p/demux_demux_playlist.c.o libmpv.so.2.2.0.p/demux_demux_raw.c.o libmpv.so.2.2.0.p/demux_demux_timeline.c.o libmpv.so.2.2.0.p/demux_ebml.c.o libmpv.so.2.2.0.p/demux_packet.c.o libmpv.so.2.2.0.p/demux_timeline.c.o libmpv.so.2.2.0.p/filters_f_async_queue.c.o libmpv.so.2.2.0.p/filters_f_autoconvert.c.o libmpv.so.2.2.0.p/filters_f_auto_filters.c.o libmpv.so.2.2.0.p/filters_f_decoder_wrapper.c.o libmpv.so.2.2.0.p/filters_f_demux_in.c.o libmpv.so.2.2.0.p/filters_f_hwtransfer.c.o libmpv.so.2.2.0.p/filters_f_lavfi.c.o libmpv.so.2.2.0.p/filters_f_output_chain.c.o libmpv.so.2.2.0.p/filters_f_swresample.c.o libmpv.so.2.2.0.p/filters_f_swscale.c.o libmpv.so.2.2.0.p/filters_f_utils.c.o libmpv.so.2.2.0.p/filters_filter.c.o libmpv.so.2.2.0.p/filters_frame.c.o libmpv.so.2.2.0.p/filters_user_filters.c.o libmpv.so.2.2.0.p/input_cmd.c.o libmpv.so.2.2.0.p/input_event.c.o libmpv.so.2.2.0.p/input_input.c.o libmpv.so.2.2.0.p/input_ipc.c.o libmpv.so.2.2.0.p/input_keycodes.c.o libmpv.so.2.2.0.p/misc_bstr.c.o libmpv.so.2.2.0.p/misc_charset_conv.c.o libmpv.so.2.2.0.p/misc_dispatch.c.o libmpv.so.2.2.0.p/misc_json.c.o libmpv.so.2.2.0.p/misc_language.c.o libmpv.so.2.2.0.p/misc_natural_sort.c.o libmpv.so.2.2.0.p/misc_node.c.o libmpv.so.2.2.0.p/misc_random.c.o libmpv.so.2.2.0.p/misc_rendezvous.c.o libmpv.so.2.2.0.p/misc_thread_pool.c.o libmpv.so.2.2.0.p/misc_thread_tools.c.o libmpv.so.2.2.0.p/options_m_config_core.c.o libmpv.so.2.2.0.p/options_m_config_frontend.c.o libmpv.so.2.2.0.p/options_m_option.c.o libmpv.so.2.2.0.p/options_m_property.c.o libmpv.so.2.2.0.p/options_options.c.o libmpv.so.2.2.0.p/options_parse_commandline.c.o libmpv.so.2.2.0.p/options_parse_configfile.c.o libmpv.so.2.2.0.p/options_path.c.o libmpv.so.2.2.0.p/player_audio.c.o libmpv.so.2.2.0.p/player_client.c.o libmpv.so.2.2.0.p/player_command.c.o libmpv.so.2.2.0.p/player_configfiles.c.o libmpv.so.2.2.0.p/player_external_files.c.o libmpv.so.2.2.0.p/player_loadfile.c.o libmpv.so.2.2.0.p/player_main.c.o libmpv.so.2.2.0.p/player_misc.c.o libmpv.so.2.2.0.p/player_osd.c.o libmpv.so.2.2.0.p/player_playloop.c.o libmpv.so.2.2.0.p/player_screenshot.c.o libmpv.so.2.2.0.p/player_scripting.c.o libmpv.so.2.2.0.p/player_sub.c.o libmpv.so.2.2.0.p/player_video.c.o libmpv.so.2.2.0.p/stream_cookies.c.o libmpv.so.2.2.0.p/stream_stream.c.o libmpv.so.2.2.0.p/stream_stream_avdevice.c.o libmpv.so.2.2.0.p/stream_stream_cb.c.o libmpv.so.2.2.0.p/stream_stream_concat.c.o libmpv.so.2.2.0.p/stream_stream_edl.c.o libmpv.so.2.2.0.p/stream_stream_file.c.o libmpv.so.2.2.0.p/stream_stream_lavf.c.o libmpv.so.2.2.0.p/stream_stream_memory.c.o libmpv.so.2.2.0.p/stream_stream_mf.c.o libmpv.so.2.2.0.p/stream_stream_null.c.o libmpv.so.2.2.0.p/stream_stream_slice.c.o libmpv.so.2.2.0.p/sub_ass_mp.c.o libmpv.so.2.2.0.p/sub_dec_sub.c.o libmpv.so.2.2.0.p/sub_draw_bmp.c.o libmpv.so.2.2.0.p/sub_filter_sdh.c.o libmpv.so.2.2.0.p/sub_img_convert.c.o libmpv.so.2.2.0.p/sub_lavc_conv.c.o libmpv.so.2.2.0.p/sub_osd.c.o libmpv.so.2.2.0.p/sub_osd_libass.c.o libmpv.so.2.2.0.p/sub_sd_ass.c.o libmpv.so.2.2.0.p/sub_sd_lavc.c.o libmpv.so.2.2.0.p/video_csputils.c.o libmpv.so.2.2.0.p/video_decode_vd_lavc.c.o libmpv.so.2.2.0.p/video_filter_refqueue.c.o libmpv.so.2.2.0.p/video_filter_vf_format.c.o libmpv.so.2.2.0.p/video_filter_vf_sub.c.o libmpv.so.2.2.0.p/video_fmt-conversion.c.o libmpv.so.2.2.0.p/video_hwdec.c.o libmpv.so.2.2.0.p/video_image_loader.c.o libmpv.so.2.2.0.p/video_image_writer.c.o libmpv.so.2.2.0.p/video_img_format.c.o libmpv.so.2.2.0.p/video_mp_image.c.o libmpv.so.2.2.0.p/video_mp_image_pool.c.o libmpv.so.2.2.0.p/video_out_aspect.c.o libmpv.so.2.2.0.p/video_out_bitmap_packer.c.o libmpv.so.2.2.0.p/video_out_dither.c.o libmpv.so.2.2.0.p/video_out_dr_helper.c.o libmpv.so.2.2.0.p/video_out_filter_kernels.c.o libmpv.so.2.2.0.p/video_out_gpu_context.c.o libmpv.so.2.2.0.p/video_out_gpu_error_diffusion.c.o libmpv.so.2.2.0.p/video_out_gpu_hwdec.c.o libmpv.so.2.2.0.p/video_out_gpu_lcms.c.o libmpv.so.2.2.0.p/video_out_gpu_libmpv_gpu.c.o libmpv.so.2.2.0.p/video_out_gpu_osd.c.o libmpv.so.2.2.0.p/video_out_gpu_ra.c.o libmpv.so.2.2.0.p/video_out_gpu_shader_cache.c.o libmpv.so.2.2.0.p/video_out_gpu_spirv.c.o libmpv.so.2.2.0.p/video_out_gpu_user_shaders.c.o libmpv.so.2.2.0.p/video_out_gpu_utils.c.o libmpv.so.2.2.0.p/video_out_gpu_video.c.o libmpv.so.2.2.0.p/video_out_gpu_video_shaders.c.o libmpv.so.2.2.0.p/video_out_libmpv_sw.c.o libmpv.so.2.2.0.p/video_out_vo.c.o libmpv.so.2.2.0.p/video_out_vo_gpu.c.o libmpv.so.2.2.0.p/video_out_vo_image.c.o libmpv.so.2.2.0.p/video_out_vo_lavc.c.o libmpv.so.2.2.0.p/video_out_vo_libmpv.c.o libmpv.so.2.2.0.p/video_out_vo_null.c.o libmpv.so.2.2.0.p/video_out_vo_tct.c.o libmpv.so.2.2.0.p/video_out_vo_kitty.c.o libmpv.so.2.2.0.p/video_out_win_state.c.o libmpv.so.2.2.0.p/video_repack.c.o libmpv.so.2.2.0.p/video_sws_utils.c.o libmpv.so.2.2.0.p/video_out_placebo_ra_pl.c.o libmpv.so.2.2.0.p/video_out_placebo_utils.c.o libmpv.so.2.2.0.p/video_out_vo_gpu_next.c.o libmpv.so.2.2.0.p/video_out_gpu_next_context.c.o libmpv.so.2.2.0.p/osdep_io.c.o libmpv.so.2.2.0.p/osdep_semaphore_osx.c.o libmpv.so.2.2.0.p/osdep_subprocess.c.o libmpv.so.2.2.0.p/osdep_timer.c.o libmpv.so.2.2.0.p/ta_ta.c.o libmpv.so.2.2.0.p/ta_ta_talloc.c.o libmpv.so.2.2.0.p/ta_ta_utils.c.o libmpv.so.2.2.0.p/osdep_threads-posix.c.o libmpv.so.2.2.0.p/input_ipc-unix.c.o libmpv.so.2.2.0.p/osdep_poll_wrapper.c.o libmpv.so.2.2.0.p/osdep_terminal-unix.c.o libmpv.so.2.2.0.p/sub_filter_regex.c.o libmpv.so.2.2.0.p/osdep_main-fn-unix.c.o libmpv.so.2.2.0.p/osdep_language-posix.c.o libmpv.so.2.2.0.p/osdep_path-unix.c.o libmpv.so.2.2.0.p/osdep_subprocess-posix.c.o libmpv.so.2.2.0.p/osdep_timer-linux.c.o libmpv.so.2.2.0.p/audio_chmap_avchannel.c.o libmpv.so.2.2.0.p/stream_stream_bluray.c.o libmpv.so.2.2.0.p/player_lua.c.o libmpv.so.2.2.0.p/audio_out_ao_alsa.c.o libmpv.so.2.2.0.p/audio_out_ao_pulse.c.o libmpv.so.2.2.0.p/video_drmprime.c.o libmpv.so.2.2.0.p/video_out_drm_atomic.c.o libmpv.so.2.2.0.p/video_out_drm_common.c.o libmpv.so.2.2.0.p/video_out_drm_prime.c.o libmpv.so.2.2.0.p/video_out_hwdec_hwdec_drmprime.c.o libmpv.so.2.2.0.p/video_out_hwdec_hwdec_drmprime_overlay.c.o libmpv.so.2.2.0.p/video_out_vo_drm.c.o libmpv.so.2.2.0.p/video_out_opengl_context_drm_egl.c.o libmpv.so.2.2.0.p/video_out_opengl_egl_helpers.c.o libmpv.so.2.2.0.p/video_filter_vf_gpu.c.o libmpv.so.2.2.0.p/video_out_opengl_common.c.o libmpv.so.2.2.0.p/video_out_opengl_context.c.o libmpv.so.2.2.0.p/video_out_opengl_formats.c.o libmpv.so.2.2.0.p/video_out_opengl_libmpv_gl.c.o libmpv.so.2.2.0.p/video_out_opengl_ra_gl.c.o libmpv.so.2.2.0.p/video_out_opengl_utils.c.o libmpv.so.2.2.0.p/video_out_hwdec_dmabuf_interop_gl.c.o -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-z,noexecstack -rdynamic -Wl,--as-needed -fuse-ld=gold -Wl,--start-group /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libass.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libavcodec.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libavfilter.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libavformat.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libavutil.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a -lm -pthread /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libswresample.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libswscale.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libavdevice.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libbluray.so -lrt /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/liblua5.2.a /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libz.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libasound.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libpulse.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libdrm.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libgbm.so /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libEGL.so -Wl,--end-group
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function drm_pflip_cb:(.text+0x5f6): error: undefined reference to 'present_sync_update_values'
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function drm_pflip_cb:(.text+0x602): error: undefined reference to 'present_sync_swap'
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function vo_drm_init:(.text+0x2238): error: undefined reference to 'mp_present_initialize'
libmpv.so.2.2.0.p/video_out_vo_drm.c.o:vo_drm.c:function get_vsync:(.text+0xc): error: undefined reference to 'present_sync_get_info'
libmpv.so.2.2.0.p/video_out_opengl_context_drm_egl.c.o:context_drm_egl.c:function drm_egl_get_vsync:(.text+0x14f): error: undefined reference to 'present_sync_get_info'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_print_float:(.text+0xe28): error: undefined reference to 'std::to_chars(char*, char*, float)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_parse_float:(.text+0xe4d): error: undefined reference to 'std::from_chars(char const*, char const*, float&, std::chars_format)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_print_double:(.text+0xe68): error: undefined reference to 'std::to_chars(char*, char*, double)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_parse_double:(.text+0xe8d): error: undefined reference to 'std::from_chars(char const*, char const*, double&, std::chars_format)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FAILURE: s/build mpv-drmprime during make_target (default)
*********** FAILED COMMAND ***********
ninja ${NINJA_OPTS} ${PKG_MAKE_OPTS_TARGET}
**************************************

Log file

Upload meson-logs/meson-log.txt or meson setup build output to http://ix.io/4MsC or attach it to the github issue, and replace this text with a link to it.

The issue will be closed for ignoring the issue template.

kasper93 commented 9 months ago
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function drm_pflip_cb:(.text+0x5f6): error: undefined reference to 'present_sync_update_values'
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function drm_pflip_cb:(.text+0x602): error: undefined reference to 'present_sync_swap'
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function vo_drm_init:(.text+0x2238): error: undefined reference to 'mp_present_initialize'
libmpv.so.2.2.0.p/video_out_vo_drm.c.o:vo_drm.c:function get_vsync:(.text+0xc): error: undefined reference to 'present_sync_get_info'
libmpv.so.2.2.0.p/video_out_opengl_context_drm_egl.c.o:context_drm_egl.c:function drm_egl_get_vsync:(.text+0x14f): error: undefined reference to 'present_sync_get_info'

Fixed by https://github.com/mpv-player/mpv/commit/e575ec4fc3654387c7358bd3640877ef32628d2c

/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_print_float:(.text+0xe28): error: undefined reference to 'std::to_chars(char*, char*, float)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_parse_float:(.text+0xe4d): error: undefined reference to 'std::from_chars(char const*, char const*, float&, std::chars_format)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_print_double:(.text+0xe68): error: undefined reference to 'std::to_chars(char*, char*, double)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_parse_double:(.text+0xe8d): error: undefined reference to 'std::from_chars(char const*, char const*, double&, std::chars_format)'

You need to use g++ to link or manually add your stdlib like to your ldflags -lstdc++.

heitbaum commented 9 months ago
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function drm_pflip_cb:(.text+0x5f6): error: undefined reference to 'present_sync_update_values'
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function drm_pflip_cb:(.text+0x602): error: undefined reference to 'present_sync_swap'
libmpv.so.2.2.0.p/video_out_drm_common.c.o:drm_common.c:function vo_drm_init:(.text+0x2238): error: undefined reference to 'mp_present_initialize'
libmpv.so.2.2.0.p/video_out_vo_drm.c.o:vo_drm.c:function get_vsync:(.text+0xc): error: undefined reference to 'present_sync_get_info'
libmpv.so.2.2.0.p/video_out_opengl_context_drm_egl.c.o:context_drm_egl.c:function drm_egl_get_vsync:(.text+0x14f): error: undefined reference to 'present_sync_get_info'

Fixed by e575ec4

/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_print_float:(.text+0xe28): error: undefined reference to 'std::to_chars(char*, char*, float)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_parse_float:(.text+0xe4d): error: undefined reference to 'std::from_chars(char const*, char const*, float&, std::chars_format)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_print_double:(.text+0xe68): error: undefined reference to 'std::to_chars(char*, char*, double)'
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/libplacebo-6.338.1/usr/lib/libplacebo.a(convert.cc.o):convert.cc:function pl_str_parse_double:(.text+0xe8d): error: undefined reference to 'std::from_chars(char const*, char const*, double&, std::chars_format)'

You need to use g++ to link or manually add your stdlib like to your ldflags -lstdc++.

Thanks. Fixed it with a change to the libplacebo pc file sed 's/^Libs:.*-lplacebo/& -lstdc++/' -i ${INSTALL}/usr/lib/pkgconfig/libplacebo.pc

heitbaum commented 9 months ago

Building correctly