Bug 274409 - mail/rspamd: 3.7.1: ninja build FAILED: contrib/backward-cpp/CMakeFiles/backward.dir/backward.cpp.o
Summary: mail/rspamd: 3.7.1: ninja build FAILED: contrib/backward-cpp/CMakeFiles/backw...
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Vsevolod Stakhov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-11 09:07 UTC by C. Bern
Modified: 2023-11-03 08:27 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (vsevolod)


Attachments
make install from ports output (360.79 KB, text/plain)
2023-10-11 09:07 UTC, C. Bern
no flags Details
patch for contrib/backward-cpp/backward.hpp (1.66 KB, patch)
2023-10-12 15:28 UTC, lysfjord.daniel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description C. Bern 2023-10-11 09:07:58 UTC
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
Comment 1 lysfjord.daniel 2023-10-11 17:58:00 UTC
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
Comment 2 crest 2023-10-12 10:16:02 UTC
I've encountered the problem trying to build rspamd 3.7.1 for FreeBSD 12.4/amd64.
Comment 3 Vsevolod Stakhov freebsd_committer freebsd_triage 2023-10-12 15:13:07 UTC
I think this commit should fix the issue: https://github.com/rspamd/rspamd/commit/79edca0b0a716f47cd1ff0d4c4c8911bfd3c2be5
Comment 5 lysfjord.daniel 2023-10-12 15:29:29 UTC
Compiles fine now:)
Comment 6 C. Bern 2023-10-12 18:12:38 UTC
thanks, looks good now.
Comment 7 crest 2023-10-20 11:32:20 UTC
@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?
Comment 8 quags 2023-10-27 15:25:08 UTC
I had this happen on 13.2-RELEASE-p4 building from ports with hyperscan, luajit and blas. Patch has resolved it.