Hello,
(I use nixos and I've just posted in their discord to ask for a way to turn fortification off for glibc)
I'm trying to set up the dap client for neovim. When I launch the debugger, I met an error that could be caused by the fact that glibc is fortified.
Was my guess correct ? Are there other ways to make it work without using the nixos's glibc ?
Thanks :)
Build Error: go test -c -o /home/leana/repos/leana/hoot/__debug_bin3607300137 -gcflags all=-N -l ./.
# runtime/cgo
In file included from /nix/store/nv84272fps7vc62w42c55hw6cyy9qh3h-glibc-2.39-52-dev/include/bits/libc-header-start.h:33,
from /nix/store/nv84272fps7vc62w42c55hw6cyy9qh3h-glibc-2.39-52-dev/include/stdlib.h:26,
from _cgo_export.c:3:
/nix/store/nv84272fps7vc62w42c55hw6cyy9qh3h-glibc-2.39-52-dev/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
414 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
| ^~~~~~~
cc1: all warnings being treated as errors
FAIL leana8959/hoot [build failed]
FAIL (exit status 1)