Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openmpi-1.6-r1 fails to compile (Solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
eronde
n00b
n00b


Joined: 25 Dec 2004
Posts: 73
Location: The Netherlands

PostPosted: Thu Jul 12, 2012 2:28 pm    Post subject: openmpi-1.6-r1 fails to compile (Solved) Reply with quote

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
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9049

PostPosted: Fri Jul 13, 2012 1:07 am    Post subject: Re: openmpi-1.6-r1 fails to compile Reply with quote

eronde wrote:
Code:
checking alignment of _Bool... configure: WARNING: *** Problem running configure test!
configure: WARNING: *** See config.log for details.
Back to top
View user's profile Send private message
eronde
n00b
n00b


Joined: 25 Dec 2004
Posts: 73
Location: The Netherlands

PostPosted: Fri Jul 13, 2012 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
quux
n00b
n00b


Joined: 22 Mar 2013
Posts: 6

PostPosted: Fri Mar 22, 2013 9:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum