Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Sep 2, 2011, at 6:28 PM, Peter Foley wrote:
On Fri, 2 Sep 2011, Stephan Bergmann wrote:

On Sep 1, 2011, at 5:33 PM, Peter Foley wrote:
On Thu, 1 Sep 2011, Eike Rathke wrote:

Hi Peter,

On Tuesday, 2011-08-30 14:36:01 -0400, Peter Foley wrote:

[ build ALL ] top level modules: i18npool
[ build ALL ] loaded modules: i18npool
[ build RDB ] i18npool_test_breakiterator
awk: cmd. line:1: $R/^<\?xml version.*$R/ { next; } { 
gsub($R/vnd.sun.star.expand:\$OOO_BASE_DIR\$R/program$R/, 
"vnd.sun.star.expand:$OOO_BASE_DIR",$0); 
gsub($R/vnd.sun.star.expand:\$BRAND_BASE_DIR\$R/program$R/, 
"vnd.sun.star.expand:$BRAND_BASE_DIR",$0); print; }
awk: cmd. line:1:    ^ syntax error
awk: cmd. line:1: $R/^<\?xml version.*$R/ { next; } { 
gsub($R/vnd.sun.star.expand:\$OOO_BASE_DIR\$R/program$R/, 
"vnd.sun.star.expand:$OOO_BASE_DIR",$0); 
gsub($R/vnd.sun.star.expand:\$BRAND_BASE_DIR\$R/program$R/, 
"vnd.sun.star.expand:$BRAND_BASE_DIR",$0); print; }
awk: cmd. line:1:      ^ backslash not last character on line
make: *** [/libreoffice/workdir/unxlngx6.pro/RdbTarget/i18npool_test_breakiterator.rdb] Error 
1

I'm getting the above build error which seems to be caused by $R being 
added to the awk regex expression by gb_Helper_abbreviate_dirs.

Apparently you're the only one getting this error, so I wonder what may
be different on your system? I doubt this is a general
"gb_Helper_abbreviate_dirs always inserts $R before /" problem. Which
platform are you on? I presume winmingw, because that (and windows)
defines gb_Helper_abbreviate_dirs_native to something different than the
general gb_Helper_abbreviate_dirs:

I'm actually building libreoffice in a gentoo linux x64 chroot.
I don't know if the chroot is causing this problem or not.
awk is 4.0.0
make is 3.82
Let me know if you need any more info.

The path to the LibO sources within your chroot environment appears to be too short (they are 
probably right in the root there, right?).  Then, gb_Helper_abbreviate_dirs will replace each 
occurrence of "/" with "$R/" in the command line.  (gb_Helper_abbreviate_dirs is broken by 
design, but must of the time this goes unnoticed.)  Try moving the LibO sources further down in 
the directory hierarchy.

-Stephan


Moving the source tree one level down did indeed fix it. 
Out of curiosity could you elaborate on why building libreoffice in 
/libreoffice fails?

I would have thought that you built in /, not /libreoffice.  Anyway, what breaks is that if, say, 
$(REPODIR) is an empty string in gb_Helper_abbreviate_dirs (solenv/gbuild/Helper.mk), then all 
occurrences of / on the command line are replaced with $R/, even those occurrences that do not 
denote filepaths, like the occurrences of / in the awk argument '/^<\?xml…' in 
solenv/gbuild/RdbTarget.mk.

-Stephan

Thanks,

Peter


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.