Skip to content

Qt static build linking problem _imp___wassert #5613

@tim-lebedkov

Description

@tim-lebedkov

My automatic build on Appveyor on June, 16 worked fine: https://ci.appveyor.com/project/tim-lebedkov/npackd-cpp/builds/25316063

The next build on July, 5 fails: https://ci.appveyor.com/project/tim-lebedkov/npackd-cpp/builds/25778424/job/14hnya29lnp5tbql

Strangely enough, this works on my local VM.

C:\msys64\mingw32\bin\g++.exe  -static-libstdc++ -static-libgcc -static -g -Os -Wall -Winit-self -Wwrite-strings -Wextra -Wno-long-long -Wno-overloaded-virtual -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unknown-pragmas -Wno-cast-function-type -Wno-unused-but-set-parameter -march=i686 -fpermissive -fno-tree-slp-vectorize -Wno-error=cast-qual -Wno-unused-local-typedefs -Os -DNDEBUG   -Wl,-Map,npackdcl.map -Wl,--whole-archive CMakeFiles\npackdcl.dir/objects.a -Wl,--no-whole-archive  -o npackdcl.exe -Wl,--out-implib,libnpackdcl.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\npackdcl.dir\linklibs.rsp
C:/msys64/mingw32/qt5-static/lib/libQt5Core.a(double-conversion.o):double-conversion.cc:(.text$_ZN17double_conversion12_GLOBAL__N_1L16ConsumeSubStringIPKtEEbPT_S4_PKcb+0x65): undefined reference to `_imp___wassert'
C:/msys64/mingw32/qt5-static/lib/libQt5Core.a(double-conversion.o):double-conversion.cc:(.text$_ZN17double_conversion12_GLOBAL__N_1L16ConsumeSubStringIPKtEEbPT_S4_PKcb+0x14f): undefined reference to `_imp___wassert'
C:/msys64/mingw32/qt5-static/lib/libQt5Core.a(double-conversion.o):double-conversion.cc:(.text$_ZN17double_conversion12_GLOBAL__N_1L16ConsumeSubStringIPKcEEbPT_S4_S3_b+0x64): undefined reference to `_imp___wassert'
C:/msys64/mingw32/qt5-static/lib/libQt5Core.a(double-conversion.o):double-conversion.cc:(.text$_ZN17double_conversion12_GLOBAL__N_1L16ConsumeSubStringIPKcEEbPT_S4_S3_b+0x155): undefined reference to `_imp___wassert'
C:/msys64/mingw32/qt5-static/lib/libQt5Core.a(double-conversion.o):double-conversion.cc:(.text$_ZN17double_conversionL16IsHexFloatStringIPKcEEbT_S3_cb+0x2c2): undefined reference to `_imp___wassert'
C:/msys64/mingw32/qt5-static/lib/libQt5Core.a(double-conversion.o):double-conversion.cc:(.text$_ZN17double_conversionL16IsHexFloatStringIPKtEEbT_S3_cb+0x325): more undefined references to `_imp___wassert' follow
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [CMakeFiles\npackdcl.dir\build.make:578: npackdcl.exe] Error 1
mingw32-make.exe[2]: Leaving directory 'C:/projects/Npackd/npackdcl/build'
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:72: CMakeFiles/npackdcl.dir/all] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/projects/Npackd/npackdcl/build'
mingw32-make.exe: *** [Makefile:129: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions