Created attachment 387370 [details] build.log Using the following directories for the LOCKINGTESTs: /tmp . Initiating fcntl()/kernel-locking-support tests Whoeaaa! There's something fishy going on here. You have a look and see if you detect anything uncanny: ******************************************************* make[2]: Entering directory '/home/tmp/portage/mail-filter/procmail-3.22-r10/work/procmail-3.22/src' clang -c -O2 -march=core2 -mtune=core2 -msse4.1 -msse4.2 -pipe -fno-inline-functions -fno-ipa-cp-clone _autotst.c x86_64-pc-linux-gnu-clang-3.5.0: error: unknown argument: '-fno-ipa-cp-clone' Makefile:240: recipe for target '_autotst.o' failed make[2]: *** [_autotst.o] Error 1 make[2]: Leaving directory '/home/tmp/portage/mail-filter/procmail-3.22-r10/work/procmail-3.22/src' ******************************************************* I suggest you take a look at the definition of CFLAGS* and CC in the Makefile before you try make again. Makefile:124: recipe for target '../autoconf.h' failed make[1]: *** [../autoconf.h] Error 1
Created attachment 387372 [details] emerge --info
Created attachment 393638 [details, diff] Add case statement to procmail ebuild for clang compliance Attached is a patch that fixes the issue. The patch introduces a "case" switch for the procmail ebuild in order to support compilation with clang. As can be seen, the append-flags statement for clang appends only -fno-inline-functions, as I couldn't trace back the original report and can't run procmail on my system to actually test it (no configuration). -fno-ipa-cp-clone gets dropped for clang, as it's a GCC-specific flag. The package compiles and tests fine with both GCC (4.8.4) and clang (3.5.0).
Sent a PR: https://github.com/gentoo/gentoo/pull/1583
Robbin/Mgorny, please review/ack/merge https://github.com/gentoo/gentoo/pull/1583
<hat project="net-mail@gentoo.org"> Why did you drop FAQ & README from dodoc? Please re-add them, then you can merge your PR yourself. </hat>
(In reply to Robin Johnson from comment #5) > <hat project="net-mail@gentoo.org"> > Why did you drop FAQ & README from dodoc? > Please re-add them, then you can merge your PR yourself. > </hat> Misreading of what eapi6 changes were, my mistake. Fixed by https://github.com/gentoo/gentoo/commit/e3fefa967b840fb928c2cf21930bcf50ea62d713