View previous topic :: View next topic |
Author |
Message |
eronde n00b
Joined: 25 Dec 2004 Posts: 73 Location: The Netherlands
|
Posted: Thu Jul 12, 2012 2:28 pm Post subject: openmpi-1.6-r1 fails to compile (Solved) |
|
|
Hii,
I've a little problem with compiling openmpi and I don't know what todo.
Output error
Code: |
checking for float _Complex... no
checking for double _Complex... no
checking for long double _Complex... no
checking for intptr_t... no
checking for uintptr_t... no
checking for mode_t... no
checking for ssize_t... no
checking for ptrdiff_t... no
checking size of char... 0
checking size of short... 0
checking size of int... 0
checking size of long... 0
checking size of float... 0
checking size of double... 0
checking size of void *... 0
checking size of size_t... 0
checking size of wchar_t... 0
checking alignment of _Bool... configure: WARNING: *** Problem running configure test!
configure: WARNING: *** See config.log for details.
configure: error: *** Cannot continue.
!!! ERROR in sys-cluster/openmpi-1.6-r1::gentoo:
!!! In econf at line 1757
!!! econf failed
|
Cave info:
Code: |
Package information
app-shells/bash 4.2_p29
dev-java/java-config 2.1.12
dev-lang/python 2.6.8 2.7.3-r2 3.1.5 3.2.3-r1
dev-util/ccache (none)
dev-util/cmake 2.8.8-r3
dev-util/pkgconfig 0.26
sys-apps/baselayout 2.1-r1
sys-apps/openrc 0.10.5
sys-apps/sandbox 2.6
sys-devel/autoconf 2.13 2.69
sys-devel/automake 1.10.3 1.11.5 1.12.2 1.9.6-r3
sys-devel/binutils 2.22-r1
sys-devel/gcc 4.4.7 4.5.3-r2 4.6.3
sys-devel/gcc-config 1.7.3
sys-devel/libtool 2.4.2
sys-devel/make 3.82-r3
sys-freebsd/freebsd-lib (none)
sys-kernel/linux-headers 3.4-r1
sys-libs/glibc 2.15-r2
sys-libs/uclibc (none)
|
Anyone a suggestion?
Last edited by eronde on Fri Jul 13, 2012 1:18 pm; edited 1 time in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Fri Jul 13, 2012 1:07 am Post subject: Re: openmpi-1.6-r1 fails to compile |
|
|
eronde wrote: | Code: | checking alignment of _Bool... configure: WARNING: *** Problem running configure test!
configure: WARNING: *** See config.log for details. |
|
|
|
Back to top |
|
|
eronde n00b
Joined: 25 Dec 2004 Posts: 73 Location: The Netherlands
|
Posted: Fri Jul 13, 2012 1:17 pm Post subject: |
|
|
It appears that openmpi has some troubles with the following CFLAGS: --param l1-cache-size=64, --param l2-cache-size=512.
After removing this two flags, it compiles correctly. |
|
Back to top |
|
|
quux n00b
Joined: 22 Mar 2013 Posts: 6
|
Posted: Fri Mar 22, 2013 9:20 pm Post subject: |
|
|
I had the same problem, not being able to install any of the openmpi packages available. I have tried screwing around with various settings, gcc versions, etc, but nothing worked.
Finally, I found out I was using wrong/outdated CFLAGS, for older versions of gcc. I have an intel core-i7 2620M, and used:
Code: | CFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2 -maes -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=generic" |
when I should be using:
Code: | CFLAGS="-O2 -pipe -fomit-frame-pointer -march=corei7-avx -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=corei7-avx" |
whether or not these flags are now optimized, openmpi-1.6.4 emerged without any errors, without removing the l1/l2-cache-size params.
Do note, however, that I still have problems with openmpi, with compilation hanging indefinitely (dev-libs/boost), but I believe it's unrelated to this issue. |
|
Back to top |
|
|
|