View previous topic :: View next topic |
Author |
Message |
msst Apprentice
Joined: 07 Jun 2011 Posts: 259
|
Posted: Thu Jul 19, 2018 7:14 pm Post subject: Weird error emerging qtcore-5.9.6: Permission denied etc. |
|
|
Code: | >>> Unpacking source...
>>> Unpacking qtbase-opensource-src-5.9.6.tar.xz to /var/tmp/portage/dev-qt/qtcore-5.9.6/work
>>> Source unpacked in /var/tmp/portage/dev-qt/qtcore-5.9.6/work
>>> Preparing source in /var/tmp/portage/dev-qt/qtcore-5.9.6/work/qtbase-opensource-src-5.9.6 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-qt/qtcore-5.9.6/work/qtbase-opensource-src-5.9.6 ...
ESC[32;01m*ESC[0m Configuring with: -prefix /usr -bindir /usr/lib64/qt5/bin -headerdir /usr/include/qt5 -libdir /usr/lib64 -archdatadir /usr/lib64/qt5 -plugindir /usr/lib64/qt5/plugins -libexecdir /usr/lib64/qt5/libexec -importdir /usr/lib64/qt5/imports -qmldir /usr/lib64/qt5/qml -datadir /usr/share/qt5 -docdir /usr/share/doc/qt-5.9.6 -translationdir /usr/share/qt5/translations -sysconfdir /etc/xdg -examplesdir /usr/share/qt5/examples -testsdir /usr/share/qt5/tests -release -no-separate-debug-info -no-optimized-tools -opensource -confirm-license -shared -accessibility -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -qml-debug -pkg-config -system-zlib -system-pcre -system-doubleconversion -no-mtdev -no-journald -no-syslog -no-libpng -no-libjpeg -no-freetype -no-harfbuzz -no-openssl -no-libproxy -no-xkbcommon-x11 -no-xkbcommon-evdev -no-xinput2 -no-xcb-xlib -glib -no-gtk -nomake examples -nomake tests -no-compile-examples -no-rpath -verbose -no-cups -no-evdev -no-tslib -no-icu -no-fontconfig -no-dbus -no-strip -no-pch -no-ltcg -no-use-gold-linker -no-xcb -no-eglfs -no-kms -no-gbm -no-directfb -no-linuxfb -no-mirclient -no-xkb -sm -qreal double -no-opengl -no-egl -no-libinput -system-proxies -no-warnings-are-errors -no-gui -no-widgets -icu -no-iconv -no-journald
/bin/pwd: cannot open directory ‘../../../../../../..’: Permission denied
/bin/pwd: cannot open directory ‘../../../../../../..’: Permission denied
/var/tmp/portage/dev-qt/qtcore-5.9.6/work/qtbase-opensource-src-5.9.6/configure: line 353: /.qmake.conf: No such file or directory
Cannot process version from .qmake.conf
Cannot proceed.
ESC[31;01m*ESC[0m ERROR: dev-qt/qtcore-5.9.6::gentoo failed (configure phase):
ESC[31;01m*ESC[0m configure failed
ESC[31;01m*ESC[0m
ESC[31;01m*ESC[0m Call stack:
ESC[31;01m*ESC[0m ebuild.sh, line 124: Called src_configure
ESC[31;01m*ESC[0m environment, line 2840: Called qt5-build_src_configure
ESC[31;01m*ESC[0m environment, line 2389: Called qt5_base_configure
ESC[31;01m*ESC[0m environment, line 2511: Called die
ESC[31;01m*ESC[0m The specific snippet of code:
ESC[31;01m*ESC[0m "${S}"/configure "${conf[@]}" || die "configure failed";
|
Weird compile error and not going away. What is this? I cannot make anything from this. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21630
|
Posted: Fri Jul 20, 2018 1:54 am Post subject: |
|
|
The error says permission denied. Have you checked the permissions on the directory it is complaining about? Based on the paths, it looks like that would be /. What is the output of ls -la /? |
|
Back to top |
|
|
msst Apprentice
Joined: 07 Jun 2011 Posts: 259
|
Posted: Wed Jul 25, 2018 8:39 pm Post subject: |
|
|
Thanks Hu, it really was the permissions of the filesystem root: -wx--x--x
Very weird permissions, no idea how that happened. Changing it to rwxr-xr-x did the trick. Not that any package should fail to compile without read permission on the filesystem root, so that package behaviour is IMHO also buggy.
But it still makes me wonder how this has happened... |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21630
|
Posted: Thu Jul 26, 2018 2:01 am Post subject: |
|
|
Have you been recursively changing permissions recently? chmod -R / requests to change permissions recursively (though to no effect if no other parameters were passed). chmod -r / would non-recursively remove all read permission from / and only /.
The problem looks to me like the package used pwd to derive a path and assumed that could not possibly fail. That's doubly wrong since, not only can it fail, but also it's a uselessly complicated way of deriving the path. |
|
Back to top |
|
|
|