View previous topic :: View next topic |
Author |
Message |
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Tue Nov 21, 2017 1:48 am Post subject: [solved] xen 4.8 fails to emerge |
|
|
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,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6
Last edited by Waterdevil on Sun Dec 24, 2017 9:59 pm; edited 3 times in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Tue Nov 21, 2017 7:06 am Post subject: |
|
|
I've no experience on xen, but look here _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Thu Nov 23, 2017 10:15 am Post subject: |
|
|
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,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Thu Nov 23, 2017 10:36 am Post subject: |
|
|
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 |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Mon Nov 27, 2017 4:20 pm Post subject: |
|
|
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,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Tue Nov 28, 2017 7:15 am Post subject: |
|
|
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 |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3627
|
Posted: Tue Nov 28, 2017 10:22 am Post subject: |
|
|
Here xen compiles with -J4.
have you tried with -j1?
Thks 4 ur attention. |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Wed Nov 29, 2017 4:34 pm Post subject: |
|
|
Thank you for this hint.
I tried with j1, but still error. _________________ _____________________
Aut semper aut numquam
Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Tue Dec 05, 2017 12:44 am Post subject: |
|
|
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,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Fri Dec 08, 2017 11:50 am Post subject: |
|
|
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,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Mon Dec 11, 2017 5:28 pm Post subject: |
|
|
Hello World,
I made:
Code: | emaint sync --auto
eix-sync
eix-update
layman -S
emerge --verbose --ask --update --newuse --deep --with-bdeps=y --complete-graph=y @world
perl-cleaner --reallyall -- -av
emerge -av --depclean
revdep-rebuild -v -- --ask
eclean-dist -d
dispatch-conf
glsa-check -t all
glsa-check -f all
glsa-check -vp affected
eix-test-obsolete
emaint --check all
eix-update
|
There is now another emerge error message:
https://gist.github.com/anonymous/d5148a6067fd7d448983b87d84459f77
But xen-tools has an error too.
https://gist.github.com/anonymous/5c86f2aa5687df55c2a44ade811386f0
[Moderator edit: added [code] tags to preserve output layout. -Hu] _________________ _____________________
Aut semper aut numquam
Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54242 Location: 56N 3W
|
Posted: Fri Dec 22, 2017 7:57 pm Post subject: |
|
|
Waterdevil,
I'm not a Xen user but the error is here.
Code: | x86_64-pc-linux-gnu-ld -T xen.lds -N prelink.o --build-id=sha1 \
/var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/common/symbols-dummy.o -o /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/.xen-syms.0
x86_64-pc-linux-gnu-ld -mi386pep --subsystem=10 --image-base=0xffff82d080000000 --stack=0,0 --heap=0,0 --strip-debug --section-alignment=0x200000 --file-alignment=0x20 --major-image-version=4 --minor-image-version=8 --major-os-version=2 --minor-os-version=0 --major-subsystem-version=2 --minor-subsystem-version=0 --build-id=sha1 -T efi.lds -N prelink-efi.o efi/relocs-dummy.o /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/common/symbols-dummy.o efi/buildid.o -o /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/.xen.efi.0xffff82d080000000.0 && x86_64-pc-linux-gnu-ld -mi386pep --subsystem=10 --image-base=0xffff82d0c0000000 --stack=0,0 --heap=0,0 --strip-debug --section-alignment=0x200000 --file-alignment=0x20 --major-image-version=4 --minor-image-version=8 --major-os-version=2 --minor-os-version=0 --major-subsystem-version=2 --minor-subsystem-version=0 --build-id=sha1 -T efi.lds -N prelink-efi.o efi/relocs-dummy.o /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/common/symbols-dummy.o efi/buildid.o -o /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/.xen.efi.0xffff82d0c0000000.0 && :
efi/buildid.o: file not recognized: File format is ambiguous
efi/buildid.o: matching formats: coff-x86-64 pe-x86-64
make[2]: *** [Makefile:175: /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/xen.efi] Error 1
make[2]: *** Waiting for unfinished jobs.... |
I don't know what to do about that. Search gentoo bugs and upstream bugs as a start.
[Xen-devel] [BUG] Xen-4.8.0 efi/buildid.o: file not recognized/Ambiguous is worth a read. It hints at some things you might try.
In xen-tools the error is
Code: | build.py...
: error 7000: Failed to execute command
make tbuild [/var/tmp/portage/app-emulation/xen-tools-4.8.2-r3/work/xen-4.8.2/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/OvmfPkg/AcpiTables/AcpiTables]
build.py...
: error F002: Failed to build module
/var/tmp/portage/app-emulation/xen-tools-4.8.2-r3/work/xen-4.8.2/tools/firmware/ovmf-dir-remote/OvmfPkg/AcpiTables/AcpiTables.inf [X64, GCC44, RELEASE]
- Failed -
Build end time: 18:44:55, Dec.11 2017
Build total time: 00:00:15 |
Build xen-tools until it fails, then try to execute the failed command by hand. You might get a more informative error message. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Fri Dec 22, 2017 11:19 pm Post subject: |
|
|
Code: | cd /var/tmp/portage/app-emulation/xen-tools-4.8.2-r3/work/xen-4.8.2
make tbuild [/var/tmp/portage/app-emulation/xen-tools-4.8.2-r3/work/xen-4.8.2/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC44/X64/OvmfPkg/AcpiTables/AcpiTables]
make: *** No rule to make „tbuild“. Stop. |
I filed a bug https://bugs.gentoo.org/642076 _________________ _____________________
Aut semper aut numquam
Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Sun Dec 24, 2017 8:26 pm Post subject: |
|
|
I switched off flask and ovmf and it emerges.
So maybe it's no bug or only with these flags.
I need ovmf, so I have to research further.
As variation now xen doesn't emerge again with a...
...New error message:
Code: | efi/buildid.o: file not recognized: File format is ambiguous
efi/buildid.o: matching formats: coff-x86-64 pe-x86-64
make[2]: *** [Makefile:175: /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/xen.efi] Error 1 |
emerge log: https://gist.github.com/anonymous/618673142594c267143f258435e2c012
Many thanks _________________ _____________________
Aut semper aut numquam
Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54242 Location: 56N 3W
|
Posted: Sun Dec 24, 2017 8:34 pm Post subject: |
|
|
Waterdevil,
That's the binutils bug I pointed you to earlier.
Try a different binutils. Binutils is slotted. Use eselect binutils to choose the one to use.
You should the the most recent one if you can.
You may need to install another version.
Code: | $ eix binutils
I] sys-devel/binutils
Available versions:
(2.25.1) [M]2.25.1-r1{tbz2}
(2.26.1) [M]2.26.1{tbz2}
(2.27) [M](~)2.27-r1
(2.28.1) 2.28.1{tbz2}
(2.29.1) 2.29.1-r1{tbz2} | are in the tree.
The first three are masked for security issues, so don't use any of those any more than you need to. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Sun Dec 24, 2017 9:58 pm Post subject: |
|
|
I'm so sorry, that I didn't understand your second last help.
Now I emerged binutils-2.28.1 and xen tf emerged...
Many thanks _________________ _____________________
Aut semper aut numquam
Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54242 Location: 56N 3W
|
Posted: Mon Dec 25, 2017 11:39 am Post subject: |
|
|
Waterdevil,
That's OK, I aim to help you learn to fish.
That means that I pitch help so you have to work for it and sometimes I get it wrong and pitch it out of your reach.
Don't forget to switch your binutils back. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
araemo n00b
Joined: 14 Aug 2003 Posts: 47
|
Posted: Wed Jan 24, 2018 12:02 am Post subject: |
|
|
I seem to be having the same issue (efi/buildid.o: file not recognized: File format is ambiguous) here, when attempting to emerge app-emulation/xen-4.9.1-r1
Things I have tried:
- Letting my emerge update finish all other packages, updating config files, eselecting latest binutils, etc.
- Processing presserved libs (emerge @preserved-rebuild)
- Downgrading binutils and binutils-libs to the 2.28.1 version that worked for Waterdevil above (including eselecting the 2.28.1 version after emerging both packages to the old version, and even recompiling both packages after selecting the old version)
- revdep-rebuild on binutils libraries (libbfd.so, libopcodes.so, and version-specific copies of both of those. Nothing outside of binutils and cairo is dependent on them, according to revdep-rebuild)
- Selecting latest gcc and going through the full gcc update process with revdep-rebuild (had to mask xen packages for that to complete, then unmask them and try to emerge them)
- adding Multitarget to binutils-libs use flags (since xen requires multitarget for binutils, I figured this was worth a shot)
- Emerging the older version of xen (4.8.2-r2. Fails with same error. And since somehow xen-tools-4.9.1 has emerged successfully, and libvirt updated to a version that requires 4.9, I can't try anymore)
Emerge --info:
Code: | Portage 2.3.19 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r9, 4.4.39-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.4.39-gentoo-x86_64-AMD_FX-tm-8320_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem: 32930408 total, 29598348 free
KiB Swap: 1048568 total, 1048568 free
Timestamp of repository gentoo: Sat, 20 Jan 2018 08:45:01 +0000
Head commit of repository gentoo: e67e2001b1c43156953dac267159bcc0a07b43e0
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash: 4.4_p12::gentoo
dev-java/java-config: 2.2.0::gentoo
dev-lang/perl: 5.24.3::gentoo
dev-lang/python: 2.7.14-r1::gentoo, 3.4.5::gentoo, 3.5.4-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.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils: 2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc: 4.7.3-r1::gentoo, 4.8.3::gentoo, 4.9.3::gentoo, 4.9.4::gentoo, 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-r9::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=bdver2"
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://gentoo.mirrors.pair.com/ http://www.gtlib.gatech.edu/pub/gentoo http://mirrors.rit.edu/gentoo/"
LANG="en_US.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="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qemu qt3support qt5 readline sdl seccomp spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xen xml xv xvid zlib" ABI_X86="64" 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="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" 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" 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="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
Emerge -pqv xen:
Code: | [ebuild U ] app-emulation/xen-4.9.1-r1 [4.7.1-r4] USE="efi -custom-cflags -debug -flask" |
Snippet from build log:
Code: | x86_64-pc-linux-gnu-ld -mi386pep --subsystem=10 --image-base=0xffff82d080000000 --stack=0,0 --heap=0,0 --strip-debug --section-alignment=0x200000 --file-alignment=0x20 --major-image-version=4 --minor-image-version=9 --major-os-version=2 --minor-os-version=0 --major-subsystem-version=2 --minor-subsystem-version=0 --build-id=sha1 -T efi.lds -N prelink-efi.o efi/relocs-dummy.o /var/tmp/portage/app-emulation/xen-4.9.1-r1/work/xen-4.9.1/xen/common/symbols-dummy.o efi/buildid.o -o /var/tmp/portage/app-emulation/xen-4.9.1-r1/work/xen-4.9.1/xen/.xen.efi.0xffff82d080000000.0 && x86_64-pc-linux-gnu-ld -mi386pep --subsystem=10 --image-base=0xffff82d0c0000000 --stack=0,0 --heap=0,0 --strip-debug --section-alignment=0x200000 --file-alignment=0x20 --major-image-version=4 --minor-image-version=9 --major-os-version=2 --minor-os-version=0 --major-subsystem-version=2 --minor-subsystem-version=0 --build-id=sha1 -T efi.lds -N prelink-efi.o efi/relocs-dummy.o /var/tmp/portage/app-emulation/xen-4.9.1-r1/work/xen-4.9.1/xen/common/symbols-dummy.o efi/buildid.o -o /var/tmp/portage/app-emulation/xen-4.9.1-r1/work/xen-4.9.1/xen/.xen.efi.0xffff82d0c0000000.0 && :
efi/buildid.o: file not recognized: File format is ambiguous
efi/buildid.o: matching formats: coff-x86-64 pe-x86-64
make[2]: *** [Makefile:178: /var/tmp/portage/app-emulation/xen-4.9.1-r1/work/xen-4.9.1/xen/xen.efi] Error 1
make[2]: *** Waiting for unfinished jobs.... |
|
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Wed Jan 24, 2018 12:47 am Post subject: |
|
|
Hi araemo,
try to emerge binutils-2.28.1 or binutils-2.27-r1.
then eselect binutils list, eselect binutils set {number from list}
then emerge xen again.
After that eselect the newest again.
regards _________________ _____________________
Aut semper aut numquam
Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
araemo n00b
Joined: 14 Aug 2003 Posts: 47
|
Posted: Wed Jan 24, 2018 1:52 am Post subject: |
|
|
Waterdevil wrote: | Hi araemo,
try to emerge binutils-2.28.1 or binutils-2.27-r1.
then eselect binutils list, eselect binutils set {number from list}
then emerge xen again.
After that eselect the newest again.
regards |
I tried 2.28.1 already. I can try 2.27-r1 |
|
Back to top |
|
|
araemo n00b
Joined: 14 Aug 2003 Posts: 47
|
Posted: Wed Jan 24, 2018 2:05 am Post subject: |
|
|
araemo wrote: | Waterdevil wrote: | Hi araemo,
try to emerge binutils-2.28.1 or binutils-2.27-r1.
then eselect binutils list, eselect binutils set {number from list}
then emerge xen again.
After that eselect the newest again.
regards |
I tried 2.28.1 already. I can try 2.27-r1 |
I'll be damned, 2.27-r1 worked. So, did a patch not get kept forward? What's going on here?
Edit:
Depclean got rid of binutils 2.28.1 and 2.27-r1 on me (leaving only 2.29.1), and I tried to emerge xen again, same failure.
I emerged binutils 2.27-r1 and eselected it, and xen merges.
I emerged binutils 2.28.1 and eselected it, and xen fails. |
|
Back to top |
|
|
Waterdevil Apprentice
Joined: 15 Aug 2017 Posts: 172 Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria
|
Posted: Wed Jan 24, 2018 1:42 pm Post subject: |
|
|
was the same for me. _________________ _____________________
Aut semper aut numquam
Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6 |
|
Back to top |
|
|
bacondropped n00b
Joined: 30 Jan 2018 Posts: 1
|
Posted: Tue Jan 30, 2018 12:12 pm Post subject: |
|
|
Waterdevil wrote: |
...New error message:
Code: | efi/buildid.o: file not recognized: File format is ambiguous
efi/buildid.o: matching formats: coff-x86-64 pe-x86-64
make[2]: *** [Makefile:175: /var/tmp/portage/app-emulation/xen-4.8.2-r2/work/xen-4.8.2/xen/xen.efi] Error 1 |
emerge log: https://gist.github.com/anonymous/618673142594c267143f258435e2c012
|
I had the same problem. Couldn't solve this with any available binutils slot, so I just gave up and forced the object file format (Gist backup here):
Code: |
diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile
index b5cb5e3..812667c 100644
Gentoo patch for a Xen build failure with the following error:
efi/buildid.o: file not recognized: File format is ambiguous
efi/buildid.o: matching formats: coff-x86-64 pe-x86-64
Tested with
app-emulation/xen-4.9.1-r1 USE=efi
binutils: x86_64-pc-linux-gnu-2.28.1
profile: default/linux/amd64/17.0/hardened
Write this patch to
/etc/portage/patches/app-emulation/xen-4.9.1-r1/000-binutils-file-format.patch
and emerge xen.
--- a/xen/arch/x86/Makefile
+++ b/xen/arch/x86/Makefile
@@ -156,6 +156,7 @@ EFI_LDFLAGS += --major-image-version=$(XEN_VERSION)
EFI_LDFLAGS += --minor-image-version=$(XEN_SUBVERSION)
EFI_LDFLAGS += --major-os-version=2 --minor-os-version=0
EFI_LDFLAGS += --major-subsystem-version=2 --minor-subsystem-version=0
+EFI_LDFLAGS += -b coff-x86-64
$(TARGET).efi: VIRT_BASE = 0x$(shell $(NM) efi/relocs-dummy.o | sed -n 's, A VIRT_START$$,,p')
$(TARGET).efi: ALT_BASE = 0x$(shell $(NM) efi/relocs-dummy.o | sed -n 's, A ALT_START$$,,p')
|
Not sure if this should be sent upstream (the only other bug report for this I found was Gentoo as well), but works for me.
UPDATE: looks like someone else has already written the exact same patch half a year ago |
|
Back to top |
|
|
jlpoole Guru
Joined: 01 Nov 2005 Posts: 483 Location: Salem, OR
|
Posted: Wed Feb 28, 2018 5:18 pm Post subject: binutils ambiguous file format |
|
|
I ran into this very problem back in December 2016, I got around it by compiling my own bin untils.
I've come back to this problem during an upgrade and have logged Gentoo Bug 649048 that goes to the heart of the matter:
Code: | efi/buildid.o: file not recognized: File format is ambiguous
efi/buildid.o: matching formats: coff-x86-64 pe-x86-64 |
|
|
Back to top |
|
|
gsurbey Apprentice
Joined: 24 Mar 2003 Posts: 212 Location: Nashua, NH
|
|
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
|
|