From c6bd22b90b903381f7494d8354fc5fc84fd81f56 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Wed, 24 Oct 2012 12:39:31 +0200 Subject: [PATCH 1/2] Recommend parallel builds Load average of 0.9 is something that even a PhD student's crappy laptop computer should be able to handle, without completely killing it. It really should be something like: make -j -l $(echo \($(grep "^processor" /proc/cpuinfo)+1\)\*0.9 | bc) but that is probably far too complex to put in a README. The average developer should be able to pick a reasonable value themselves. --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index 53613552..6f65d002 100644 --- a/README +++ b/README @@ -97,7 +97,7 @@ There are two ways to build the opm-core library: cd opm-core autoreconf -i ./configure - make + make -j -l 0.9 If you want to install the library: make install or (if installing to /usr/local or similar) From 6a4f6ade42a5b7e6ab0de98078edd24a3f7a5d27 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Wed, 24 Oct 2012 12:51:50 +0200 Subject: [PATCH 2/2] Warn that OPM should not be built differently from DUNE. Using headers and libraries from a DUNE built with different options than OPM, can result in strange ABI errors such as a segmentation fault in the static initialization section. --- README | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README b/README index 6f65d002..72427507 100644 --- a/README +++ b/README @@ -64,6 +64,8 @@ sudo apt-get install libdune-common-dev libdune-istl-dev libdune-grid-dev # libraries necessary for OPM sudo apt-get install -y libxml2-dev +Note: You should compile the OPM modules using the same toolchain that + was used to build DUNE. Otherwise, you can get strange ABI errors. DEPENDENCIES FOR SUSE BASED DISTRIBUTIONS -----------------------------------------