メールサーバ(postfix)- Rspamd - トラブルシュート - spamd-4.1.0_1 ビルドエラー


 クラウディア


1. 概要
2. 状況
3. 対策
3. 参考サイト

1. 概要

 発生は、2026年8月5日、「FreeBSD 15.1 RELEASE-p1」上でのことです。

2. 状況

 「perl5.40」を「perl5.44」へアップグレードしまして。  依存する「ports」をアップグレードするときに、「rspamd」も対象だったのであります。

portmaster -r perl5-5.44.0
 が途中で、止まります。

===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped making "/usr/ports/mail/rspamd/work/.build_done.rspamd._usr_local" in /usr/ports/mail/rspamd
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/mail/rspamd

===>>> make build failed for mail/rspamd
===>>> Aborting update

===>>> Update for rspamd-4.1.0_1 failed
===>>> Aborting update

===>>> There are messages from installed ports to display,
       but first take a moment to review the error messages
       above.  Then press Enter when ready to proceed.

===>>> The following actions were performed:
        Re-installation of perl5-5.44.0
        Re-installation of p5-Text-Unidecode-1.30
        Re-installation of p5-Locale-libintl-1.37

		・・・	略	・・・

        Re-installation of p5-XString-0.005
        Re-installation of p5-YAML-Tiny-1.76
        Re-installation of pflogsumm-1.2.1,1

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> mail/rspamd mail/swaks devel/sysconftool textproc/texi2html print/texlive-base print/texlive-tlmgr editors/vim@console www/w3m sysutils/webmin

This command has been saved to ~/portmasterfail.txt
 「rspamd」を単独で、再インストールしようと。

cd /usr/ports/mail/rspamd

make clean

make NO_DIALOG=yes MAKE_JOBS_UNSAFE=yes
 するとこれが。

In file included from /usr/ports/mail/rspamd/work/rspamd-4.1.0/contrib/simdutf/src/simdutf.cpp:4:
In file included from /usr/ports/mail/rspamd/work/rspamd-4.1.0/contrib/simdutf/src/implementation.cpp:26:
In file included from /usr/ports/mail/rspamd/work/rspamd-4.1.0/contrib/simdutf/src/simdutf/haswell.h:57:
/usr/ports/mail/rspamd/work/rspamd-4.1.0/contrib/simdutf/src/simdutf/haswell/bitmanipulation.h:20:1: fatal error: unknown type name 'simdutf_inline'
   20 | simdutf_inline int trailing_zeroes(uint64_t input_num) {
      | ^
2 warnings and 1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped making "/usr/ports/mail/rspamd/work/.stage_done.rspamd._usr_local" in /usr/ports/mail/rspamd
*** Error code 1

Stop.
make: stopped making "all" in /usr/ports/mail/rspamd
 で止まります。  「simdutf」が原因ちゅうので。

/usr/ports/converters/simdutf
 を再インストールするも、現象は、変わらず。

3. 対策


/usr/local/include/simdutf
 が、問題になっているようなので、いったん退避して、「make」します。

mv /usr/local/include/simdutf /usr/local/include/simdutf.bak

cd /usr/ports/mail/rspamd

make clean

make NO_DIALOG=yes MAKE_JOBS_UNSAFE=yes

make reinstall
 うまく再インストールできました。  退避したものを元に戻しておきます。

mv /usr/local/include/simdutf.bak /usr/local/include/simdutf

3. 参考サイト

 本ページは、「Gemini」伍長を参考にさせていただきました。

audiobook.jp
Amazonギフトカード
それがだいじWi-Fi
JETBOY
サウンドハウス
ベルリッツ
earthcar(アースカー)
5G CONNECT
ハイスピードプラン
TikTok Shop 【リピート用プログラム】
葬送のフリーレン Prime Video
ネットオークションの相場、統計、価格比較といえばオークファン
薬屋の独り言
健康サポート特集
U-NEXT
EaseUS
アフィリエイトのアクセストレード
【usus ウズウズ】
損保との違い