Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED ]Failed to emerge app-emulation/xen
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
Semantika
n00b
n00b


Joined: 19 Feb 2018
Posts: 20

PostPosted: Mon Feb 19, 2018 11:06 pm    Post subject: [SOLVED ]Failed to emerge app-emulation/xen Reply with quote

I have been trying to install the hypervisor Xen on Gento4.9. I have followed the instructions on
Gentoo Wiki[/url]
but haven't accomplished to emerge xen.

My emerge --info output is:

Code:
Portage 2.3.19 (python 3.6.3-final-0, default/linux/amd64/17.0, gcc-6.4.0, glibc                -2.25-r10, 4.9.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-AMD_A10-9700_RADEON_R7,_10_COMPUTE_C                ORES_4C+6G-with-gentoo-2.4.1
KiB Mem:     7583636 total,   6894268 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 19 Feb 2018 20:30:01 +0000
Head commit of repository gentoo: 1dc3ffd08c6370d03715013ecb6e6ec4ed58d960
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.9.6::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.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
/home/tzolkin/info lines 1-21/58 21%...skipping...
Portage 2.3.19 (python 3.6.3-final-0, default/linux/amd64/17.0, gcc-6.4.0, glibc-2.25-r10, 4.9.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-AMD_A10-9700_RADEON_R7,_10_COMPUTE_CORES_4C+6G-with-gentoo-2.4.1
KiB Mem:     7583636 total,   6894268 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 19 Feb 2018 20:30:01 +0000
Head commit of repository gentoo: 1dc3ffd08c6370d03715013ecb6e6ec4ed58d960
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.9.6::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.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::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.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
/home/tzolkin/info lines 1-45/58 37%...skipping...
Portage 2.3.19 (python 3.6.3-final-0, default/linux/amd64/17.0, gcc-6.4.0, glibc-2.25-r10, 4.9.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-AMD_A10-9700_RADEON_R7,_10_COMPUTE_CORES_4C+6G-with-gentoo-2.4.1
KiB Mem:     7583636 total,   6894268 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 19 Feb 2018 20:30:01 +0000
Head commit of repository gentoo: 1dc3ffd08c6370d03715013ecb6e6ec4ed58d960
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.9.6::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.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::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.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs 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://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ rsync://mirrors.rit./home/tzolkin/info lines 1-48/58 45%


Last edited by Semantika on Tue Feb 20, 2018 7:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41736
Location: 56N 3W

PostPosted: Mon Feb 19, 2018 11:08 pm    Post subject: Reply with quote

Semantika,

Welcome to Gentoo.

The error will be in the build log. Make friends with wgetpaste and put the build log onto a pastebin site.
Post the link here.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Semantika
n00b
n00b


Joined: 19 Feb 2018
Posts: 20

PostPosted: Mon Feb 19, 2018 11:28 pm    Post subject: Reply with quote

Hey, thank you very much. The link for the
build.log
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 20134
Location: here

PostPosted: Tue Feb 20, 2018 6:57 am    Post subject: Reply with quote

Take a look at this bug
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Semantika
n00b
n00b


Joined: 19 Feb 2018
Posts: 20

PostPosted: Tue Feb 20, 2018 3:56 pm    Post subject: Reply with quote

Well, I already applied the patch for version 4.9.1-r1 and 4.8.2-r2 and neither work. Here is what I got from the

Code:
 ebuild xen-4.8.2-r2.ebuild clean prepare


Code:
  * xen-4.8.2.tar.gz BLAKE2B SHA512 size ;-) ...                          [ ok ]
 * xen-4.8.2-upstream-patches-2.tar.xz BLAKE2B SHA512 size ;-) ...       [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * To avoid automounting and auto(un)installing with /boot,
 * just export the DONT_MOUNT_BOOT variable.

 * Your boot partition was detected as being mounted at /boot.
 * Files will be installed there for xen to function correctly.
>>> Unpacking source...
>>> Unpacking xen-4.8.2.tar.gz to /var/tmp/portage/app-emulation/xen-4.8.2-r2/work
>>> Unpacking xen-4.8.2-upstream-patches-2.tar.xz to /var/tmp/portage/app-emulation/xen-4.8.2-r2/work
>>> Source unpacked in /var/tmp/portage/app-emulation/xen-4.8.2-r2/work
>>> Preparing source in /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2 ...
 * Applying various patches (bugfixes/updates) ...
 *   0002-xen-mm-make-sure-node-is-less-than-MAX_NUMNODES.patch ...      [ ok ]
 *   0003-grant_table-fix-GNTTABOP_cache_flush-handling.patch ...        [ ok ]
 *   0004-tools-xenstore-dont-unlink-connection-object-twice.patch ...   [ ok ]
 *   0005-gnttab-also-validate-PTE-permissions-upon-destroy-re.patch ... [ ok ]
 *   0006-x86-check-for-allocation-errors-in-modify_xen_mappin.patch ... [ ok ]
 *   0007-x86-efi-don-t-write-relocations-in-efi_arch_relocate.patch ... [ ok ]
 *   0008-hvmloader-use-base-instead-of-pci_mem_start-for-find.patch ... [ ok ]
 *   0009-VT-d-use-correct-BDF-for-VF-to-search-VT-d-unit.patch ...      [ ok ]
 *   0010-x86-emul-Fix-the-handling-of-unimplemented-Grp7-inst.patch ... [ ok ]
 *   0011-x86-introduce-and-use-setup_force_cpu_cap.patch ...            [ ok ]
 *   0012-xen-page_alloc-Cover-memory-unreserved-after-boot-in.patch ... [ ok ]
 *   0013-xen-arm-Correctly-report-the-memory-region-in-the-du.patch ... [ ok ]
 *   0014-xen-arm-Fix-the-issue-in-cmp_mmio_handler-used-in-fi.patch ... [ ok ]
 *   0015-xen-arm-p2m-Read-_mapped_gfn-with-the-p2m-lock-taken.patch ... [ ok ]
 *   0016-x86-don-t-allow-MSI-pIRQ-mapping-on-unowned-device.patch ...   [ ok ]
 *   0017-x86-enforce-proper-privilege-when-un-mapping-pIRQ-s.patch ...  [ ok ]
 *   0018-x86-MSI-disallow-redundant-enabling.patch ...                  [ ok ]
 *   0019-x86-IRQ-conditionally-preserve-irq-pirq-mapping-on-m.patch ... [ ok ]
 *   0020-x86-FLASK-fix-unmap-domain-IRQ-XSM-hook.patch ...              [ ok ]
 *   0021-x86-ioreq-server-correctly-handle-bogus-XEN_DMOP_-un.patch ... [ ok ]
 *   0022-x86-HVM-prefill-partially-used-variable-on-emulation.patch ... [ ok ]
 *   0023-x86-limit-linear-page-table-use-to-a-single-level.patch ...    [ ok ]
 *   0024-x86-don-t-store-possibly-stale-TLB-flush-time-stamp.patch ...  [ ok ]
 *   0025-x86-don-t-allow-page_unlock-to-drop-the-last-type-re.patch ... [ ok ]
 *   0026-x86-shadow-Don-t-create-self-linear-shadow-mappings-.patch ... [ ok ]
 *   0027-x86-cpu-Fix-IST-handling-during-PCPU-bringup.patch ...         [ ok ]
 *   0028-tools-libxc-xc_dom_arm-add-missing-variable-initiali.patch ... [ ok ]
 *   0029-gnttab-fix-pin-count-page-reference-race.patch ...             [ ok ]
 *   0030-x86-svm-Fix-a-livelock-when-trying-to-run-shadowed-u.patch ... [ ok ]
 *   0031-x86-msr-Correct-the-definition-of-MSR_IA32_APICBASE_.patch ... [ ok ]
 *   0032-x86-PV-fix-generalize-guest-nul-selector-handling.patch ...    [ ok ]
 *   0033-xen-domctl-Fix-Xen-heap-leak-via-XEN_DOMCTL_getvcpuc.patch ... [ ok ]
 *   0034-x86-request-page-table-page-in-for-the-correct-domai.patch ... [ ok ]
 *   0035-x86-fix-do_update_va_mapping_otherdomain-wrt-transla.patch ... [ ok ]
 *   0036-x86-vvmx-Fix-WRMSR-interception-of-VMX-MSRs.patch ...          [ ok ]
 *   0037-x86-avoid-GP-for-PV-guest-MSR-accesses.patch ...               [ ok ]
 *   0038-VMX-PLATFORM_INFO-MSR-is-r-o.patch ...                         [ ok ]
 *   0039-x86emul-handle-address-wrapping.patch ...                      [ ok ]
 * Done with patching
 * Applying xen-4.6-efi.patch ...                                        [ ok ]
 * Applying Parche.patch ...
The text leading up to this was:
--------------------------
|--- xen/arch/x86/Makefile_ORIGINAL   2016-12-09 08:00:35.187413472 -0800
|+++ xen/arch/x86/Makefile   2016-12-09 08:05:26.275430987 -0800
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored                                                  [ !! ]
 * ERROR: app-emulation/xen-4.8.2-r2::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/app-emulation/xen-4.8.2-r2/Parche.patch
 *
 * Call stack:
 *               ebuild.sh, line  124:  Called src_prepare
 *             environment, line 3394:  Called default
 *      phase-functions.sh, line  853:  Called default_src_prepare
 *      phase-functions.sh, line  918:  Called __eapi6_src_prepare
 *             environment, line  197:  Called eapply_user
 *             environment, line  808:  Called eapply '/etc/portage/patches/app-emulation/xen-4.8.2-r2/Parche.patch'
 *             environment, line  778:  Called _eapply_patch '/etc/portage/patches/app-emulation/xen-4.8.2-r2/Parche.patch'
 *             environment, line  716:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/app-emulation/xen-4.8.2-r2/Parche.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/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'
[/code]
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 20134
Location: here

PostPosted: Tue Feb 20, 2018 4:21 pm    Post subject: Reply with quote

Try with this patch
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Semantika
n00b
n00b


Joined: 19 Feb 2018
Posts: 20

PostPosted: Tue Feb 20, 2018 7:11 pm    Post subject: [SOLVED] Failed to emerge app-emulation/xen Reply with quote

Yei, I have applied the last patch you recommended and I was finally able to install xen.

Thanks a ton @fedeliallalinea[/quote]
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