Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xen 4.8 fails to emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Waterdevil
n00b
n00b


Joined: 15 Aug 2017
Posts: 62

PostPosted: Tue Nov 21, 2017 1:48 am    Post subject: xen 4.8 fails to emerge Reply with quote

Hello World,

I tried for weeks to solve, but now I hope for help
emerge xen error: https://gist.github.com/anonymous/99be3d118e6bf98775db9bae9a0a2ec4

Code:
emerge --info
Portage 2.3.13 (python 2.7.14-final-0, !../../var/lib/layman/dantrell-gnome/profiles/default/amd64/3.26/extended, gcc-6.4.0, glibc-2.25-r8, 4.12.12-gentoo x86_64)
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:    32648224 total,  22587876 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Mon, 20 Nov 2017 23:30:01 +0000
Head commit of repository gentoo: fcc6a1e573ad9f42e1aea8c0c5d802f88d0755a4
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
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::gentoo
dev-util/ccache:          3.2.4::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.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 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-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

dantrell-gnome-3-26
    location: /var/lib/layman/dantrell-gnome-3-26
    masters: gentoo
    priority: 100

dantrell-gnome
    location: /var/lib/layman/dantrell-gnome
    masters: gentoo
    priority: 150

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
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/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /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"
EMERGE_DEFAULT_OPTS="-j9 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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://gd.tuwien.ac.at/opsys/linux/gentoo/       ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo       http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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="/var/tmp"
USE="CPU_FLAGS_X86="aes X a52 aac acl acpi alsa amd64 apache2 apm avx avx2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli colord cracklib crypt crywrap css cups custom-cflags cxx dbus djvu doc dot dri dts dv dvd dvdr eds efi elogind encode equalizer evo examples exif fam flac fma3 fontconfig fortran gdbm gif gimp git glamor gnome gnome-keyring gnome-online-accounts gnuplot gphoto2 gpm gtk gtk3 gtkstyle handbook hddtemp iconv icu ieee1394 imap introspection ios ipod ipv6 javascript joystick jpeg jpeg2k kmod lame latex lcms ldap libnotify libsecret lm_sensors mad matroska mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer multilib mysql nautilus ncurses nls nntp nptl nsplugin ocaml ogg opengl openmp pam pango pch pcre pdf perl php png policykit popcnt posix postscript ppds pulseaudio pygrub python qemu quicktime raw rdp readline rss samba scanner sdl seccomp session snmp sound spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3" startup-notification suid svg symling syslog tcpd test text tiff tracker truetype udev udisks unicode usb vcd videos vnc vorbis wavpack wifi wmf x264 xattr xcb xemacs xetex xine xml xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel usb-audio" 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 xen qemu" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="brightness clock trash" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


What should I do?
Many thanks
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,AsrockZ97,i7,MEM:32G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChan,Tandberg LTO-6


Last edited by Waterdevil on Fri Dec 08, 2017 11:48 am; edited 2 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16876
Location: here

PostPosted: Tue Nov 21, 2017 7:06 am    Post subject: Reply with quote

I've no experience on xen, but look here
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Waterdevil
n00b
n00b


Joined: 15 Aug 2017
Posts: 62

PostPosted: Thu Nov 23, 2017 10:15 am    Post subject: Reply with quote

I've tried your link, but I'm sorry that I don't know what to do...
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,AsrockZ97,i7,MEM:32G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChan,Tandberg LTO-6
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16876
Location: here

PostPosted: Thu Nov 23, 2017 10:36 am    Post subject: Reply with quote

Try to apply patch in second link
Code:
--- xen-4.7.0/config/StdGNU.mk.orig   2016-04-15 22:56:52.191227591 +0100
+++ xen-4.7.0/config/StdGNU.mk   2016-04-15 23:01:40.978829756 +0100
@@ -37,6 +37,12 @@
 
 ifneq ($(debug),y)
 CFLAGS += -O2 -fomit-frame-pointer -fno-tree-coalesce-vars
+ifeq ($(XEN_TARGET_ARCH),x86_64)
+#might be cross-compiling so strip out possible x86_32 options
+CFLAGS += $(shell echo $(CFLAGS_EXTRA) | sed -e 's/-m32//g' -e 's/-march=i686//g' -e 's/-mtune=atom//g')
+else
+CFLAGS += $(CFLAGS_EXTRA)
+endif
 else
 # Less than -O1 produces bad code and large stack frames
 CFLAGS += -O1 -fno-omit-frame-pointer

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Waterdevil
n00b
n00b


Joined: 15 Aug 2017
Posts: 62

PostPosted: Mon Nov 27, 2017 4:20 pm    Post subject: Reply with quote

I did:

Code:
md -p /etc/portage/patches/app-emulation/xen


I created xen.patch with your code.

Code:
cd /usr/portage/app-emulation/xen
ebuild xen-4.8.2-r2.ebuild clean prepare
 * ERROR: app-emulation/xen-4.8.2-r2::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/app-emulation/xen/xen.patch
 *
 * Call stack:
 *               ebuild.sh, line  124:  Called src_prepare
 *             environment, line 3513:  Called default
 *      phase-functions.sh, line  853:  Called default_src_prepare
 *      phase-functions.sh, line  918:  Called __eapi6_src_prepare
 *             environment, line  221:  Called eapply_user
 *             environment, line  919:  Called eapply '/etc/portage/patches/app-emulation/xen/xen.patch'
 *             environment, line  889:  Called _eapply_patch '/etc/portage/patches/app-emulation/xen/xen.patch'
 *             environment, line  827:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/app-emulation/xen/xen.patch'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=app-emulation/xen-4.8.2-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/xen-4.8.2-r2::gentoo'`.
 * The complete build log is located at '/var/log/portage/app-emulation:xen-4.8.2-r2:20171127-161906.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-emulation/xen-4.8.2-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/xen-4.8.2-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2'
 * S: '/var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2'

_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,AsrockZ97,i7,MEM:32G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChan,Tandberg LTO-6
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16876
Location: here

PostPosted: Tue Nov 28, 2017 7:15 am    Post subject: Reply with quote

Waterdevil sorry seems that patch is out of date for xen-4.8.2
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
CaptainBlood
l33t
l33t


Joined: 24 Jan 2010
Posts: 821

PostPosted: Tue Nov 28, 2017 10:22 am    Post subject: Reply with quote

Here xen compiles with -J4.
Code:
make -j33 V=1

have you tried with -j1?
Thks 4 ur attention.
Back to top
View user's profile Send private message
Waterdevil
n00b
n00b


Joined: 15 Aug 2017
Posts: 62

PostPosted: Wed Nov 29, 2017 4:34 pm    Post subject: Reply with quote

Thank you for this hint.

I tried with j1, but still error.
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,AsrockZ97,i7,MEM:32G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChan,Tandberg LTO-6
Back to top
View user's profile Send private message
Waterdevil
n00b
n00b


Joined: 15 Aug 2017
Posts: 62

PostPosted: Tue Dec 05, 2017 12:44 am    Post subject: Reply with quote

I was on gcc-6.4.0. I changed back to systemd, removed dantrell-gnome-3.26 and switched to profile 17, emerged -e @world, 300 emerge fails and 5 days later suddenly xen emerged...
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,AsrockZ97,i7,MEM:32G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChan,Tandberg LTO-6
Back to top
View user's profile Send private message
Waterdevil
n00b
n00b


Joined: 15 Aug 2017
Posts: 62

PostPosted: Fri Dec 08, 2017 11:50 am    Post subject: Reply with quote

After

Code:
emerge --verbose --ask --update --newuse --deep --with-bdeps=y --complete-graph=y @world
emerge -e @world


xen fails to emerge again. There seems to be a bug.
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,AsrockZ97,i7,MEM:32G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChan,Tandberg LTO-6
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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