Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

sys-kernel/openvz-rhel6-stable-2.6.32.042.120.18: linux/compiler-gcc5.h: No such file or directory


Recommended Posts

Hi,

 

tried to build openvz-rhel6-stable

emerge -v =sys-kernel/openvz-rhel6-stable-2.6.32.042.120.18

But build failed

...
#                                                                                                
# configuration written to .config                                                               
#                                                                                                
scripts/kconfig/conf -s arch/x86/Kconfig                                                         
make[1]: Nothing to be done for 'all'.                                                           
  CHK     include/linux/version.h                                                                
  UPD     include/linux/version.h                                                                
  CHK     include/linux/utsrelease.h                                                             
  UPD     include/linux/utsrelease.h                                                             
  SYMLINK include/asm -> include/asm-x86                                                         
  CC      kernel/bounds.s                                                                        
In file included from include/linux/compiler.h:43:0,                                             
                 from include/linux/stddef.h:4,                                                  
                 from include/linux/posix_types.h:4,                                             
                 from include/linux/types.h:14,                                                  
                 from include/linux/page-flags.h:8,                                              
                 from kernel/bounds.c:9:                                                         
include/linux/compiler-gcc.h:89:30: fatal error: linux/compiler-gcc5.h: No such file or directory
...

My emerge --info

Portage 2.3.2 (python 3.4.6-final-0, funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-5.3.0, glibc-2.23-r3, 2.6.32-042stab112.15 x86_64)
=================================================================
System uname: Linux-2.6.32-042stab112.15-x86_64-Intel-R-_Xeon-R-_CPU_E3-1225_v3_@_3.20GHz-with-gentoo-2.2.1
KiB Mem:    16336552 total,    126860 free
KiB Swap:    8380412 total,   8196180 free
sh bash 4.3_p48
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p48::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.7.2::gentoo
sys-apps/baselayout:      2.2.1::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.24-r3::gentoo, 2.25-r2::gentoo
sys-devel/gcc:            4.8.5-r1::gentoo, 4.9.3-r3::gentoo, 5.3.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://github.com/funtoo/ports-2012.git
    priority: -1000

SG-funtoo-overlay
    location: /vz/shared/funtoo/portage-local
    masters: gentoo
    priority: 0

Installed sets: @kernel
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=generic -O2 -pipe"
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/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified 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 xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bash-completion berkdb bzip2 cracklib crypt cxx gdbm iconv icu ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre perl png python readline resolvconf sse sse2 ssl tcpd unicode vim-syntax xattr xml zlib" ABI_X86="64" APACHE2_MODULES="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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access addition auth_basic auth_request autoindex browser cache_purge charset concat dav dav_ext degradation echo empty_gif ey_balancer fastcgi flv geo geoip gunzip gzip gzip_static headers_more image_filter limit_conn limit_req limit_zone lua map memcached metrics perl proxy push push_stream random_index realip referer rewrite scgi secure_link security slowfs_cache split_clients spdy ssi sticky stub_status sub upstream_check upstream_ip_hash upload_progress userid uwsgi xslt" NGINX_MODULES_MAIL="imap pop3 smtp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby22" USERLAND="GNU" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Any idea how to fix it?

 

Thanks,

--

Saulius

 

Link to comment
Share on other sites

  • Funtoo Linux BDFL

This was imported into the bug tracker: https://bugs.funtoo.org/browse/FL-3636

 

The temporary workaround is to use gcc-config to set your compiler to 4.8.5 so you can emerge the ebuild, and then set it back to 5.x afterwards. We're working on fixing it so this is not necessary.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...