[Development] 32bit linux build of qt5.10.0 w/ webengine

Toan Pham tpham3783 at gmail.com
Tue Dec 19 22:15:14 CET 2017


Hi all,

I just found out that the build failed while running this command in
qtwebengine/src/core:

/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/3rdparty/ninja/ninja
-C
/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/core/release
QtWebEngineCore


I was able to resolve by changing to the release folder (see above) and
then ran the same command, then webengine started to compile.  Obviously,
something was wrong w/ the t2 sandbox because ninja could not run getdir()
or chdir().  This may be a t2 build, so i will report it to their mailing
list.  thank you for all your support.


TP


On Tue, Dec 19, 2017 at 12:16 PM, Toan Pham <tpham3783 at gmail.com> wrote:

>
>
> Here is brief update on my 32bit build:
>
>
> 1.  32bit build inside lxc container - code built successfully,
> qtwebengine worked perfectly.  The only problem w/ this one is that it does
> not use compatible glibc library as my target board.
>
> 2.  32bit build inside t2 sandbox - I got the builder to use internal
> ninja tool.  However, I now faced w/ the error below:
>      BTW, t2 sandbox is a chroot build environment for building native and
> also cross root filesystem.  One major advantage of using it because it
> completely isolates my development machine from the build environment after
> the initial toolchain stage.  I am just wondering if that was the reason
> why ninja failed, as seen in the getcwd error!
>
>
> /TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-
> src-5.10.0/qtwebengine/src/3rdparty/ninja/ninja  -C
> /TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-
> src-5.10.0/qtwebengine/src/core/release QtWebEngineCore
> ninja: Entering directory `/TOOLCHAIN/loop/target/
> nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/core/release'
> [1/21229] STAMP obj/third_party/webrtc/modules/audio_coding/isac_fix_
> common.stamp
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [2/21229] STAMP obj/device/sensors/public/interfaces/interfaces__type_
> mappings.inputdeps.stamp
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [3/21229] STAMP obj/media/midi/mojo_blink__type_mappings.inputdeps.stamp
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [4/21229] ACTION //extensions/features:features(/TOOLCHAIN/loop/
> target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/toolchain:
> target)
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [5/21229] STAMP obj/extensions/features/features.stamp
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [6/21229] COPY ../../3rdparty/chromium/third_party/WebKit/Source/devtools/
> front_end/Images/accelerometer-bottom.png resources/inspector/Images/
> accelerometer-bottom.png
> FAILED: resources/inspector/Images/accelerometer-bottom.png
> ln -f ../../3rdparty/chromium/third_party/WebKit/Source/devtools/
> front_end/Images/accelerometer-bottom.png resources/inspector/Images/accelerometer-bottom.png
> 2>/dev/null || (rm -rf resources/inspector/Images/accelerometer-bottom.png
> && cp -af ../../3rdparty/chromium/third_party/WebKit/Source/devtools/
> front_end/Images/accelerometer-bottom.png resources/inspector/Images/
> accelerometer-bottom.png)
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> cp: cannot create regular file `/TOOLCHAIN/target/nicebox/
> sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/core/
> resources/inspector/Images/accelerometer-bottom.png': No such file or
> directory
> [7/21229] COPY ../../3rdparty/chromium/third_party/WebKit/Source/devtools/
> front_end/emulated_devices/goog...5x-vertical-keyboard-1x.png
> resources/inspector/emulated_devices/google-nexus-5x-
> vertical-keyboard-1x.pn
> FAILED: resources/inspector/emulated_devices/google-nexus-5x-
> vertical-keyboard-1x.png
> ln -f ../../3rdparty/chromium/third_party/WebKit/Source/devtools/
> front_end/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png
> resources/inspector/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png
> 2>/dev/null || (rm -rf resources/inspector/emulated_
> devices/google-nexus-5x-vertical-keyboard-1x.png && cp -af
> ../../3rdparty/chromium/third_party/WebKit/Source/devtools/
> front_end/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png
> resources/inspector/emulated_devices/google-nexus-5x-
> vertical-keyboard-1x.png)
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> cp: cannot create regular file `/TOOLCHAIN/target/nicebox/
> sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/core/
> resources/inspector/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png':
> No such file or directory
> [8/21229] ACTION //media/midi:mojo_blink__type_mappings(/TOOLCHAIN/loop/
> target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/toolchain:
> target)
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [9/21229] CXX obj/mojo/public/c/system/system/thunks.o
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [10/21229] CXX obj/crypto/crypto/random.o
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [11/21229] CXX obj/crypto/crypto/p224.o
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [12/21229] CXX obj/crypto/crypto/p224_spake.o
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [13/21229] CXX obj/media/shared_memory_support/audio_point.o
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [14/21229] CXX obj/crypto/crypto/symmetric_key.o
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> [15/21229] CXX obj/crypto/crypto/sha2.o
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Inappropriate ioctl for device
> ninja: build stopped: subcommand failed.
> make[4]: *** [run_ninja] Error 1
> make[4]: Leaving directory `/TOOLCHAIN/loop/target/
> nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/core'
> make[3]: *** [sub-gn_run-pro-make_first] Error 2
> make[3]: Leaving directory `/TOOLCHAIN/loop/target/
> nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine/src/core'
> make[2]: *** [sub-core-make_first] Error 2
> make[2]: Leaving directory `/TOOLCHAIN/loop/target/
> nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine/src'
> make[1]: *** [sub-src-make_first] Error 2
> make[1]: Leaving directory `/TOOLCHAIN/loop/target/
> nicebox/sandbox/qt-everywhere-src-5.10.0/qtwebengine'
>
>
>
>
>
> On Mon, Dec 18, 2017 at 2:14 PM, Allan Sandfeld Jensen <kde at carewolf.com>
> wrote:
>
>> On Montag, 18. Dezember 2017 18:53:55 CET Toan Pham wrote:
>> > "/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.
>> 10.0/qtwebengine
>> > /src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py", line 45, in
>> > check_call
>> >     subprocess.check_call(cmd, cwd=GN_ROOT, **kwargs)
>> >   File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
>> >     retcode = call(*popenargs, **kwargs)
>> >   File "/usr/lib/python2.7/subprocess.py", line 522, in call
>> >     return Popen(*popenargs, **kwargs).wait()
>> >   File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
>> >     errread, errwrite)
>> >   File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
>> >     raise child_exception
>> > OSError: [Errno 2] No such file or directory
>> > Project ERROR: GN build error!
>> > make[3]: *** [sub-gn-pro-make_first] Error 3
>> > make[3]: Leaving directory
>> > `/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.
>> 10.0/qtwebengine
>> > /src/buildtools' make[2]: *** [sub-buildtools-make_first] Error 2
>> > make[2]: Leaving directory
>> > `/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.
>> 10.0/qtwebengine
>> > /src' make[1]: *** [sub-src-make_first] Error 2
>> > make[1]: Leaving directory
>> > `/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.
>> 10.0/qtwebengine
>> > '
>> >
>> >
>> >
>> > Please let me know if you know what went wrong w/ the second build.
>> >
>> >
>> Looks like it expects ninja to be installed, but cant launch it. Check
>> your
>> configure output and see if it detected system ninja and you have ninja
>> installed.
>>
>> 'Allan
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20171219/e5997533/attachment.html>


More information about the Development mailing list