dynamobi/dynamobi — Issue #488: [FNL-20] get parallel make working
Author: dynamobi-build
Created: 2011-12-30 03:29:21+00:00
State: open
Labels: Build, FNL

[reporter="jvs", created="Tue, 21 Feb 2006 10:19:04 -0500 (GMT-05:00)"]
I tried make -j 2 in Fennel on a dual-CPU machine, but got the error below when it tries to build the first library. I guess automake isn't set up by default to generate parallel-safe makefiles, but there may be a way to help it.

g++ -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -D_STLP_DEBUG=1 -D_STLP_DEBUG_UNINITIALIZED=1 -g -DDEBUG -Wl,-lboost_thread-gcc-mt-gdp-1_33 -Wl,-lboost_regex-gcc-mt-gdp-1_33 -Wl,-lboost_date_time-gcc-mt-gdp-1_33 -Wl,-lboost_filesystem-gcc-mt-gdp-1_33 -Wl,-lstlport_gcc_stldebug -Wl,-E -o testBacktrace testBacktrace.o -L/home/jvs/open/fennel/../thirdparty/boost/lib -L/home/jvs/open/fennel/../thirdparty/stlport/lib -lpthread -lstdc++ -lgcc_s -lrt -lcommon

ranlib .libs/libcommon.a

creating libcommon.la

(cd .libs && rm -f libcommon.la && ln -s ../libcommon.la libcommon.la)

/usr/bin/ld: cannot find -lcommon

collect2: ld returned 1 exit status

make[2]: *** [testBacktrace] Error 1

make[2]: Leaving directory `/home/jvs/open/fennel/common'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/jvs/open/fennel'

make: *** [all] Error 2

j