Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565682 - Failed to emerge sys-devel/llvm-3.7.0-r2
Summary: Failed to emerge sys-devel/llvm-3.7.0-r2
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-13 14:44 UTC by Jeffrey Ratcliffe
Modified: 2018-01-30 12:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_565682.txt,15.19 KB, text/plain)
2015-11-13 14:44 UTC, Jeffrey Ratcliffe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Ratcliffe 2015-11-13 14:44:21 UTC
Created attachment 416852 [details]
build.log

I assume that this is:

https://llvm.org/bugs/show_bug.cgi?id=19071

but unfortunately that doesn't work for me either (#565676). If that is the fix, then this ebuild should be blocked by cmake <3.2

$ emerge --info '=sys-devel/llvm-3.7.0-r2::gentoo_prefix'
Portage 2.2.10.1-prefix (python 2.7.8-final-0, prefix/linux/amd64, gcc-4.7.3, unavailable, 2.6.18-238.9.1.el5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.18-238.9.1.el5-x86_64-Intel-R-_Xeon-R-_CPU_E5-1620_0_@_3.60GHz-with-redhat-5.6-Tikanga
KiB Mem:    16352048 total,   4242180 free
KiB Swap:   17825784 total,  17825592 free
Timestamp of tree: Tue, 10 Nov 2015 08:41:03 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p48-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1
dev-lang/python:          2.7.8, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/sandbox:         2.6-r1::local-repo
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.2.4-r01.5, 4.7.3-r1, 4.8.4
sys-devel/gcc-config:     1.8-r00.1
sys-devel/libtool:        2.4.6-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
Repositories: gentoo_prefix local-repo
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=native -O2 -pipe"
DISTDIR="/home/jeff/prefix/gentoo/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs 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 userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/home/jeff/prefix/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/jeff/prefix/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"
PORTAGE_TMPDIR="/scratch"
PORTDIR="/home/jeff/prefix/gentoo/usr/portage"
PORTDIR_OVERLAY="/home/jeff/prefix/gentoo/usr/local/portage"
USE="X amd64 bash-completion berkdb bzip2 cairo cleartype cli corefonts cracklib crypt cxx djvu dri emacs fontconfig fortran gdbm gif gtk iconv ipv6 jpeg mmx mmxext modules ncurses nls nptl openmp pcre png prefix prefix-guest readline seccomp session sse sse2 ssl svg tcpd tiff truetype type1 unicode xattr 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="mmx mmxext sse sse2" 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_2 python3_3" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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"
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, SYNC, USE_PYTHON

$ emerge -pqv '=sys-devel/llvm-3.7.0-r2::gentoo_prefix'
[ebuild  N    ] sys-devel/llvm-3.7.0-r2  USE="libffi ncurses static-analyzer -clang -debug -doc -gold -libedit -lldb -multitarget -ocaml -python {-test} -xml" PYTHON_TARGETS="python2_7 -pypy" VIDEO_CARDS="radeon"
Comment 1 Benda Xu gentoo-dev 2015-11-19 02:47:07 UTC
So have you tried cmake-3.3.2 in tree?
Comment 2 yegle 2015-12-13 00:22:44 UTC
A workaround is to use CC=/usr/bin/clang and CXX=/usr/bin/clang++ before installing llvm-3.7.0.

This should be a blocking bug of supporting El Capitan (OS X 10.11).
Comment 3 Jeffrey Ratcliffe 2015-12-18 10:13:16 UTC
Yes, I did try cmake-3.3.2. See #565676
Comment 4 Jeffrey Ratcliffe 2015-12-18 11:12:47 UTC
(In reply to yegle from comment #2)
> A workaround is to use CC=/usr/bin/clang and CXX=/usr/bin/clang++ before
> installing llvm-3.7.0.

I can't get this to work. Having installed clang-3.5.2-r100 to match llvm-3.5.2, I cannot update llvm-3.7.0-r2, as it is blocked by clang-3.5.2-r100. Any suggestions?

$ emerge -p =sys-devel/clang-3.7.0-r100
 * Last emerge --sync was 38d 2h 27m 43s ago.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] sys-devel/llvm-3.7.0-r2 [3.5.2] USE="-lldb%"
[ebuild     U  ] sys-devel/clang-3.7.0-r100 [3.5.2-r100]
[blocks B      ] <=sys-devel/clang-3.7.0-r99 ("<=sys-devel/clang-3.7.0-r99" is blocking sys-devel/llvm-3.7.0-r2)

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-devel/llvm:0

  (sys-devel/llvm-3.7.0-r2:0/3.7.0::gentoo_prefix, ebuild scheduled for merge) pulled in by
    ~sys-devel/llvm-3.7.0[clang(-),debug=,multitarget?,python?,static-analyzer,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (sys-devel/clang-3.7.0-r100:0/3.7::gentoo_prefix, ebuild scheduled for merge)
    ^               ^^^^^                                                                                                                                                                                                                  

  (sys-devel/llvm-3.5.2:0/3.5::gentoo_prefix, installed) pulled in by
    ~sys-devel/llvm-3.5.2[clang(-),debug=,multitarget?,python?,static-analyzer,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (sys-devel/clang-3.5.2-r100:0/3.5::gentoo_prefix, installed)
    ^               ^^^^^                                                                                                                                                                                                                  
    >=sys-devel/llvm-3.4.2:0/3.5=[abi_x86_64(-)] required by (media-libs/mesa-11.0.4-r1:0/0::local-repo, installed)
                          ^^^^^^^

sys-devel/clang:0

  (sys-devel/clang-3.7.0-r100:0/3.7::gentoo_prefix, ebuild scheduled for merge) pulled in by
    =sys-devel/clang-3.7.0-r100 required by (sys-devel/llvm-3.7.0-r2:0/3.7.0::gentoo_prefix, ebuild scheduled for merge)
    ^                ^^^^^^^^^^
    (and 1 more with the same problem)

  (sys-devel/clang-3.5.2-r100:0/3.5::gentoo_prefix, installed) pulled in by
    =sys-devel/clang-3.5.2-r100 required by (sys-devel/llvm-3.5.2:0/3.5::gentoo_prefix, installed)
    ^                ^^^^^^^^^^
Comment 5 Benda Xu gentoo-dev 2015-12-21 04:41:35 UTC
(In reply to Jeffrey Ratcliffe from comment #4)
> (In reply to yegle from comment #2)
> > A workaround is to use CC=/usr/bin/clang and CXX=/usr/bin/clang++ before
> > installing llvm-3.7.0.
> 
> I can't get this to work. Having installed clang-3.5.2-r100 to match
> llvm-3.5.2, I cannot update llvm-3.7.0-r2, as it is blocked by
> clang-3.5.2-r100. Any suggestions?
> 
> $ emerge -p =sys-devel/clang-3.7.0-r100
>  * Last emerge --sync was 38d 2h 27m 43s ago.
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild     U  ] sys-devel/llvm-3.7.0-r2 [3.5.2] USE="-lldb%"
> [ebuild     U  ] sys-devel/clang-3.7.0-r100 [3.5.2-r100]
> [blocks B      ] <=sys-devel/clang-3.7.0-r99 ("<=sys-devel/clang-3.7.0-r99"
> is blocking sys-devel/llvm-3.7.0-r2)

You might need to remove clang-3.7.0-r99 first.  Not sure though.
Comment 6 Benda Xu gentoo-dev 2015-12-21 04:43:56 UTC
In addition, the RHEL5 kernel prevents compiler-rt from building:

  https://llvm.org/bugs/show_bug.cgi?id=17901

You will need a similiar hack to remove that directory as:

  https://gitweb.gentoo.org/dev/heroxbd.git/tree/sys-devel/llvm/llvm-3.6.2.ebuild#n204
Comment 7 Jeffrey Ratcliffe 2016-01-07 15:33:20 UTC
(In reply to Benda Xu from comment #5)
> You might need to remove clang-3.7.0-r99 first.  Not sure though.

I never had clang-3.7.0-r99. I had emerged sys-devel/clang-3.5.2-r100 as suggested in comment 2.

However, I don't understand how to build sys-devel/llvm-3.7.0-r100 with clang-3.5.2-r100. I get the error in comment 4. This implies to me that clang and llvm can only be built with gnu cc, which also makes no sense to me.

What am I missing?
Comment 8 Benda Xu gentoo-dev 2016-01-07 16:12:25 UTC
(In reply to Jeffrey Ratcliffe from comment #7)

> However, I don't understand how to build sys-devel/llvm-3.7.0-r100 with
> clang-3.5.2-r100. I get the error in comment 4. This implies to me that
> clang and llvm can only be built with gnu cc, which also makes no sense to
> me.
> 
> What am I missing?

There is a transition in tree.  Please sync the portage tree first.
Comment 9 Jeffrey Ratcliffe 2016-01-08 08:00:28 UTC
Having synced the tree, I am still getting basically the same error, although the tree now has llvm-3.7.1 instead of 3.7.0-r2:

$ emerge -1 sys-devel/llvm

[ebuild     U  ] sys-devel/llvm-3.7.1 [3.5.2] USE="-lldb%"
[ebuild     U  ] sys-devel/clang-3.7.1-r100 [3.5.2-r100]
[blocks B      ] <=sys-devel/clang-3.7.1-r99 ("<=sys-devel/clang-3.7.1-r99" is blocking sys-devel/llvm-3.7.1)
Comment 10 Fabian Groffen gentoo-dev 2016-01-27 13:08:27 UTC
this is likely also affected by llvm not using an adjusted searchpath under Linux for Prefix
Comment 11 Fabian Groffen gentoo-dev 2018-01-30 12:36:06 UTC
3.7 is not supported, use 3.9 or 5.0