protonscr

Linking failure `__strcat_chk'

vkd3dclosed
HansKristian-Work/vkd3d-proton#1577 · opened 2023-05-28 by meerfrau · updated 2023-05-28 · 2 comments · github
Mmeerfrau 2023-05-28 github

System information

  • GPU: /
  • Driver: /
  • Wine version: 8.6
  • VKD3D-Proton version: git master
  • GCC 13.1
  • mingw-w64-gcc 12.2

Log files

FAILED: libs/d3d12/d3d12.dll 
x86_64-w64-mingw32-gcc  -o libs/d3d12/d3d12.dll ../../vkd3d-proton/libs/d3d12/d3d12.def libs/d3d12/d3d12.dll.p/main.c.obj -Wl,--allow-shlib-undefined -shared ../../vkd3d-proton/libs/d3d12/d3d12.def -Wl,--start-group -Wl,--out-implib=libs/d3d12/d3d12.dll.a -Wl,--file-alignment=4096 -static -static-libgcc -march=native -mtune=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -w -Wno-deprecated-declarations -fcf-protection libs/vkd3d-common/libvkd3d_common.a -ldxgi -pthread -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -Wl,--end-group
/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld: libs/d3d12/d3d12.dll.p/main.c.obj:main.c:(.text+0x144): undefined reference to `__strcat_chk'
collect2: error: ld returned 1 exit status

This is certainly a problem of my GCC, but has anybody else occurred it?

SSaancreed 2023-05-28 github

-Wp,-D_FORTIFY_SOURCE=2

You have some stray build flags in your environment, get rid of them and try again.

Mmisyltoad maintainer 2023-05-28 github

FORTIFY_SOURCE is not supported with MingW.

DLLs