Page 1 of 1

Race condition when compiling from source

Posted: Tue Jul 12, 2011 7:39 pm
by Lone_Wolf
When oolite is built with MAKEFLAGS -j1 (like on a single socket / singlecore cpu) , the built is succesfull.

However, If compiled with makeflags -j2 or more, the build of libjs fails .

Her's the relevant part of the build script with a workaround for compiling it with -j2 (or higher) :

Code: Select all

    cd ${srcdir}/${pkgname}-build/deps/Cocoa-deps/scripts
    ./update-mozilla.sh
    mkdir -p ${srcdir}/${pkgname}-build/deps/Cross-platform-deps/mozilla/js/src/build-release
    cd ${srcdir}/${pkgname}-build/deps/Cross-platform-deps/mozilla/js/src/build-release
    ../configure --disable-shared-js --enable-threadsafe --with-system-nspr --disable-tests --enable-trace-jscalls
    cd ${srcdir}/${pkgname}-build
    make -f libjs.make debug=no
    make -f Makefile release
The problems appear only in the libjs part.