I've spent the last week trying to rebuild Dovecot on my Raspberry Pi 3 
(aarch64; running Slackware ARM -current) and am running into the following 
build error. I suspected it may be my recent update to Slackware but I've been 
able to build the same source tarball on an x86 system running 
slackware64-current without any problems, so it *seems* specific to aarch64.

I've tried both building from the 2.3.21 (and 2.3.21.1) tarball(s) as well as 
pulling the latest code from github and they all fail similarly, though in 
different spots it appears.

I am building from source instead of using the available Slackware packages bc 
those packages don't have support for postgresql built in, but has 
mysql/mariadb support, which I am not using and is not installed on my systems. 
While it does run, when I try to connect to it, it fails citing a missing 
mariadb.so file.

gcc -v output:
Reading specs from /usr/lib64/gcc/aarch64-slackware-linux-gnu/14.2.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-slackware-linux-gnu/14.2.0/lto-wrapper
Target: aarch64-slackware-linux-gnu
Configured with: ../configure --with-arch=armv8-a --verbose --prefix=/usr 
--mandir=/usr/man --infodir=/usr/info --libdir=/usr/lib64 --enable-bootstrap 
--enable-checking=release --enable-libstdcxx-dual-abi --enable-shared 
--enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust 
--enable-objc-gc --enable-threads=posix --enable-__cxa_atexit 
--enable-gnu-unique-object --enable-clocale=gnu --enable-plugin --enable-lto 
--with-arch-directory= --with-system-zlib --with-gnu-ld --with-isl 
--with-default-libstdcxx-abi=new --disable-libunwind-exceptions 
--disable-libstdcxx-pch --disable-libssp --disable-werror --disable-gtktest 
--disable-install-libiberty --host=aarch64-slackware-linux-gnu 
--build=aarch64-slackware-linux-gnu --target=aarch64-slackware-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.0 (GCC) 

ldd --version output:
ldd (GNU libc) 2.40
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Configure is: 
./configure \
        --with-pgsql \
        --localstatedir=/var \
        --with-lucene \
        --with-libcap \
        --with-inotify=inotify \
        --disable-static \
        --build=$ARCH-slackware-linux || exit 1

And the output at the point of failure is:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/lib 
-I../../../../src/lib-test -I../../../../src/lib-settings 
-I../../../../src/lib-mail -I../../../../src/lib-imap 
-I../../../../src/lib-imap-client -I../../../../src/lib-index 
-I../../../../src/lib-storage -I../../../../src/lib-storage/list 
-I../../../../src/lib-storage/index -I../../../../src/lib-ssl-iostream 
-std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations 
-Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast 
-fno-builtin-strftime -Wstrict-aliasing=2 -MT imapc-sync.lo -MD -MP -MF 
.deps/imapc-sync.Tpo -c imapc-sync.c  -fPIC -DPIC -o .libs/imapc-sync.o
free(): double free detected in tcache 2
during GIMPLE pass: slp
imapc-sync.c: In function ‘imapc_initial_sync_check’:
imapc-sync.c:294:1: internal compiler error: Aborted
  294 | imapc_initial_sync_check(struct imapc_sync_context *ctx, bool nooped)
      | ^~~~~~~~~~~~~~~~~~~~~~~~
0x1b4a3df internal_error(char const*, ...)
        ???:0
0x7f80a139fc pthread_kill@@GLIBC_2.34
        ???:0
0x7f809c419b gsignal
        ???:0
0x7f809abfa7 abort
        ???:0
0x7f80a06943 __libc_message_impl
        ???:0
0x7f80a1e2c7 malloc_printerr
        ???:0
0x7f80a2053b _int_free
        ???:0
0x7f80a22b7f __free
        ???:0
0xfa35d7 _slp_tree::~_slp_tree()
        ???:0
0xfa3aa7 vect_free_slp_instance(_slp_instance*)
        ???:0
0xfb9a7f vect_slp_analyze_operations(vec_info*)
        ???:0
0xfc06a7 vect_slp_function(function*)
        ???:0
Please submit a full bug report, with preprocessed source (by using 
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[5]: *** [Makefile:597: imapc-sync.lo] Error 1
make[5]: Leaving directory 
'/data/local/src/Dovecot/dovecot-2.3.21/src/lib-storage/index/imapc'
make[4]: *** [Makefile:733: all-recursive] Error 1
make[4]: Leaving directory 
'/data/local/src/Dovecot/dovecot-2.3.21/src/lib-storage/index'
make[3]: *** [Makefile:1107: all-recursive] Error 1
make[3]: Leaving directory 
'/data/local/src/Dovecot/dovecot-2.3.21/src/lib-storage'
make[2]: *** [Makefile:573: all-recursive] Error 1
make[2]: Leaving directory '/data/local/src/Dovecot/dovecot-2.3.21/src'
make[1]: *** [Makefile:704: all-recursive] Error 1
make[1]: Leaving directory '/data/local/src/Dovecot/dovecot-2.3.21'
make: *** [Makefile:548: all] Error 2

Can someone please help me figure this out? If more output is required let me 
know and I can provide it.

Thank You!
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to