Created attachment 356512 [details] Complete build log It seems that the build system tries to hard link to $DISTDIR which fails if it's on a separate volume: [...] rm -f /var/tmp/paludis/app-office-libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/workdir/unxlngx6.pro/Package/officecfg_tools.filelist && \ mv /var/tmp/paludis/app-office-libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/workdir/unxlngx6.pro/Package/officecfg_tools.filelist.tmp /var/tmp/paludis/app-office-libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/workdir/unxlngx6.pro/Package/officecfg_tools.filelist ln: failed to create hard link ‘/var/tmp/paludis/app-office-libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/instdir/unxlngx6.pro/sdk/classes/win/unowinreg.dll’ => ‘/var/distfiles/185d60944ea767075d27247c3162b3bc-unowinreg.dll’: Invalid cross-device link make[1]: *** [/var/tmp/paludis/app-office-libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/instdir/unxlngx6.pro/sdk/classes/win/unowinreg.dll] Error 1 Complete log is attached.
with USE=-odk it builds fine.
Created attachment 357196 [details] Compressed build.log Tiziano, I don't use a separate volume and I hit a suspiciously similar error, which is why I'm not filing a new bug as both issues have a significant chance of being linked. rm -f /tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/instdir/unxlngx6.pro/share/registry/oo-ad-ldap.xcd.sample && ln /tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/officecfg/registry/schema/oo-ad-ldap.xcd.sample /tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/instdir/unxlngx6.pro/share/registry/oo-ad-ldap.xcd.sample && touch -hr /tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/officecfg/registry/schema/oo-ad-ldap.xcd.sample /tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/instdir/unxlngx6.pro/share/registry/oo-ad-ldap.xcd.sample [build PKG] officecfg_tools touch: setting times of '/tmp/portage/app-office/libreoffice-4.1.0.4/work/libreoffice-4.1.0.4/instdir/unxlngx6.pro/sdk/classes/win/unowinreg.dll': Operation not permitted Full compressed build.log attached. Building with USE=-odk also works around the issue here. Denis.
The issue is still the same here with libreoffice-4.1.1.2. Denis.
*** Bug 484536 has been marked as a duplicate of this bug. ***
I bypass the problem by adding the following line to the econf of the ebuild : $(use_enable odk build-unowinreg) \
Not sure if this is of any clinical importance but somehow FEATURES=-userpriv also works around this issue for me... I am on non-hardened, btw, in case that matters.
*** Bug 486010 has been marked as a duplicate of this bug. ***
(In reply to LE GARREC Vincent from comment #5) > I bypass the problem by adding the following line to the econf of the ebuild > $(use_enable odk build-unowinreg) \ That doesn't work here: checking whether to build the ODK... yes checking whether to build unowinreg.dll... yes checking for i386-mingw32msvc-g++... no checking for i586-pc-mingw32-g++... no checking for i686-pc-mingw32-g++... no checking for i686-w64-mingw32-g++... no configure: error: MinGW32 C++ cross-compiler not found. Denis.
silly question but : do you have MinGW32 C++ installed ? maybe your config.log could help you ?
(In reply to LE GARREC Vincent from comment #9) > silly question but : do you have MinGW32 C++ installed ? Why would I use MinGW32 at all? I'm not cross-compiling. Just a note that the problem persists with libreoffice-4.1.2.3, both on amd64 and x86. Denis.
(In reply to Denis Dupeyron from comment #10) > (In reply to LE GARREC Vincent from comment #9) > Why would I use MinGW32 at all? I'm not cross-compiling. > > Just a note that the problem persists with libreoffice-4.1.2.3, both on > amd64 and x86. > > Denis. I just thought about it but because "unowinreg.dll" looks to be for Windows libreoffice want MinGW. I have it on my computer. So add --enable-build-unowinreg do not looks to be a good solution.
I also haven't been able to build libreoffice for a long time now. I get a different error. touch: setting times of ‘/var/tmp/portage/app-office/libreoffice-4.1.2.3/work/libreoffice-4.1.2.3/instdir/unxlngx6.pro/sdk/classes/win/unowinreg.dll’: Operation not permitted make[1]: *** [/var/tmp/portage/app-office/libreoffice-4.1.2.3/work/libreoffice-4.1.2.3/instdir/unxlngx6.pro/sdk/classes/win/unowinreg.dll] Error 1 make[1]: *** Deleting file `/var/tmp/portage/app-office/libreoffice-4.1.2.3/work/libreoffice-4.1.2.3/instdir/unxlngx6.pro/sdk/classes/win/unowinreg.dll' But after it exists I can do the touch operation manually: touch /var/tmp/portage/app-office/libreoffice-4.1.2.3/work/libreoffice-4.1.2.3/instdir/unxlngx6.pro/sdk/classes/win/unowinreg.dll and that works. Why is the operation not permitted during the emerge?
the same error with libreoffice-4.1.3.2
Try to add --disable-hardlink-deliver to configure and see if it fails for you please.
Yes, problem solved by replacing --enable-hardlink-deliver with --disable-hardlink-deliver
(In reply to LE GARREC Vincent from comment #15) > Yes, problem solved by replacing --enable-hardlink-deliver with > --disable-hardlink-deliver Excellent. Fix committed in 4.1.4.2 and later. Please give it some hours to propagate to the rsync mirrors.