Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] llvm compile error

126 views
Skip to first unread message

Silvio Siefke

unread,
Jan 23, 2014, 4:10:01 PM1/23/14
to
Hello,

i try to install llvm but it broke with:

-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_NON_VIRTUAL_DTOR_FLAG
-- Performing Test CXX_SUPPORTS_NON_VIRTUAL_DTOR_FLAG - Success
-- Found PythonInterp: /var/tmp/portage/sys-devel/llvm-3.4/temp/python2.7/bin/python (found version "2.7.5")
-- Constructing LLVMBuild project information
CMake Error at CMakeLists.txt:332 (message):
Unexpected failure executing llvm-build: Usage: llvm-build [options]



llvm-build: error: invalid native target: 'X86' (not in project)


-- Configuring incomplete, errors occurred!
* ERROR: sys-devel/llvm-3.4::gentoo failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 93: Called src_configure
* environment, line 4475: Called multilib-minimal_src_configure
* environment, line 2962: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
* environment, line 3168: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
* environment, line 2803: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
* environment, line 2801: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
* environment, line 485: Called multilib-minimal_abi_src_configure
* environment, line 2956: Called multilib_src_configure
* environment, line 3362: Called cmake_configure
* environment, line 1346: Called cmake-utils_src_configure
* environment, line 1275: Called _execute_optionaly 'src_configure'
* environment, line 276: Called enable_cmake-utils_src_configure
* environment, line 1550: Called die
* The specific snippet of code:
* "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";


gentoomobile distfiles # emerge --info =sys-devel/llvm-3.4::gentoo
Portage 2.2.7 (default/linux/x86/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.12.4-pf i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.12.4-pf-i686-Intel-R-_Atom-TM-_CPU_N550_@_1.50GHz-with-gentoo-2.2
KiB Mem: 1018472 total, 105196 free
KiB Swap: 2097148 total, 2035108 free
Timestamp of tree: Wed, 22 Jan 2014 14:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 3.1.9 [enabled]
app-shells/bash: 4.2_p45
dev-java/java-config: 2.1.12-r1
dev-lang/python: 2.7.5-r3, 3.3.2-r2
dev-util/ccache: 3.1.9-r3
dev-util/cmake: 2.8.11.2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.10.3, 1.11.6, 1.13.4
sys-devel/binutils: 2.23.2
sys-devel/gcc: 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc: 2.17
Repositories: gentoo elementary miramir pentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo http://mirror.netcologne.de/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/elementary /var/lib/layman/miramir /var/lib/layman/pentoo"
SYNC="rsync://gentoo.silviosiefke.com/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline sdl session spell sse sse2 sse3 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda_intel" 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 speli
ng 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" DVB_CARDS="af9005 usb-af9015" 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="evdev void synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en ar fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_3 python2_7" RUBY_TARGETS="ruby20 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


gentoomobile distfiles # emerge -pqv =sys-devel/llvm-3.4::gentoo
[ebuild N ] sys-devel/llvm-3.4 USE="clang libffi ncurses python static-analyzer xml -debug -doc -gold -multitarget -ocaml {-test} -udis86" PYTHON_TARGETS="python2_7 -pypy2_0 -python2_6" VIDEO_CARDS="-radeon"
[ebuild N ] sys-devel/clang-3.4-r100 USE="python static-analyzer -debug -multitarget

Thank you for help & Nice Day
Silvio

walt

unread,
Jan 23, 2014, 5:30:01 PM1/23/14
to
On 01/23/2014 01:05 PM, Silvio Siefke wrote:
> Hello,
>
> i try to install llvm but it broke
>
> llvm-3.4

> ACCEPT_KEYWORDS="x86"

Hi Silvio. You're installing an ~x86 package on an x86 machine, I think.
Are you doing that on purpose?

I don't know if that is causing the error, but it sometimes causes problems.

Silvio Siefke

unread,
Jan 23, 2014, 6:00:02 PM1/23/14
to
Hello,

On Thu, 23 Jan 2014 14:26:25 -0800 walt <w41...@gmail.com> wrote:

>
> Hi Silvio. You're installing an ~x86 package on an x86 machine, I
> think. Are you doing that on purpose?
>
> I don't know if that is causing the error, but it sometimes causes
> problems.

Have i something not understand, i make emerge -av clang and become

gentoomobile siefke # emerge -av clang

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

Calculating dependencies... done!
[ebuild N ~] sys-devel/llvm-3.4:0/3.4 USE="clang libffi ncurses python static-analyzer xml -debug -doc -gold -multitarget -ocaml {-test} -udis86" PYTHON_TARGETS="python2_7 -pypy2_0 -python2_6" VIDEO_CARDS="-radeon" 0 kB
[ebuild N ~] sys-devel/clang-3.4-r100:0/3.4 USE="python static-analyzer -debug -multitarget" 0 kB

Total: 2 packages (2 new), Size of downloads: 0 kB

The following keyword changes are necessary to proceed:
(see "package.accept_keywords" in the portage(5) man page for more details)
# required by sys-devel/clang-3.4-r100
# required by clang (argument)
=sys-devel/llvm-3.4 ~x86
# required by sys-devel/llvm-3.4[clang]
=sys-devel/clang-3.4-r100 ~x86

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.

Then emerge --autounmask-write -av clang and after dispatch-conf i run
emerge -av clang and become the error. I not understand what you mean?

-- Found PythonInterp: /var/tmp/portage/sys-devel/llvm-3.4/temp/python2.7/bin/python (found version "2.7.5")
-- Constructing LLVMBuild project information
CMake Error at CMakeLists.txt:332 (message):
Unexpected failure executing llvm-build: Usage: llvm-build [options]



llvm-build: error: invalid native target: 'X86' (not in project)

Silvio Siefke

unread,
Jan 23, 2014, 7:10:02 PM1/23/14
to
Hello,

ok the version 3.3 run without problems, i think the 3.4. make troubles
and the package Maintainer from Gentoo has hardmasked.

Alan McKinnon

unread,
Jan 24, 2014, 2:10:01 AM1/24/14
to
On 24/01/2014 02:01, Silvio Siefke wrote:
> Hello,
>
> ok the version 3.3 run without problems, i think the 3.4. make troubles
> and the package Maintainer from Gentoo has hardmasked.


llvm-3.4 is not hardmasked. It is marked ~x86 which is something very
different.

The mistake you made is using --autounmask-write
That feature writes local package.unmask entries to satisfy dependencies.
It's a very blunt tool, it blindly keywords whatever it thinks it needs
to and when it goes wrong, it goes very wrong quickly.

You are running x86. If you want a package that is marked ~x86 then you
need to take very careful note of everything that must be keyworded to
build that package. If you want something basic like llvm that will
cause many other packages to be upgrade with it, then you need to be
especially careful.

--autounmask-write is not an intelligent tool. It's not like the stable
tree which receives testing and you can mostly trust portage because the
combination has been tested. What it does is throw a bunch of untested
combinations into the mix and leave you hoping that it might work out.



--
Alan McKinnon
alan.m...@gmail.com

Silvio Siefke

unread,
Jan 24, 2014, 1:50:02 PM1/24/14
to
Hello,

On Fri, 24 Jan 2014 09:00:26 +0200 Alan McKinnon
<alan.m...@gmail.com> wrote:

> llvm-3.4 is not hardmasked. It is marked ~x86 which is something very
> different.

Correct, i mean Clang in version 3.4 is hardmasked. I want install clang
alone llvm i not need. I think mesa use llvm too but i has not set the
use flag.

https://packages.gentoo.org/package/sys-devel/clang

> The mistake you made is using --autounmask-write
> That feature writes local package.unmask entries to satisfy
> dependencies. It's a very blunt tool, it blindly keywords whatever it
> thinks it needs to and when it goes wrong, it goes very wrong quickly.

The tool write package.accept_keywords, a package.unmask i have not on
system. Yes its a shit tool, normal i make echo "package ~x86" >> package.a..
What should do? Should i compile without portage? Should i not use? When i
want emerge clang is masked, ok why? FreeBSD use it and say is stable.
FreeBSD maybe not the reference on earth but the BSD's make a good job.
When i saw all versions of Clang is masked.


> You are running x86. If you want a package that is marked ~x86 then
> you need to take very careful note of everything that must be
> keyworded to build that package. If you want something basic like
> llvm that will cause many other packages to be upgrade with it, then
> you need to be especially careful.

I use much x86 packages and has never problem. For example i use calibre
without x86 flag i must use calibre in version 1.2. but the version 1.20
works stable and fine and i can use with my tablet, because i read much
when im on the road.

https://packages.gentoo.org/package/app-text/calibre

So i think for some packages is accept between risk and compromiss. I find
better x86 flag better as install software in /usr without portage.

Michael Higgins

unread,
Jan 24, 2014, 2:20:01 PM1/24/14
to
On Fri, 24 Jan 2014 19:44:38 +0100
Silvio Siefke <siefke...@web.de> wrote:

> Hello,
>
> On Fri, 24 Jan 2014 09:00:26 +0200 Alan McKinnon
> <alan.m...@gmail.com> wrote:

> > llvm-3.4 is not hardmasked. It is marked ~x86 which is something
> > very
different.
>
> Correct, i mean Clang in version 3.4 is hardmasked. I want install
> clang
alone llvm i not need. I think mesa use llvm too but i has not set the
> use flag.
>
> https://packages.gentoo.org/package/sys-devel/clang
>

I don't know why I'm replying, as I'm no expert. So, I could be way off,
but:

From a google search:

Clang /ˈklæŋ/ is a compiler front end for the C, C++, Objective-C and
Objective-C++ programming languages. It uses LLVM as its back end ...

>
> > The mistake you made is using --autounmask-write
> > That feature writes local package.unmask entries to satisfy
> > dependencies. It's a very blunt tool, it blindly keywords whatever
> > it thinks it needs to and when it goes wrong, it goes very wrong
> > quickly.
>
> The tool write package.accept_keywords, a package.unmask i have not on
> system. Yes its a shit tool, normal i make echo "package ~x86" >>
> package.a.. What should do?

That's what you should do. The output will tell you what files need
updating. In some cases, I just let it write, like for a big perl
package with lots of modules from the overlay. Otherwise it's faster to
just copy and paste the output.

> Should i compile without portage?

No.

> Should
> i not use? When i want emerge clang is masked, ok why?

https://bugs.gentoo.org/show_bug.cgi?id=408963 maybe?

> FreeBSD use it
> and say is stable. FreeBSD maybe not the reference on earth but the
> BSD's make a good job. When i saw all versions of Clang is masked.
>

Isn't FBSD more similar than, say, Linux, to what OSX is, sort of?

[...]

> So i think for some packages is accept between risk and compromiss. I
> find better x86 flag better as install software in /usr without
> portage.
>

Yep. Sometimes you have to unmask stuff, but portage can handle it then.

Anyway, I hope any of this helps. Good luck!

Cheers,


--
- -
- Michael Higgins -
michael...@iinet.com
503-473-5882

Chris Stout

unread,
Jan 24, 2014, 2:20:02 PM1/24/14
to
> FreeBSD use it 
> and say is stable. FreeBSD maybe not the reference on earth but the 
> BSD's make a good job. When i saw all versions of Clang is masked. 
> 

Isn't FBSD more similar than, say, Linux, to what OSX is, sort of? 

I could be way off. But I think of OSX as being FBSD built for people that don't know how to use a computer.

 

Alan McKinnon

unread,
Jan 24, 2014, 6:00:02 PM1/24/14
to
On 24/01/2014 20:44, Silvio Siefke wrote:
> Hello,
>
> On Fri, 24 Jan 2014 09:00:26 +0200 Alan McKinnon
> <alan.m...@gmail.com> wrote:
>
>> llvm-3.4 is not hardmasked. It is marked ~x86 which is something very
>> different.
>
> Correct, i mean Clang in version 3.4 is hardmasked. I want install clang
> alone llvm i not need. I think mesa use llvm too but i has not set the
> use flag.
>
> https://packages.gentoo.org/package/sys-devel/clang
>
>> The mistake you made is using --autounmask-write
>> That feature writes local package.unmask entries to satisfy
>> dependencies. It's a very blunt tool, it blindly keywords whatever it
>> thinks it needs to and when it goes wrong, it goes very wrong quickly.
>
> The tool write package.accept_keywords, a package.unmask i have not on
> system. Yes its a shit tool, normal i make echo "package ~x86" >> package.a..
> What should do? Should i compile without portage? Should i not use? When i
> want emerge clang is masked, ok why? FreeBSD use it and say is stable.
> FreeBSD maybe not the reference on earth but the BSD's make a good job.
> When i saw all versions of Clang is masked.


No, just stop using automated tools to unmask/keyword everything based
just on depends. Do it yourself, then you know what you unamsked/keyworded.

Nobody suggested you stop using portage, I only said to stop hitting the
system with a big hammer to get things to build.



--
Alan McKinnon
alan.m...@gmail.com

Holger Hoffstätte

unread,
Jan 24, 2014, 6:40:02 PM1/24/14
to

Before this gets out of hand..

On Fri, 24 Jan 2014 19:44:38 +0100, Silvio Siefke wrote:

>> llvm-3.4 is not hardmasked. It is marked ~x86 which is something very
>> different.
>
> Correct, i mean Clang in version 3.4 is hardmasked. I want install clang
> alone llvm i not need. I think mesa use llvm too but i has not set the
> use flag.

1) clang-3.4 is not hardmasked either, so you need to set ~x86 keyword
for that package as well as for llvm - because:

2) clang is only a metapackage, without any contents on its own.
The compiler binaries are part of the llvm package. You simply cannot
have "clang without llvm".

3) FreeBSD indeed uses clang as default compiler, but uses 3.3 since
3.4 still has quite a few new and exciting bugs.

Hope that clears things up.

-h

keeper

unread,
Mar 15, 2014, 11:40:01 PM3/15/14
to
Silvio Siefke <siefke_listen <at> web.de> writes:

>
> Hello,
>
> i try to install llvm but it broke with:
>


If you are still having an issue, a cause for this bug has been found.
https://bugs.gentoo.org/show_bug.cgi?id=500856
0 new messages