* [gentoo-science] Error emergin gmsh-2.4.2
@ 2010-05-18 11:58 marco restelli
2010-05-18 12:13 ` Marcin
0 siblings, 1 reply; 5+ messages in thread
From: marco restelli @ 2010-05-18 11:58 UTC (permalink / raw
To: gentoo-science
Hi,
I'm trying to emerge gmsh-2.4.2, but I get the following error:
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
The C++ compiler "/usr/bin/x86_64-pc-linux-gnu-g++" is not able to compile
a simple test program.
I'm using the default flags: USE="X jpeg png zlib -blas -cgns -chaco
-doc -examples -med -metis -mpi -opencascade"
Thank you for any help,
Marco
Here is some more information:
emerge --info =sci-libs/gmsh-2.4.2
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.3.4,
glibc-2.10.1-r1, 2.6.27-gentoo-r8 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Turion-tm-_64_Mobile_Technology_ML-32-with-gentoo-1.12.13
Timestamp of tree: Thu, 13 May 2010 10:00:01 +0000
app-shells/bash: 4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python: 2.6.4-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake: 2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild
/etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d
/etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news
parallel-fetch protect-owned sandbox sfperms strict unmerge-logs
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US de es it sr sr@Latn"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science
/usr/local/portage/layman/gcc-porting /usr/local/portage-my-ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2
cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr
eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome
gnome-keyring gpm gstreamer gtk hal howl iconv ipv6 jpeg latex lcms
ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap
multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam
pango pcre pdf perl png policykit ppds pppd python qt3support qt4
readline reflection sdl session spell spl sse sse2 ssl
startup-notification svg sysfs tcpd tetex tiff truetype unicode usb
vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451
als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370
ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3
trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty
extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache dav
dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio mem_cache mime
mime_magic negotiation rewrite setenvif speling status unique_id
userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev
keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LINGUAS="en_US de es it sr sr@Latn" RUBY_TARGETS="ruby18"
USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
cat /var/tmp/portage/sci-libs/gmsh-2.4.2/temp/build.log
* CPV: sci-libs/gmsh-2.4.2
* REPO: science
* USE: X amd64 elibc_glibc jpeg kernel_linux multilib png userland_GNU zlib
* Put the F77 variable in env files to select your fortran compiler
* example for gfortran:
* echo "F77=gfortran" >> /etc/portage/env/sci-libs/gmsh
>>> Unpacking source...
>>> Unpacking gmsh-2.4.2-source.tgz to /var/tmp/portage/sci-libs/gmsh-2.4.2/work
>>> Source unpacked in /var/tmp/portage/sci-libs/gmsh-2.4.2/work
>>> Preparing source in /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2 ...
* Appending a library link instruction (-ldl); libraries to link to
should not be passed through LDFLAGS
* Appending a library link instruction (-lmpi); libraries to link to
should not be passed through LDFLAGS
>>> Working in BUILD_DIR: "/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build"
cmake -C /var/tmp/portage/sci-libs/gmsh-2.4.2/temp/gentoo_common_config.cmake
-DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BLAS_LAPACK=OFF -DENABLE_CGNS=OFF
-DENABLE_CHACO=OFF -DENABLE_FLTK=ON -DENABLE_FL_TREE=ON
-DENABLE_GRAPHICS=ON -DENABLE_MED=OFF -DENABLE_METIS=OFF
-DENABLE_OCC=OFF -DCMAKE_BUILD_TYPE=Gentoo
-DCMAKE_INSTALL_DO_STRIP=OFF
-DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/sci-libs/gmsh-2.4.2/temp/gentoo_rules.cmake
/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2
loading initial cache file
/var/tmp/portage/sci-libs/gmsh-2.4.2/temp/gentoo_common_config.cmake
-- The CXX compiler identification is GNU
-- The C compiler identification is GNU
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
The C++ compiler "/usr/bin/x86_64-pc-linux-gnu-g++" is not able to compile
a simple test program.
It fails with the following output:
Change Dir: /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory
`/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -o
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -fPIC -Wl,-O1 -ldl -lmpi
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec
-rdynamic
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lmpi
collect2: ld returned 1 exit status
gmake[1]: Leaving directory
`/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec] Error 1
gmake: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:17 (project)
-- Configuring incomplete, errors occurred!
* ERROR: sci-libs/gmsh-2.4.2 failed:
* cmake failed
*
* Call stack:
* ebuild.sh, line 54: Called src_configure
* environment, line 3043: Called cmake-utils_src_configure
'-DENABLE_BLAS_LAPACK=OFF' '-DENABLE_CGNS=OFF' '-DENABLE_CHACO=OFF'
'-DENABLE_FLTK=ON' '-DENABLE_FL_TREE=ON' '-DENABLE_GRAPHICS=ON'
'-DENABLE_MED=OFF' '-DENABLE_METIS=OFF' '-DENABLE_OCC=OFF'
* environment, line 778: Called _execute_optionaly
'src_configure' '-DENABLE_BLAS_LAPACK=OFF' '-DENABLE_CGNS=OFF'
'-DENABLE_CHACO=OFF' '-DENABLE_FLTK=ON' '-DENABLE_FL_TREE=ON'
'-DENABLE_GRAPHICS=ON' '-DENABLE_MED=OFF' '-DENABLE_METIS=OFF'
'-DENABLE_OCC=OFF'
* environment, line 243: Called enable_cmake-utils_src_configure
'-DENABLE_BLAS_LAPACK=OFF' '-DENABLE_CGNS=OFF' '-DENABLE_CHACO=OFF'
'-DENABLE_FLTK=ON' '-DENABLE_FL_TREE=ON' '-DENABLE_GRAPHICS=ON'
'-DENABLE_MED=OFF' '-DENABLE_METIS=OFF' '-DENABLE_OCC=OFF'
* environment, line 1191: Called die
* The specific snippet of code:
* cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
*
* If you need support, post the output of 'emerge --info =sci-libs/gmsh-2.4.2',
* the complete build log and the output of 'emerge -pqv =sci-libs/gmsh-2.4.2'.
* This ebuild is from an overlay named 'science':
'/usr/local/portage/layman/science/'
* The complete build log is located at
'/var/tmp/portage/sci-libs/gmsh-2.4.2/temp/build.log'.
* The ebuild environment file is located at
'/var/tmp/portage/sci-libs/gmsh-2.4.2/temp/environment'.
* S: '/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2'
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-science] Error emergin gmsh-2.4.2
2010-05-18 11:58 [gentoo-science] Error emergin gmsh-2.4.2 marco restelli
@ 2010-05-18 12:13 ` Marcin
2010-05-18 12:50 ` marco restelli
0 siblings, 1 reply; 5+ messages in thread
From: Marcin @ 2010-05-18 12:13 UTC (permalink / raw
To: gentoo-science
[-- Attachment #1: Type: text/plain, Size: 414 bytes --]
" /usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -fPIC -Wl,-O1 -ldl -lmpi
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec
-rdynamic
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lmpi
"
USE="mpi" may help?
--
Marcin Rybarski
GPG 1024D/26C836EB
Key fingerprint = 1506 8442 D232 101F 15AD C332 2054 80CD 26C8 36EB
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-science] Error emergin gmsh-2.4.2
2010-05-18 12:13 ` Marcin
@ 2010-05-18 12:50 ` marco restelli
2010-05-18 15:38 ` d.i Gazeta.pl
0 siblings, 1 reply; 5+ messages in thread
From: marco restelli @ 2010-05-18 12:50 UTC (permalink / raw
To: gentoo-science
On Tue, May 18, 2010 at 2:13 PM, Marcin <mrybarski@gmail.com> wrote:
> " /usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -fPIC -Wl,-O1 -ldl -lmpi
> CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec
> -rdynamic
>
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lmpi
> "
>
> USE="mpi" may help?
>
Hi Marcin,
well, possibly, but I have mpich2 and I get a conflict.
[ebuild N ] sys-cluster/openmpi-1.2.9 USE="cxx fortran ipv6
-debug -heterogeneous -mpi-threads -pbs -romio -threads" 3,479 kB [0]
[ebuild N ] sci-libs/gmsh-2.4.2 USE="X jpeg mpi png zlib -blas
-cgns -chaco -doc -examples -med -metis -opencascade" 0 kB [1]
[blocks B ] sys-cluster/openmpi ("sys-cluster/openmpi" is blocking
sys-cluster/mpich2-1.0.8)
[blocks B ] sys-cluster/mpich2 ("sys-cluster/mpich2" is blocking
sys-cluster/openmpi-1.2.9)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-science] Error emergin gmsh-2.4.2
2010-05-18 12:50 ` marco restelli
@ 2010-05-18 15:38 ` d.i Gazeta.pl
2010-05-19 13:57 ` marco restelli
0 siblings, 1 reply; 5+ messages in thread
From: d.i Gazeta.pl @ 2010-05-18 15:38 UTC (permalink / raw
To: gentoo-science
[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]
On 18 May 2010 14:50, marco restelli <mrestelli@gmail.com> wrote:
> On Tue, May 18, 2010 at 2:13 PM, Marcin <mrybarski@gmail.com> wrote:
> > " /usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -fPIC -Wl,-O1 -ldl -lmpi
> > CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o
> cmTryCompileExec
> > -rdynamic
> >
> >
> >
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
> > cannot find -lmpi
> > "
> >
> > USE="mpi" may help?
> >
>
> Hi Marcin,
> well, possibly, but I have mpich2 and I get a conflict.
>
> [ebuild N ] sys-cluster/openmpi-1.2.9 USE="cxx fortran ipv6
> -debug -heterogeneous -mpi-threads -pbs -romio -threads" 3,479 kB [0]
> [ebuild N ] sci-libs/gmsh-2.4.2 USE="X jpeg mpi png zlib -blas
> -cgns -chaco -doc -examples -med -metis -opencascade" 0 kB [1]
> [blocks B ] sys-cluster/openmpi ("sys-cluster/openmpi" is blocking
> sys-cluster/mpich2-1.0.8)
> [blocks B ] sys-cluster/mpich2 ("sys-cluster/mpich2" is blocking
> sys-cluster/openmpi-1.2.9)
>
>
Boost deps upon || ( >=sys-cluster/openmpi-1.2.9[cxx]
sys-cluster/mpich2[cxx,threads] ) so if you have cxx or threads disabled it
will favour openmpi raising block with the other package.
--
Pozdrawiam,
Łukasz Michalik
[-- Attachment #2: Type: text/html, Size: 1779 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-science] Error emergin gmsh-2.4.2
2010-05-18 15:38 ` d.i Gazeta.pl
@ 2010-05-19 13:57 ` marco restelli
0 siblings, 0 replies; 5+ messages in thread
From: marco restelli @ 2010-05-19 13:57 UTC (permalink / raw
To: gentoo-science
On Tue, May 18, 2010 at 5:38 PM, d.i Gazeta.pl <d.i@gazeta.pl> wrote:
>
>
> On 18 May 2010 14:50, marco restelli <mrestelli@gmail.com> wrote:
>>
>> On Tue, May 18, 2010 at 2:13 PM, Marcin <mrybarski@gmail.com> wrote:
>> > " /usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -fPIC -Wl,-O1 -ldl
>> > -lmpi
>> > CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o
>> > cmTryCompileExec
>> > -rdynamic
>> >
>> >
>> >
>> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
>> > cannot find -lmpi
>> > "
>> >
>> > USE="mpi" may help?
>> >
>>
>> Hi Marcin,
>> well, possibly, but I have mpich2 and I get a conflict.
>>
>> [ebuild N ] sys-cluster/openmpi-1.2.9 USE="cxx fortran ipv6
>> -debug -heterogeneous -mpi-threads -pbs -romio -threads" 3,479 kB [0]
>> [ebuild N ] sci-libs/gmsh-2.4.2 USE="X jpeg mpi png zlib -blas
>> -cgns -chaco -doc -examples -med -metis -opencascade" 0 kB [1]
>> [blocks B ] sys-cluster/openmpi ("sys-cluster/openmpi" is blocking
>> sys-cluster/mpich2-1.0.8)
>> [blocks B ] sys-cluster/mpich2 ("sys-cluster/mpich2" is blocking
>> sys-cluster/openmpi-1.2.9)
>>
>
> Boost deps upon || ( >=sys-cluster/openmpi-1.2.9[cxx]
> sys-cluster/mpich2[cxx,threads] ) so if you have cxx or threads disabled it
> will favour openmpi raising block with the other package.
>
Łukasz, I'm lost here. From gmsh-2.4.2.ebuild I see
mpi? ( sys-cluster/openmpi[cxx] )"
so, if I enable mpi as a workaround to the compile problem I need
openmpi. Now, from openmpi-1.2.9.ebuild and openmpi-1.4.1.ebuild I see
!sys-cluster/mpich2"
so, since I have mpich2 installed, I think I can't get openmpi. I
don't see what Boost has to do with this. Or do you mean that I should
switch from mpich2 to openmpi, and do this for all packages depending
on mpi, including boost?
Marco
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-19 13:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-18 11:58 [gentoo-science] Error emergin gmsh-2.4.2 marco restelli
2010-05-18 12:13 ` Marcin
2010-05-18 12:50 ` marco restelli
2010-05-18 15:38 ` d.i Gazeta.pl
2010-05-19 13:57 ` marco restelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox