Bug Tracker item #2811139, was opened at 2009-06-24 00:34 Message generated for change (Comment added) made by whyscream You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2811139&group_id=250683
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tom Hendrikx (whyscream) Assigned to: Stevan Bajic (sbajic) Summary: Build failures with -j2 or higher Initial Comment: With current git sources I had some problems building the sqlite driver. Compilation sometimes aborted, but always at the same location. After some searching I found out that this happened because of a race condition that happens when building with -j2 or higher, -j1 does seem to work consistently. In the output of make, the race condition is clearly visible. When looking at Makefile.am, it seems that the problem should also exist for the other driver components,which I have not tested. I tried some fiddling with Makefile.am myself, but could get it fixed. Output of make -j3: /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -rdynamic -rpath '/usr/lib/dspam' -version-info 7:0:0 -rdynamic -o libsqlite3_drv.la -rpath /usr/lib/dspam libsqlite3_drv_la-sqlite3_drv.lo -lsqlite3 -lm -ldl ./libdspam.la -lm -ldl i686-pc-linux-gnu-gcc -shared .libs/libdspam.o .libs/heap.o .libs/diction.o .libs/base64.o .libs/buffer.o .libs/util.o .libs/nodetree.o .libs/error.o .libs/decode.o .libs/pref.o .libs/read_config.o .libs/config_shared.o .libs/bnr.o .libs/hash.o .libs/list.o .libs/external_lookup.o .libs/tokenizer.o .libs/storage_driver.o -lm -ldl -march=i686 -Wl,-soname -Wl,libdspam.so.7 -o .libs/libdspam.so.7.0.0 libtool: link: cannot find the library `./libdspam.la' or unhandled argument `./libdspam.la' make[3]: *** [libsqlite3_drv.la] Error 1 make[3]: *** Waiting for unfinished jobs.... (cd .libs && rm -f libdspam.so.7 && ln -s libdspam.so.7.0.0 libdspam.so.7) (cd .libs && rm -f libdspam.so && ln -s libdspam.so.7.0.0 libdspam.so) i686-pc-linux-gnu-ar cru .libs/libdspam.a libdspam.o heap.o diction.o base64.o buffer.o util.o nodetree.o error.o decode.o pref.o read_config.o config_shared.o bnr.o hash.o list.o external_lookup.o tokenizer.o storage_driver.o i686-pc-linux-gnu-ranlib .libs/libdspam.a creating libdspam.la (cd .libs && rm -f libdspam.la && ln -s ../libdspam.la libdspam.la) make[3]: Leaving directory `/var/tmp/portage/mail-filter/dspam-9999/work/dspam-9999/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/mail-filter/dspam-9999/work/dspam-9999/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/mail-filter/dspam-9999/work/dspam-9999/src' make: *** [all-recursive] Error 1 ---------------------------------------------------------------------- >Comment By: Tom Hendrikx (whyscream) Date: 2009-06-25 21:24 Message: That works indeed, as I mentioned already. The real problem is probably some bug the Makefile, that I failed to track down myself. ---------------------------------------------------------------------- Comment By: Stevan Bajic (sbajic) Date: 2009-06-24 16:27 Message: Hallo Tom Can you please add the following to your ebuild: src_compile() { emake -j1 CC="$(tc-getCC)" || die "emake failed" } That should fix the issue (for now). Kind Regards Stevan Bajic ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2811139&group_id=250683 ------------------------------------------------------------------------------ _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel