From: Sedat D. <sed...@go...> - 2010-01-07 22:40:36
|
Hi Dan, [src/mesa/Makefile] ... -driver_subdirs: libmesa.a libglapi.a +driver_subdirs: libmesa.a libmesagallium.a libglapi.a This one works :-). $ find mesa/ -name libmesa* mesa/src/mesa/libmesa.a mesa/src/mesa/libmesagallium.a $ find mesa/ -name libglapi* mesa/src/mesa/libglapi.a Can you please, push that, Thanks. - Sedat - On Thu, Jan 7, 2010 at 11:27 PM, Sedat Dilek <sed...@go...> wrote: > [PATCH] Build libmesagallium.a before descending into drivers > > ...does NOT fix the parallel-make-job problem. > > $ grep libmesagallium mesa/src/mesa/Makefile > default: depend asm_subdirs glsl_builtin libmesa.a libmesagallium.a \ > libmesagallium.a: $(MESA_GALLIUM_OBJECTS) $(GLSL_LIBS) > driver_subdirs: libmesa.a libglapi.a libmesagallium.a > > $ find mesa/ -name libmesa* > mesa/src/mesa/libmesa.a > > File libmesagallium.a does not exist! > > Not sure, if this is interesting: > ... > make[5]: Entering directory > `/home/sd/src/mesa/mesa/src/gallium/winsys/drm/radeon/dri' > ../../Makefile.template:126: depend: No such file or directory > ... > > - Sedat - > > > On Thu, Jan 7, 2010 at 10:51 PM, Dan Nicholson <dbn...@gm...> wrote: >> On Thu, Jan 07, 2010 at 08:05:30PM +0100, Sedat Dilek wrote: >>> Hi, >>> >>> I have a couple of questions which araised while building mesa from >>> upstream master [1]. >>> Partially, I discussed them on #radeon IRC [2,3]. >>> >>> [Q1] SpeedUp build of mesa: parallel-make-jobs and/or ccache? >>> >>> For a long time it was no problem to build mesa on my 32bit-host >>> (Debian/sid, Intel Core2Duo T7200, 2GByte RAM, 80GByte SATA-HDD, etc.) >>> with the following settings in my build-script: >>> >>> export MAKEFLAGS="-j3" >>> >>> Unfortunately, I noticed that "mesa/src/mesa/libmesagallium.a" does >>> not exist and the build of r300g fails (see backlog #radeon 2010-01-02 >>> in [2]). >>> >>> >From the build-log: >>> ... >>> make[5]: Entering directory >>> `/home/sd/src/mesa/mesa/src/gallium/winsys/drm/radeon/dri' >>> make[5]: *** No rule to make target >>> `../../../../../../src/mesa/libmesagallium.a', needed by >>> `radeon_dri.so'. Stop. >>> ... >>> >>> Commenting export MAKEFLAGS="-j3" in my build-script is a temporary fix. >>> With ccache enabled I have a build-time around 6min (that's a fast >>> build-time I know). >> >> Parallel make should work. Does the patch below fix the issue? >> >> -- >> Dan >> >> From 7ce28ade9e0f529a708e624f40c7e8f8f1aa71c3 Mon Sep 17 00:00:00 2001 >> From: Dan Nicholson <dbn...@gm...> >> Date: Thu, 7 Jan 2010 13:45:57 -0800 >> Subject: [PATCH] Build libmesagallium.a before descending into drivers >> >> Should fix this issue with parallel jobs: >> >> make[5]: *** No rule to make target >>> `../../../../../../src/mesa/libmesagallium.a', needed by >>> `radeon_dri.so'. Stop. >> >> Signed-off-by: Dan Nicholson <dbn...@gm...> >> --- >> src/mesa/Makefile | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/src/mesa/Makefile b/src/mesa/Makefile >> index a815f46..f845d93 100644 >> --- a/src/mesa/Makefile >> +++ b/src/mesa/Makefile >> @@ -42,7 +42,7 @@ libglapi.a: $(GLAPI_OBJECTS) >> >> ###################################################################### >> # Device drivers >> -driver_subdirs: libmesa.a libglapi.a >> +driver_subdirs: libmesa.a libglapi.a libmesagallium.a >> @ (cd drivers && $(MAKE)) >> >> >> -- >> 1.6.5.2 >> > |