[Rspamd-Users] Error building rspamd 3.0.1
Jeroen de Meijer
rspamd at filter.demeijer.com
Thu Nov 4 10:36:38 UTC 2021
Hi,
I have a problem building rspamd on FreeBSD. Strangely, on another system
with the same FreeBSD installation (but different hardware) it compiles
without problems.
I'm no programmer, so could use some hints were to look to solve this.
This is the error portmaster -Bd mail/rspamd gives:
FAILED: src/CMakeFiles/rspamd-server.dir/libserver/html/html.cxx.o
/usr/local/libexec/ccache/c++ -DDOCTEST_CONFIG_NO_MULTI_LANE_ATOMICS
-DDOCTEST_CONFIG_USE_STD_HEADERS -DHAVE_CONFIG_H -DU_CHARSET_IS_UTF8
-Drspamd_server_EXPORTS
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/hiredis
-I/usr/ports/mail/rspamd/work/rspamd-3.0
-I/usr/ports/mail/rspamd/work/rspamd-3.0/src
-I/usr/ports/mail/rspamd/work/rspamd-3.0/src/libutil
-I/usr/ports/mail/rspamd/work/rspamd-3.0/src/libserver
-I/usr/ports/mail/rspamd/work/rspamd-3.0/src/libmime
-I/usr/ports/mail/rspamd/work/rspamd-3.0/src/libstat
-I/usr/ports/mail/rspamd/work/rspamd-3.0/src/libcryptobox
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/libucl
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/replxx/include
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/uthash
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/http-parser
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/fpconv
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/libottery
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/xxhash
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/cdb
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/snowball/include
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/librdns
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/aho-corasick
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/lc-btrie
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/lua-lpeg
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/frozen/include
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/fmt/include
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/doctest
-I/usr/ports/mail/rspamd/work/rspamd-3.0/contrib/fu2/include
-I/usr/ports/mail/rspamd/work/.build/src
-I/usr/ports/mail/rspamd/work/.build/src/libcryptobox
-I/usr/local/include/luajit-2.0 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include
-I/usr/ports/mail/rspamd/work/rspamd-3.0/compat -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fdiagnostics-color=always
-O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2
-fomit-frame-pointer -fassociative-math -freciprocal-math
-fno-signed-zeros -ffp-contract=fast -flto=thin -fPIC
-Wno-unused-command-line-argument -DFREEBSD -D_BSD_SOURCE -Wextra -Wall
-Wpointer-arith -Wno-unused-parameter -Wno-unused-function
-Wunused-variable -Wno-strict-aliasing -fno-strict-aliasing
-Wnull-dereference -Wno-unused-const-variable -Wno-sign-compare
-Wno-implicit-fallthrough -Wmissing-noreturn -Wmissing-format-attribute
-fPIC -std=gnu++17 -MD -MT
src/CMakeFiles/rspamd-server.dir/libserver/html/html.cxx.o -MF
src/CMakeFiles/rspamd-server.dir/libserver/html/html.cxx.o.d -o
src/CMakeFiles/rspamd-server.dir/libserver/html/html.cxx.o -c
/usr/ports/mail/rspamd/work/rspamd-3.0/src/libserver/html/html.cxx
/usr/ports/mail/rspamd/work/rspamd-3.0/src/libserver/html/html.cxx:1216:48:
error: non-constant-expression cannot be narrowed from type 'long long' to
'std::__1::basic_string_view::size_type' (aka 'unsigned int') in
initializer list [-Wc++11-narrowing]
{hc->parsed.data() +
initial_dest_offset, written_len},
^~~~~~~~~~~
/usr/ports/mail/rspamd/work/rspamd-3.0/src/libserver/html/html.cxx:1216:48:
note: insert an explicit cast to silence this issue
{hc->parsed.data() +
initial_dest_offset, written_len},
^~~~~~~~~~~
static_cast<size_type>(
)
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/mail/rspamd
*** Error code 1
Stop.
make: stopped in /usr/ports/mail/rspamd
===>>> make build failed for mail/rspamd
===>>> Aborting update
===>>> You can restart from the point of failure with this command line:
portmaster <flags> mail/rspamd
This command has been saved to ~/portmasterfail.txt
More information about the Users
mailing list