Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Unable to create file. File name too long



  • Trying to build/compile QT from source (qt-everywhere-src-15.13.1) on latest Ubuntu and am getting the following error

    ninja -v  -C /home/llist/sec1/work/qt-everywhere-src-5.13.1/qtwebengine/src/core/release QtWebEngineCore
    ninja: Entering directory `/home/llist/sec1/work/qt-everywhere-src-5.13.1/qtwebengine/src/core/release'
    [1/17356] /usr/bin/python2 ../../3rdparty/chromium/build/write_buildflag_header.py --output base/android/library_loader/anchor_functions_buildflags.h --rulename //base:anchor_functions_buildflags --gen-dir gen --definitions __base_anchor_functions_buildflags__home_llist_sec1_work_qt-everywhere-src-5.13.1_qtwebengine_src_toolchain_target__rule.rsp
    [2/17356] /usr/bin/python2 ../../3rdparty/chromium/build/write_buildflag_header.py --output base/clang_coverage_buildflags.h --rulename //base:clang_coverage_buildflags --gen-dir gen --definitions __base_clang_coverage_buildflags__home_llist_sec1_work_qt-everywhere-src-5.13.1_qtwebengine_src_toolchain_target__rule.rsp
    [3/17356] /usr/bin/python2 ../../3rdparty/chromium/build/write_buildflag_header.py --output base/cfi_buildflags.h --rulename //base:cfi_buildflags --gen-dir gen --definitions __base_cfi_buildflags__home_llist_sec1_work_qt-everywhere-src-5.13.1_qtwebengine_src_toolchain_target__rule.rsp
    [4/17356] /usr/bin/python2 ../../3rdparty/chromium/build/write_buildflag_header.py --output base/debug/debugging_buildflags.h --rulename //base:debugging_buildflags --gen-dir gen --definitions __base_debugging_buildflags__home_llist_sec1_work_qt-everywhere-src-5.13.1_qtwebengine_src_toolchain_target__rule.rsp
    [5/17356] touch obj/base/anchor_functions_buildflags.stamp
    [6/17356] touch obj/base/clang_coverage_buildflags.stamp
    [7/17356] touch obj/base/cfi_buildflags.stamp
    [8/17356] touch obj/base/debugging_buildflags.stamp
    [9/17356] /usr/bin/python2 ../../3rdparty/chromium/build/write_buildflag_header.py --output base/partition_alloc_buildflags.h --rulename //base:partition_alloc_buildflags --gen-dir gen --definitions __base_partition_alloc_buildflags__home_llist_sec1_work_qt-everywhere-src-5.13.1_qtwebengine_src_toolchain_target__rule.rsp
    [10/17356] /usr/bin/python2 ../../3rdparty/chromium/build/write_buildflag_header.py --output base/android/orderfile/orderfile_buildflags.h --rulename //base:orderfile_buildflags --gen-dir gen --definitions __base_orderfile_buildflags__home_llist_sec1_work_qt-everywhere-src-5.13.1_qtwebengine_src_toolchain_target__rule.rsp
    [11/17356] touch obj/base/partition_alloc_buildflags.stamp
    [12/17356] /usr/bin/python2 ../../3rdparty/chromium/build/write_buildflag_header.py --output base/memory/protected_memory_buildflags.h --rulename //base:protected_memory_buildflags --gen-dir gen --definitions __base_protected_memory_buildflags__home_llist_sec1_work_qt-everywhere-src-5.13.1_qtwebengine_src_toolchain_target__rule.rsp
    [13/17356] touch obj/base/orderfile_buildflags.stamp
    ninja: error: WriteFile(__third_party_blink_renderer_core_html_parser_parser__jumbo_merge__home_llist_sec1_work_qt-everywhere-src-5.13.1_qtwebengine_src_toolchain_target__rule.rsp): Unable to create file. File name too long
    ninja: build stopped: .
    make[4]: *** [Makefile.gn_run:1339: run_ninja] Error 1
    make[4]: Leaving directory '/home/llist/sec1/work/qt-everywhere-src-5.13.1/qtwebengine/src/core'
    make[3]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2
    make[3]: Leaving directory '/home/llist/sec1/work/qt-everywhere-src-5.13.1/qtwebengine/src/core'
    make[2]: *** [Makefile:78: sub-core-make_first] Error 2
    make[2]: Leaving directory '/home/llist/sec1/work/qt-everywhere-src-5.13.1/qtwebengine/src'
    make[1]: *** [Makefile:49: sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/llist/sec1/work/qt-everywhere-src-5.13.1/qtwebengine'
    make: *** [Makefile:1034: module-qtwebengine-make_first] Error 2
    
    

    Thanks


  • Qt Champions 2019

    @poldi What file system do you use for your /home partition (or root partition if you don't have extra partition for /home)?
    Is the file system encrypted?
    The length of the file name is 156 in your case which should not be an issue on Linux.


  • Qt Champions 2019

    @poldi What file system do you use for your /home partition (or root partition if you don't have extra partition for /home)?
    Is the file system encrypted?
    The length of the file name is 156 in your case which should not be an issue on Linux.



  • Thanks for the quick reply.
    I was using and encrypted folder (ecryptfs) for the build, which was the cause of the error.
    Have now build QT on a standard folder without any issues.
    Thanks,
    Leo


  • Qt Champions 2019

    @Poldi: Then please mark the topic as solved


Log in to reply