[Rspamd-Users] Error building rspamd 3.0.1

Jeroen de Meijer rspamd at filter.demeijer.com
Sat Nov 6 18:43:29 UTC 2021


Sadly, another error....

FAILED: src/CMakeFiles/rspamd-server.dir/libcryptobox/chacha20/avx2.S.o
/usr/local/libexec/ccache/cc -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.1/contrib/hiredis
-I/usr/ports/mail/rspamd/work/rspamd-3.1
-I/usr/ports/mail/rspamd/work/rspamd-3.1/src
-I/usr/ports/mail/rspamd/work/rspamd-3.1/src/libutil
-I/usr/ports/mail/rspamd/work/rspamd-3.1/src/libserver
-I/usr/ports/mail/rspamd/work/rspamd-3.1/src/libmime
-I/usr/ports/mail/rspamd/work/rspamd-3.1/src/libstat
-I/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/libucl
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/replxx/include
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/uthash
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/http-parser
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/fpconv
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/libottery
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/xxhash
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/cdb
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/snowball/include
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/librdns
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/aho-corasick
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/lc-btrie
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/lua-lpeg
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/frozen/include
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/fu2/include
-I/usr/ports/mail/rspamd/work/.build/src
-I/usr/ports/mail/rspamd/work/.build/src/libcryptobox -I/usr/include
-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.1/contrib/fmt/include
-I/usr/ports/mail/rspamd/work/rspamd-3.1/contrib/doctest -O3 -DNDEBUG
-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 -MD -MT
src/CMakeFiles/rspamd-server.dir/libcryptobox/chacha20/avx2.S.o -MF
src/CMakeFiles/rspamd-server.dir/libcryptobox/chacha20/avx2.S.o.d -o
src/CMakeFiles/rspamd-server.dir/libcryptobox/chacha20/avx2.S.o -c
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:7:7:
error: register %rbx is only available in 64-bit mode
pushq %rbx
      ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:8:7:
error: register %rbp is only available in 64-bit mode
pushq %rbp
      ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:9:7:
error: register %r12 is only available in 64-bit mode
pushq %r12
      ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:10:7:
error: register %r13 is only available in 64-bit mode
pushq %r13
      ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:11:7:
error: register %r14 is only available in 64-bit mode
pushq %r14
      ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:12:6:
error: register %rsp is only available in 64-bit mode
movq %rsp, %rbp
     ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:13:12:
error: register %rsp is only available in 64-bit mode
andq $~63, %rsp
           ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:14:12:
error: register %rsp is only available in 64-bit mode
subq $512, %rsp
           ^~~~
<instantiation>:5:8: error: register %rax is only available in 64-bit mode
  popl %rax
       ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:15:1:
note: while in macro instantiation
LOAD_VAR_PIC chacha_constants, %rax
^
<instantiation>:6:30: error: register %rax is only available in 64-bit mode
  leal chacha_constants - 1b(%rax), %rax
                             ^~~~
/usr/ports/mail/rspamd/work/rspamd-3.1/src/libcryptobox/chacha20/avx2.S:15:1:
note: while in macro instantiation
LOAD_VAR_PIC chacha_constants, %rax
^
/tmp/avx2-9c66e0.s:144:11: error: register %rax is only available in
64-bit mode
vmovdqa 0(%rax), %xmm8
          ^~~~

And the last error repeats a few hunderd times with different values.

I'll go back to 2.7


>>> On 03/11/2021 07:02, Jeroen de Meijer via Users wrote:
>>>> 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:
>>>
>>> This issue is related to 32bit x86 systems and it should be fixed in
>>> Rspamd 3.1 release (it is published in the ports as well).
>>
>> Ah, good to know. Didn't see anything in /usr/ports/UPDATING. Where did
>> I
>> forget to look?
>> I'll try to install the old version.
>
>
> Ah, you ment 3.1 is already in the ports tree. Found it, and installing
> now :).
>




More information about the Users mailing list