Created attachment 245560 [details] make install from ports output Hi port mail/rspamd-3.7.1 fails in contrib: In file included from /usr/ports/mail/rspamd/work/rspamd-3.7.1/contrib/backward-cpp/backward.cpp:36: /usr/ports/mail/rspamd/work/rspamd-3.7.1/contrib/backward-cpp/backward.hpp:808:5: error: use of undeclared identifier '_Unwind_Backtrace' I have this same error on 2 different servers. Both are amd64 with FreeBSD-12.4-p6 (which should be eol by end of December23, but this is not reached yet!) 3.6.0 worked well on both. reinstalled ninja reinstalled python3.9 to no avail config options used: hyperscan, luajit Thanks! Christian At end of configure, I can see (but not understand or know if important): - UTF8: AVX2 support is added -- UTF8: SSE41 support is added -- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR) -- Found libbfd: /usr/local/lib/libbfd.so -- Found libdwarf: /usr/lib/libdwarf.so -- Found Backward: /usr/ports/mail/rspamd/work/rspamd-3.7.1/contrib/backward-cpp -- Backward-cpp config: BACKWARD_HAS_UNWIND=1;BACKWARD_HAS_LIBUNWIND=0;BACKWARD_HAS_BACKTRACE=0;BACKWARD_HAS_BACKTRACE_SYMBOL=0;BACKWARD_HAS_DW=0;BACKWARD_HAS_BFD=1;BACKWARD_HAS_DWARF=0 -- Backward-cpp libraries: /usr/local/lib/libbfd.so;/usr/lib/libdl.so -- Compiler type CLANG: /usr/bin/c++ -- Cryptobox: AVX2 support is added (chacha20) -- Cryptobox: AVX2 support is added (base64) -- Cryptobox: AVX support is added (chacha20) -- Cryptobox: SSE2 support is added (chacha20) -- Cryptobox: SSE42 support is added (base64) -- Configuring done (14.4s) -- Generating done (0.2s) CMake Warning: Manually-specified variables were not used by the project: BUILD_PORT CMAKE_MODULE_LINKER_FLAGS CMAKE_VERBOSE_MAKEFILE FETCHCONTENT_FULLY_DISCONNECTED THREADS_HAVE_PTHREAD_ARG
Sneaking in two following lines after the error, just in case it's useful: /wrkdirs/usr/ports/mail/rspamd/work/rspamd-3.7.1/contrib/backward-cpp/backward.hpp:851:10: note: in instantiation of member function 'backward::details::Unwinder<backward::StackTraceImpl<backward::system_tag::unknown_tag>::callback>::operator()' requested here /wrkdirs/usr/ports/mail/rspamd/work/rspamd-3.7.1/contrib/backward-cpp/backward.hpp:869:33: note: in instantiation of function template specialization 'backward::details::unwind<backward::StackTraceImpl<backward::system_tag::unknown_tag>::callback>' requested here
I've encountered the problem trying to build rspamd 3.7.1 for FreeBSD 12.4/amd64.
I think this commit should fix the issue: https://github.com/rspamd/rspamd/commit/79edca0b0a716f47cd1ff0d4c4c8911bfd3c2be5
Created attachment 245583 [details] patch for contrib/backward-cpp/backward.hpp Patch picked up from https://github.com/rspamd/rspamd/commit/79edca0b0a716f47cd1ff0d4c4c8911bfd3c2be5#diff-736fe4a50bd89b43e2086ee40211d334d3356a6b30a54335dc2312bd05a4345e
Compiles fine now:)
thanks, looks good now.
@Vsevolod Stakhov: You haven't given your maintainer approval via the Bugzilla flags and the PR is assigned to you as well. Is there a problem with the patch required at least on FreeBSD 12.x? Is there some way to help you get the patch in allowing rspamd to build again until the next upstream release overcomes the need for a local patch?
I had this happen on 13.2-RELEASE-p4 building from ports with hyperscan, luajit and blas. Patch has resolved it.