View previous topic :: View next topic |
Author |
Message |
pourpier Apprentice
Joined: 27 Sep 2017 Posts: 166
|
Posted: Mon Jan 29, 2018 6:46 pm Post subject: SOLVED Rebuild of virtualbox addons for kernel 4.15 failed |
|
|
Hello,
After the last update I got new gentoo sources for the 4.15 version of the kernel. I could compile it without any issue. I could rebuild the x11 modules but when I tried the emerge @module-rebuild the virtualbox guest additions failed to be rebuilt.
Code: | * ERROR: app-emulation/virtualbox-guest-additions-5.2.6::gentoo failed (compile phase):
* emake failed |
Code: | emerge --info '=app-emulation/virtualbox-guest-additions-5.2.6::gentoo'
Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r9, 4.14.15-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.14.15-gentoo-x86_64-Intel-R-_Core-TM-_i5-4690_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem: 4047808 total, 107012 free
KiB Swap: 1048572 total, 1048572 free
Timestamp of repository gentoo: Mon, 29 Jan 2018 17:30:02 +0000
Head commit of repository gentoo: 5b0e8003dd4d143586da06130986656717d75682
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash: 4.4_p12::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.24.3::gentoo
dev-lang/python: 2.7.14-r1::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.11.6-r2::gentoo, 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-r9::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/lib64/libreoffice/program/sofficerc /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="-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://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j5"
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 berkdb bindist 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 gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support qt5 readline sdl seccomp spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb 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="aes avx avx2 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" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" L10N="fr" 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 ruby23" USERLAND="GNU" 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
=================================================================
app-emulation/virtualbox-guest-additions-5.2.6::gentoo was built with the following:
USE="X" ABI_X86="(64)" |
I don't know what to do as I have no clue about the issue.
I saw in the lines flowing during the compiling this line:
Code: | /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxguest/VBoxGuest-linux.c:1173:66: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
module_param_call(r3_log_to_host, vgdrvLinuxParamR3LogToHostSet, vgdrvLinuxParamR3LogToHostGet, NULL, 0664); |
And this is only type of error I saw.
Best regards,
pourpier
[Moderator edit: added [code] tags to preserve output layout. -Hu]
Last edited by pourpier on Wed Jan 31, 2018 6:56 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31291 Location: here
|
Posted: Mon Jan 29, 2018 7:48 pm Post subject: |
|
|
Try this patch _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
pourpier Apprentice
Joined: 27 Sep 2017 Posts: 166
|
Posted: Mon Jan 29, 2018 7:58 pm Post subject: |
|
|
fedeliallalinea wrote: | Try this patch |
As I have never used a patch what are the concrete steps I need to follow ?
Do I have to find the file in question and edit it manually by removing the red lines and by adding the green lines ?
Or is there a way to do it without editing the file ?
Best regards |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31291 Location: here
|
Posted: Mon Jan 29, 2018 8:22 pm Post subject: |
|
|
pourpier wrote: | As I have never used a patch what are the concrete steps I need to follow ?
Do I have to find the file in question and edit it manually by removing the red lines and by adding the green lines ?
Or is there a way to do it without editing the file ?
Best regards |
No copy conntent of two diff files and use /etc/portage/patches _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
pourpier Apprentice
Joined: 27 Sep 2017 Posts: 166
|
Posted: Mon Jan 29, 2018 9:27 pm Post subject: |
|
|
fedeliallalinea wrote: | pourpier wrote: | As I have never used a patch what are the concrete steps I need to follow ?
Do I have to find the file in question and edit it manually by removing the red lines and by adding the green lines ?
Or is there a way to do it without editing the file ?
Best regards |
No copy conntent of two diff files and use /etc/portage/patches |
I tried it and got this message:
Code: | ERROR: app-emulation/virtualbox-guest-additions-5.2.6::gentoo failed (prepare phase):
* patch -p1 failed with /etc/portage/patches/app-emulation/virtualbox-guest-additions-5.2.6/01-bugvbox.patch
*
* Call stack:
* ebuild.sh, line 124: Called src_prepare
* environment, line 3539: Called eapply_user
* environment, line 813: Called eapply '/etc/portage/patches/app-emulation/virtualbox-guest-additions-5.2.6/01-bugvbox.patch'
* environment, line 783: Called _eapply_patch '/etc/portage/patches/app-emulation/virtualbox-guest-additions-5.2.6/01-bugvbox.patch'
* environment, line 721: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/app-emulation/virtualbox-guest-additions-5.2.6/01-bugvbox.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/virtualbox-guest-additions-5.2.6::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-guest-additions-5.2.6::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/temp/environment'.
* Working directory: '/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/VirtualBox-5.2.6'
* S: '/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/VirtualBox-5.2.6' |
What do I need to do now ?
Best regards
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31291 Location: here
|
Posted: Tue Jan 30, 2018 6:27 am Post subject: |
|
|
Ok, please remove this patch and post full build.log for to see the error _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
pourpier Apprentice
Joined: 27 Sep 2017 Posts: 166
|
Posted: Tue Jan 30, 2018 5:44 pm Post subject: |
|
|
fedeliallalinea wrote: | Ok, please remove this patch and post full build.log for to see the error |
I am trying to send you the complete ebuild but I get a message that it is waiting for forums.gentoo.org and then error 504.
I'll try again later |
|
Back to top |
|
|
pourpier Apprentice
Joined: 27 Sep 2017 Posts: 166
|
Posted: Tue Jan 30, 2018 6:03 pm Post subject: |
|
|
fedeliallalinea wrote: | Ok, please remove this patch and post full build.log for to see the error |
Here the result of wgetpaste: https://paste.pound-python.org/show/lhAO8VshH379LH1SrKdN/
I checked that both include/generated/autoconf.h and include/config/auto.conf are present !
Best regards,
pourpier |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31291 Location: here
|
Posted: Tue Jan 30, 2018 10:05 pm Post subject: |
|
|
Try to apply this patch manually (I have not found another method)
Code: | # ebuild /usr/portage/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.6.ebuild prepare
# cd /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work
# patch -p1 < /path/of/patch
# ebuild /usr/portage/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.6.ebuild install qmerge |
Reference:
https://www.virtualbox.org/ticket/17311 _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
pourpier Apprentice
Joined: 27 Sep 2017 Posts: 166
|
Posted: Wed Jan 31, 2018 6:55 am Post subject: |
|
|
fedeliallalinea wrote: | Try to apply this patch manually (I have not found another method)
Code: | # ebuild /usr/portage/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.6.ebuild prepare
# cd /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work
# patch -p1 < /path/of/patch
# ebuild /usr/portage/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.6.ebuild install qmerge |
Reference:
https://www.virtualbox.org/ticket/17311 |
I saw some differences between your patch and the one from the ticket: you add the -a option and the name of the files isn't completely the same. Could you explain me why you added the -a option ?
It worked perfectly.
Thanks a lot,
pourpier |
|
Back to top |
|
|
yzg Guru
Joined: 18 Jun 2005 Posts: 499
|
Posted: Sat Feb 03, 2018 4:04 pm Post subject: |
|
|
There is a bug report for this problem https://bugs.gentoo.org/646468
The patch works using the manual procedure.
I tried to using as a user patch in /etc/portage/patches/app-emulation/virtualbox-guest-additions-5.2.6/ but it failed.
The S directory is "/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/VirtualBox-5.2.6/" and the patch files are located one level down at "/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxguest/".
I think in this ebuild S is the current directory when eapply_user is called. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31291 Location: here
|
Posted: Sat Feb 03, 2018 5:30 pm Post subject: |
|
|
yzg wrote: | I think in this ebuild S is the current directory when eapply_user is called. |
I aswered here because /etc/portage/patches method not work _________________ Questions are guaranteed in life; Answers aren't.
Last edited by fedeliallalinea on Mon Mar 19, 2018 3:47 pm; edited 1 time in total |
|
Back to top |
|
|
ilnanny Tux's lil' helper
Joined: 17 Jul 2017 Posts: 123 Location: Italy/Taranto
|
Posted: Sun Mar 18, 2018 12:55 am Post subject: |
|
|
[quote="fedeliallalinea"]Try to apply this patch manually (I have not found another method)
Code: | # ebuild /usr/portage/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.6.ebuild prepare
# cd /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work
# patch -p1 < /path/of/patch
# ebuild /usr/portage/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.6.ebuild install qmerge |
** Thank you so much . _________________ == Lila-HD-icon-theme ==
https://github.com/ilnanny/Lila-HD-icon-theme |
|
Back to top |
|
|
|