Gentoo Archives: gentoo-science

From: marco restelli <mrestelli@×××××.com>
To: gentoo-science@l.g.o
Subject: [gentoo-science] Error emergin gmsh-2.4.2
Date: Tue, 18 May 2010 11:58:39
Message-Id: AANLkTinlvvLu2fEqjtmPdfL9O1MY_ozPcP1NDdiW5iyG@mail.gmail.com
1 Hi,
2 I'm trying to emerge gmsh-2.4.2, but I get the following error:
3
4 -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- broken
5 CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
6 The C++ compiler "/usr/bin/x86_64-pc-linux-gnu-g++" is not able to compile
7 a simple test program.
8
9 I'm using the default flags: USE="X jpeg png zlib -blas -cgns -chaco
10 -doc -examples -med -metis -mpi -opencascade"
11
12 Thank you for any help,
13 Marco
14
15
16 Here is some more information:
17
18 emerge --info =sci-libs/gmsh-2.4.2
19 Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.3.4,
20 glibc-2.10.1-r1, 2.6.27-gentoo-r8 x86_64)
21 =================================================================
22 System Settings
23 =================================================================
24 System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Turion-tm-_64_Mobile_Technology_ML-32-with-gentoo-1.12.13
25 Timestamp of tree: Thu, 13 May 2010 10:00:01 +0000
26 app-shells/bash: 4.0_p37
27 dev-java/java-config: 2.1.10
28 dev-lang/python: 2.6.4-r1
29 dev-python/pycrypto: 2.1.0_beta1
30 dev-util/cmake: 2.6.4-r3
31 sys-apps/baselayout: 1.12.13
32 sys-apps/sandbox: 1.6-r2
33 sys-devel/autoconf: 2.13, 2.63-r1
34 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
35 sys-devel/binutils: 2.18-r3
36 sys-devel/gcc: 4.3.4
37 sys-devel/gcc-config: 1.4.1
38 sys-devel/libtool: 2.2.6b
39 virtual/os-headers: 2.6.30-r1
40 ACCEPT_KEYWORDS="amd64"
41 ACCEPT_LICENSE="* -@EULA"
42 CBUILD="x86_64-pc-linux-gnu"
43 CFLAGS="-march=athlon64 -O2 -pipe -msse3"
44 CHOST="x86_64-pc-linux-gnu"
45 CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
46 CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
47 /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild
48 /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d
49 /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
50 CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
51 DISTDIR="/usr/portage/distfiles"
52 FEATURES="assume-digests collision-protect distlocks fixpackages news
53 parallel-fetch protect-owned sandbox sfperms strict unmerge-logs
54 unmerge-orphans userfetch"
55 GENTOO_MIRRORS="http://distfiles.gentoo.org"
56 LANG="C"
57 LDFLAGS="-Wl,-O1"
58 LINGUAS="en_US de es it sr sr@Latn"
59 PKGDIR="/usr/portage/packages"
60 PORTAGE_CONFIGROOT="/"
61 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
62 --compress --force --whole-file --delete --stats --timeout=180
63 --exclude=/distfiles --exclude=/local --exclude=/packages"
64 PORTAGE_TMPDIR="/var/tmp"
65 PORTDIR="/usr/portage"
66 PORTDIR_OVERLAY="/usr/local/portage/layman/science
67 /usr/local/portage/layman/gcc-porting /usr/local/portage-my-ebuilds"
68 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
69 USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2
70 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr
71 eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome
72 gnome-keyring gpm gstreamer gtk hal howl iconv ipv6 jpeg latex lcms
73 ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap
74 multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam
75 pango pcre pdf perl png policykit ppds pppd python qt3support qt4
76 readline reflection sdl session spell spl sse sse2 ssl
77 startup-notification svg sysfs tcpd tetex tiff truetype unicode usb
78 vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451
79 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370
80 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3
81 trident usb-audio via82xx via82xx-modem ymfpci"
82 ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty
83 extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
84 mulaw multi null plug rate route share shm softvol"
85 APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
86 authn_dbm authn_default authn_file authz_dbm authz_default
87 authz_groupfile authz_host authz_owner authz_user autoindex cache dav
88 dav_fs dav_lock deflate dir disk_cache env expires ext_filter
89 file_cache filter headers include info log_config logio mem_cache mime
90 mime_magic negotiation rewrite setenvif speling status unique_id
91 userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev
92 keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz
93 cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
94 LINGUAS="en_US de es it sr sr@Latn" RUBY_TARGETS="ruby18"
95 USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock
96 lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
97 tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
98 Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
99 LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
100 PORTAGE_RSYNC_EXTRA_OPTS
101
102 cat /var/tmp/portage/sci-libs/gmsh-2.4.2/temp/build.log
103 * CPV: sci-libs/gmsh-2.4.2
104 * REPO: science
105 * USE: X amd64 elibc_glibc jpeg kernel_linux multilib png userland_GNU zlib
106 * Put the F77 variable in env files to select your fortran compiler
107 * example for gfortran:
108 * echo "F77=gfortran" >> /etc/portage/env/sci-libs/gmsh
109 >>> Unpacking source...
110 >>> Unpacking gmsh-2.4.2-source.tgz to /var/tmp/portage/sci-libs/gmsh-2.4.2/work
111 >>> Source unpacked in /var/tmp/portage/sci-libs/gmsh-2.4.2/work
112 >>> Preparing source in /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2 ...
113 >>> Source prepared.
114 >>> Configuring source in /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2 ...
115 * Appending a library link instruction (-ldl); libraries to link to
116 should not be passed through LDFLAGS
117 * Appending a library link instruction (-lmpi); libraries to link to
118 should not be passed through LDFLAGS
119 >>> Working in BUILD_DIR: "/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build"
120 cmake -C /var/tmp/portage/sci-libs/gmsh-2.4.2/temp/gentoo_common_config.cmake
121 -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BLAS_LAPACK=OFF -DENABLE_CGNS=OFF
122 -DENABLE_CHACO=OFF -DENABLE_FLTK=ON -DENABLE_FL_TREE=ON
123 -DENABLE_GRAPHICS=ON -DENABLE_MED=OFF -DENABLE_METIS=OFF
124 -DENABLE_OCC=OFF -DCMAKE_BUILD_TYPE=Gentoo
125 -DCMAKE_INSTALL_DO_STRIP=OFF
126 -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/sci-libs/gmsh-2.4.2/temp/gentoo_rules.cmake
127 /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2
128 loading initial cache file
129 /var/tmp/portage/sci-libs/gmsh-2.4.2/temp/gentoo_common_config.cmake
130 -- The CXX compiler identification is GNU
131 -- The C compiler identification is GNU
132 -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
133 -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- broken
134 CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
135 The C++ compiler "/usr/bin/x86_64-pc-linux-gnu-g++" is not able to compile
136 a simple test program.
137
138 It fails with the following output:
139
140 Change Dir: /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp
141
142
143
144 Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
145
146 /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
147 CMakeFiles/cmTryCompileExec.dir/build
148
149 gmake[1]: Entering directory
150 `/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp'
151
152
153 /usr/bin/cmake -E cmake_progress_report
154 /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp/CMakeFiles
155 1
156
157 Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o
158
159 /usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -o
160 CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
161 /var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
162
163
164 Linking CXX executable cmTryCompileExec
165
166 /usr/bin/cmake -E cmake_link_script
167 CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
168
169 /usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -fPIC -Wl,-O1 -ldl -lmpi
170 CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec
171 -rdynamic
172
173
174 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
175 cannot find -lmpi
176
177 collect2: ld returned 1 exit status
178
179 gmake[1]: Leaving directory
180 `/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2_build/CMakeFiles/CMakeTmp'
181
182
183 gmake[1]: *** [cmTryCompileExec] Error 1
184
185 gmake: *** [cmTryCompileExec/fast] Error 2
186
187
188
189
190
191 CMake will not be able to correctly generate this project.
192 Call Stack (most recent call first):
193 CMakeLists.txt:17 (project)
194
195
196 -- Configuring incomplete, errors occurred!
197 * ERROR: sci-libs/gmsh-2.4.2 failed:
198 * cmake failed
199 *
200 * Call stack:
201 * ebuild.sh, line 54: Called src_configure
202 * environment, line 3043: Called cmake-utils_src_configure
203 '-DENABLE_BLAS_LAPACK=OFF' '-DENABLE_CGNS=OFF' '-DENABLE_CHACO=OFF'
204 '-DENABLE_FLTK=ON' '-DENABLE_FL_TREE=ON' '-DENABLE_GRAPHICS=ON'
205 '-DENABLE_MED=OFF' '-DENABLE_METIS=OFF' '-DENABLE_OCC=OFF'
206 * environment, line 778: Called _execute_optionaly
207 'src_configure' '-DENABLE_BLAS_LAPACK=OFF' '-DENABLE_CGNS=OFF'
208 '-DENABLE_CHACO=OFF' '-DENABLE_FLTK=ON' '-DENABLE_FL_TREE=ON'
209 '-DENABLE_GRAPHICS=ON' '-DENABLE_MED=OFF' '-DENABLE_METIS=OFF'
210 '-DENABLE_OCC=OFF'
211 * environment, line 243: Called enable_cmake-utils_src_configure
212 '-DENABLE_BLAS_LAPACK=OFF' '-DENABLE_CGNS=OFF' '-DENABLE_CHACO=OFF'
213 '-DENABLE_FLTK=ON' '-DENABLE_FL_TREE=ON' '-DENABLE_GRAPHICS=ON'
214 '-DENABLE_MED=OFF' '-DENABLE_METIS=OFF' '-DENABLE_OCC=OFF'
215 * environment, line 1191: Called die
216 * The specific snippet of code:
217 * cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
218 *
219 * If you need support, post the output of 'emerge --info =sci-libs/gmsh-2.4.2',
220 * the complete build log and the output of 'emerge -pqv =sci-libs/gmsh-2.4.2'.
221 * This ebuild is from an overlay named 'science':
222 '/usr/local/portage/layman/science/'
223 * The complete build log is located at
224 '/var/tmp/portage/sci-libs/gmsh-2.4.2/temp/build.log'.
225 * The ebuild environment file is located at
226 '/var/tmp/portage/sci-libs/gmsh-2.4.2/temp/environment'.
227 * S: '/var/tmp/portage/sci-libs/gmsh-2.4.2/work/gmsh-2.4.2'

Replies

Subject Author
Re: [gentoo-science] Error emergin gmsh-2.4.2 Marcin <mrybarski@×××××.com>