Compilation Qt5Wekit failed when compiling with release symbol without stripping



  • Hi everyone,

    I'm trying to compile Qt5Webkit with release symbol without stippring in order to get the symbol ourselve to use with GoogleBreakPad later on.

    I'm compiling on Windows 7 with GCC4.7.2 given with sources. I changed the configure like below :

    • Adding symbol to release : "-g" to QMAKE_CFLAGS_RELEASE ending like this : "QMAKE_CFLAGS_RELEASE = -O2 -g"
    • Removing stripping "-Wl,-s" to QMAKE_LFLAGS_RELEASE ending like this : "QMAKE_LFLAGS_RELEASE ="

    I got the error final link failed: File truncated and I have no idea why.

    If I put back "-Wl-s" for the linking, it works fine but debug symbol are stripped and I can't get them.

    @mingw32-make[3]: Entering directory 'C:/Qt/Qt5.0.2/5.0.2Custom/qtwebkit/Source'
    g++ -shared -Wl,--out-implib,C:\Qt\Qt5.0.2\5.0.2Custom\qtbase\lib\libQt5WebKit.a
    -o C:\Qt\Qt5.0.2\5.0.2Custom\qtbase\lib\Qt5WebKit.dll .obj/release_shared/qrc_W
    ebCore.o .obj/release_shared/qrc_WebKit.o .obj/release_shared/qrc_InspectorBacke
    ndCommands.o -LC:/Qt/Qt5.0.2/5.0.2Custom/qtbase/lib -lQt5Network -LC:/Qt/Qt5.0.
    2/5.0.2Custom/qtbase/lib -lQt5Gui -LC:/Qt/Qt5.0.2/5.0.2Custom/qtbase/lib -lQt5Co
    re -llibEGL -llibGLESv2 -lgdi32 -luser32 .obj\release_shared\Qt5WebKit_resource_
    res.o -LC:/openssl-1.0.1e -LC:/icu/lib -Wl,-whole-archive -lWebKit1 -Wl,-no-whol
    e-archive -LC:/Qt/Qt5.0.2/5.0.2Custom/qtwebkit/Source/WebKit/release -Wl,-whole-
    archive -lWebKit2 -Wl,-no-whole-archive -LC:/Qt/Qt5.0.2/5.0.2Custom/qtwebkit/Sou
    rce/WebKit2/release -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -LC:/Qt/Q
    t5.0.2/5.0.2Custom/qtwebkit/Source/WebCore/release -lz -ladvapi32 -lgdi32 -lshel
    l32 -lshlwapi -luser32 -lversion -llibEGL -llibGLESv2 -lgdi32 -luser32 -lgdi32 -
    lole32 -luser32 -Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -LC:/Qt/Qt5.0.2
    /5.0.2Custom/qtwebkit/Source/ThirdParty/ANGLE/release -Wl,-whole-archive -lJavaS
    criptCore -Wl,-no-whole-archive -LC:/Qt/Qt5.0.2/5.0.2Custom/qtwebkit/Source/Java
    ScriptCore/release -lwinmm -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -LC:/Q
    t/Qt5.0.2/5.0.2Custom/qtwebkit/Source/WTF/release -licuin -licuuc -licudt -lwinm
    m -lgdi32 -LC:/Qt/Qt5.0.2/5.0.2Custom/qtbase/lib -lQt5Quick -LC:/Qt/Qt5.0.2/5.0.
    2Custom/qtbase/lib -lQt5Multimedia -LC:/Qt/Qt5.0.2/5.0.2Custom/qtbase/lib -lQt5Q
    ml -LC:/Qt/Qt5.0.2/5.0.2Custom/qtbase/lib -lQt5Sql -LC:/Qt/Qt5.0.2/5.0.2Custom/q
    tbase/lib -lQt5Gui -LC:/Qt/Qt5.0.2/5.0.2Custom/qtbase/lib -lQt5Network -LC:/Qt/Q
    t5.0.2/5.0.2Custom/qtbase/lib -lQt5Core
    Warning: resolving _cti_vm_throw by linking to @cti_vm_throw@4
    Use --enable-stdcall-fixup to disable these warnings
    Use --disable-stdcall-fixup to disable these fixups
    c:/qt/qt5.0.2/tools/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686
    -w64-mingw32/bin/ld.exe: final link failed: File truncated
    collect2.exe: error: ld returned 1 exit status
    Makefile.api.Release:81: recipe for target 'C:\Qt\Qt5.0.2\5.0.2Custom\qtbase\lib
    \Qt5WebKit.dll' failed@

    Thanks for your help.



  • I have same problem.



  • Unfortunatly there are no workarounds, you just need more RAM memory to be able to acheive this compilation but I never could.

    I personally use the Qt5Webkit library without debugging symbol in release.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.