Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16443

Path-too-long when building on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 4.7.1, 5.8
    • Build tools: qmake
    • None
    • Windows XP SP3 English, MSVC2010 SP1 Beta1, Windows SDK 7.1, Qt 4.7.1

      Windows 10 64 bit, MinGW g++ 5.3

    Description

      When I try to build Qt 4.7.1 on Windows with MSVC2010 and -developer-build flag, I get this error:

              cl -c -nologo -Zm200 -Zc:wchar_t- -wd4291 -wd4344 -wd4396 -wd4503 -wd480
      0 -wd4819 -wd4996 -O2 -MD -MP -GR -EHsc -GL -DUNICODE -DWIN32 -DQT_LARGEFILE_SUP
      PORT -DBUILDING_QT__=1 -DWTF_USE_ACCELERATED_COMPOSITING -DUSE_SYSTEM_MALLOC -DN
      DEBUG -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DECLARATIVE_LIB -DQT_WEBKIT_LIB -D
      QT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_M
      MXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\..\..\include\QtCore" -I
      "..\..\..\..\..\..\include\QtGui" -I"..\..\..\..\..\..\include\QtWebKit" -I"..\.
      .\..\..\..\..\include\QtDeclarative" -I"..\..\..\..\..\..\include" -I"g:\kde\bui
      ld\win32libs-sources\dbus-src-1.4.1-20101222\image-msvc2010-RelWithDebInfo-1.4.1
      \include" -I"g:\kde\build\win32libs-sources\openssl-src-1.0.0b\image-msvc2010-Re
      lWithDebInfo-1.0.0b\include" -I"g:\kde\build\testing\mysql-pkg-5.1.54\image-msvc
      2010-RelWithDebInfo-5.1.54\include" -I"..\..\..\include\QtWebKit" -I"..\..\..\..
      \..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"g:\kde\download\svn-src\q
      t\src\3rdparty\webkit\WebKit\qt\declarative" -I"." -I"g:\kde\download\svn-src\qt
      \mkspecs\win32-msvc2010" -Fotmp\obj\release_shared\ @C:\DOCUME~1\PGQUIL~2.ARI\LO
      CALS~1\Temp\nm79E.tmp
      moc_qdeclarativewebview_p.cpp
      tmp\moc\release_shared\moc_qdeclarativewebview_p.cpp(10) : fatal error C1083: Ca
      nnot open include file: '../../../../../../../../../../../../../../download/svn-
      src/qt/src/3rdparty/webkit/WebKit/qt/declarative/qdeclarativewebview_p.h': No su
      ch file or directory
      NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
      N\cl.EXE"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
      N\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '""C:\Program' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '""C:\Program' : return code '0x2'
      Stop.
      emerge fatal error: while running make cmd: nmake /NOLOGO
      emerge fatal error: running python g:\kde\emerge\portage\libs\qt\qt-4.7.1.201012
      24.py compile
      emerge error: fatal error: package libs/qt-4.7.1.20101224 all failed
      16:59
      

      I think it is path-too-long issue.

      The source directory is G:\kde\download\svn-src\qt
      The build directory is G:\kde\build\libs\qt-4.7.1.20101224\work\msvc2010-RelWithDebInfo-4.7.1

      To verify, I changed directory to "G:\kde\build\libs\qt-4.7.1.20101224\work\msvc2010-RelWithDebInfo-4.7.1\src\3rdparty\webkit\WebKit\qt\declarative" and ran "nmake", I get the same error.

      If I change directory to "G:\kde\build\libs\qt-4.7.1.20101224\work\msvc2010-RelWithDebInfo-4.7.1\src\3rdpa
      rty\webkit\WebKit\qt\declarative\tmp\moc\debug_shared" and try to list that file I get a path-too-long error:

      G:\kde\build\libs\qt-4.7.1.20101224\work\msvc2010-RelWithDebInfo-4.7.1\src\3rdparty\webkit\WebKit\qt\declarative\tmp\moc\debug_shared>dir ..\..\..\..\..\..\..\..\..\..\..\..\..\..\download\svn-src\qt\src\3rdparty\webkit\WebKit\qt\declarative\qdeclarativewebview_p.h
      The filename or extension is too long.

      This is easily reproducible by using the KDE on Windows build tool (emerge) and adding a "-developer-build" option to the relevant version in emerge\portage\libs\qt\qt-4.7.1.20101224.py

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jbornema Joerg Bornemann
              pgquiles Pau Garcia i Quiles
              Votes:
              11 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes