Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561994 - =sys-devel/llvm-3.7.0-r1[gold] fails with fatal error: plugin-api.h: No such file or directory
Summary: =sys-devel/llvm-3.7.0-r1[gold] fails with fatal error: plugin-api.h: No such ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
: 561686 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-01 17:55 UTC by Olivier Huber
Modified: 2016-05-08 12:39 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.bz2,131.43 KB, application/x-bzip2)
2015-10-01 17:57 UTC, Olivier Huber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Huber 2015-10-01 17:55:15 UTC
Relevant part of build.log:

[1791/3390] /usr/bin/x86_64-pc-linux-gnu-g++  -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -DNDEBUG -O2 -pipe -march=native  -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -fPIC -Itools/gold -I/var/tmp/portage/sys-devel/llvm-3.7.0-r1/work/llvm-3.7.0.src/tools/gold -Iinclude -I/var/tmp/portage/sys-devel/llvm-3.7.0-r1/work/llvm-3.7.0.src/include -MMD -MT tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o -MF tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o.d -o tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o -c /var/tmp/portage/sys-devel/llvm-3.7.0-r1/work/llvm-3.7.0.src/tools/gold/gold-plugin.cpp
FAILED: /usr/bin/x86_64-pc-linux-gnu-g++  -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -DNDEBUG -O2 -pipe -march=native  -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -fPIC -Itools/gold -I/var/tmp/portage/sys-devel/llvm-3.7.0-r1/work/llvm-3.7.0.src/tools/gold -Iinclude -I/var/tmp/portage/sys-devel/llvm-3.7.0-r1/work/llvm-3.7.0.src/include -MMD -MT tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o -MF tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o.d -o tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o -c /var/tmp/portage/sys-devel/llvm-3.7.0-r1/work/llvm-3.7.0.src/tools/gold/gold-plugin.cpp
/var/tmp/portage/sys-devel/llvm-3.7.0-r1/work/llvm-3.7.0.src/tools/gold/gold-plugin.cpp:46:24: fatal error: plugin-api.h: No such file or directory
 #include <plugin-api.h>
                        ^
compilation terminated.
ninja: build stopped: subcommand failed.

This may be also useful:

$ locate plugin-api.h
/usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/include/plugin-api.h
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/plugin/include/plugin-api.h
/usr/lib64/gcc/x86_64-pc-linux-gnu/5.2.0/plugin/include/plugin-api.h


emerge --info binutils
Portage 2.2.22 (python 2.7.10-final-0, default/linux/amd64/13.0/developer, gcc-4.9.3, glibc-2.21-r1, 4.2.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-5600U_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     8060136 total,   2705512 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 01 Oct 2015 12:45:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.2::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.2.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync24.us.gentoo.org/gentoo-portage/
    priority: -1000

science
    location: /usr/local/overlays/sci
    masters: gentoo
    priority: 0

java
    location: /usr/local/overlays/java
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo"
LANG="en_US.utf-8"
LC_ALL="en_US.utf-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
USE="X a52 aac aacplus abook acl acpi adns alsa amd64 amr amrenc apng apulse auto-hinter berkdb bluetooth branding bzip2 cairo caps cdda cdr celt chm cilk clang cli client clipboard compressed-lumas consolekit contrast corefonts cracklib crypt cryptsetup cups curl cxx dane dbus detex devil dia djvu dnstap dot dpi dri dts dvd dvdr ebook ecdsa egl emboss encode epspdf epub evdev exif expat extra extras faac faad fam ffmpeg fftw firefox flac fontconfig fontforge fortran frei0r fribidi ftp gd gdbm gdk-pixbuf gif glamor gles gles1 gles2 glut gmp gnutls gold gost gpg gpm graphics graphite graphviz gsm gstreamer gtk gts gudev harfbuzz hdf5 http2 iconv icu idn imagemagick imap inotify ipv6 ipython jpeg jpeg2k kde kdenlive ladspa lame lapack lasi latex lcms ldap ldapi ldns libkms libnotify libsamplerate libsecret lldb lzma lzo mad markdown matplotlib matroska mbox melt metapost metis minizip mms mmx mmxext mng mobi modules mp3 mp4 mpc mpeg mpi multilib musepack music ncurses nettle nls notebook nptl nscd ocaml offensive ogg oom opengl openmp openssl opus pam pango passwdqc pcre pcre16 pcre32 pdf perl pkcs11 png policykit postproc postscript ppds pstricks publishers pygments python qml qt3support qt4 qt5 quicktime quvi rar raw readline rtmp s3tc samba sasl schroedinger science script sctp sdl seccomp session sftp sidebar skey smi smime smtp snappy snmp sparse speex spell sqlite sse sse2 ssh ssl startup-notification svg syslog system-icu system-jpeg system-libvpx system-sqlite szip taglib tahoma tcpd tftpd theora threads tiff tokyocabinet toolame tools truetype twolame udev udisks unicode upower usb utils uxa vaapi vdpau vim vim-pager vim-syntax vorbis vpx wavpack wayland webp wmf wpg wps x264 x265 xa xattr xcb xetex xkb xml xmp xpm xv xvid xvmc yaz zlib" ABI_X86="64" 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 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 avx2 fma3 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-devel/binutils-2.25.1-r1::gentoo was built with the following:
USE="cxx nls zlib (-multislot) -multitarget -static-libs -test -vanilla" ABI_X86="64"
Comment 1 Olivier Huber 2015-10-01 17:57:22 UTC
Created attachment 413456 [details]
build.log

compressed due to the file size limit
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-01 18:58:28 UTC
Can this be related to the recent binutils-libs fun?
Comment 3 Olivier Huber 2015-10-01 19:08:14 UTC
(In reply to Michał Górny from comment #2)
> Can this be related to the recent binutils-libs fun?

I thought about that. I don't have binutils-libs installed. Do you want me try again with it installed?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-01 19:09:34 UTC
Yes, that should help. Or downgrading binutils-config. I need to ask if we're really supposed to use binutils-libs when building plugins, or instead bind to a specific binutils version.
Comment 5 Olivier Huber 2015-10-01 19:17:23 UTC
(In reply to Michał Górny from comment #4)
> Yes, that should help. Or downgrading binutils-config. I need to ask if
> we're really supposed to use binutils-libs when building plugins, or instead
> bind to a specific binutils version.

Ok doing that. It's a little bit early to claim victory, but binutils-libs installed /usr/include/plugin-api.h ...

Let's see when this build of llvm finishes ...
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-01 20:12:53 UTC
While this is still untested, I added the dependency to the latest version. Worst case, it will be an unnecessary dependency for the few people who build in the meantime. But if it can save few hours of time wasted for a failed build, I'm all for it.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-10-01 20:19:01 UTC
*** Bug 561686 has been marked as a duplicate of this bug. ***
Comment 8 Olivier Huber 2015-10-02 02:21:07 UTC
Well it worked, even though I run into another issue related to llvm[ocaml,-doc], see https://bugs.gentoo.org/show_bug.cgi?id=562008.

But I think this bug can be closed.
Comment 9 ganthore 2016-04-12 22:23:27 UTC
I'm not seeing this dep fix attached to the latest stable version of llvm. Was there ever any plans to backport this to the stable base system packages?

Latest STABLE:
sys-devel/llvm-3.5.0
Comment 10 Stijn Tintel 2016-05-08 12:39:55 UTC
Having this problem with sys-devel/llvm-3.5.0 as well. Should this bug be reopened or do I file a new one instead?