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.li...@gmail.com>
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.li...@gmail.com>
---
 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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to