Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,818
    • Issues 3,818
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #19904
Closed
Open
Created Oct 31, 2019 by Cristian Adam@cristianadamDeveloper

Ninja / Clang on Windows linker cannot handle "big" rsp file

While building Qt Creator with Clang on Windows I've got the following error:

]Linking CXX shared library lib\qtcreator\plugins\libQmlDesigner.dll
FAILED: lib/qtcreator/plugins/libQmlDesigner.dll lib/qtcreator/plugins/libQmlDesigner.dll.a
cmd.exe /C "cd . && C:\llvm-mingw\bin\c++.exe  -O3 -DNDEBUG   -shared -o lib\qtcreator\plugins\libQmlDesigner.dll -Wl,--out-implib,lib\qtcreator\plugins\libQmlDesigner.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\QmlDesigner.rsp  && cd ."
clang-9: error: unable to execute command: Couldn't execute program 'C:\llvm-mingw\bin\ld.lld.exe': The filename or extension is too long.  (0xCE)
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

QmlDesigner.rsp is 36388 bytes in size. Rsp files are used on Windows to bypass the command line limitation, but it seems there is another limitation.

It seems the limit of the rsp file is 32768 bytes. Sureley big projects will hit this limit, is there any work around to this work around?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking