Public bug reported: This could be a bug in the underlying toolchain or Perl libraries.
The host in question has been updated from Ubuntu 12.04 LTS → 14.04 LTS → 16.04 LTS. root@bnesecrf0:~# sa-compile Feb 15 08:52:01.090 [1364] info: generic: base extraction starting. this can take a while... Feb 15 08:52:01.090 [1364] info: generic: extracting from rules of type body_0 100% [===============================================================================================] 9213.60 rules/sec 00m00s DONE 100% [===============================================================================================] 1166.48 bases/sec 00m02s DONE Feb 15 08:52:03.255 [1364] info: body_0: 1168 base strings extracted in 2 seconds cd /tmp/.spamassassin1364iPK7zxtmp reading bases_body_0.in cd Mail-SpamAssassin-CompiledRegexps-body_0 re2c -i -b -o scanner1.c scanner1.re re2c -i -b -o scanner2.c scanner2.re re2c -i -b -o scanner3.c scanner3.re re2c -i -b -o scanner4.c scanner4.re re2c -i -b -o scanner5.c scanner5.re re2c -i -b -o scanner6.c scanner6.re /usr/bin/perl Makefile.PL PREFIX=/tmp/.spamassassin1364iPK7zxtmp/ignored INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.022/3.004002 Generating a Unix-style Makefile Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0 Writing MYMETA.yml and MYMETA.json make PREFIX=/tmp/.spamassassin1364iPK7zxtmp/ignored INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.022/3.004002 cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm Running Mkbootstrap for Mail::SpamAssassin::CompiledRegexps::body_0 () chmod 644 "body_0.bs" "/usr/bin/perl" "/usr/share/perl/5.22/ExtUtils/xsubpp" -typemap "/usr/share/perl/5.22/ExtUtils/typemap" body_0.xs > body_0.xsc && mv body_0.xsc body_0.c x86_64-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE" body_0.c In file included from body_0.xs:2:0: /usr/lib/x86_64-linux-gnu/perl/5.22/CORE/perl.h:701:23: fatal error: sys/types.h: No such file or directory compilation terminated. Makefile:345: recipe for target 'body_0.o' failed make: *** [body_0.o] Error 1 command failed: exit 2 root@bnesecrf0:~# dpkg -S /usr/include/sys/types.h libc6-dev-i386: /usr/include/sys/types.h root@bnesecrf0:~# dpkg -S /usr/lib/x86_64-linux-gnu/perl/5.22 libperl5.22:amd64: /usr/lib/x86_64-linux-gnu/perl/5.22 root@bnesecrf0:~# dpkg -l libc6-dev-i386 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================-=========================================================== ii libc6-dev-i386 2.23-0ubuntu10 amd64 GNU C Library: 32-bit development libraries for AMD64 root@bnesecrf0:~# dpkg -l libperl5.22:amd64 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================-=========================================================== ii libperl5.22:amd64 5.22.1-9ubuntu0.6 amd64 shared Perl library root@bnesecrf0:~# dpkg -l sa-compile Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================-=========================================================== iF sa-compile 3.4.2-0ubuntu0.16. all Tools for compiling SpamAssassin rules into C The F in dpkg output here is because dpkg-configure fails to successfully run `sa-compile` for the same reason. Something, it would seem, is wrong with the C preprocessor include path at the time when ExtUtils::xsubpp invokes gcc. To the best of my knowledge, there are no locally installed Perl modules on this server (a scan of /usr/local shows no perl modules there). ** Affects: spamassassin (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1815978 Title: sa-compile broken on 16.04 LTS AMD64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/spamassassin/+bug/1815978/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs