Open ycollet opened 1 month ago
Thanks. It sounds like we need to add something to choc 'choc_DisableAllWarnings'. We have the strategy of trying to use external libraries as they are without 'fixing' them. Obviously we try and upstream changes, but for stuff like this the 'disable all warnings when compiling this unit' approach is pragmatic.
I'll look at getting a newer gcc build going and investigate this further.
Thanks a lot for your quick answer. With my workaround, the build works. I will try the plugin soon.
I try to package cmajor for Fedora. Some compilation flags are added to CMAKE_CXX_FLAGS:
-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
Sorry, had a few other bits on but got around to trying this out. Can you try the latest release and see if i've resolved your warnings?
I am trying to build cmajor for Fedora 40 and I've got a lot of "use after free" errors while compiling with gcc 14.1.1. Here is an example:
I added "-Wno-error=use-after-free" to the list of CXXFLAGS to workaround this problem.