Error Compiling LibreOffice Core on Debian 12 - x64
Andreas Mantke
maand at gmx.de
Sat Mar 23 23:17:00 UTC 2024
Hello,
I try to compile LibreOffice core on Debian 12 -x64 but the process
ended with an error.
Here the messages in the shell at the end of the build process:
[MOD] unoxml
/builddir/core/filter/source/graphicfilter/icgm/cgmtypes.hxx:108:
warning: type ‘LineType’ violates the C++ One Definition Rule [-Wodr]
108 | enum LineType { LT_SOLID = 1, LT_DASH = 2, LT_DOT =
3, LT_DASHDOT = 4, LT_DASHDOTDOT = 5, // Standard
|
/builddir/core/vcl/inc/regband.hxx:47: note: an enum with different
value name is defined in another translation unit
47 | enum class LineType { Ascending, Descending };
|
/builddir/core/filter/source/graphicfilter/icgm/cgmtypes.hxx:108: note:
name ‘LT_SOLID’ differs from name ‘Ascending’ defined in another
translation unit
108 | enum LineType { LT_SOLID = 1, LT_DASH = 2, LT_DOT =
3, LT_DASHDOT = 4, LT_DASHDOTDOT = 5, // Standard
|
/builddir/core/vcl/inc/regband.hxx:47: note: mismatching definition
47 | enum class LineType { Ascending, Descending };
|
g++: fatal error: Getötet signal terminated program lto1
compilation terminated.
lto-wrapper: fatal error: /usr/bin/g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[1]: *** [/builddir/core/Library_merged.mk:11:
/builddir/core/instdir/program/libmergedlo.so] Fehler 1
make: *** [Makefile:290: build] Fehler 2
I tried in parallel with a build on openSUSE 15.5 -x64 and the build of
LibreOffice core was successful.
Any hints about a workaround or fix?
Regards,
Andreas
--
## Free Software Advocate
## Free Online Office (LibreOffice Technology):
## https://github.com/freeonlineoffice/online
## Plone add-on developer
## My blog: http://www.amantke.de/blog
More information about the LibreOffice
mailing list