Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829288 - app-emulation/xen-4.14.3-r2 fail with "configure: error: Unable to find as86, please install as86"; bcc is missing too
Summary: app-emulation/xen-4.14.3-r2 fail with "configure: error: Unable to find as86,...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-12-15 18:20 UTC by korte
Modified: 2021-12-21 01:37 UTC (History)
2 users (show)

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


Attachments
config.loh (config.log,5.89 KB, text/x-log)
2021-12-15 18:22 UTC, korte
Details
emerge --info '=app-emulation/xen-tools-4.15.1-r2::gentoo' (emerge--info_xen-tools,6.85 KB, text/plain)
2021-12-15 18:25 UTC, korte
Details
emerge -pqv '=app-emulation/xen-tools-4.15.1-r2::gentoo' (emerge-pqv_xen-tools,272 bytes, text/plain)
2021-12-15 18:26 UTC, korte
Details
build.log (xen-tools-4.15.1-r2:20211215-173403.log.gz,4.14 KB, application/gzip)
2021-12-15 18:28 UTC, korte
Details
build environment (environment,124.98 KB, text/plain)
2021-12-15 18:28 UTC, korte
Details
build.log as86 installed, bcc missing (xen-tools-4.14.3:20211215-183559.log.gz,3.19 KB, application/gzip)
2021-12-15 18:45 UTC, korte
Details
xen build.log, compiled succesfully, installing failed because of problems when linking/moving files in /boot (xen-4.14.3-r2:20211215-210303.log.gz,30.78 KB, application/gzip)
2021-12-15 21:20 UTC, korte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description korte 2021-12-15 18:20:52 UTC
installation of xen-tools failed because of

> checking for as86... no
> configure: error: Unable to find as86, please install as86
> configure: error: ./configure failed for tools

System is a Pi400, arm64

Reproducible: Always
Comment 1 korte 2021-12-15 18:22:14 UTC
Created attachment 759205 [details]
config.loh
Comment 2 korte 2021-12-15 18:25:03 UTC
Created attachment 759206 [details]
emerge --info '=app-emulation/xen-tools-4.15.1-r2::gentoo'
Comment 3 korte 2021-12-15 18:26:02 UTC
Created attachment 759207 [details]
emerge -pqv '=app-emulation/xen-tools-4.15.1-r2::gentoo'
Comment 4 korte 2021-12-15 18:28:29 UTC
Created attachment 759208 [details]
build.log
Comment 5 korte 2021-12-15 18:28:49 UTC
Created attachment 759209 [details]
build environment
Comment 6 korte 2021-12-15 18:41:10 UTC
emerge -va sys-devel/bin86-0.16.21 #solved it




#configuring xen-tools worked for as86
emerge xen # xen-tools was pulled in as a dependency
...
checking for as86... /usr/bin/as86 

but

checking for bcc... no
configure: error: Unable to find bcc, please install bcc
configure: error: ./configure failed for tools
Comment 7 korte 2021-12-15 18:45:15 UTC
Created attachment 759210 [details]
build.log as86 installed, bcc missing
Comment 8 korte 2021-12-15 20:27:37 UTC
bcc is in https://packages.gentoo.org/packages/sys-devel/dev86 (Bruce's C compiler - Simple C compiler to generate 8086 code)
Comment 9 korte 2021-12-15 20:38:39 UTC
emerge xen

dependency xen-tools:

checking for iasl... no
configure: error: Unable to find iasl, please install iasl
configure: error: ./configure failed for tools

emerge sys-power/iasl

solved it
Comment 10 korte 2021-12-15 21:18:06 UTC
>>> Installing (2 of 2) app-emulation/xen-4.14.3-r2::gentoo
 * checking 7 files for package collisions
>>> Merging app-emulation/xen-4.14.3-r2 to /
 * Your boot partition was detected as being mounted at /boot.
 * Files will be installed there for xen to function correctly.
--- /boot/
>>> /boot/xen-4.14.4-pre.config
>>> /boot/xen-4.14.4-pre
--- /usr/
--- /usr/lib64/
--- /usr/lib/
>>> /usr/lib/debug/
>>> /usr/lib/debug/xen-syms-4.14.4-pre
>>> /usr/lib/debug/xen-syms-4.14.4-pre.map
!!! failed to properly create symlink:
!!! /boot/xen-4 -> xen-4.14.4-pre
!!! [Errno 1] Operation not permitted: b'xen-4.14.4-pre' -> b'/boot/xen-4'
!!! Failed to move file.
!!! /boot/xen-4 -> xen-4.14.4-pre

>>> Failed to install app-emulation/xen-4.14.3-r2, Log file:

>>>  '/var/log/portage/build/app-emulation/xen-4.14.3-r2:20211215-210303.log.gz'

 * GNU info directory index is up-to-date.


Raspberry Pi need vfat on /boot, therefore ln -s fails. But mv fails? ls /boot

-rwxr-xr-x 1 root root   950384 Dec 15 22:06 xen-4.14.4-pre

is the order of "!!! /boot/xen-4 -> xen-4.14.4-pre" right? ln -s <source> <target>.
Comment 11 korte 2021-12-15 21:20:09 UTC
Created attachment 759252 [details]
xen build.log, compiled succesfully, installing failed because of problems when linking/moving files in /boot
Comment 12 korte 2021-12-16 15:26:52 UTC
#thanks to bujeddhazeus for the hint to unmount /boot

umount /boot
mount /dev/sda1 /mnt
cp -a /mnt/* /boot

# emerge xen leads to
#  Your boot partition is not mounted at /boot.
#  Please mount it and retry.
# commenting /boot in /etc/fstab out helps
 
emerge xen

cd /root
tar -cf boot-after-emerge-xen.tar /boot/*
rm -Rf /boot/*

#uncomment /boot in /etc/fstab
mount /boot

differences after emerge xen in /boot (on ext4):

lrwxrwxrwx 1 root root       14 Dec 16 16:16 xen -> xen-4.15.2-pre
lrwxrwxrwx 1 root root       14 Dec 16 16:16 xen-4 -> xen-4.15.2-pre
lrwxrwxrwx 1 root root       14 Dec 16 16:16 xen-4.15 -> xen-4.15.2-pre
-rw-r--r-- 1 root root   950384 Dec 16 16:16 xen-4.15.2-pre
-rw-r--r-- 1 root root     2365 Dec 16 16:12 xen-4.15.2-pre.config
Comment 13 Larry the Git Cow gentoo-dev 2021-12-21 01:37:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=239ccabffc7e22687f037d7f5af652c86eb4173b

commit 239ccabffc7e22687f037d7f5af652c86eb4173b
Author:     Tomáš Mózes <hydrapolic@gmail.com>
AuthorDate: 2021-12-20 20:13:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-21 01:26:54 +0000

    app-emulation/xen-tools: bump to 4.16.0
    
    Closes: https://bugs.gentoo.org/829288
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-emulation/xen-tools/Manifest                  |   4 +
 app-emulation/xen-tools/files/gentoo-patches.conf |  11 +
 app-emulation/xen-tools/xen-tools-4.16.0.ebuild   | 558 ++++++++++++++++++++++
 3 files changed, 573 insertions(+)