Re: [Libreoffice] C{,PP}FLAGS ignored in sal
On Thu, Oct 14, 2010 at 09:33:45AM +0100, Caolán McNamara wrote: On Thu, 2010-10-14 at 08:37 +0200, Thomas Klausner wrote: On Wed, Oct 13, 2010 at 05:25:59PM +0200, Thomas Klausner wrote: I don't see my CFLAGS nor CPPFLAGS, which would make it find boost, in the gcc arguments. How can I make them used in this part of the build? I don't think we have any proper support to pass CFLAGS and CPPFLAGS down to everything correctly. You can try using ARCH_FLAGS as a route to pass extra flags down to the final compiler line. There is ENVCFLAGS for flags to add to $CC and ENVCFLAGSCXX for flags to add to $CXX . D. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] C{,PP}FLAGS ignored in sal
On Fri, Oct 15, 2010 at 01:22:46PM +0200, David Tardon wrote: There is ENVCFLAGS for flags to add to $CC and ENVCFLAGSCXX for flags to add to $CXX . That's a very good tip, thank you. Why aren't the environment's CFLAGS and CPPFLAGS variables added automatically? Is there a similar LDFLAGS or LIBS variable? Thomas ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] C{,PP}FLAGS ignored in sal
On Thu, 2010-10-14 at 08:37 +0200, Thomas Klausner wrote: On Wed, Oct 13, 2010 at 05:25:59PM +0200, Thomas Klausner wrote: I don't see my CFLAGS nor CPPFLAGS, which would make it find boost, in the gcc arguments. How can I make them used in this part of the build? I don't think we have any proper support to pass CFLAGS and CPPFLAGS down to everything correctly. You can try using ARCH_FLAGS as a route to pass extra flags down to the final compiler line. Ok, if that question is too detailed... I haven't yet understood how to start parts of the build, I'm always running autogenmake from toplevel. E.g.: Yeah, the current story is roughly that, taking the current documented make route, that there is a build wrapper around the core build stuff. The toplevel ./autogen.sh sets up the inner build, and some other foo. Where is the build executable I'm supposed to run when a build is interrupted? So, if you open another shell (to keep this simple) and cd build/build/libreoffice-3.2.99.2 source *Env.Set.sh alias|grep build= build is an alias to a build.pl in solenv and go to the broken module, say sw cd sw build Do I need to set some environment variables before running it? Yeah, the somethingEnv.Set.sh, e.g. LinuxX86-64Env.Set.sh for me, in the root of the libreoffice-3.2.99.2 build dir What are the files used by dmake to find out what to do? all those makefile.mk files (How) Can I run dmake manually? In which directory? Does it need environment variables set as well? yeah, build calls dmake in each dir, so again lets take sw, and say that the breakage is in sw/source/filter/ww8 cd sw/source/filter/ww8 dmake Anything else I should know about building? The current documented libreoffice build route is one where the different split git repos live in build/clone, they are all symlinked to build/rawbuild and the toplevel build/Makefile rsyncs rawbuild into build/build/libreoffice-3.2.99.2 and runs the inner configure in there, sources the EnvSet.sh file and runs the build alias in there. C. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] C{,PP}FLAGS ignored in sal
Hi! I'm building LO with: ./autogen.sh --with-git --with-system-libs --with-system-headers --with-system-zlib --with-system-jpeg --with-system-libxslt --with-system-libxml --with-system-mesa-headers --with-system-cairo --with-system-mozilla=mozilla --with-system-saxon --with-system-lucene --with-system-openssl CFLAGS=-I/usr/pkg/include -I/usr/X11R7/include CPPFLAGS=-I/usr/pkg/include LDFLAGS=-L/usr/pkg/lib -Wl,-R/usr/pkg/lib QTDIR=/usr/pkg/qt4 --with-jdk-home=/usr/pkg/java/openjdk7 --with-max-jobs=1 --with-num-cpus=1 --disable-kde --disable-kde4 --with-system-mdds=no --with-system-altlinuxhyph=no --with-openldap --without-junit --with-system-mythes=no The build fails with: Compiling: sal/osl/all/debugbase.cxx g++ -fmessage-length=0 -c -O1 -DENABLE_LAYOUT=0 -DENABLE_LAYOUT_EXPERIMENTAL=0 -D_FILE_OFFSET_BITS=no -I. -I../../unxbsdx3.pro/inc/oslall -I../inc -I../../inc/pch -I../../inc -I../../unx/inc -I../../unxbsdx3.pro/inc -I. -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solver/330/unxbsdx3.pro/inc/stl -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solver/330/unxbsdx3.pro/inc/external -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solver/330/unxbsdx3.pro/inc -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solenv/unxbsdx3/inc -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solenv/inc -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/res -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solver/330/unxbsdx3.pro/inc/stl -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solenv/inc/Xp31 -I/usr/pkg/java/openjdk7/include -I/usr/pkg/java/openjdk7/include/netbsd -I/usr/pkg/java/openjdk7/include/native_threads/include -I/ usr/X11R7/include -I/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solver/330/unxbsdx3.pro/inc/offuh -I. -I../../res -I. -pipe -Wno-ctor-dtor-privacy-DNETBSD -DUNX -DVCL -DGCC -DC341 -DX86_64 -DX86_64 -pthread -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/g++ -DSUPD=330 -DPRODUCT -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DGSTREAMER -DCUI -DSOLAR_JAVA -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON -o ../../unxbsdx3.pro/obj/debugbase.o /disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/sal/osl/all/debugbase.cxx /disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/sal/osl/all/debugbase.cxx:36:26: error: boost/bind.hpp: No such file or directory /disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/sal/osl/all/debugbase.cxx: In function 'bool osl_detail_ObjectRegistry_storeAddresses(const char*)': /disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/sal/osl/all/debugbase.cxx:104: error: 'boost' has not been declared /disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/sal/osl/all/debugbase.cxx:104: error: '_1' was not declared in this scope dmake: Error code 1, while making '../../unxbsdx3.pro/obj/debugbase.obj' I don't see my CFLAGS nor CPPFLAGS, which would make it find boost, in the gcc arguments. How can I make them used in this part of the build? Thomas ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice