Build fail when Linking CXX executable ..\bin\UpdaterTest.exe

Build message:
…/src/gui/libupdater.a(updater.cpp.obj):updater.cpp:(.text+0x62): undefined reference to __stack_chk_fail' ../src/gui/libupdater.a(updater.cpp.obj):updater.cpp:(.text+0x4a4): undefined reference to__stack_chk_fail’
…/src/gui/libupdater.a(updater.cpp.obj):updater.cpp:(.text+0xa3d): undefined reference to __stack_chk_fail' ../src/gui/libupdater.a(updater.cpp.obj):updater.cpp:(.text+0xc7f): undefined reference to__stack_chk_fail’
…/src/gui/libupdater.a(updater.cpp.obj):updater.cpp:(.text+0xdfc): undefined reference to __stack_chk_fail' ../src/gui/libupdater.a(updater.cpp.obj):updater.cpp:(.text+0xe52): more undefined references to__stack_chk_fail’ follow
…/src/gui/libupdater.a(updater.cpp.obj):updater.cpp:(.rdata$.refptr.__stack_chk_guard[.refptr.__stack_chk_guard]+0x0): undefined reference to __stack_chk_guard' ../src/gui/libupdater.a(ocupdater.cpp.obj):ocupdater.cpp:(.text+0x2dd): undefined reference to__stack_chk_fail’
…/src/gui/libupdater.a(ocupdater.cpp.obj):ocupdater.cpp:(.text+0x5b3): undefined reference to __stack_chk_fail' ../src/gui/libupdater.a(ocupdater.cpp.obj):ocupdater.cpp:(.text+0xb2e): undefined reference to__stack_chk_fail’
…/src/gui/libupdater.a(ocupdater.cpp.obj):ocupdater.cpp:(.text+0xdcb): undefined reference to __stack_chk_fail' ../src/gui/libupdater.a(ocupdater.cpp.obj):ocupdater.cpp:(.text+0x117c): undefined reference to__stack_chk_fail’
…/src/gui/libupdater.a(ocupdater.cpp.obj):ocupdater.cpp:(.text+0x12a2): more undefined references to `__stack_chk_fail’ follow
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [test\CMakeFiles\UpdaterTest.dir\build.make:119: bin/UpdaterTest.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:1703: test/CMakeFiles/UpdaterTest.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2

There is no same situation discuss on the net.
So I came here to ask.
What could I do to solve this problem?

@aa4life Please check the native approach with KDE Craft:
https://doc.owncloud.com/desktop/building.html#windows-development-build-with-kde-craft

1 Like

Hello, is there any method to do without KDE Craft or Docker?

And there is also a problem when I build with KDE Craft.
Below is the message:
name ‘utils’ is not defined
Traceback (most recent call last):
File “C:\CraftRoot\craft\bin\craft.py”, line 265, in
success = main(timer)
File “C:\CraftRoot\craft\bin\craft.py”, line 255, in main
if not CraftCommands.run(package, action, tempArgs):
File “C:\CraftRoot\craft\bin\CraftCommands.py”, line 282, in run
if not handlePackage(info, action, directTargets=directTargets):
File “C:\CraftRoot\craft\bin\CraftCommands.py”, line 75, in handlePackage
success = doExec(package, action)
File “C:\CraftRoot\craft\bin\CraftCommands.py”, line 41, in doExec
ret = package.instance.runAction(action)
File “C:\CraftRoot\craft\bin\Package\PackageBase.py”, line 221, in runAction
if not getattr(self, step)():
File “C:\CraftRoot\etc\blueprints\locations\craft-blueprints-owncloud\dev-utils\breakpad-tools\breakpad-tools.py”, line 33, in fetch
utils.system([“python2”, “fetch-externals”], cwd=self.sourceDir())
NameError: name ‘utils’ is not defined

How to fix it?
Thanks a lot.