Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481784 - app-office/libreoffice-4.1.0.4[odk] fails to build
Summary: app-office/libreoffice-4.1.0.4[odk] fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 484536 486010 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-20 20:42 UTC by Tiziano Müller (RETIRED)
Modified: 2013-12-27 16:49 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build log (1377008795-install-app-office_libreoffice-4.1.0.4:0::gentoo.out.gz,163.18 KB, application/gzip)
2013-08-20 20:42 UTC, Tiziano Müller (RETIRED)
Details
Compressed build.log (build.log.gz,162.58 KB, application/x-gzip)
2013-08-27 18:30 UTC, Denis Dupeyron (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2013-08-20 20:42:40 UTC
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.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2013-08-21 04:17:40 UTC
with USE=-odk it builds fine.
Comment 2 Denis Dupeyron (RETIRED) gentoo-dev 2013-08-27 18:30:54 UTC
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.
Comment 3 Denis Dupeyron (RETIRED) gentoo-dev 2013-09-04 20:51:31 UTC
The issue is still the same here with libreoffice-4.1.1.2.

Denis.
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2013-09-15 10:24:13 UTC
*** Bug 484536 has been marked as a duplicate of this bug. ***
Comment 5 LE GARREC Vincent 2013-09-24 19:10:29 UTC
I bypass the problem by adding the following line to the econf of the ebuild :

$(use_enable odk build-unowinreg) \
Comment 6 Greg Turner 2013-09-24 22:18:08 UTC
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.
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2013-09-26 09:54:48 UTC
*** Bug 486010 has been marked as a duplicate of this bug. ***
Comment 8 Denis Dupeyron (RETIRED) gentoo-dev 2013-09-27 18:22:27 UTC
(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.
Comment 9 LE GARREC Vincent 2013-09-28 13:51:03 UTC
silly question but : do you have MinGW32 C++ installed ?

maybe your config.log could help you ?
Comment 10 Denis Dupeyron (RETIRED) gentoo-dev 2013-10-05 15:19:12 UTC
(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.
Comment 11 LE GARREC Vincent 2013-10-05 15:37:34 UTC
(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.
Comment 12 Keith Dart 2013-10-10 01:24:12 UTC
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?
Comment 13 tonich 2013-11-12 17:14:32 UTC
the same error with libreoffice-4.1.3.2
Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2013-12-27 09:05:21 UTC
Try to add --disable-hardlink-deliver to configure and see if it fails for you please.
Comment 15 LE GARREC Vincent 2013-12-27 16:28:28 UTC
Yes, problem solved by replacing --enable-hardlink-deliver with --disable-hardlink-deliver
Comment 16 Andreas K. Hüttel archtester gentoo-dev 2013-12-27 16:49:30 UTC
(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.