MINGW-packages: Something broke - undefined reference to `__memcpy_chk'
Sometime this afternoon builds broke that earlier today were fine. All are using the gcc toolchain. below is grab of the packages that were updated with the builds:
undefined reference to `__memcpy_chk'
All packages are mingw-w64-x86_64
Good build earlier today
binutils-2.32-3
headers-git-7.0.0.5524.2346384e-1
crt-git-7.0.0.5524.2346384e-1
libwinpthread-git-7.0.0.5522.977a9720-1
gcc-libs-9.2.0-2
winpthreads-git-7.0.0.5522.977a9720-1
gcc-9.2.0-2
gcc-ada-9.2.0-2
gcc-libgfortran-9.2.0-2
gcc-fortran-9.2.0-2
gcc-objc-9.2.0-2
gdb-8.3.1-1
Bad build today
binutils-2.33.1-1
headers-git-7.0.0.5546.d200317d-1
crt-git-7.0.0.5546.d200317d-1
libwinpthread-git-7.0.0.5544.15da3ce2-1
gcc-libs-9.2.0-2
winpthreads-git-7.0.0.5544.15da3ce2-1
gcc-9.2.0-2
gcc-ada-9.2.0-2
gcc-libgfortran-9.2.0-2
gcc-fortran-9.2.0-2
gcc-objc-9.2.0-2
gdb-8.3.1-1
Some builds were on Appveyor, some on GH Actions.
I’m not much of c type, so any help would be appreciated…
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (15 by maintainers)
Commits related to this issue
- msys2 bug with headers-git-7.0.0.5546.d200317d-1 either add -fstack-protector for -lssp to be added, or omit adding -D_FORTIFY_SOURCE=2 to CPPFLAGS. We do both. see https://github.com/msys2/MINGW-pa... — committed to LibreDWG/libredwg by rurban 5 years ago
- fix AX_ADD_FORTIFY_SOURCE for msys2 msys2 bug with headers-git-7.0.0.5546.d200317d-1 either add -fstack-protector for -lssp to be added, or omit adding -D_FORTIFY_SOURCE=2 to CPPFLAGS. See https://gi... — committed to LibreDWG/libredwg by rurban 5 years ago
- Makefile: add libssp for Windows Recent Cygwin mingw releases require linking against libssp to avoid undefined symbols. See https://github.com/msys2/MINGW-packages/issues/5868 for discussion. — committed to vincentkfu/fio by vincentkfu 5 years ago
- Makefile: add libssp for Windows Recent Cygwin mingw releases require linking against libssp to avoid undefined symbols. See https://github.com/msys2/MINGW-packages/issues/5868 for discussion. Fixes... — committed to vincentkfu/fio by vincentkfu 5 years ago
- Makefile: add libssp for Windows Recent Cygwin mingw releases require linking against libssp to avoid undefined symbols. See https://github.com/msys2/MINGW-packages/issues/5868 for discussion. https... — committed to vincentkfu/fio by vincentkfu 5 years ago
- Add patch for change to MinGW. See information found here (similiar thouh not directly webkit): https://github.com/msys2/MINGW-packages/issues/5868 — committed to mdforbis/MINGW-packages by mdforbis 5 years ago
- Don't define _FORTIFY_SOURCE on MinGW Recent MinGW versions require -lssp when using _FORTIFY_SOURCE, which gdb does (in common-defs.h) https://github.com/msys2/MINGW-packages/issues/5868#issuecommen... — committed to fskjdflaskjh/binutils by cbiesinger 5 years ago
- Don't define _FORTIFY_SOURCE on MinGW Recent MinGW versions require -lssp when using _FORTIFY_SOURCE, which gdb does (in common-defs.h) https://github.com/msys2/MINGW-packages/issues/5868#issuecommen... — committed to wimal-build/binutils by cbiesinger 5 years ago
- CMake/MSYS2: Link against libssp (required for _FORTIFY_SOURCE) mingw-w64 does not seem to have native support for fortification, libssp offers it, so let's try this for now. Not sure yet if disabli... — committed to hunter-college-ossd-spr-2020/inkscape by Ede123 5 years ago
- libzmq: compatibility workaround for mingw 7 "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack-prote... — committed to mabrand/mxe by mabrand 4 years ago
- Do not use D_FORTIFY_SOURCE with latest msyse (gcc 9.3.0) https://github.com/msys2/MINGW-packages/issues/5868 Signed-off-by: Jaymala Sinha <jsinha@chef.io> — committed to chef/omnibus by deleted user 4 years ago
- libzmq: compatibility workaround for mingw 7 "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack-prote... — committed to mabrand/mxe by mabrand 4 years ago
- libzmq: compatibility workaround for mingw 7 "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack-prote... — committed to tonytheodore/mxe by mabrand 4 years ago
- libzmq: compatibility workaround for mingw 7 "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack-prote... — committed to tonytheodore/mxe by mabrand 4 years ago
- gcc: enable default stack protector to mimic glibc "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack... — committed to tonytheodore/mxe by tonytheodore 4 years ago
- libzmq: compatibility workaround for mingw 7 "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack-prote... — committed to mxe/mxe by mabrand 4 years ago
- gcc: enable default stack protector to mimic glibc "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack... — committed to mxe/mxe by tonytheodore 4 years ago
- libzmq: compatibility workaround for mingw 7 "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack-prote... — committed to Lord-Kamina/mxe by mabrand 4 years ago
- gcc: enable default stack protector to mimic glibc "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack... — committed to Lord-Kamina/mxe by tonytheodore 4 years ago
- libzmq: compatibility workaround for mingw 7 "...with mingw-w64 if you define _FORTIFY_SOUECE to something greater than zero you have to link against libssp, either by adding -fstack-prote... — committed to rezahousseini/mxe by mabrand 4 years ago
Yes with mingw-w64 if you define
_FORTIFY_SOUECE
to something greater than zero you have to link against libssp, either by adding-fstack-protector
or-lssp
, because mingw-w64, unlike GNU libc, does not provide fortified functions.Until recently, the default configuration of makepkg had
-D_FORTIFY_SOURCE=2
which has been removed. If projects add this themselves then they start to have to add-lssp
as well. One known example is GDB.I’m getting this same error trying to build
libopus
on Cygwin, using the mingw-64 build tools. I’m not a programmer, so for my clarification, what’s the best way to get this package to successfully compile? Thank you.EDIT: Never mind, passing
CFLAGS="I=/usr/local/llsp"
toconfigure
fixed the issue.