Created attachment 429680 [details] sys-devel/llvm-3.7.1-r1 build log It appears that GCC 4 doesn't support the necessary C++11 features needed to build sys-devel/llvm-3.7.1-r1 which is required by media-libs/mesa-11.2.0
Created attachment 429682 [details] emerge --info
Nah, that's not it. I've just tested again with 4.9.3, and it passes fine for me. Furthermore notice the following: -- Looking for __GLIBC__ -- Looking for __GLIBC__ - not found -- Performing Test HAVE_INT64_T -- Performing Test HAVE_INT64_T - Failed -- Performing Test HAVE_UINT64_T -- Performing Test HAVE_UINT64_T - Failed -- Performing Test HAVE_U_INT64_T -- Performing Test HAVE_U_INT64_T - Failed Those tests shouldn't have failed. Could you please attach CMakeFiles/CMake{Error,Output}.log? I suspect something starts to break checks at some point.
I hit the same error but on Gentoo::Prefix: -- Looking for __atomic_fetch_add_4 in atomic -- Looking for __atomic_fetch_add_4 in atomic - not found CMake Error at cmake/modules/CheckAtomic.cmake:36 (message): Host compiler appears to require libatomic, but cannot find it. Call Stack (most recent call first): cmake/config-ix.cmake:291 (include) CMakeLists.txt:360 (include) -- Configuring incomplete, errors occurred! See also "/scratch/mmokrejs/gentoo/var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log". See also "/scratch/mmokrejs/gentoo/var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src-abi_x86_64.amd64/CMakeFiles/CMakeError.log". $ emerge --info '=sys-devel/llvm-3.7.1-r3::gentoo_prefix' Portage 2.2.28-prefix (python 2.7.11-final-0, prefix/linux/amd64, gcc-4.2.4, unavailable, 2.6.32-573.12.1.el6.Bull.88.x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.32-573.12.1.el6.Bull.88.x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E5-2670_0_@_2.60GHz-with-redhat-6.4-Santiago KiB Mem: 131942764 total, 6609628 free KiB Swap: 65536128 total, 65536128 free Timestamp of repository gentoo_prefix: Wed, 13 Jul 2016 21:57:53 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.24 p1.3) 2.24 app-shells/bash: 4.3_p39::gentoo_prefix dev-java/java-config: 2.2.0-r3::gentoo_prefix dev-lang/perl: 5.24.0-r1::gentoo_prefix dev-lang/python: 2.7.11-r2::gentoo_prefix dev-util/cmake: 3.5.2-r1::gentoo_prefix dev-util/pkgconfig: 0.29.1::gentoo_prefix sys-devel/autoconf: 2.69::gentoo_prefix sys-devel/automake: 1.13.4::gentoo_prefix, 1.14.1::gentoo_prefix, 1.15::gentoo_prefix sys-devel/binutils: 2.24-r2::gentoo_prefix sys-devel/gcc: 4.2.4-r2::gentoo_prefix, 4.8.5::gentoo_prefix, 4.9.3::gentoo_prefix, 5.3.0::gentoo_prefix sys-devel/gcc-config: 1.8-r1::gentoo_prefix sys-devel/libtool: 2.4.6-r1::gentoo_prefix sys-devel/make: 4.2.1::gentoo_prefix sys-kernel/linux-headers: 4.6::gentoo_prefix (virtual/os-headers) Repositories: gentoo_prefix location: /scratch/mmokrejs/gentoo/usr/portage sync-type: webrsync sync-uri: webrsync://rsync.gentoo.org/gentoo-portage priority: -1000 aliases: gentoo science location: /scratch/mmokrejs/gentoo/var/lib/layman/science masters: gentoo_prefix priority: 0 haskell location: /scratch/mmokrejs/gentoo/var/lib/layman/haskell masters: gentoo_prefix priority: 1 x-layman location: /scratch/mmokrejs/gentoo/var/lib/layman masters: gentoo_prefix priority: 2 ACCEPT_KEYWORDS="~amd64-linux" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -O2 -pipe -march=native" DISTDIR="/scratch/mmokrejs/gentoo/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged userfetch userpriv usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j4" PKGDIR="/scratch/mmokrejs/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/scratch/mmokrejs/gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/scratch/mmokrejs/gentoo/var/tmp" USE="X amd64 apache apache2 avx avx2 berkdb bindist boost bzip2 cairo cgi cli coin consolekit cracklib crypt cryptlib cxx dbus device-mapper dhcp dri emboss encode fax fbcon ffmpeg fontconfig fortran gbm gd gdbm gimp glpk gnutls gtk hal hwdb iconv imaging innodb java javascript jce jpeg jpg js jscript keymap ladspa lapack lcms libnotify lm_sensors mad mmx mmxext modules mpi mpich2 mysql ncurses nfs nls nptl nptlonly nscd openmp pcre pdf perl php png policykit polkit ppds pppd prefix prefix-guest python qt3support readline resolvconf seccomp server session slideshow sndfile sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 suexec svg syslog tcl tcpd threads tiff tk truetype unicode usb v4l v4l2 vim-syntax vnc wavpack wifi x11 xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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" USE_PYTHON="2.7" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS $ $ gcc-config -l [1] x86_64-pc-linux-gnu-4.2.4 * [2] x86_64-pc-linux-gnu-4.8.5 [3] x86_64-pc-linux-gnu-4.9.3 [4] x86_64-pc-linux-gnu-5.3.0 $
Created attachment 440662 [details] build.log on Gentoo::Prefix with gcc-4.2.4
Created attachment 440664 [details] CMakeError.log
Created attachment 440666 [details] CMakeOutput.log
So in CMakeError.log I see: ld: cannot find -latomic and per http://stackoverflow.com/questions/25403736/c-11-undefined-reference-to-atomic-store-16 seems I cannot compile with <=gcc-4.7 at least? Will try the newer gcc versions.
(In reply to Martin Mokrejš from comment #3) > I hit the same error but on Gentoo::Prefix: > > -- Looking for __atomic_fetch_add_4 in atomic > -- Looking for __atomic_fetch_add_4 in atomic - not found > CMake Error at cmake/modules/CheckAtomic.cmake:36 (message): > Host compiler appears to require libatomic, but cannot find it. No, you haven't. In your case, ancient gcc is faulty. If you read my comment above, you'd also notice that in your case INT64_T check and the others work correctly. Please do not hijack bugs like this.
(In reply to Michał Górny from comment #8) > No, you haven't. In your case, ancient gcc is faulty. If you read my comment > above, you'd also notice that in your case INT64_T check and the others work > correctly. Please do not hijack bugs like this. I am not that much into the compiler guts, I am sorry for the hijack.
No new replies for 2 years, closing as obsolete. Hopefully new versions work just fine for you.