Re: Building the code on OS X
On 17.02.2015 06:25, Tor Lillqvist wrote: No idea what causes your MAX_FALLBACK issue. It is clearly defined in vcl/inc/magic.h: #define MAX_FALLBACK 16. Quite possibly, your VALGRIND_CFLAGS, or some other special thing you do, causes some other magic.h to be included instead. Vlad, in case you're still having trouble with that you can debug that by applying the attached patch and checking the generated file workdir/CxxObject/vcl/source/font/PhysicalFontCollection.o.ii to see which magic.h was included. diff --git a/solenv/gbuild/platform/com_GCC_class.mk b/solenv/gbuild/platform/com_GCC_class.mk index 0ce02d6..9a8cddb 100644 --- a/solenv/gbuild/platform/com_GCC_class.mk +++ b/solenv/gbuild/platform/com_GCC_class.mk @@ -55,8 +55,8 @@ $(call gb_Helper_abbreviate_dirs,\ $(if $(5),$(gb_COMPILER_PLUGINS)) \ $(2) \ $(if $(EXTERNAL_CODE),$(gb_CXXFLAGS_Wundef),$(gb_DEFS_INTERNAL)) \ - -c $(3) \ - -o $(1) \ + -E $(3) \ + -o $(1).ii \ $(call gb_cxx_dep_generation_options,$(1),$(4)) \ -I$(dir $(3)) \ $(INCLUDE) \ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Building the code on OS X
Don't try to use Valgrind with LibreOffice on OS X. Nobody else does, so if you run into problems with it, you are on your own. (If you solve such problems, and Valgrind indeed now works fine on OS X in general, and on LibreOffice in particular, then do contribute any necessary patches to LibreOffice back, please! But anyway, at first do a normal LibreOffice build without any attempts to use special 3rd-party stuff.) No idea what causes your MAX_FALLBACK issue. It is clearly defined in vcl/inc/magic.h: #define MAX_FALLBACK 16. Quite possibly, your VALGRIND_CFLAGS, or some other special thing you do, causes some other magic.h to be included instead. --tml ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Building the code on OS X
I've checked out config.log and then tried to use autoconf with the next options --with-ant-home=/usr/local/Cellar/ant/1.9.4/libexec/ --without-junit VALGRIND_CFLAGS=-I/usr/local/Cellar/valgrind/HEAD/include previously I had done it without VALGRIND_CFLAG=... option. I tried to make it again and here is what I got: [build CXX] vcl/source/font/PhysicalFontFace.cxx /Users/vlad/lo/core/vcl/source/font/PhysicalFontCollection.cxx:158:36: error: use of undeclared identifier 'MAX_FALLBACK' if( ++nMaxLevel = MAX_FALLBACK ) ^ /Users/vlad/lo/core/vcl/source/font/PhysicalFontCollection.cxx:184:58: error: use of undeclared identifier 'MAX_FALLBACK' pFallbackList = new PhysicalFontFamily*[ MAX_FALLBACK ]; ^ 2 errors generated. make[1]: *** [/Users/vlad/lo/core/workdir/CxxObject/vcl/source/font/PhysicalFontCollection.o] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [build] Error 2 I attached the config.log to the message. What should I do? What are your autogen options? Also, look at config.log, we use autoconf, so the exact command that failed should be documented in that file. Regards, Miklos ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: GSoC 2015 (Building the code on OS X)
On 15.02.2015 15:57, Vlad Shablinsky wrote: Hi, I'm Vlad Shablinksy. I'm studying Computer Science at Belarusian State University. I would really like to work with LibreOffice this summer. I've been trying to build the code on OS X 10.10.2 (Minimal Setup) and I've encountered this error: checking for --with-valgrind... yes checking valgrind/valgrind.h usability... no checking valgrind/valgrind.h presence... no checking for valgrind/valgrind.h... no configure: error: Valgrind support requested but headers not available make[1]: *** [/Users/vlad/lo/core/workdir/ExternalProject/python3/build] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [build] Error 2 I have valgrind installed and I know where its headers located, but I don't know where they are tried to be found and how to fix an error. Couldyou please guide me on this? if the top level LO configure detects that valgrind.h is available, then python's configure is invoked with --with-valgrind. why that then fails to detect valgrind.h is not obvious and would require looking at the config.log files. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
GSoC 2015 (Building the code on OS X)
Hi, I'm Vlad Shablinksy. I'm studying Computer Science at Belarusian State University. I would really like to work with LibreOffice this summer. I've been trying to build the code on OS X 10.10.2 (Minimal Setup) and I've encountered this error: checking for --with-valgrind... yes checking valgrind/valgrind.h usability... no checking valgrind/valgrind.h presence... no checking for valgrind/valgrind.h... no configure: error: Valgrind support requested but headers not available make[1]: *** [/Users/vlad/lo/core/workdir/ExternalProject/python3/build] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [build] Error 2 I have valgrind installed and I know where its headers located, but I don't know where they are tried to be found and how to fix an error. Could you please guide me on this? ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: GSoC 2015 (Building the code on OS X)
Hi, On Sun, Feb 15, 2015 at 05:57:43PM +0300, Vlad Shablinsky vladshablin...@gmail.com wrote: Hi, I'm Vlad Shablinksy. I'm studying Computer Science at Belarusian State University. I would really like to work with LibreOffice this summer. I've been trying to build the code on OS X 10.10.2 (Minimal Setup) and I've encountered this error: checking for --with-valgrind... yes checking valgrind/valgrind.h usability... no checking valgrind/valgrind.h presence... no checking for valgrind/valgrind.h... no configure: error: Valgrind support requested but headers not available make[1]: *** [/Users/vlad/lo/core/workdir/ExternalProject/python3/build] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [build] Error 2 I have valgrind installed and I know where its headers located, but I don't know where they are tried to be found and how to fix an error. Could you please guide me on this? What are your autogen options? Also, look at config.log, we use autoconf, so the exact command that failed should be documented in that file. Regards, Miklos signature.asc Description: Digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: GSoC 2015 (Building the code on OS X)
On Sun, Feb 15, 2015 at 3:57 PM, Vlad Shablinsky vladshablin...@gmail.com wrote: Hi, I'm Vlad Shablinksy. I'm studying Computer Science at Belarusian State University. I would really like to work with LibreOffice this summer. I've been trying to build the code on OS X 10.10.2 (Minimal Setup) and I've encountered this error: checking for --with-valgrind... yes checking valgrind/valgrind.h usability... no checking valgrind/valgrind.h presence... no checking for valgrind/valgrind.h... no configure: error: Valgrind support requested but headers not available make[1]: *** [/Users/vlad/lo/core/workdir/ExternalProject/python3/build] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [build] Error 2 I have valgrind installed and I know where its headers located, but I don't know where they are tried to be found and how to fix an error. Could you please guide me on this? Is highly recommended _not_ to build with homebrew/flink/port oher source of libraries... keep your build environment (path ld_libbrary_path, etc..) as clean as possible Ignore this at your own peril :-) Norbert ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice