Closed ernsteiswuerfel closed 2 years ago
Yeah musl doesn't -have- execinfo.h .. that's a glibc-ism...
I have a canned response for bugs.g.o for these :smiley:
[...] [CXX] workdir/UnpackedTarball/skia/tools/gpu/vk/VkTestUtils.cpp test -f /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/workdir/UnpackedTarball/skia/tools/gpu/vk/VkTestUtils.cpp || (echo "Missing generated source file /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/workdir/UnpackedTarball/skia/tools/gpu/vk/VkTestUtils.cpp" && false) S=/var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2 && I=$S/instdir && W=$S/workdir && mkdir -p $W/GenCxxObject/UnpackedTarball/skia/tools/gpu/vk/ $W/Dep/GenCxxObject/UnpackedTarball/skia/tools/gpu/vk/ && cd /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2 && x86_64-gentoo-linux-musl-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DSKIA_IMPLEMENTATION=1 -DSKIA_DLL -DSK_USER_CONFIG_HEADER="<$S/config_host/config_skia.h>" -DSYSTEM_ZLIB -fvisibility=hidden -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong -fdiagnostics-color=always -Wdeprecated-copy-dtor -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++17 -pthread -Os -march=x86-64 -mtune=k8 -pipe -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O2 -w -DLIBO_INTERNAL_ONLY -c $W/UnpackedTarball/skia/tools/gpu/vk/VkTestUtils.cpp -o $W/GenCxxObject/UnpackedTarball/skia/tools/gpu/vk/VkTestUtils.o -I$S/include -I$S/config_host -isystem /usr/include/freetype2 -I/usr/include/freetype2 -I/usr/include/uuid -isystem /usr/include/libpng16 -I$W/UnpackedTarball/skia -I$W/UnpackedTarball/skia/include/third_party/skcms/ -I$W/UnpackedTarball/skia/third_party/vulkanmemoryallocator/ -I$W/UnpackedTarball/skia/include/third_party/vulkan/ -I$S/external/skia/inc/ /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/workdir/UnpackedTarball/skia/tools/gpu/vk/VkTestUtils.cpp:23:10: fatal error: execinfo.h: No such file or directory 23 | #include <execinfo.h> | ^~~~~~~~~~~~ compilation terminated. make[1]: *** [/var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/solenv/gbuild/LinkTarget.mk:351: /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/workdir/GenCxxObject/UnpackedTarball/skia/tools/gpu/vk/VkTestUtils.o] Error 1
Drop the vulkan useflag and retest.
Done. Without vulkan I get another error:
[...]
/usr/lib/gcc/x86_64-gentoo-linux-musl/10.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/workdir/CxxObject/writerfilter/source/rtftok/rtfdocumentimpl.o: in function `writerfilter::rtftok::RTFDocumentImpl::handleEmbeddedObject()':
rtfdocumentimpl.cxx:(.text+0x83d6): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
collect2: error: ld returned 1 exit status
make[1]: *** [/var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/writerfilter/Library_writerfilter.mk:10: /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/instdir/program/libwriterfilterlo.so] Error 1
Done. Without vulkan I get another error:
[...] /usr/lib/gcc/x86_64-gentoo-linux-musl/10.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/workdir/CxxObject/writerfilter/source/rtftok/rtfdocumentimpl.o: in function `writerfilter::rtftok::RTFDocumentImpl::handleEmbeddedObject()': rtfdocumentimpl.cxx:(.text+0x83d6): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()' collect2: error: ld returned 1 exit status make[1]: *** [/var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/writerfilter/Library_writerfilter.mk:10: /var/tmp/portage/app-office/libreoffice-7.1.3.2/work/libreoffice-7.1.3.2/instdir/program/libwriterfilterlo.so] Error 1
This is interesting to say the least. I have it compiled on my systems I use the follow configuration for it ...
[ebuild R ] app-office/libreoffice-7.1.3.2::musl USE="bluetooth branding cups dbus gtk mariadb pdfimport -accessibility (-base) -clang (-coinmp) -custom-cflags -debug -eds (-firebird) -googledrive -gstreamer -java -kde -ldap -odk -postgres -test -vulkan" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
Tried with your USE-flags but with the same result... My CFLAGS COMMON_FLAGS="-Os -march=x86-64 -mtune=k8 -msse3 -pipe"
are not too funky, but I will try with -O2 and see if that make a difference.
build.log.zip
@anarchpenguin Ok, I can verify now with -O2 libreoffice-7.1.3.2 builds just fine. Though this may be musl-related too (I remember libreoffice-7.1.x built fine with -Os on glibc..) it has nothing to do with the original vulkan-related issue.
Looks like libreoffice disappeared from ::musl. But to my surprise 7.3.4.2-r1::gentoo builds just fine on musl. Also no problem with clang nor with -Os. Only thing which remains is the USE='vulkan' issue. But apart from that it builds & runs fine on musl.
Closing here as it is no longer an overlay issue.
build.log