Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.10.0 Alpha
-
None
Description
++ strace -f -s 512 -o /tmp/install.log make -j 1 INSTALL_ROOT=/tmp/e2/root install cd qtbase/ && ( test -e Makefile || /tmp/e2/build/build/qtbase/bin/qmake -o Makefile /tmp/e2/build/qt-everywhere-src-5.10.0-alpha/qtbase/qtbase.pro ) && make -f Makefile install make[1]: Entering directory '/tmp/e2/build/build/qtbase' cd src/ && ( test -e Makefile || /tmp/e2/build/build/qtbase/bin/qmake -o Makefile /tmp/e2/build/qt-everywhere-src-5.10.0-alpha/qtbase/src/src.pro ) && make -f Makefile install make[2]: Entering directory '/tmp/e2/build/build/qtbase/src' cd corelib/ && ( test -e Makefile.qtzlib || /tmp/e2/build/build/qtbase/bin/qmake -o Makefile.qtzlib /tmp/e2/build/qt-everywhere-src-5.10.0-alpha/qtbase/src/corelib/qtzlib.pro ) && make -f Makefile.qtzlib install make[3]: Entering directory '/tmp/e2/build/build/qtbase/src/corelib' /tmp/e2/build/build/qtbase/bin/qmake -install qinstall /tmp/e2/build/qt-everywhere-src-5.10.0-alpha/qtbase/src/3rdparty/zlib/src/zconf.h /tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h Error copying /tmp/e2/build/qt-everywhere-src-5.10.0-alpha/qtbase/src/3rdparty/zlib/src/zconf.h to /tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h: Cannot create /tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h for output
And here is the relevant strace output
22786 lstat("/tmp/e2/build/qt-everywhere-src-5.10.0-alpha/qtbase/src/3rdparty/zlib/src/zconf.h", {st_mode=S_IFREG|0644, st_size=16432, ...}) = 0 22786 lstat("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h", 0x7ffc6fbe8150) = -1 ENOENT (No such file or directory) 22786 mkdir("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib", 0777) = -1 EEXIST (File exists) 22786 stat("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib", {st_mode=S_IFDIR|0755, st_size=40, ...}) = 0 22786 access("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h", F_OK) = -1 ENOENT (No such file or directory) 22786 open("/tmp/e2/build/qt-everywhere-src-5.10.0-alpha/qtbase/src/3rdparty/zlib/src/zconf.h", O_RDONLY|O_CLOEXEC) = 3 22786 fstat(3, {st_mode=S_IFREG|0644, st_size=16432, ...}) = 0 22786 access("/proc/version", F_OK) = -1 ENOENT (No such file or directory) 22786 open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 4 22786 read(4, "\2166-\300", 4) = 4 22786 read(4, "f\334w\365", 4) = 4 22786 open("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/qt_temp.rZFAqh", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0600) = 5 22786 fstat(5, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 22786 lstat("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/qt_temp.rZFAqh", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 22786 ioctl(5, BTRFS_IOC_CLONE, 0x3) = -1 ENOTTY (Inappropriate ioctl for device) 22786 sendfile(5, 3, NULL, 16432) = 16432 22786 lseek(5, 0, SEEK_SET) = 0 22786 close(5) = 0 22786 renameat2(AT_FDCWD, "/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/qt_temp.rZFAqh", AT_FDCWD, "/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h", 0x1 /* RENAME_?? */) = -1 EINVAL (Invalid argument) 22786 close(3) = 0 22786 unlink("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/qt_temp.rZFAqh") = 0 22786 write(2, "Error copying /tmp/e2/build/qt-everywhere-src-5.10.0-alpha/qtbase/src/3rdparty/zlib/src/zconf.h to /tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h: Cannot create /tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h for output\n", 263) = 263 22786 close(4) = 0 22786 exit_group(3) = ?
This is inside a chroot environment, the chroot is based on Debian Jessie. The filesystem is a tmpfs with tons of space still available. Building and installing Qt 5.9 in the same environment works. For reference, here is the relevant portion of the strace log from Qt 5.9.1:
1943 unlink("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h") = -1 ENOENT (No such file or directory) 1943 mkdir("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib", 0777) = -1 EEXIST (File exists) 1943 stat("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib", {st_mode=S_IFDIR|0755, st_size=40, ...}) = 0 1943 stat("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h", 0x7ffc8d3ce7e0) = -1 ENOENT (No such file or directory) 1943 open("/tmp/e2/build/qt-everywhere-opensource-src-5.9.1/qtbase/src/3rdparty/zlib/zconf.h", O_RDONLY|O_CLOEXEC) = 3 1943 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 1943 fstat(3, {st_mode=S_IFREG|0644, st_size=13539, ...}) = 0 1943 open("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/qt_temp.rhjRGj", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0600) = 4 1943 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 1943 fstat(3, {st_mode=S_IFREG|0644, st_size=13539, ...}) = 0 1943 fstat(3, {st_mode=S_IFREG|0644, st_size=13539, ...}) = 0 1943 read(3, "/* zconf.h -- configuration of the zlib compression library\n * Copyright (C) 1995-2010 Jean-loup Gailly.\n * For conditions of distribution and use, see copyright notice in zlib.h\n */\n\n/* @(#) $Id$ */\n\n#ifndef ZCONF_H\n#define ZCONF_H\n\n/* Since Qt Core must export these symbols, define Z_PREFIX to avoid clashes system zlib */\n#define Z_PREFIX\n\n/*\n * If you *really* need a unique prefix for all types and library functions,\n * compile with -DZ_PREFIX. The \"standard\" zlib should be compiled without it.\n * Even b"..., 16384) = 13539 1943 read(3, "", 2845) = 0 1943 fstat(4, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 1943 read(3, "", 16384) = 0 1943 fstat(3, {st_mode=S_IFREG|0644, st_size=13539, ...}) = 0 1943 fstat(3, {st_mode=S_IFREG|0644, st_size=13539, ...}) = 0 1943 fstat(4, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 1943 lstat("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/qt_temp.rhjRGj", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 1943 stat("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h", 0x7ffc8d3cd540) = -1 ENOENT (No such file or directory) 1943 write(4, "/* zconf.h -- configuration of the zlib compression library\n * Copyright (C) 1995-2010 Jean-loup Gailly.\n * For conditions of distribution and use, see copyright notice in zlib.h\n */\n\n/* @(#) $Id$ */\n\n#ifndef ZCONF_H\n#define ZCONF_H\n\n/* Since Qt Core must export these symbols, define Z_PREFIX to avoid clashes system zlib */\n#define Z_PREFIX\n\n/*\n * If you *really* need a unique prefix for all types and library functions,\n * compile with -DZ_PREFIX. The \"standard\" zlib should be compiled without it.\n * Even b"..., 13539) = 13539 1943 lseek(4, 0, SEEK_SET) = 0 1943 close(4) = 0 1943 rename("/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/qt_temp.rhjRGj", "/tmp/e2/root/opt/emlix/test/sysroot/usr/include/qt5/QtZlib/zconf.h") = 0 1943 fstat(3, {st_mode=S_IFREG|0644, st_size=13539, ...}) = 0 1943 lstat("/tmp/e2/build/qt-everywhere-opensource-src-5.9.1/qtbase/src/3rdparty/zlib/zconf.h", {st_mode=S_IFREG|0644, st_size=13539, ...}) = 0 1943 access("/tmp/e2/build/qt-everywhere-opensource-src-5.9.1/qtbase/src/3rdparty/zlib/zconf.h", R_OK) = 0 1943 access("/tmp/e2/build/qt-everywhere-opensource-src-5.9.1/qtbase/src/3rdparty/zlib/zconf.h", W_OK) = 0 1943 access("/tmp/e2/build/qt-everywhere-opensource-src-5.9.1/qtbase/src/3rdparty/zlib/zconf.h", X_OK) = -1 EACCES (Permission denied)
I don't think it's relevant here, but this is an out-of-source build.