Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gerbera Failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 110

PostPosted: Sun Feb 02, 2025 1:39 pm    Post subject: Gerbera Failed Reply with quote

Hi,

I am getting the below error while compiling:

Code:
[144/145] /usr/bin/x86_64-pc-linux-gnu-g++ -DFMT_SHARED -DGERBERA_VERSION=\"2.3.0\" -DHAVE_AVSTREAM_CODECPAR -DHAVE_CURL -DHAVE_EXIV2 -DHAVE_FFMPEG -DHAVE_FFMPEGTHUMBNAILER -DHAVE_INOTIFY -DHAVE_JS -DHAVE_LIBEXIF -DHAVE_MAGIC -DHAVE_MATROSKA -DHAVE_NL_LANGINFO -DHAVE_SETLOCALE -DHAVE_TAGLIB -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DSPDLOG_SHARED_LIB -I/tmp/portage/net-misc/gerbera-2.3.0-r1/work/gerbera-2.3.0/src -I/usr/include/libexif -I/usr/include/ebml -I/usr/include/matroska -isystem /usr/include/uuid -isystem /usr/include/upnp -isystem /usr/include/taglib  -O2 -pipe -march=amdfam10 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -std=c++17 -Wall -MD -MT CMakeFiles/gerbera.dir/src/main.cc.o -MF CMakeFiles/gerbera.dir/src/main.cc.o.d -o CMakeFiles/gerbera.dir/src/main.cc.o -c /tmp/portage/net-misc/gerbera-2.3.0-r1/work/gerbera-2.3.0/src/main.cc
[145/145] : && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=amdfam10 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs CMakeFiles/gerbera.dir/src/main.cc.o -o gerbera  liblibgerbera.a  -latomic  /usr/lib64/libuuid.so  /usr/lib64/libupnp.so  /usr/lib64/libixml.so  /usr/lib64/libspdlog.so.1.15.0  /usr/lib64/libfmt.so.11.0.2  /usr/lib64/libpugixml.so  /usr/lib64/libsqlite3.so  /usr/lib64/libnsl.so  /usr/lib64/libduktape.so  /usr/lib64/libcurl.so  /usr/lib64/libtag.so  /usr/lib64/libmagic.so  /usr/lib64/libavformat.so  /usr/lib64/libavutil.so  /usr/lib64/libavcodec.so  /usr/lib64/libffmpegthumbnailer.so  /usr/lib64/libexif.so  /usr/lib64/libexiv2.so  /usr/lib64/libebml.so  /usr/lib64/libmatroska.so  /usr/lib64/libz.so && :
FAILED: gerbera
: && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=amdfam10 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs CMakeFiles/gerbera.dir/src/main.cc.o -o gerbera  liblibgerbera.a  -latomic  /usr/lib64/libuuid.so  /usr/lib64/libupnp.so  /usr/lib64/libixml.so  /usr/lib64/libspdlog.so.1.15.0  /usr/lib64/libfmt.so.11.0.2  /usr/lib64/libpugixml.so  /usr/lib64/libsqlite3.so  /usr/lib64/libnsl.so  /usr/lib64/libduktape.so  /usr/lib64/libcurl.so  /usr/lib64/libtag.so  /usr/lib64/libmagic.so  /usr/lib64/libavformat.so  /usr/lib64/libavutil.so  /usr/lib64/libavcodec.so  /usr/lib64/libffmpegthumbnailer.so  /usr/lib64/libexif.so  /usr/lib64/libexiv2.so  /usr/lib64/libebml.so  /usr/lib64/libmatroska.so  /usr/lib64/libz.so && :
/tmp/portage/net-misc/gerbera-2.3.0-r1/work/gerbera-2.3.0/src/util/xml_to_json.h:43: error: type ‘FieldType’ violates the C++ One Definition Rule [-Werror=odr]
   43 | enum class FieldType {
      |
/tmp/portage/net-misc/gerbera-2.3.0-r1/work/gerbera-2.3.0/src/database/search_handler.h:310: note: an enum with different value name is defined in another translation unit
  310 | enum class FieldType {
      |
/tmp/portage/net-misc/gerbera-2.3.0-r1/work/gerbera-2.3.0/src/util/xml_to_json.h:44: note: name ‘STRING’ differs from name ‘String’ defined in another translation unit
   44 |     STRING,
      |
/tmp/portage/net-misc/gerbera-2.3.0-r1/work/gerbera-2.3.0/src/database/search_handler.h:311: note: mismatching definition
  311 |     String,
      |
lto1: some warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: net-misc/gerbera-2.3.0-r1::gentoo failed (compile phase):
 *   ninja -v -j16 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3755:  Called cmake_src_compile
 *   environment, line 1550:  Called cmake_build
 *   environment, line 1517:  Called eninja
 *   environment, line 2030:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=net-misc/gerbera-2.3.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/gerbera-2.3.0-r1::gentoo'`.
 * The complete build log is located at '/tmp/portage/net-misc/gerbera-2.3.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/net-misc/gerbera-2.3.0-r1/temp/environment'.
 * Working directory: '/tmp/portage/net-misc/gerbera-2.3.0-r1/work/gerbera-2.3.0_build'
 * S: '/tmp/portage/net-misc/gerbera-2.3.0-r1/work/gerbera-2.3.0'
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9335

PostPosted: Sun Feb 02, 2025 1:42 pm    Post subject: Reply with quote

You should really be able to read error messages when enabling LTO.

Code:
lto1: some warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23069

PostPosted: Sun Feb 02, 2025 2:33 pm    Post subject: Reply with quote

This error message appears to be the same as reported in net-misc/gerbera-2.3.0 - [libtool] [gcc-15] xml_to_json.h:43: error: type ‘FieldType’ violates the C++ One Definition Rule [-Werror=odr].
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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