Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917643 - mail-filter/rspamd-3.7.4 fails to compile with musl and clang
Summary: mail-filter/rspamd-3.7.4 fails to compile with musl and clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Petr Vaněk
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-11-20 19:46 UTC by Rin Cat
Modified: 2023-11-22 11:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rin Cat 2023-11-20 19:46:21 UTC
Common error that <execinfo.h> not exists in such musl+clang system.

[66/281] /usr/lib/llvm/16/bin/clang++ -DBACKWARD_HAS_BACKTRACE=0 -DBACKWARD_HAS_BACKTRACE_SYMBOL=0 -DBACKWARD_HAS_BFD=0 -DBACKWARD_HAS_DW=0 -DBACKWARD_HAS_DWARF=0 -DBACKWARD_HAS_LIBUNWIND=0 -DBACKWARD_HAS_UNWIND=1 -DDOCTEST_CONFIG_NO_MULTI_LANE_ATOMICS -DDOCTEST_CONFIG_USE_STD_HEADERS -DFMT_HEADER_ONLY -DHAVE_CONFIG_H -DSYS_ZSTD -DU_CHARSET_IS_UTF8 -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/hiredis -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4 -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libutil -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libserver -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libmime -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libstat -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libcryptobox -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/libucl -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/replxx/include -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/uthash -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/http-parser -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/fpconv -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/libottery -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/cdb -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/librdns -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/aho-corasick -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/lc-btrie -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/lua-lpeg -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/frozen/include -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/fu2/include -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4_build/src -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4_build/src/libcryptobox -I/usr/include/lua5.1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/hs -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/backward-cpp  -O2 -pipe -Wall -Wextra -pedantic-errors -g -std=gnu++11 -msse2 -m64 -D_GNU_SOURCE -DLINUX -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 -Wno-deprecated-declarations -fPIC -MD -MT contrib/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o -MF contrib/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o.d -o contrib/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o -c /var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/backward-cpp/backward.cpp
FAILED: contrib/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o
/usr/lib/llvm/16/bin/clang++ -DBACKWARD_HAS_BACKTRACE=0 -DBACKWARD_HAS_BACKTRACE_SYMBOL=0 -DBACKWARD_HAS_BFD=0 -DBACKWARD_HAS_DW=0 -DBACKWARD_HAS_DWARF=0 -DBACKWARD_HAS_LIBUNWIND=0 -DBACKWARD_HAS_UNWIND=1 -DDOCTEST_CONFIG_NO_MULTI_LANE_ATOMICS -DDOCTEST_CONFIG_USE_STD_HEADERS -DFMT_HEADER_ONLY -DHAVE_CONFIG_H -DSYS_ZSTD -DU_CHARSET_IS_UTF8 -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/hiredis -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4 -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libutil -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libserver -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libmime -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libstat -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/src/libcryptobox -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/libucl -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/replxx/include -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/uthash -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/http-parser -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/fpconv -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/libottery -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/cdb -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/librdns -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/aho-corasick -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/lc-btrie -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/lua-lpeg -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/frozen/include -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/fu2/include -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4_build/src -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4_build/src/libcryptobox -I/usr/include/lua5.1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/hs -I/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/backward-cpp  -O2 -pipe -Wall -Wextra -pedantic-errors -g -std=gnu++11 -msse2 -m64 -D_GNU_SOURCE -DLINUX -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 -Wno-deprecated-declarations -fPIC -MD -MT contrib/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o -MF contrib/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o.d -o contrib/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o -c /var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/backward-cpp/backward.cpp
In file included from /var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/backward-cpp/backward.cpp:36:
/var/tmp/portage/mail-filter/rspamd-3.7.4/work/rspamd-3.7.4/contrib/backward-cpp/backward.hpp:261:10: fatal error: 'execinfo.h' file not found
#include <execinfo.h>
         ^~~~~~~~~~~~
1 error generated.

Reproducible: Always




Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.0/musl/clang, gcc-13, musl-1.2.3-r7, 6.1.55-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.55-x86_64-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-libc
KiB Mem:    65737132 total,  35153248 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 18 Nov 2023 13:30:01 +0000
Head commit of repository gentoo: 0e1de47b7638be1dc913c291d7d147a839c7a21b
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/musl:             1.2.3-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-gentoo-linux-musl"
CC="clang"
CFLAGS="-O2 -pipe"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="-k --quiet-build=y --jobs 2 --load-average 2"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-request-signature buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="C.UTF8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
SHELL="/bin/zsh"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="acl amd64 apparmor bzip2 cet clang cli crypt device-mapper dri fortran gmp hardened http2 iconv initramfs ipv6 libtirpc llvm llvm-libunwind lto ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp system-llvm test-rust threads udev unicode vim-syntax xattr xtpax zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS, SIZE, YACC, YFLAGS
Comment 1 Larry the Git Cow gentoo-dev 2023-11-22 11:38:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc601d53907c786e9db7250f5cacbaf8d977af47

commit dc601d53907c786e9db7250f5cacbaf8d977af47
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2023-11-20 21:14:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-11-22 11:32:31 +0000

    mail-filter/rspamd: enable Backward for glibc only
    
    Enabling Backward for glibc only solves the problem for other libcs like
    musl, which does not provide execinfo.h.
    
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://bugs.gentoo.org/917643
    Closes: https://github.com/gentoo/gentoo/pull/33925
    Signed-off-by: Sam James <sam@gentoo.org>

 mail-filter/rspamd/rspamd-3.7.4.ebuild | 3 +++
 1 file changed, 3 insertions(+)