Skip to content

Building with debugging options fails with linking errors "player/src/tizonia.p/main.cpp.o:(.debug_info[wi.614aba941a830446]+0x283): relocation truncated to fit: R_X86_64_32 against `.debug_str'" and others. #810

@dreirund

Description

@dreirund

When I try to build this with debugging options, build fails with linking errors:

[...]
samu: job failed: c++  -o player/src/tizonia player/src/tizonia.p/main.cpp.o player/src/tizonia.p/tizplayapp.cpp.o player/src/tizonia.p/tizprogramopts.cpp.o player/src/tizonia.p/tizomxutil.cpp.o player/src/tizonia.p/tizgraphutil.cpp.o player/src/tizonia.p/tizgraphcback.cpp.o player/src/tizonia.p/tizdaemon.cpp.o player/src/tizonia.p/tizprobe.cpp.o player/src/tizonia.p/tizplaylist.cpp.o player/src/tizonia.p/tizgraphfactory.cpp.o player/src/tizonia.p/tizgraphmgrcmd.cpp.o player/src/tizonia.p/tizgraphmgrops.cpp.o player/src/tizonia.p/tizgraphmgrfsm.cpp.o player/src/tizonia.p/tizgraphmgr.cpp.o player/src/tizonia.p/tizgraphfsm.cpp.o player/src/tizonia.p/tizgraphops.cpp.o player/src/tizonia.p/tizgraphcmd.cpp.o player/src/tizonia.p/tizgraph.cpp.o player/src/tizonia.p/decoders_tizdecgraphmgr.cpp.o player/src/tizonia.p/decoders_tizdecgraph.cpp.o player/src/tizonia.p/decoders_tizmp3graph.cpp.o player/src/tizonia.p/decoders_tizaacgraph.cpp.o player/src/tizonia.p/decoders_tizopusgraph.cpp.o player/src/tizonia.p/decoders_tizoggopusgraph.cpp.o player/src/tizonia.p/decoders_tizvorbisgraph.cpp.o player/src/tizonia.p/decoders_tizflacgraph.cpp.o player/src/tizonia.p/decoders_tizoggflacgraph.cpp.o player/src/tizonia.p/decoders_tizpcmgraph.cpp.o player/src/tizonia.p/decoders_tizmpeggraph.cpp.o player/src/tizonia.p/httpserv_tizhttpservmgr.cpp.o player/src/tizonia.p/httpserv_tizhttpservgraph.cpp.o player/src/tizonia.p/httpserv_tizhttpservgraphfsm.cpp.o player/src/tizonia.p/httpserv_tizhttpservgraphops.cpp.o player/src/tizonia.p/httpclnt_tizhttpclntmgr.cpp.o player/src/tizonia.p/httpclnt_tizhttpclntgraph.cpp.o player/src/tizonia.p/httpclnt_tizhttpclntgraphfsm.cpp.o player/src/tizonia.p/httpclnt_tizhttpclntgraphops.cpp.o player/src/tizonia.p/services_tizservicegraph.cpp.o player/src/tizonia.p/services_tizservicegraphfsm.cpp.o player/src/tizonia.p/services_tizradiograph.cpp.o player/src/tizonia.p/services_tizradiographfsm.cpp.o player/src/tizonia.p/services_googlemusic_tizgmusicgraph.cpp.o player/src/tizonia.p/services_googlemusic_tizgmusicgraphops.cpp.o player/src/tizonia.p/services_googlemusic_tizgmusicmgr.cpp.o player/src/tizonia.p/services_soundcloud_tizscloudgraph.cpp.o player/src/tizonia.p/services_soundcloud_tizscloudgraphops.cpp.o player/src/tizonia.p/services_soundcloud_tizscloudmgr.cpp.o player/src/tizonia.p/services_youtube_tizyoutubegraph.cpp.o player/src/tizonia.p/services_youtube_tizyoutubegraphfsm.cpp.o player/src/tizonia.p/services_youtube_tizyoutubegraphops.cpp.o player/src/tizonia.p/services_youtube_tizyoutubemgr.cpp.o player/src/tizonia.p/services_plex_tizplexgraph.cpp.o player/src/tizonia.p/services_plex_tizplexgraphops.cpp.o player/src/tizonia.p/services_plex_tizplexmgr.cpp.o player/src/tizonia.p/services_tunein_tiztuneingraph.cpp.o player/src/tizonia.p/services_tunein_tiztuneingraphops.cpp.o player/src/tizonia.p/services_tunein_tiztuneinmgr.cpp.o player/src/tizonia.p/services_chromecast_tizchromecastgraph.cpp.o player/src/tizonia.p/services_chromecast_tizchromecastgraphfsm.cpp.o player/src/tizonia.p/services_chromecast_tizchromecastgraphops.cpp.o player/src/tizonia.p/services_chromecast_tizchromecastmgr.cpp.o player/src/tizonia.p/services_iheart_tiziheartgraph.cpp.o player/src/tizonia.p/services_iheart_tiziheartgraphops.cpp.o player/src/tizonia.p/services_iheart_tiziheartmgr.cpp.o player/src/tizonia.p/tizplaybackevents.cpp.o player/src/tizonia.p/tizprogressdisplay.cpp.o player/src/tizonia.p/mpris_tizmprismgr.cpp.o player/src/tizonia.p/mpris_tizmprisprops.cpp.o player/src/tizonia.p/mpris_tizmprisif.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection -w -Wp,-D_GLIBCXX_ASSERTIONS -Og -fno-lto -gdwarf-5 -ggdb3 -gno-strict-dwarf -g3 -gpubnames -grecord-gcc-switches -fno-eliminate-unused-debug-symbols -fvar-tracking -fvar-tracking-assignments -fdebug-types-section -fno-stack-protector -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0 -DDEBUG -ffile-prefix-map=/var/cache/makepkg/build/tizonia-all-git/src=/usr/src/debug/tizonia-all-git -Wno-error=address -Wno-address -Wno-error=attribute-warning -Wno-attribute-warning -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=format-security -Wno-format-security -Wno-error=strict-aliasing -Wno-strict-aliasing -Wno-error=unused-result -Wno-unused-result -DBOOST_BIND_GLOBAL_PLACEHOLDERS=1 '-Wl,-rpath,$ORIGIN/../../libtizcore/src:$ORIGIN/../../3rdparty/dbus-cplusplus/src:$ORIGIN/../../rm/libtizrmproxy/src:$ORIGIN/../../libtizplatform/src:/usr/lib/taglib1' -Wl,--start-group libtizcore/src/libtizcore.so.0.22.0 3rdparty/dbus-cplusplus/src/libtizdbus-c++.so.0.22.0 libtizplatform/src/libtizplatform.so.0.22.0 -ldl -pthread /usr/lib/taglib1/libtag.so /usr/lib/libz.so /usr/lib/libmediainfo.so /usr/lib/libzen.so -lpthread /usr/lib/libboost_chrono.so.1.88.0 /usr/lib/libboost_filesystem.so.1.88.0 /usr/lib/libboost_system.so.1.88.0 /usr/lib/libboost_thread.so.1.88.0 /usr/lib/libboost_program_options.so.1.88.0 /usr/lib/libboost_python313.so.1.88.0 /usr/lib/libpython3.13.so -Wl,--end-group
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.614aba941a830446]+0x283): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.614aba941a830446]+0x33d): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.98b3369e68805ea5]+0x35): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.eece8a3c25c83dee]+0x35): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.216e049ec7986d76]+0x35): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.c77bf7241b2c54ee]+0x35): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.410c0de869843167]+0x1bd): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.093b9c64f73ccbe3]+0x152): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.47fcd3463ab5ea68]+0xc57): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.8ad8cac017e9df85]+0xc57): relocation truncated to fit: R_X86_64_32 against `.debug_str'
player/src/tizonia.p/main.cpp.o:(.debug_info[wi.e5a19378000c2eb1]+0xc57): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
samu: subcommand failed

GCC version used for compilation is 15.2.1, glibc version is 2.42, GNU binutils version is 2.45.0, boost is version 1.88.0.
I am on Artix GNU/Linux, a rolling release distribution.

Build is carried out as follows:

CFLAGS="-march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection -w -Og -fno-lto -gdwarf-5 -ggdb3 -gno-strict-dwarf -g3 -gpubnames -grecord-gcc-switches -fno-eliminate-unused-debug-symbols -fvar-tracking -fvar-tracking-assignments -fdebug-types-section -fno-stack-protector -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0 -DDEBUG -ffile-prefix-map=/var/cache/makepkg/build/tizonia-all-git/src=/usr/src/debug/tizonia-all-git  -Wno-error=address -Wno-address -Wno-error=attribute-warning -Wno-attribute-warning -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=format-security -Wno-format-security -Wno-error=strict-aliasing -Wno-strict-aliasing -Wno-error=unused-result -Wno-unused-result -DBOOST_BIND_GLOBAL_PLACEHOLDERS=1"
CXXFLAGS="-march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection -w -Wp,-D_GLIBCXX_ASSERTIONS -Og -fno-lto -gdwarf-5 -ggdb3 -gno-strict-dwarf -g3 -gpubnames -grecord-gcc-switches -fno-eliminate-unused-debug-symbols -fvar-tracking -fvar-tracking-assignments -fdebug-types-section -fno-stack-protector -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0 -DDEBUG -ffile-prefix-map=/var/cache/makepkg/build/tizonia-all-git/src=/usr/src/debug/tizonia-all-git  -Wno-error=address -Wno-address -Wno-error=attribute-warning -Wno-attribute-warning -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=format-security -Wno-format-security -Wno-error=strict-aliasing -Wno-strict-aliasing -Wno-error=unused-result -Wno-unused-result -DBOOST_BIND_GLOBAL_PLACEHOLDERS=1"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
SAMUFLAGS="-j1"
PKG_CONFIG_PATH=/usr/lib/taglib1/pkgconfig

meson setup --prefix=/usr --buildtype=plain \
  -Dplayer=true \
  -Dlibspotify=false \
  -Dalsa=true \
  -Daac=true \
  -Dgcc-warnings=false \
  -Dtest=false \
  -Dbashcompletiondir=/etc/bash_completion.d \
  -Dzshcompletiondir=/usr/share/zsh/site-functions \
  -Ddocs=true \
  -Ddocs_options='["man"]' \
  -Ddocs_paper=a4 \
  -Dclients=true \
  -Dplugins='["aac_decoder","chromecast_renderer","file_reader","file_writer","flac_decoder","http_renderer","http_source","inproc_reader","inproc_writer","mp3_decoder","mp3_encoder","mp3_metadata","mp4_demuxer","mpeg_audio_decoder","ogg_demuxer","ogg_muxer","opus_decoder","opusfile_decoder","pcm_decoder","pcm_renderer_alsa","pcm_renderer_pa","spotify","vorbis_decoder","vp8_decoder","webm_demuxer","yuv_renderer"]' \
  "${_pkgname}" build
samu -v -C build

Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions