Race condition when compiling from source

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Race condition when compiling from source

Post by Lone_Wolf » Tue Jul 12, 2011 7:39 pm

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.
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

I am subscribed to the threads for my oxps, if you need my attention just post in them or send a pm.

Post Reply