On 02/24/2015 02:34 PM, Johannes Ring wrote:
On Tue, Feb 24, 2015 at 1:57 PM, Martin <[email protected]> wrote:
Conclusion - need help with cmake - should not use "system-installed
gcc"...:
I thought cmake would automatically use the first gcc version in the path
environment variable... I'm not a cmake-expert at all, so I don't know how
to tell cmake to NOT use /usr/bin/gcc but instead use the /usr/local/bin/gcc
- I hope one of you could/would please advice me here...
I also hope this is the last step, before the whole thing can be compiled
successfully... But I don't know... Please let me know what you think or
what you could possibly recommend I try out.
I would be grateful for help into successfully compiling this...
The default hashstack profile in the fenics-install.sh script will set
PATH=/usr/bin:/bin and and anything in /usr/local/bin will not be
used. You can customize this by downloading the fenics-developer-tools
repository and modify the default profile:
git clone https://bitbucket.org/fenics-project/fenics-developer-tools.git
cd fenics-developer-tools
cp install/profiles/fenics.Linux.yaml local.yaml
Thanks - it has been done...
Then add the following in local.yaml after "extends:" and before "packages:":
parameters:
PATH: /usr/local/bin:/usr/bin:/bin
Finally, run fenics-install.sh with your modified profile:
./install/fenics-install.sh local.yaml
This will probably trigger a rebuild of all packages.
This is what it ended up with:
----
[dolfin] Building dolfin/qosrpuzdfk6s, follow log with:
[dolfin] tail -f
/home/laptop/.hashdist/tmp/dolfin-qosrpuzdfk6s-1/build.log
Downloading
https://bitbucket.org/fenics-project/mshr/downloads/mshr-1.5.0.tar.gz...
[=========================] 100.0% (14.7MB of 14.7MB) 0.248MB/s ETA 0s
[mshr] Building mshr/ehfzxll4yoh5, follow log with:
[mshr] tail -f /home/laptop/.hashdist/tmp/mshr-ehfzxll4yoh5/build.log
[mshr|*_ERROR_*] Command '[u'/bin/bash', '_hashdist/build.sh']' returned
non-zero exit status 2
[mshr|*_ERROR_*] command failed (code=2); raising
----
The build.log reveals:
---
2015/02/24 16:11:45 - INFO: [package:run_job] _*c++: internal compiler
error: Killed (program cc1plus)*_
2015/02/24 16:11:47 - INFO: [package:run_job] Please submit a full bug
report,
2015/02/24 16:11:47 - INFO: [package:run_job] with preprocessed source
if appropriate.
2015/02/24 16:11:47 - INFO: [package:run_job] See
<http://bugzilla.redhat.com/bugzilla> for instructions.
2015/02/24 16:11:47 - INFO: [package:run_job] gmake[2]: ***
[CMakeFiles/mshr.dir/src/CSGCGALMeshGenerator3D.cpp.o] Error 4
2015/02/24 16:11:47 - INFO: [package:run_job] gmake[2]: *** Waiting for
unfinished jobs....
2015/02/24 16:15:04 - INFO: [package:run_job] gmake[1]: ***
[CMakeFiles/mshr.dir/all] Error 2
2015/02/24 16:15:04 - INFO: [package:run_job] gmake: *** [all] Error 2
2015/02/24 16:15:05 - _*ERROR*_: [package:run_job] Command
'[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 2
2015/02/24 16:15:05 - _*ERROR*_: [package:run_job] command failed
(code=2); raising
---
I tried to modify the local.yaml file to include some of the original
settings I have in my path:
---
...
...
extends:
- file: linux.yaml
parameters:
PATH:
/usr/local/bin:/usr/bin:/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/
sbin:/sbin:/home/laptop/bin
...
...
---
Tomorrow I know if this worked or not... Thanks until now...
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support