[GRASS-dev] make on SMP [was: GRASS 6.3.0 release preparation]

Soeren Gebbert soerengebbert at googlemail.com
Wed Oct 17 19:07:36 EDT 2007


Looks like the gpde library causes some problems. :/
I guess this is related to the Makefile. The gpde lib Makefile copies the
N_pde.h
header file into the build include directory before compiling:

MODULE_TOPDIR = ../..

EXTRA_LIBS=$(GISLIB) $(G3DLIB)
LIB_NAME = $(GPDE_LIBNAME)

include $(MODULE_TOPDIR)/include/Make/Lib.make
include $(MODULE_TOPDIR)/include/Make/Doxygen.make

default: headers lib

headers:
        for file in ./N_*.h ; do $(INSTALL_DATA) $$file
$(GISBASE)/include/grass/ ; done

lib: headers

#doxygen:
DOXNAME=gpde


I don't know why this is not working on a smp machine?
Are you using NFS? Maybe there is a delay while copying the header?
Sorry, i cant help much in this case, my Makefile knowledge is very limited.


Best  regards
Soeren

2007/10/18, Maciej Sieczka <tutey at o2.pl>:
>
> Glynn Clements wrote:
> > Maciej Sieczka wrote:
> >
> >>>> sorry but I'm not an make guru and thus see it simple: if I run
> comand
> >>>> "make -j4" it should get along with it or fail with "err blah
> parallel
> >>>> buld not supported". Current CVS version does neither of it.
> >>> I hope we don't give up so early. Probably just a few Makefiles
> >>> need to be fixed (basically, get the target order right therein).
> >>>> As multicore CPU's are getting more popular, more and more users will
> be
> >>>> trying to run "make -j X" and thus report failure as bug [1].
> >>> Not always. As written yesterday, "make -j3" worked for me on my RHEL5
> >>> box. Now testing with Mandriva.
> >>>> If I can help with testing, drop me instructions. I have Gentoo ~x86
> >>>> system (gcc version 4.2.1; GNU Make 3.81).
> >>> Please help testing. Just run it and see if and where it fails.
> >>> Then check the problematic Makefile(s) for correct order:
> >>> http://grass.gdf-hannover.de/wiki/Development#GRASS_Makefile_writing
> >> As for testing: I get the following errors with make -j3 on
> >> Intel Core 2 6600 running 2.6.15-29-amd64-xeon (Ubuntu Dapper):
> >>
> >> --
> >> Errors in:
> >> /home/maciek/src/straight/grass63/lib/gpde
> >> /home/maciek/src/straight/grass63/imagery/i.vpoints
> >> /home/maciek/src/straight/grass63/misc/m.cogo
> >> /home/maciek/src/straight/grass63/raster/r.gwflow
> >> /home/maciek/src/straight/grass63/raster/r.to.rast3elev
> >> /home/maciek/src/straight/grass63/raster3d/r3.gwflow
> >> /home/maciek/src/straight/grass63/vector/v.sample
> >
> > What errors, exactly?
>
> That's all it says:
>
> Started compilation: Thu Oct 18 00:07:37 CEST 2007
> --
> Errors in:
> /home/maciek/src/straight/grass63/lib/gpde
> /home/maciek/src/straight/grass63/misc/m.cogo
> /home/maciek/src/straight/grass63/raster/r.gwflow
> /home/maciek/src/straight/grass63/raster3d/r3.gwflow
> --
> In case of errors please change into the directory with
> error and run 'make'. If you get multiple errors, you need
> to deal with them in the order they appear in the error log.
> If you get an error building a library, you will also get
> errors from anything which uses the library.
> --
> Finished compilation: Thu Oct 18 00:11:12 CEST 2007
> make: *** [default] Error 1
>
> If you'd like to see full make and configure output they are
> here [1].
>
> (Note this time there are less modules affected, and there
> haven't been any commits to CVS between this and previous
> CVS checkout + make run; I remembered to run "make
> distclean" both times FWIW).
>
> When I enter dirs mentioned  in "Errors in:", one by one,
> and run "make -j3", they build fine and no errors are printed.
>
> Maciek
>
>
> [1]http://www.biol.uni.wroc.pl/sieczka/udostepnione/grass/grass63_make_j3_18.10.07.tar.bz2
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20071018/fa8d89dd/attachment.html


More information about the grass-dev mailing list