On 6/2/07, Pedro Alves wrote:
Carsten Sørensen wrote: > Since I have a dual core machine, my MAKEFLAGS variable is set to "-j 2" > which is not compatible with the cegccdll and libstdc++ make process - > the _tmp directory is deleted before it's needed. As a kludgy solution, > I've added the -j 1 flag to make when those two targets are built from > build-cegcc.sh, patch attached. Since those two build quickly, I don't > think this solution is too bad. >> * build-cegcc.sh (build_cegccdll, build_libstdcppdll): Add > "-j 1" flag to make. > I don't see any problem here. The cegcc build is already full of kludges, so one more wouldn't hurt. Danny, any objections?
Hi again. I've committed the attached patch to libstdc++/Makefile instead, using the same idea. Could you give it a try? I've tested it by doing this: MAKEFLAGS="-j 2" ./build-cegcc.sh . build-cegcc /opt/cegcc/ libstdc++ and this at the libstdc++ dir: make -j 2 Without the patch, I would see race problems; with the patch, no problems. Cheers, Pedro Alves
Index: ChangeLog =================================================================== --- ChangeLog (revision 928) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2007-06-04 Carsten Sørensen <[EMAIL PROTECTED]> + + * Makefile (MAKEFLAGS): Override -j flag by always setting -j 1. + 2007-06-04 Pedro Alves <[EMAIL PROTECTED]> * Makefile (PREFIX): Default to /opt/cegcc. Index: Makefile =================================================================== --- Makefile (revision 928) +++ Makefile (working copy) @@ -23,6 +23,10 @@ RMFILES= +# FIXME: override -j > 1, because this makefile doesn't +# support parallel builds. +MAKEFLAGS:=$(MAKEFLAGS) -j 1 + # this should be solved with defines passed to libstdc++. see libmath #RMFILES+=wf_hypot.o
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel