Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1143

QNX: On Windows unable to link a big project due to use of the full path to .obj files

XMLWordPrintable

    • eb2e67a44ffa445a1bb360d1f75d5a722c0fa08a

      A big project fails to link due to a long linker command.

      Small projects link well, but the big one fails with the following error.

      cc: spawn of C:\qnx660\host\win32\x86\usr\bin\i486-pc-nto-qnx6.6.0-ld failed: No such file or directory
      

      I believe this error is a result of a very big linker command(~90k symbols).

      I received the same error on the smaller project, but when I moved the build directory to the smaller path(D:\b) the error had gone.

      Currently, the QBS generates full paths like this to the linker:

      D:/q/qtc_QNX_Qt_5_0b1813ff-release/Project.qtc-QNX-Qt-5-0b1813ff.f948372b/.obj/c44f4780dec42570/file.cpp.o

      while qmake uses relative paths:

      file.obj

      As a result, the same project built with a QBS generates linker command with ~90K symbols, when qmake generates ~35K(actually here even a bigger files count due to use of quick compiler). 

      So, currently, I'm not able to compile the project with QBS even with the shortest build dir path.

       

        For Gerrit Dashboard: QBS-1143
        # Subject Branch Project Status CR V

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            zak Zakhar Bondia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes