Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-qt/qtwebengine-5.7.1-r2 failed to build anything.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Lebkoungcity
Apprentice
Apprentice


Joined: 16 Nov 2008
Posts: 212
Location: near Lebkoungcity (='Gingerbreadcity' =Nuremberg)

PostPosted: Mon Dec 11, 2017 10:05 pm    Post subject: dev-qt/qtwebengine-5.7.1-r2 failed to build anything. Reply with quote

Greetings everyone,

I'm about to recompile my systems after switching to profile 17. Unfortunately qtwebengine failed after about one day and a half of compiling (btw: Is this long time a consequence of profile 17?). I still have the files in /var/tmp/portage and so I tried it once again with FEATURE="keepwork". But it still fails with
Code:
dev-qt/qtwebengine-5.7.1-r2 failed to build anything. Please report to https://bugs.gentoo.org/
(And unless necessary I wouldn't want to recompile it as long as it lasts this long...)

In the ebuild there are these lines:
Code:
src_install() {
   qt5-build_src_install

   # bug 601472
   if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
      die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
   fi

   pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
}


Here's the output of
Code:
FEATURES="keepwork" emerge -1av qtwebengine

https://bpaste.net/show/77fea29a4134

And here is
Code:
# emerge --info
Portage 2.3.13 (python 2.7.14-final-0, default/linux/x86/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r9, 4.12.12-gentoo i686)
=================================================================
System uname: Linux-4.12.12-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1400MHz-with-gentoo-2.4.1
KiB Mem:     1550976 total,     42252 free
KiB Swap:    2097148 total,   1978364 free
Timestamp of repository gentoo: Mon, 11 Dec 2017 20:15:01 +0000
Head commit of repository gentoo: e4e28b774ec066428e0116b94af8baad3e95c559
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 i686-pc-linux-gnu [enabled]
ccache version 3.3.4 [enabled]
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-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.3.4-r1::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.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::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::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-r9::gentoo
Repositories:

lokal
    location: /usr/local/portage
    masters: gentoo
    priority: 0

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

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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=pentium-m -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distcc distcc-pump 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 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7 -l1"
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 activities alsa berkdb binfilter branding bts bzip2 cairo calendar cdda clflush cli cmov consolekit cracklib crypt cups cx8 cxx dbus de declarative dri dts dvd dvdr emboss encode est exif fam fbcondecor ffmpeg firefox flac fortran fpu fxsr gdbm gif gpg gpm grub gstreamer gtk h323 iconv ipv6 java jpeg kde kipi kontact kwallet laptop lcms ldap libnotify lm_sensors mad mca mce mmx mng modules mp3 mp4 mpeg mplayer msr mtrr ncurses networkmanager nls nptl nsplugin ogg openal opengl openmp orc pam pango pbe pcre pdf pge phonon pim plasma pm-utils pmu png policykit ppds prelink pse pulseaudio qml qt3support qt5 rar readline sdl seccomp semantic-desktop sensord sep session sip sipim spell sse sse2 ssl startup-notification svg system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite tcpd theora thinkpad tiff tm tm2 truetype tsc udev udisks unicode upower usb v4l v4l2 vme vorbis wacom wav widgets wifi wxwidgets x264 x86 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="pc" INPUT_DEVICES="evdev keyboard mouse synaptics wacom" KERNEL="linux" L10N="de-1901 de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de_1901 de_DE de en" 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="radeon r100" 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


So, what should I do now?

Thanks a lot in advance!
Andy
_________________
"The most dangerous world view is the world view of the ones who haven't viewed the world."
Alexander von Humboldt (1769-1859)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21605

PostPosted: Tue Dec 12, 2017 3:19 am    Post subject: Reply with quote

That message appears if ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so fails [[ -f ]]. Based on your output, that name is a link, not a file. Even so, a link to a file should pass that test if the target exists and is a file. With the caveat that I do not maintain this package, this looks to me like a bug in the ebuild. This was added for dev-qt/qtwebengine-5.6.2 emerges despite unmet deps, but installs no files by kensington in June, so it seems strange that someone would just now hit this. Regardless, this looks to me to be a completely incorrect solution. If the dependencies are unmet, the compile ought to fail outright and the ebuild then die because the compile fails. Testing afterward for specific files is an ugly hack. Based on your experience, the hack is fragile, too.

[Edit to add a clarification that [[ -f ]] treats a link to a file as a file.]


Last edited by Hu on Thu Dec 14, 2017 1:11 am; edited 1 time in total
Back to top
View user's profile Send private message
kensington
Developer
Developer


Joined: 02 Jan 2013
Posts: 177
Location: Australia

PostPosted: Tue Dec 12, 2017 10:05 am    Post subject: Re: dev-qt/qtwebengine-5.7.1-r2 failed to build anything. Reply with quote

Lebkoungcity wrote:

Code:
src_install() {
   qt5-build_src_install

   # bug 601472
   if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
      die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
   fi

   pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
}


Are you able to hack the ebuild so as to print the value of ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so?

Hu wrote:
That message appears if ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so fails [[ -f ]]. Based on your output, that name is a link, not a file. With the caveat that I do not maintain this package, this looks to me like a bug in the ebuild. This was added for dev-qt/qtwebengine-5.6.2 emerges despite unmet deps, but installs no files by kensington in June, so it seems strange that someone would just now hit this. Regardless, this looks to me to be a completely incorrect solution. If the dependencies are unmet, the compile ought to fail outright and the ebuild then die because the compile fails. Testing afterward for specific files is an ugly hack. Based on your experience, the hack is fragile, too.


Your improved solution is welcomed.
Back to top
View user's profile Send private message
Lebkoungcity
Apprentice
Apprentice


Joined: 16 Nov 2008
Posts: 212
Location: near Lebkoungcity (='Gingerbreadcity' =Nuremberg)

PostPosted: Tue Dec 12, 2017 5:15 pm    Post subject: Re: dev-qt/qtwebengine-5.7.1-r2 failed to build anything. Reply with quote

kensington wrote:
Lebkoungcity wrote:

Code:
src_install() {
   qt5-build_src_install

   # bug 601472
   if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
      die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
   fi

   pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
}


Are you able to hack the ebuild so as to print the value of ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so?


I'm sorry - I understand what you mean and I would do it if I could but I dunno how to do that... (I know how to change an ebuild and so but I don't know which lines should be changed and what they should look like afterwards.)
_________________
"The most dangerous world view is the world view of the ones who haven't viewed the world."
Alexander von Humboldt (1769-1859)
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Tue Dec 12, 2017 5:51 pm    Post subject: ><)))°€ Reply with quote

Something like this should do it:

Code:
src_install() {
   qt5-build_src_install

   # bug 601472
   echo "Hacking the ebuild to print the value: ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so"
   if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
      die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
   fi

   pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
}

The changed line being the one with 'echo'.

Testing with qtwebengine-5.10.0, the output then is:

Code:
Hacking the ebuild to print the value: /build-dir/portage/dev-qt/qtwebengine-5.10.0/image/usr/lib64/libQt5WebEngine.so

That file in turn should be a symlink:

Code:
/build-dir/portage/dev-qt/qtwebengine-5.10.0/image/usr/lib64/libQt5WebEngine.so -> libQt5WebEngine.so.5.10.0

_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Lebkoungcity
Apprentice
Apprentice


Joined: 16 Nov 2008
Posts: 212
Location: near Lebkoungcity (='Gingerbreadcity' =Nuremberg)

PostPosted: Tue Dec 12, 2017 6:36 pm    Post subject: Reply with quote

OK, got it:

Code:
Hacking the ebuild to print the value: /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/libQt5WebEngine.so


The content of /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/:
Code:
# ls -lh /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/
insgesamt 4,0K
drwxr-xr-x 5 root root 4,0K 12. Dez 19:23 usr


While libQt5WebEngine.so ist here:
Code:
lrwxrwxrwx 1 root root 24 12. Dez 19:23 /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/usr/lib/libQt5WebEngine.so -> libQt5WebEngine.so.5.7.1

_________________
"The most dangerous world view is the world view of the ones who haven't viewed the world."
Alexander von Humboldt (1769-1859)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21605

PostPosted: Wed Dec 13, 2017 3:58 am    Post subject: Re: dev-qt/qtwebengine-5.7.1-r2 failed to build anything. Reply with quote

kensington wrote:
Hu wrote:
This was added for dev-qt/qtwebengine-5.6.2 emerges despite unmet deps, but installs no files by kensington in June, so it seems strange that someone would just now hit this. Regardless, this looks to me to be a completely incorrect solution. If the dependencies are unmet, the compile ought to fail outright and the ebuild then die because the compile fails. Testing afterward for specific files is an ugly hack. Based on your experience, the hack is fragile, too.
Your improved solution is welcomed.
I assume that means you want a patch, rather than a prose description? If so, untested (since I don't use this package) patch:
Code:
--- a/tools/qmake/mkspecs/features/default_post.prf
+++ b/tools/qmake/mkspecs/features/default_post.prf
@@ -7,5 +7,5 @@
     SUBDIRS =
     export(SUBDIRS)
     log($${skipBuildReason}$${EOL})
-    log(QtWebEngine will not be built.$${EOL})
+    error(QtWebEngine cannot be built.)
 }

Based on my reading of Test Functions, this should cause qmake to die with an error. That in turn should cause the ebuild to die instead of running make on generated Makefiles that make nothing.
Back to top
View user's profile Send private message
Lebkoungcity
Apprentice
Apprentice


Joined: 16 Nov 2008
Posts: 212
Location: near Lebkoungcity (='Gingerbreadcity' =Nuremberg)

PostPosted: Wed Dec 13, 2017 8:45 pm    Post subject: Reply with quote

So, do I understand this correctly if I assume that this patch would let the building die early instead of letting it die in the end? That would have been nice compared to a long lasting compile process leading to a non-working result.

But is there a chance to get it successfully on my little machine?




edit: typo
_________________
"The most dangerous world view is the world view of the ones who haven't viewed the world."
Alexander von Humboldt (1769-1859)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21605

PostPosted: Thu Dec 14, 2017 1:22 am    Post subject: Reply with quote

If the patch, which I wrote with no prior experience with qmake and only a few minutes reading their documentation, works as intended, then yes, it would move real failures up to before the compile runs and would avoid false failures as you seem to experience. As I don't use the package, I did not test the patch for correctness in either the success or failure cases, but instead posted it straight away, per kensington's invitation to improve the logic. It's very possible that the patch will need refinement by someone more familiar with qmake.

It is probably possible to make this package work on your machine, but I don't know how to do so. You showed that the link exists, which is good. Does it point to a valid file? What is the output of ls -l /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/usr/lib/?
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Thu Dec 14, 2017 9:19 am    Post subject: Reply with quote

Indeed, things seem to have been built, but why the file is under '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/' instead of '.../usr/lib/' is a mystery that requires some more investigation.

I'm not sure there is much point in this, but if you like, you could try adding

Code:
echo "Configure QT5_LIBDIR: $QT5_LIBDIR"

into the 'src_configure()' to see if it's just empty.

For reference, here it prints

Code:
/usr/lib64

_________________
Kindest of regardses.
Back to top
View user's profile Send private message
kensington
Developer
Developer


Joined: 02 Jan 2013
Posts: 177
Location: Australia

PostPosted: Thu Dec 14, 2017 9:31 am    Post subject: Reply with quote

Lebkoungcity wrote:
OK, got it:

Code:
Hacking the ebuild to print the value: /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/libQt5WebEngine.so


The content of /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/:
Code:
# ls -lh /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/
insgesamt 4,0K
drwxr-xr-x 5 root root 4,0K 12. Dez 19:23 usr


While libQt5WebEngine.so ist here:
Code:
lrwxrwxrwx 1 root root 24 12. Dez 19:23 /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/usr/lib/libQt5WebEngine.so -> libQt5WebEngine.so.5.7.1


So, ${QT5_LIBDIR} appears to be undefined for you. I have no explanation why, as it is exported unconditionally via src_prepare -> qt5-build_src_prepare -> qt5_prepare_env, and this is the first instance of this problem I've seen in the ~6 months since the hack appeared in the tree. I wonder if there's something about your system causing the environment to get scrubbed between phrases.

In any case, since the library does appear to be built correctly, I guess you could just comment out the check.
Back to top
View user's profile Send private message
Lebkoungcity
Apprentice
Apprentice


Joined: 16 Nov 2008
Posts: 212
Location: near Lebkoungcity (='Gingerbreadcity' =Nuremberg)

PostPosted: Thu Dec 14, 2017 6:01 pm    Post subject: Reply with quote

Thanks a lot for your input!

Hu wrote:
Does it point to a valid file? What is the output of ls -l /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/usr/lib/?

Code:
# ls -l /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/usr/lib/
insgesamt 106200
drwxr-xr-x 6 root root      4096 14. Dez 17:23 cmake
-rw-r--r-- 1 root root      1263 14. Dez 17:23 libQt5WebEngine.prl
lrwxrwxrwx 1 root root        24 14. Dez 17:23 libQt5WebEngine.so -> libQt5WebEngine.so.5.7.1
lrwxrwxrwx 1 root root        24 14. Dez 17:23 libQt5WebEngine.so.5 -> libQt5WebEngine.so.5.7.1
lrwxrwxrwx 1 root root        24 14. Dez 17:23 libQt5WebEngine.so.5.7 -> libQt5WebEngine.so.5.7.1
-rwxr-xr-x 1 root root    475836 10. Dez 23:38 libQt5WebEngine.so.5.7.1
-rw-r--r-- 1 root root      1427 14. Dez 17:23 libQt5WebEngineCore.prl
lrwxrwxrwx 1 root root        28 14. Dez 17:23 libQt5WebEngineCore.so -> libQt5WebEngineCore.so.5.7.1
lrwxrwxrwx 1 root root        28 14. Dez 17:23 libQt5WebEngineCore.so.5 -> libQt5WebEngineCore.so.5.7.1
lrwxrwxrwx 1 root root        28 14. Dez 17:23 libQt5WebEngineCore.so.5.7 -> libQt5WebEngineCore.so.5.7.1
-rwxr-xr-x 1 root root 107916404 10. Dez 23:35 libQt5WebEngineCore.so.5.7.1
-rw-r--r-- 1 root root      1305 14. Dez 17:23 libQt5WebEngineWidgets.prl
lrwxrwxrwx 1 root root        31 14. Dez 17:23 libQt5WebEngineWidgets.so -> libQt5WebEngineWidgets.so.5.7.1
lrwxrwxrwx 1 root root        31 14. Dez 17:23 libQt5WebEngineWidgets.so.5 -> libQt5WebEngineWidgets.so.5.7.1
lrwxrwxrwx 1 root root        31 14. Dez 17:23 libQt5WebEngineWidgets.so.5.7 -> libQt5WebEngineWidgets.so.5.7.1
-rwxr-xr-x 1 root root    321700 10. Dez 23:40 libQt5WebEngineWidgets.so.5.7.1
drwxr-xr-x 2 root root      4096 14. Dez 17:23 pkgconfig
drwxr-xr-x 6 root root      4096 14. Dez 17:23 qt5




Chiitoo wrote:
I'm not sure there is much point in this, but if you like, you could try adding

Code:
echo "Configure QT5_LIBDIR: $QT5_LIBDIR"


into the 'src_configure()' to see if it's just empty.

Yes, as far as I can see, it is empty:
Code:
(...)
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/work/qtwebengine-opensource-src-5.7.1/src/webengine/plugin'
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/work/qtwebengine-opensource-src-5.7.1/src'
 * Removing unnecessary /usr/lib/libQt5WebEngineCore.la (no static archive)
 * Removing unnecessary /usr/lib/libQt5WebEngine.la (no static archive)
 * Removing unnecessary /usr/lib/libQt5WebEngineWidgets.la (no static archive)
Configure QT5_LIBDIR:
Hacking the ebuild to print the value: /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/libQt5WebEngine.so
 * ERROR: dev-qt/qtwebengine-5.7.1-r2::gentoo failed (install phase):
 *   dev-qt/qtwebengine-5.7.1-r2 failed to build anything. Please report to https://bugs.gentoo.org/
 *
(...)




kensington wrote:
In any case, since the library does appear to be built correctly, I guess you could just comment out the check.

OK, I've done it like this:
Code:
src_install() {
        qt5-build_src_install

        # bug 601472
        echo "Configure QT5_LIBDIR: $QT5_LIBDIR"
        echo "Hacking the ebuild to print the value: ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so"
        #if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
        #       die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
        #fi

        pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
}

And it didn't die, instead it ran through - I hope there are no hidden errors and the whole thingy works.
Code:
(...)
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/work/qtwebengine-opensource-src-5.7.1/src/webengine/plugin'
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/work/qtwebengine-opensource-src-5.7.1/src'
 * Removing unnecessary /usr/lib/libQt5WebEngineCore.la (no static archive)
 * Removing unnecessary /usr/lib/libQt5WebEngine.la (no static archive)
 * Removing unnecessary /usr/lib/libQt5WebEngineWidgets.la (no static archive)
Configure QT5_LIBDIR:
Hacking the ebuild to print the value: /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/libQt5WebEngine.so
 * PT_PAX marking -m /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/QtWebEngineProcess with scanelf
 * XATTR_PAX marking -me /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/QtWebEngineProcess with setfattr
 * Failed to set XATTR_PAX markings -me /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/QtWebEngineProcess.
>>> Completed installing qtwebengine-5.7.1-r2 into /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/image/

 * Final size of build directory: 1677180 KiB (  1.5 GiB)
 * Final size of installed tree:   139924 KiB (136.6 MiB)

strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/lib/qt5/libexec/QtWebEngineProcess
   usr/lib/libQt5WebEngineWidgets.so.5.7.1
   usr/lib/libQt5WebEngineCore.so.5.7.1
   usr/lib/qt5/qml/QtWebEngine/libqtwebengineplugin.so
   usr/lib/qt5/plugins/designer/libqwebengineview.so
   usr/lib/libQt5WebEngine.so.5.7.1
   usr/lib/qt5/qml/QtWebEngine/experimental/libqtwebengineexperimentalplugin.so
./
Code:
(...)
./usr/include/qt5/QtWebEngineCore/QtWebEngineCoreDepends
./usr/include/qt5/QtWebEngineCore/qtwebenginecoreglobal.h
>>> Done.

>>> Installing (1 of 1) dev-qt/qtwebengine-5.7.1-r2::gentoo
 * checking 189 files for package collisions
>>> Merging dev-qt/qtwebengine-5.7.1-r2 to /
--- /usr/
--- /usr/include/
--- /usr/include/qt5/
--- /usr/include/qt5/QtWebEngineCore/
>>> /usr/include/qt5/QtWebEngineCore/qtwebenginecoreglobal.h
>>> /usr/include/qt5/QtWebEngineCore/QtWebEngineCoreDepends
Code:
(...)
--- replaced dir /usr/include/qt5/QtWebEngine/5.7.1
--- replaced dir /usr/include/qt5/QtWebEngine
--- replaced dir /usr/include/qt5
--- replaced dir /usr/include
--- replaced dir /usr
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 * Regenerating gentoo-qconfig.h
find: ‘/Gentoo’: No such file or directory
 * Generated gentoo-qconfig.h is empty
mv: cannot move '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/temp/gentoo-qconfig.h' to '/Gentoo/gentoo-qconfig.h': No such file or directory
 * Failed to install new gentoo-qconfig.h
 * Updating QT_CONFIG in qconfig.pri
 * /mkspecs/qconfig.pri does not exist or is not a regular file
>>> dev-qt/qtwebengine-5.7.1-r2 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

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


Just in case, I used
Code:
FEATURES="keepwork"
so I still have the contents of
Code:
/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2
handy :wink:
_________________
"The most dangerous world view is the world view of the ones who haven't viewed the world."
Alexander von Humboldt (1769-1859)
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Thu Dec 14, 2017 6:26 pm    Post subject: Reply with quote

Hm.

Does '/usr/include/qt5/Gentoo' really not exist (at least I think that's what it's looking for)?

To my understanding, at least 5 Qt packages install there, starting from 'qtcore'.

I believe it should contain something like this:

Code:
drwxr-xr-x  2 root root 4.0K Dec 11 14:25 .
drwxr-xr-x 55 root root 4.0K Dec  9 05:22 ..
-rw-r--r--  1 root root  473 Dec 11 14:25 gentoo-qconfig.h
-rw-r--r--  1 root root   16 Dec  9 03:52 qtdbus-qconfig.h
-rw-r--r--  1 root root  355 Dec 11 14:08 qtgui-qconfig.h
-rw-r--r--  1 root root   83 Dec  9 03:53 qtnetwork-qconfig.h
-rw-r--r--  1 root root   19 Dec  9 05:03 qtprintsupport-qconfig.h

If it's not there, how about '/usr/include/qt5'?
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Lebkoungcity
Apprentice
Apprentice


Joined: 16 Nov 2008
Posts: 212
Location: near Lebkoungcity (='Gingerbreadcity' =Nuremberg)

PostPosted: Thu Dec 14, 2017 7:57 pm    Post subject: Reply with quote

Chiitoo wrote:
Hm.

Does '/usr/include/qt5/Gentoo' really not exist (at least I think that's what it's looking for)?

To my understanding, at least 5 Qt packages install there, starting from 'qtcore'.

I believe it should contain something like this:

Code:
drwxr-xr-x  2 root root 4.0K Dec 11 14:25 .
drwxr-xr-x 55 root root 4.0K Dec  9 05:22 ..
-rw-r--r--  1 root root  473 Dec 11 14:25 gentoo-qconfig.h
-rw-r--r--  1 root root   16 Dec  9 03:52 qtdbus-qconfig.h
-rw-r--r--  1 root root  355 Dec 11 14:08 qtgui-qconfig.h
-rw-r--r--  1 root root   83 Dec  9 03:53 qtnetwork-qconfig.h
-rw-r--r--  1 root root   19 Dec  9 05:03 qtprintsupport-qconfig.h

If it's not there, how about '/usr/include/qt5'?



'/usr/include/qt5/Gentoo' does exist:
Code:
# ls -lh /usr/include/qt5/Gentoo/
insgesamt 20K
-rw-r--r-- 1 root root 489 13. Dez 01:15 gentoo-qconfig.h
-rw-r--r-- 1 root root  16  3. Dez 02:59 qtdbus-qconfig.h
-rw-r--r-- 1 root root 374  5. Dez 21:00 qtgui-qconfig.h
-rw-r--r-- 1 root root  83  6. Dez 19:09 qtnetwork-qconfig.h
-rw-r--r-- 1 root root  16  5. Dez 22:34 qtprintsupport-qconfig.h


And here's the complete content of '/usr/include/qt5':
Code:
# ls -lh /usr/include/qt5
insgesamt 224K
drwxr-xr-x 2 root root 4,0K 13. Dez 01:15 Gentoo
drwxr-xr-x 2 root root 4,0K  5. Dez 02:17 QtConcurrent
drwxr-xr-x 3 root root  24K  5. Dez 01:53 QtCore
drwxr-xr-x 3 root root 4,0K  3. Dez 02:59 QtDBus
drwxr-xr-x 3 root root 4,0K  6. Dez 23:30 QtDesigner
drwxr-xr-x 3 root root 4,0K  6. Dez 23:30 QtDesignerComponents
drwxr-xr-x 3 root root  20K  5. Dez 21:01 QtGui
drwxr-xr-x 3 root root 4,0K  6. Dez 19:10 QtNetwork
drwxr-xr-x 3 root root 4,0K  5. Dez 22:49 QtOpenGL
drwxr-xr-x 2 root root 4,0K  5. Dez 21:01 QtOpenGLExtensions
drwxr-xr-x 3 root root 4,0K  6. Dez 22:27 QtPacketProtocol
drwxr-xr-x 2 root root 4,0K  5. Dez 21:01 QtPlatformHeaders
drwxr-xr-x 3 root root 4,0K  5. Dez 21:01 QtPlatformSupport
drwxr-xr-x 3 root root 4,0K  5. Dez 22:35 QtPrintSupport
drwxr-xr-x 3 root root 4,0K  6. Dez 22:27 QtQml
drwxr-xr-x 3 root root 4,0K  6. Dez 22:27 QtQmlDebug
drwxr-xr-x 3 root root 4,0K  6. Dez 22:27 QtQmlDevTools
drwxr-xr-x 3 root root 4,0K  6. Dez 22:27 QtQuick
drwxr-xr-x 3 root root 4,0K 13. Dez 01:15 QtQuickControls2
drwxr-xr-x 3 root root 4,0K  6. Dez 22:27 QtQuickParticles
drwxr-xr-x 3 root root 4,0K 13. Dez 01:15 QtQuickTemplates2
drwxr-xr-x 3 root root 4,0K  6. Dez 22:27 QtQuickTest
drwxr-xr-x 3 root root 4,0K  6. Dez 22:27 QtQuickWidgets
drwxr-xr-x 3 root root 4,0K  4. Dez 08:12 QtScript
drwxr-xr-x 3 root root 4,0K  4. Dez 08:12 QtScriptTools
drwxr-xr-x 2 root root 4,0K  6. Dez 20:45 QtSolutions
drwxr-xr-x 3 root root 4,0K  5. Dez 15:39 QtSql
drwxr-xr-x 3 root root 4,0K  3. Dez 23:16 QtSvg
drwxr-xr-x 3 root root 4,0K  5. Dez 02:21 QtTest
drwxr-xr-x 2 root root 4,0K  6. Dez 23:30 QtUiPlugin
drwxr-xr-x 3 root root 4,0K  6. Dez 23:30 QtUiTools
drwxr-xr-x 3 root root 4,0K  7. Dez 11:51 QtWaylandClient
drwxr-xr-x 3 root root 4,0K  7. Dez 11:51 QtWaylandCompositor
drwxr-xr-x 3 root root 4,0K  7. Dez 07:25 QtWebChannel
drwxr-xr-x 3 root root 4,0K 14. Dez 18:29 QtWebEngine
drwxr-xr-x 3 root root 4,0K 14. Dez 18:29 QtWebEngineCore
drwxr-xr-x 3 root root 4,0K 14. Dez 18:29 QtWebEngineWidgets
drwxr-xr-x 3 root root 4,0K  7. Dez 07:22 QtWebKit
drwxr-xr-x 3 root root 4,0K  7. Dez 07:22 QtWebKitWidgets
drwxr-xr-x 3 root root  20K  3. Dez 01:38 QtWidgets
drwxr-xr-x 2 root root 4,0K  3. Dez 18:23 QtX11Extras
drwxr-xr-x 3 root root 4,0K  3. Dez 12:04 QtXml
drwxr-xr-x 3 root root 4,0K  6. Dez 19:41 QtXmlPatterns


And because it says:
Code:
* Generated gentoo-qconfig.h is empty
mv: cannot move '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/temp/gentoo-qconfig.h' to '/Gentoo/gentoo-qconfig.h': No such file or directory

the content of '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/temp/':
Code:
# ls -lh /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/temp/
insgesamt 284K
-rw-rw---- 1 portage portage 116K 14. Dez 18:30 build.log
-rw-rw-r-- 1 portage portage 4,1K 14. Dez 18:25 eclass-debug.log
-rw-rw-r-- 1 portage portage 158K 14. Dez 18:30 environment
-rw-r--r-- 1 portage portage    0 14. Dez 18:30 gentoo-qconfig.h
-rw-r--r-- 1 portage portage    0 14. Dez 18:25 qtwebengine-qconfig.h
-rw-r--r-- 1 portage portage    0 14. Dez 18:25 qtwebengine-qconfig.pri


And another one:
Code:
 * Updating QT_CONFIG in qconfig.pri
 * /mkspecs/qconfig.pri does not exist or is not a regular file

the content of '/var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/work/qtwebengine-opensource-src-5.7.1/mkspecs':
Code:
# ls -lh /var/tmp/portage/dev-qt/qtwebengine-5.7.1-r2/work/qtwebengine-opensource-src-5.7.1/mkspecs
insgesamt 8,0K
drwxr-xr-x 2 portage portage 4,0K 10. Dez 23:40 modules
drwxr-xr-x 2 portage portage 4,0K 10. Dez 23:40 modules-inst



Hmmm... if it wasn't for installing lots of dev-qt-packages, then I would be curious if these problems would occur with dev-qt/qtwebengine-5.9.3. But I'm kinda unwilling to let the Pentium-M compile a day or two just to see if there's an error...
_________________
"The most dangerous world view is the world view of the ones who haven't viewed the world."
Alexander von Humboldt (1769-1859)
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Thu Dec 14, 2017 8:24 pm    Post subject: Reply with quote

Thanks!

I'm not sure if the '/Gentoo/gentoo-qconfig.h' should be an absolute path that should in fact be '/usr/include/qt5/Gentoo/gentoo-qconfig.h'... and why it would not be that.

Hmmm...
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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