Hi,
well..
Am 03.04.24 um 19:45 schrieb Andreas Mantke:
On 2024-03-24 00:17, Andreas Mantke wrote:
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 };
|
is only a warning.
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
This is it. gcc and/or ld got killed from the outside.
Then there are some options which didn't work my git clone on Debian 12:
'--enable-mergelibs' and '--enable-lto'. Maybe also something to
investigate more in depth once I had some free cycles again.
And that is because of this. mergelibs is too big to link on 32bit.
That is a architectural limitation of 32bit archs which is not going to
go away. Even if you stick 64GB in there one process can just address 4GB.
If I disable all this options above I could successfully build
LibreOffice again.
Unsurprisingly.
Regards,
Rene