View previous topic :: View next topic |
Author |
Message |
davidsmind n00b


Joined: 25 May 2002 Posts: 61
|
Posted: Sun Dec 03, 2017 3:57 pm Post subject: klibc fail: "code model kernel does not support PIC mod |
|
|
After the new gcc version and profile switch I emerged world, 2 packages failed to build, the most critical of which is klibc.
Code: | 07:48:10) david@gothbox:/usr/portage/distfiles $ sudo emerge --info '=dev-libs/klibc-2.0.4-r2::gentoo'
Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r9, 4.12.12-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-4670K_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem: 32905440 total, 1796440 free
KiB Swap: 8191996 total, 8191996 free
Timestamp of repository gentoo: Sun, 03 Dec 2017 15:30:01 +0000
Head commit of repository gentoo: 9e1d5b3b8a869b7b5ecc76f69246d6f7e58b580a
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash: 4.3_p48-r1::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.24.3::gentoo
dev-lang/python: 2.7.14::gentoo, 3.4.5::gentoo, 3.5.4-r1::gentoo
dev-util/cmake: 3.8.2::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/openrc: 0.34.11::gentoo
sys-apps/sandbox: 2.10-r4::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils: 2.29.1-r1::gentoo
sys-devel/gcc: 6.4.0::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc: 2.25-r9::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
ago
location: /var/lib/layman/ago
masters: gentoo
priority: 50
spike
location: /var/lib/layman/spike
masters: gentoo
priority: 50
steam-overlay
location: /var/lib/layman/steam-overlay
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy clean-logs config-protect-if-modified distlocks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com rsync://gentoo.gossamerhost.com/gentoo-distfiles/ rsync://mirror.the-best-hosting.net/gentoo-distfiles http://mirror.the-best-hosting.net http://gentoo.mirrors.tera-byte.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 --load-average"
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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 aac acl acoustid acpi activities alsa amd64 bash-completion berkdb bluetooth branding btrfs bzip2 cairo cdda cddb cdr chromecast cli client-libs cracklib crypt cups curl cxx dbus declarative dos dri dts dvd dvdr emboss encode equalizer exif facebook fat fat32 fbcondecor ffmpeg firefox flac fontforge fortran fuse gdbm geoip gif gimp git glamor google googledrive gpm grub gstreamer gtk iconv icu id3tag infinality ipv6 jack joystick jpeg kde kipi kwallet lame lastfm lcms ldap libass libnotify lighttpd lm_sensors lzma mad matroska mmap mmx mng modules mp3 mp4 mpeg mtp multilib musepack musicbrainz ncurses nfs nls nptl ntfs nvidia offensive ogg openal opengl openmp openssl pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline realtime rss scanner sdl seccomp semantic-desktop session smp sndfile sox spell sse sse2 ssl startup-notification steamruntime subversion svg systemd taglib tcpd telepathy theora threads tiff truetype twolame udev udisks unicode upower usb uvm vaapi vdpau vhosts vim-syntax vorbis vpn widevine widgets wxwidgets x264 xattr xcb xcomposite xft xinerama xml xmpp xv xvfb xvid zeitgeist zlib" ABI_X86="64 32" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="emu efi-32 efi-64 pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=================================================================
Package Settings
=================================================================
dev-libs/klibc-2.0.4-r2::gentoo was built with the following:
USE="-custom-cflags -debug -test" ABI_X86="(64)"
CFLAGS="-march=core-avx2 -O2 -pipe -nostdlib"
CXXFLAGS="-march=core-avx2 -O2 -pipe -nostdlib"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -z noexecstack"
|
Code: | (07:56:14) david@gothbox:/usr/portage/distfiles $ sudo cat /tmp/portage/dev-libs/klibc-2.0.4-r2/temp/build.log
* Package: dev-libs/klibc-2.0.4-r2
* Repository: gentoo
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking linux-4.4.tar.xz to /tmp/portage/dev-libs/klibc-2.0.4-r2/work
>>> Unpacking klibc-2.0.4.tar.xz to /tmp/portage/dev-libs/klibc-2.0.4-r2/work
>>> Unpacking klibc_2.0.4-9.debian.tar.xz to /tmp/portage/dev-libs/klibc-2.0.4-r2/work
>>> Source unpacked in /tmp/portage/dev-libs/klibc-2.0.4-r2/work
>>> Preparing source in /tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4 ...
* Applying klibc-1.4.11-interp-flags.patch ... [ ok ]
* Applying klibc-1.5.7-strip-fix-dash-s.patch ... [ ok ]
* Applying klibc-2.0.2-mkfifo.patch ... [ ok ]
* Applying klibc-2.0.3-kernel-uapi.patch ... [ ok ]
* Applying klibc-linux-libc-dev ... [ ok ]
* Applying multiarch-include-path ... [ ok ]
* Applying Fix-minimal-mv-to-work-across-fs ... [ ok ]
* Applying ppc64el-load-toc-syscall-stub.patch ... [ ok ]
* Applying implement-realpath.patch ... [ ok ]
* Applying readlink-add-f-option.patch ... [ ok ]
* Applying mount-implement-o-defaults.patch ... [ ok ]
* Applying mips-update-archfcntl-h.patch ... [ ok ]
* Applying 0001-add-mips64-support-headers.patch ... [ ok ]
* Applying 0002-add-mips64-support-arch-mips32.patch ... [ ok ]
* Applying 0003-add-mips64-support-arch-mips64-specific.patch ... [ ok ]
* Applying install-headers-with-consistent-mode.patch ... [ ok ]
* Applying dash-mkbuiltins-fix-sort-order-harder.patch ... [ ok ]
* Applying klibc-add-pread-and-pwrite-32bit-syscall-wrappers-for-parisc.patch ... [ ok ]
* Applying klibc-ppc64-fix-struct-stat.patch ... [ ok ]
* Applying gzip-fix-silent-fallback-to-decompression.patch ... [ ok ]
* Applying klibc-mips-setjmp-s-don-t-save-and-restore-floating-point.patch ... [ ok ]
* Applying syscalls-override-detection-of-direct-socket-syscalls-on-i386-m68k-s390.patch ... [ ok ]
* Applying run-init-add-dry-run-mode.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4 ...
>>> Source configured.
>>> Compiling source in /tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4 ...
make -j5 --load-average defconfig CC=x86_64-pc-linux-gnu-gcc HOSTCC=x86_64-pc-linux-gnu-gcc ARCH=x86
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
*** Default configuration is based on 'x86_64_defconfig'
#
# configuration written to .config
#
make -j5 --load-average prepare CC=x86_64-pc-linux-gnu-gcc HOSTCC=x86_64-pc-linux-gnu-gcc ARCH=x86
scripts/kconfig/conf --silentoldconfig Kconfig
SYSTBL arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h
SYSTBL arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
CHK include/config/kernel.release
WRAP arch/x86/include/generated/asm/cputime.h
WRAP arch/x86/include/generated/asm/dma-contiguous.h
WRAP arch/x86/include/generated/asm/early_ioremap.h
WRAP arch/x86/include/generated/asm/mcs_spinlock.h
WRAP arch/x86/include/generated/asm/clkdev.h
WRAP arch/x86/include/generated/asm/mm-arch-hooks.h
UPD include/config/kernel.release
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
CHK include/generated/timeconst.h
CC kernel/bounds.s
kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
/*
make[1]: *** [Kbuild:45: kernel/bounds.s] Error 1
make[1]: *** Waiting for unfinished jobs....
UPD include/generated/timeconst.h
make: *** [Makefile:986: prepare0] Error 2
* ERROR: dev-libs/klibc-2.0.4-r2::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-libs/klibc-2.0.4-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-libs/klibc-2.0.4-r2::gentoo'`.
* The complete build log is located at '/tmp/portage/dev-libs/klibc-2.0.4-r2/temp/build.log'.
* The ebuild environment file is located at '/tmp/portage/dev-libs/klibc-2.0.4-r2/temp/environment'.
* Working directory: '/tmp/portage/dev-libs/klibc-2.0.4-r2/work/linux-4.4'
* S: '/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4'
|
I have a working copy of klibc, so I'm not screwed, but I just wonder what might be going on here. |
|
Back to top |
|
 |
davidsmind n00b


Joined: 25 May 2002 Posts: 61
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|