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


On 9 September 2011 09:19, Tor Lillqvist <tml@iki.fi> wrote:
(re-formatting the make output for clarity)

[ build CXX ] o3tl/qa/cow_wrapper_clients
R=c:/cygwin/home/Simon/git &&
O=$R/libo/solver/wntmsci12.pro &&
W=$R/libo/workdir/wntmsci12.pro &&
S=$R/libo &&

Here the build mechanism sets some shell variables that will then be
used later on the same command line. (Yeah, weird, but apparently this
*is* a good idea, I don't know or recall the details.)

mkdir -p $W/CxxObject/o3tl/qa/$W/Dep/CxxObject/o3tl/qa/ &&
/cygdrive/c/PROGRA~1/MICROS~1.0/VC/bin/cl.exe
-DBOOST_MEM_FN_ENABLE_CDECL -DCPPU_ENV=msci -DCUI -DENABLE_GRAPHITE -DENABLE_GTK

[...], looks fine so far

-IC:/cygwin$O/inc/stl
-IC:/cygwin$O/inc/external -IC:/cygwin$O/inc
-IC:/cygwin$S/solenv/wntmsci12/inc
-IC:/cygwin$S/solenv/inc
-IC:/cygwin$S/res

But these are all screwed up, the $O and $S shell variables are not
expanded, and even if they were, they are used in locations that don't
make sense.

I had the same problem and was wondering why I'm the only one.

You are supposed to see -I flags with the $O and $S expanded. In your
case O=c:/cygwin/home/Simon/git/libo/solver/wntmsci12.pro and
S=c:/cygwin/home/Simon/git/libo as far as I can see).

For instance the first -I option there, -IC:/cygwin$O/inc/stl , would
with $O expanded be
-IC:/cygwinc:/cygwin/home/Simon/git/libo/solver/wntmsci12.pro/inc/stl
which of course makes no sense.

There must be something wrong in the gbuild make function mechanisms
that mishandles your case. I wonder if it is the fact that you are
building in your home directory, does the fact that the build location
starts with c:/cygwin confuse some substitution pattern, or something?
I will try to investigate.

--- a/solenv/gbuild/platform/windows.mk
+++ b/solenv/gbuild/platform/windows.mk
@@ -234,10 +234,10 @@ endef
 endif

 # Helper class
-gb_Helper_SRCDIR_NATIVE := $(shell cygpath -m $(SRCDIR) | $(gb_AWK)
-- '{ print tolower(substr($$0,1,1)) substr($$0,2) }')
-gb_Helper_WORKDIR_NATIVE := $(shell cygpath -m $(WORKDIR) | $(gb_AWK)
-- '{ print tolower(substr($$0,1,1)) substr($$0,2) }')
-gb_Helper_OUTDIR_NATIVE := $(shell cygpath -m $(OUTDIR) | $(gb_AWK)
-- '{ print tolower(substr($$0,1,1)) substr($$0,2) }')
-gb_Helper_REPODIR_NATIVE := $(shell cygpath -m $(REPODIR) | $(gb_AWK)
-- '{ print tolower(substr($$0,1,1)) substr($$0,2) }')
+gb_Helper_SRCDIR_NATIVE := $(shell cygpath -m $(SRCDIR))
+gb_Helper_WORKDIR_NATIVE := $(shell cygpath -m $(WORKDIR))
+gb_Helper_OUTDIR_NATIVE := $(shell cygpath -m $(OUTDIR))
+gb_Helper_REPODIR_NATIVE := $(shell cygpath -m $(REPODIR))

Has solved problem for me I think. There was something else maybe (but
only warnings, I'm not sure now what exactly), but this helped to
continue building.

HTH,

Matúš

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.