Created attachment 248520 [details] poudriere-libreoffice-24.2.0.3.log.bz2 S=/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-24.2.0.3 && I=$S/instdir && W=$S/workdir && llvm-readelf -d $I/program/libtllo.so | grep SONAME > $W/LinkTarget/Library/libtllo.so.exports.tmp; llvm-nm --plugin LLVMgold.so --dynamic --extern-only --defined-only --format=posix $I/program/libtllo.so | cut -d' ' -f1-2 >> $W/LinkTarget/Library/libtllo.so.exports.tmp && if cmp -s $W/LinkTarget/Library/libtllo.so.exports.tmp $W/LinkTarget/Library/libtllo.so.exports; then rm $W/LinkTarget/Library/libtllo .so.exports.tmp; else mv $W/LinkTarget/Library/libtllo.so.exports.tmp $W/LinkTarget/Library/libtllo.so.exports && touch -r $I/program/libtllo.so $W/LinkTarget/Library/libtllo.so.exports; fi llvm-nm: error: : unknown argument '--plugin' S=/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-24.2.0.3 && I=$S/instdir && W=$S/workdir && llvm-readelf -d $I/program/libskialo.so | grep SONAME > $W/LinkTarget/Library/libskialo.so.exports.tmp; llvm-nm --plugin LLVMgold.so --dynamic --extern-o nly --defined-only --format=posix $I/program/libskialo.so | cut -d' ' -f1-2 >> $W/LinkTarget/Library/libskialo.so.exports.tmp && if cmp -s $W/LinkTarget/Library/libskialo.so.exports.tmp $W/LinkTarget/Library/libskialo.so.exports; then rm $W/LinkTarget/Lib rary/libskialo.so.exports.tmp; else mv $W/LinkTarget/Library/libskialo.so.exports.tmp $W/LinkTarget/Library/libskialo.so.exports && touch -r $I/program/libskialo.so $W/LinkTarget/Library/libskialo.so.exports; fi llvm-nm: error: : unknown argument '--plugin'
I've forced libreoffice to build after similar error (running make build/install without clearing obj, not unusual for libreoffice), though the resulting binary core dumps upon start.
(In reply to jakub_lach from comment #1) Unfortunately I cannot do this trick with poudriere. Every build it prepares a clean environment.
(In reply to iron.udjin from comment #2) Have you set LTO on? Without it, I have built libreoffice without interruptions (and the binary works).
(In reply to jakub_lach from comment #3) Yes, I set LTO on. You can check all build options in the poudriere log.
(In reply to iron.udjin from comment #4) Thanks, what I'm trying to say is that my build was successful without LTO. So it looks like LTO is currently broken and there is a slim chance it will get fixed (as it is not a default option). IIRC LTO was periodically broken in the past too.
(In reply to jakub_lach from comment #5) It seems LTO broken only when QT6 option is set. With QT5 it should builds fine. Checking it now.
Note from maintainer: qt6 is still non-default and experimental feature and LTO is often falls with it :(
(In reply to iron.udjin from comment #6) YMMV, but I did not have QT set.
With LTO and QT5 enabled libreoffice builds fine. I think port need some modification... When LTO and QT6 enabled, avoid to build with error message like: libreffice will fail to build when QT6 and LTO enabled.
I'm facing this issue, unfortunately (=> make clean). It reveals that --plugin is a gnu related option. If gnu-nm is used, perhaps, it succeeds.