You are not logged in.

#1 2022-06-15 14:19:36

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 354

procmail benchmarking takes too long

I am trying to install 'procmail' but it's kind of stuck on benchmarking - running for 75+ min.
Is this the way it should be?

==> Starting build()...
/bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
 "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \
 "/lib /usr/lib /usr/local/lib" \
 /dev/null "make" o \
 "cc" "-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now " "-s  " "procmail lockfile formail mailstat" \
 "procmail formail lockfile" \
 "procmailrc procmailsc procmailex" "src man" \
 "/usr/bin" \
 "strip"
cc seems to work fine, using that as the C-compiler
	...scanning for 13 libraries...
Added LDFLAGS= -lm -lnet -lnsl -ldl -lc
cd src; make ../autoconf.h
make[1]: Entering directory '/tmp/trizen-vb/procmail/src/procmail-3.22/src'
/bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \
 "grep -F" "make" o "/tmp ." \
 "/usr/bin" ../autoconf.h
Using the following directories for the LOCKINGTESTs:
  /tmp . 
Initiating fcntl()/kernel-locking-support tests

Proceeding with kernel-locking-support tests in the background
Testing for const
Testing for volatile
Testing for prototypes
Testing for enum
Checking for POSIX and ANSI/ISO system include files
Checking for network/comsat/biff support
Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t
Checking realloc implementation
Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()
Testing for various struct passwd members
Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
	rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
	ftruncate, strtod, strncasecmp, strerror, strlcat,
	memset, bzero, and _exit
Determining the maximum number of 16 byte arguments execv() takes
Benchmarking your system's strstr() implementation

Offline

#2 2022-06-15 15:23:09

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,294
Website

Re: procmail benchmarking takes too long

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2022-06-15 19:56:39

loqs
Member
Registered: 2014-03-06
Posts: 16,565

Re: procmail benchmarking takes too long

Something seems to have got stuck.  build() on this system

/bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
 "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \
 "/lib /usr/lib /usr/local/lib" \
 /dev/null "make" o \
 "cc" "-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto " "-s  " "procmail lockfile formail mailstat" \
 "procmail formail lockfile" \
 "procmailrc procmailsc procmailex" "src man" \
 "/usr/bin" \
 "strip"
cc seems to work fine, using that as the C-compiler
	...scanning for 13 libraries...
Added LDFLAGS= -lm -lnsl -ldl -lc
cd src; make ../autoconf.h
echo Housekeeping file >config.check
make[1]: Entering directory '/build/procmail/src/procmail-3.22/src'
/bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \
 "grep -F" "make" o "/tmp ." \
 "/usr/bin" ../autoconf.h
Using the following directories for the LOCKINGTESTs:
  /tmp . 
Initiating fcntl()/kernel-locking-support tests

Proceeding with kernel-locking-support tests in the background
Testing for const
Testing for volatile
Testing for prototypes
Testing for enum
Checking for POSIX and ANSI/ISO system include files
Checking for network/comsat/biff support
Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t
Checking realloc implementation
Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()
Testing for various struct passwd members
Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
	rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
	ftruncate, strtod, strncasecmp, strerror, strlcat,
	memset, bzero, and _exit
Determining the maximum number of 16 byte arguments execv() takes
Benchmarking your system's strstr() implementation
Waiting for the kernel-locking tests to finish...
Every two digits a file is locked.  First digit: which file, second digit:
which program, XX indicates a lock conflict or failure

Starting test 4 on /tmp/_locktest
 02 17 01 16 00 16 07 16 00 16 00 15 00 15 00 15 06 15 06 14 06 14 05 14 05 13 05 13 04 13 04 12 03 11 03 17 02 10 01 16 07 16 00 15 15 14 04 13 14 03 04 13 03 12 02 11 01 17 11 07 17 07 11 07 11
Starting test 4 on ./_locktest
 17 05 17 04 17 03 16 02 11 07 10 01 15 01 14 00 14 00 14 14 14 14 04 13 14 03 03 16 12 02 17 02 17 15 07 15 07 15 07 15 15 05 11 15 01 01 10 01 16 00 13 00 12 00 11 06 11 03 10 02 10 16 16 06 13
Starting test 6 on /tmp/_locktest
 07 15 06 15 05 14 13 03 12 03 11 03 10 02 17 01 16 01 15 00 15 00 14 02 13 02 17 05 16 05 11 05 10 04 10 07 10 06 10 10 10 13 03 12 11 15 14 14 04 17 04 16 06 13 03 12 11 02 11 04 11 07 17 07 14
Starting test 6 on ./_locktest
 01 17 01 16 00 16 01 15 00 14 00 14 00 13 01 12 04 17 03 17 03 16 02 15 02 10 07 11 07 14 06 13 06 12 05 17 00 17 01 16 04 16 03 15 02 10 07 11 06 14 05 13 00 13 00 12 01 12 01 17 04 16 04 15 04
Starting test 7 on /tmp/_locktest
 17 05 17 04 16 03 11 02 10 02 15 02 14 07 16 07 12 03 17 01 11 00 01 10 00 00 10 01 00 11 00 00 05 15 04 05 14 04 04 14 05 15 04 04 06 06 16 02 06 12 02 02 12 06 16 03 16 07 13 01 01 01 05 05 07
Starting test 7 on ./_locktest
 13 07 12 06 16 02 06 11 02 10 05 17 04 16 03 16 12 01 00 15 05 14 05 11 15 01 11 04 15 04 07 15 15 06 16 03 16 01 15 06 12 12 02 17 12 02 10 17 00 10 07 00 14 14 14 14 14 10 00 13 13 13 03 11 13


Collecting results from kernel-locking tests
=============================autoconf.h===================================
/* This file was automagically generated by autoconf */

/* 5 moves in 64 steps of size 16384 when reallocing */
#define NOpw_passwd
#define NOpw_class
#define NOpw_gecos
#define NOstrlcat
#define NOsetrgid
#define GOT_bin_test
#define MAX_argc 83765
/* Your system's strstr() is 1375.00 times FASTER than my C-routine */
#define UDP_protocolno 17
#define BIFF_serviceport "512"
#define IP_localhost {127,0,0,1}
#define setrgid_RUNTIME_CHECK
#define MAILSPOOLDIR "/var/spool/mail/"
#define SENDMAIL "/usr/sbin/sendmail"
#define CF_no_procmail_yet
#define buggy_SENDMAIL
#define defPATH "PATH=$HOME/bin:/bin:/usr/local/bin"
#define defSPATH "PATH=/bin:/usr/local/bin"
#define PM_VERSION "3.22"
/*locktype: 4, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
/*locktype: 4, countlocks: 0, timeout 0, watchdog 8, ./_locktest*/
/*locktype: 6, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
/*locktype: 6, countlocks: 0, timeout 0, watchdog 8, ./_locktest*/
/*locktype: 7, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
/*locktype: 7, countlocks: 0, timeout 0, watchdog 8, ./_locktest*/
/* Hotwire LOCKINGTEST=111 */
/* Procmail will lock via: dotlocking, fcntl(), lockf(), flock() */
#define USElockf
#define USEflock
/* autoconf completed */
==========================================================================
make[1]: Leaving directory '/build/procmail/src/procmail-3.22/src'
cd src; make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat
cd man; make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5
make[1]: Entering directory '/build/procmail/src/procmail-3.22/src'
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  sublib.c
make[1]: Entering directory '/build/procmail/src/procmail-3.22/man'
make[1]: Entering directory '/build/procmail/src/procmail-3.22/src'
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  procmail.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  cstdio.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  common.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  exopen.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  goodies.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  locking.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  mailfold.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  foldinfo.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  misc.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  pipes.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  regexp.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  robust.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  sublib.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  acommon.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  mcommon.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  lastdirsep.c
cc -c -DPROCMAIL -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  authenticate.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  lmtp.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  memblk.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  variables.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  from.c
make[2]: Entering directory '/build/procmail/src/procmail-3.22/src'
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  comsat.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  lockfile.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  formail.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  fields.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  formisc.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  ecommon.c
cp ../examples/mailstat mailstat
ln ../src/mailstat ../new/mailstat
locking.c: In function ‘lockit’:
locking.c:103:6: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  103 |      setegid(gid);                    /* we put back our regular permissions */
      |      ^~~~~~~~~~~~
locking.c: In function ‘unlock’:
locking.c:136:9: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  136 |         setegid(sgid);                 /* try and get some extra permissions */
      |         ^~~~~~~~~~~~~
locking.c:141:9: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  141 |         setegid(gid);                 /* we put back our regular permissions */
      |         ^~~~~~~~~~~~
locking.c: In function ‘fdlock’:
locking.c:221:9: warning: ignoring return value of ‘lockf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  221 |       { lockf(fd,F_ULOCK,(off_t)0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
exopen.c: In function ‘unique’:
exopen.c:116:6: warning: ignoring return value of ‘nice’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  116 |      nice(nicediff);               /* put back the priority to the old level */
      |      ^~~~~~~~~~~~~~
mailfold.c: In function ‘readmail’:
mailfold.c:374:6: warning: type of ‘rhead’ defaults to ‘int’ [-Wimplicit-int]
  374 | void readmail(rhead,tobesent)const long tobesent;
      |      ^~~~~~~~
foldinfo.c: In function ‘rnmbogus’:
foldinfo.c:60:12: warning: implicit declaration of function ‘ultoan’ [-Wimplicit-function-declaration]
   60 |   *p++='.';ultoan((unsigned long)stbuf->st_ino,p);        /* i-node numbered */
      |            ^~~~~~
In file included from procmail.h:3,
                 from misc.c:13:
misc.c: In function ‘setids’:
lockfile.c: In function ‘elog’:
includes.h:376:25: warning: ignoring return value of ‘setreuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  376 | #define setruid(uid)    setreuid(uid,-1)
      |                         ^~~~~~~~~~~~~~~~
misc.c:99:6: note: in expansion of macro ‘setruid’
   99 |      setruid(uid);
      |      ^~~~~~~
misc.c:102:6: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  102 |      setegid(gid);
      |      ^~~~~~~~~~~~
lockfile.c:54:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   54 | { write(STDERR,a,strlen(a));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
procmail.c: In function ‘main’:
procmail.c:498:9: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  498 |         setuid(uid);                       /* make sure we have enough space */
      |         ^~~~~~~~~~~
manconf.c: In function ‘pname’:
manconf.c:77:52: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   77 |    { sprintf(filebuf,"%s.%04d",*gargv,filecount++);freopen(filebuf,"w",stdout);
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
formisc.c: In function ‘startprog’:
formisc.c:162:3: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  162 |   dup(oldstdout);
      |   ^~~~~~~~~~~~~~
formisc.c:175:6: warning: ignoring return value of ‘pipe’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  175 |      pipe(poutfd);
      |      ^~~~~~~~~~~~
formisc.c:194:51: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  194 |       { close(STDIN);close(oldstdout);close(PWRO);dup(PRDO);close(PRDO);
      |                                                   ^~~~~~~~~
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  lockfile.o exopen.o sublib.o acommon.o mcommon.o authenticate.o lastdirsep.o -o lockfile -s   -lm -lnsl -ldl -lc
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  formail.o common.o fields.o formisc.o sublib.o ecommon.o acommon.o -o formail -s   -lm -lnsl -ldl -lc
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  procmail.o cstdio.o common.o exopen.o goodies.o locking.o mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o lmtp.o memblk.o variables.o from.o comsat.o -o procmail -s   -lm -lnsl -ldl -lc
make[1]: Leaving directory '/build/procmail/src/procmail-3.22/src'
===============================================================================
If you are a system administrator you should consider integrating procmail
into the mail-delivery system -- for advanced functionality, speed AND
SECURITY --.  For more information about this topic you should look in the
examples/advanced file.

Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it):

chown root /usr/bin/procmail
chmod 4755 /usr/bin/procmail
===============================================================================
foldinfo.c:60:12: warning: type of ‘ultoan’ does not match original declaration [-Wlto-type-mismatch]
   60 |   *p++='.';ultoan((unsigned long)stbuf->st_ino,p);        /* i-node numbered */
      |            ^
acommon.c:40:6: note: return value type mismatch
   40 | char*ultoan(val,dest)unsigned long val;char*dest;     /* convert to a number */
      |      ^
acommon.c:40:6: note: ‘ultoan’ was previously declared here
acommon.c:40:6: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
make[2]: Leaving directory '/build/procmail/src/procmail-3.22/src'
/bin/sh ./mansed /bin/sh procmail.man procmail.1 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh formail.man formail.1 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh lockfile.man lockfile.1 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh procmailrc.man procmailrc.5 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh procmailsc.man procmailsc.5 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh procmailex.man procmailex.5 "/bin/rm -f" /dev/null
ln ../man/procmailsc.5 ../new/procmailsc.5
ln ../man/lockfile.1 ../new/lockfile.1
ln ../man/procmailex.5 ../new/procmailex.5
ln ../man/formail.1 ../new/formail.1
ln ../man/procmailrc.5 ../new/procmailrc.5
ln ../man/procmail.1 ../new/procmail.1
make[1]: Leaving directory '/build/procmail/src/procmail-3.22/man'
ln ../src/lockfile ../new/lockfile
ln ../src/formail ../new/formail
ln ../src/procmail ../new/procmail
make[1]: Leaving directory '/build/procmail/src/procmail-3.22/src'
If you would like to inspect the results before running make install:
All installable files can be found in the new/ subdirectory.

Try adding -j1 to the make call.  If that does not work check the output of pstree to find which process is stuck.

Online

#4 2022-06-16 08:48:39

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 354

Re: procmail benchmarking takes too long

'makepkg -si'
'pstree' output

  ├─bash───makepkg─┬─make───make───sh───_autotst
        │                                               │             │            │                └─yes

'makepkg -si j1'
'pstree' output

 ├─bash───makepkg─┬─make───make───sh───_autotst
        │                                               │             │            │                └─yes

both commands reach the same point

Benchmarking your system's strstr() implementation

and cannot proceed further

but in your output you have

Benchmarking your system's strstr() implementation
Waiting for the kernel-locking tests to finish...

for the record

uname -a
Linux G0 5.11.1-1-ck-ivybridge #1 SMP PREEMPT Tue, 23 Feb 2021 17:55:33 +0000 x86_64 GNU/Linux

Offline

#5 2022-06-21 23:47:09

loqs
Member
Registered: 2014-03-06
Posts: 16,565

Re: procmail benchmarking takes too long

If you use extra-x86_64-build from devtools instead of makepkg is the result the same?

Online

#6 2022-06-22 14:54:14

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 354

Re: procmail benchmarking takes too long

I am not familiar with this command. I installed 'devtools' but this is unknown teritory for me.
Did some goooogling but it did not help. I don't know how to proceed.

Offline

#7 2022-06-22 16:50:50

loqs
Member
Registered: 2014-03-06
Posts: 16,565

Re: procmail benchmarking takes too long

$ git clone https://aur.archlinux.org/procmail.git
Cloning into 'procmail'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 7 (delta 0), pack-reused 0
Receiving objects: 100% (7/7), done.
$ cd procmail/
$ extra-x86_64-build 
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (1)     Old Version  New Version  Net Change

core/e2fsprogs  1.46.5-3     1.46.5-4       0.00 MiB

Total Installed Size:  4.92 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 e2fsprogs-1.46.5-4-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
upgrading e2fsprogs...
New optional dependencies for e2fsprogs
    lvm2: for e2scrub
    smtp-forwarder: for e2scrub_fail script
    util-linux: for e2scrub [installed]
:: Running post-transaction hooks...
(1/1) Updating the info directory file...
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [builduser]...done
==> Making package: procmail 3.22-10 (Wed Jun 22 16:43:52 2022)
==> Retrieving sources...
  -> Downloading procmail-3.22.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  221k  100  221k    0     0   180k      0  0:00:01  0:00:01 --:--:--  180k
  -> Found procmail-3.22-getline.patch
  -> Found formisc.c.patch
  -> Found fix_memory_allocation_bug.diff
==> Validating source files with sha256sums...
    procmail-3.22.tar.gz ... Passed
    procmail-3.22-getline.patch ... Passed
    formisc.c.patch ... Passed
    fix_memory_allocation_bug.diff ... Passed
==> Making package: procmail 3.22-10 (Wed Jun 22 16:43:55 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
:: There are 3 providers available for smtp-server:
:: Repository extra
   1) postfix
:: Repository community
   2) exim  3) opensmtpd

Enter a number (default=1): 
resolving dependencies...
looking for conflicting packages...

Package (2)    New Version  Net Change  Download Size

core/libnsl    2.0.0-2        0.07 MiB               
extra/postfix  3.7.2-1        4.40 MiB       1.34 MiB

Total Download Size:   1.34 MiB
Total Installed Size:  4.47 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 postfix-3.7.2-1-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libnsl...
installing postfix...
Optional dependencies for postfix
    perl: for postfix-collate.pl, postfix-tlstype.pl and qshape [installed]
    postfix-cdb: for CDB integration
    postfix-ldap: for LDAP integration
    postfix-lmdb: for LMDB integration
    postfix-mysql: for MySQL integration
    postfix-pcre: for PCRE integration
    postfix-pgsql: for PostgreSQL integration
    postfix-sqlite: for SQLite integration
==> Retrieving sources...
  -> Found procmail-3.22.tar.gz
  -> Found procmail-3.22-getline.patch
  -> Found formisc.c.patch
  -> Found fix_memory_allocation_bug.diff
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting procmail-3.22.tar.gz with bsdtar
==> Starting prepare()...
patching file src/fields.c
patching file src/formail.c
patching file src/formisc.c
patching file src/formisc.h
patching file src/formisc.c
Hunk #1 succeeded at 104 (offset 1 line).
patching file src/pipes.c
==> Starting build()...
/bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
 "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \
 "/lib /usr/lib /usr/local/lib" \
 /dev/null "make" o \
 "cc" "-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto " "-s  " "procmail lockfile formail mailstat" \
 "procmail formail lockfile" \
 "procmailrc procmailsc procmailex" "src man" \
 "/usr/bin" \
 "strip"
cc seems to work fine, using that as the C-compiler
	...scanning for 13 libraries...
Added LDFLAGS= -lm -lnsl -ldl -lc
cd src; make ../autoconf.h
echo Housekeeping file >config.check
make[1]: Entering directory '/build/procmail/src/procmail-3.22/src'
/bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \
 "grep -F" "make" o "/tmp ." \
 "/usr/bin" ../autoconf.h
Using the following directories for the LOCKINGTESTs:
  /tmp . 
Initiating fcntl()/kernel-locking-support tests

Proceeding with kernel-locking-support tests in the background
Testing for const
Testing for volatile
Testing for prototypes
Testing for enum
Checking for POSIX and ANSI/ISO system include files
Checking for network/comsat/biff support
Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t
Checking realloc implementation
Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()
Testing for various struct passwd members
Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
	rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
	ftruncate, strtod, strncasecmp, strerror, strlcat,
	memset, bzero, and _exit
Determining the maximum number of 16 byte arguments execv() takes
Benchmarking your system's strstr() implementation
Waiting for the kernel-locking tests to finish...
Every two digits a file is locked.  First digit: which file, second digit:
which program, XX indicates a lock conflict or failure

Starting test 4 on /tmp/_locktest
 07 15 05 14 07 13 06 12 02 15 05 12 15 06 05 16 16 01 16 00 17 04 17 03 17 02 15 02 11 06 10 07 14 05 13 01 12 00 16 04 17 03 15 03 11 02 10 06 14 06 13 07 12 01 11 00 04 10 10 03 10 07 00 11
Starting test 4 on ./_locktest
 17 01 07 11 01 17 11 00 11 07 16 01 06 15 05 14 15 04 14 14 14 14 04 15 04 15 04 13 03 12 10 02 00 12 10 02 12 02 10 02 17 02 17 00 17 07 11 01 16 11 06 16 16 16 06 15 13 05 12 03 05 10 05 17 00
Starting test 6 on /tmp/_locktest
 11 05 05 11 01 15 15 03 11 02 11 04 11 05 17 05 16 04 10 01 13 01 12 07 06 15 14 03 03 14 02 10 02 11 17 00 16 05 06 13 13 06 13 06 03 12 06 12 16 05 16 04 12 04 02 10 12 07 07 10 07 10 07 13 00
Starting test 6 on ./_locktest
 13 07 07 12 03 11 03 10 06 10 06 17 05 17 07 11 17 01 07 13 17 01 07 16 01 16 06 16 01 06 16 01 06 01 11 04 04 14 05 15 02 00 00 00 00 00 00 10 03 13 04 03 13 04 03 14 14 05 14 05 14 02 15 15 15
Starting test 7 on /tmp/_locktest
 01 17 11 07 01 17 01 17 17 01 16 00 15 07 06 14 05 13 05 13 05 12 04 11 03 11 04 10 01 17 04 17 00 16 00 15 00 12 07 13 05 11 02 14 03 16 05 10 04 12 04 13 02 16 03 15 06 15 10 00 14 14 12 02 13
Starting test 7 on ./_locktest
 17 03 02 16 01 15 00 14 07 13 06 12 05 11 05 10 04 17 03 16 03 15 02 15 02 15 01 13 00 12 04 12 12 07 12 06 12 05 11 14 13 13 13 13 10 10 00 17 07 16 17 06 07 16 17 06 16 15 05 11 14 01 14 04 11


Collecting results from kernel-locking tests
=============================autoconf.h===================================
/* This file was automagically generated by autoconf */

/* 5 moves in 64 steps of size 16384 when reallocing */
#define NOpw_passwd
#define NOpw_class
#define NOpw_gecos
#define NOstrlcat
#define NOsetrgid
#define GOT_bin_test
#define MAX_argc 83765
/* Your system's strstr() is 20305.00 times FASTER than my C-routine */
#define UDP_protocolno 17
#define BIFF_serviceport "512"
#define IP_localhost {127,0,0,1}
#define setrgid_RUNTIME_CHECK
#define MAILSPOOLDIR "/var/spool/mail/"
#define SENDMAIL "/usr/sbin/sendmail"
#define CF_no_procmail_yet
#define buggy_SENDMAIL
#define defPATH "PATH=$HOME/bin:/bin:/usr/local/bin"
#define defSPATH "PATH=/bin:/usr/local/bin"
#define PM_VERSION "3.22"
/*locktype: 4, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
/*locktype: 4, countlocks: 0, timeout 0, watchdog 8, ./_locktest*/
/*locktype: 6, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
/*locktype: 6, countlocks: 0, timeout 0, watchdog 8, ./_locktest*/
/*locktype: 7, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
/*locktype: 7, countlocks: 0, timeout 0, watchdog 8, ./_locktest*/
/* Hotwire LOCKINGTEST=111 */
/* Procmail will lock via: dotlocking, fcntl(), lockf(), flock() */
#define USElockf
#define USEflock
/* autoconf completed */
==========================================================================
make[1]: Leaving directory '/build/procmail/src/procmail-3.22/src'
cd src; make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat
cd man; make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5
make[1]: Entering directory '/build/procmail/src/procmail-3.22/src'
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  procmail.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  cstdio.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  common.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  exopen.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  goodies.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  locking.c
make[1]: Entering directory '/build/procmail/src/procmail-3.22/man'
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  mailfold.c
make[1]: Entering directory '/build/procmail/src/procmail-3.22/src'
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  foldinfo.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  misc.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  sublib.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  pipes.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  regexp.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  robust.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  sublib.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  acommon.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  mcommon.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  lastdirsep.c
cc -c -DPROCMAIL -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  authenticate.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  lmtp.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  memblk.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  variables.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  from.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  comsat.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  lockfile.c
make[2]: Entering directory '/build/procmail/src/procmail-3.22/src'
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  formail.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  fields.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  formisc.c
cc -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  ecommon.c
cp ../examples/mailstat mailstat
ln ../src/mailstat ../new/mailstat
mailfold.c: In function ‘readmail’:
mailfold.c:374:6: warning: type of ‘rhead’ defaults to ‘int’ [-Wimplicit-int]
  374 | void readmail(rhead,tobesent)const long tobesent;
      |      ^~~~~~~~
manconf.c: In function ‘pname’:
manconf.c:77:52: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   77 |    { sprintf(filebuf,"%s.%04d",*gargv,filecount++);freopen(filebuf,"w",stdout);
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
locking.c: In function ‘lockit’:
locking.c:103:6: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  103 |      setegid(gid);                    /* we put back our regular permissions */
      |      ^~~~~~~~~~~~
locking.c: In function ‘unlock’:
locking.c:136:9: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  136 |         setegid(sgid);                 /* try and get some extra permissions */
      |         ^~~~~~~~~~~~~
locking.c:141:9: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  141 |         setegid(gid);                 /* we put back our regular permissions */
      |         ^~~~~~~~~~~~
locking.c: In function ‘fdlock’:
locking.c:221:9: warning: ignoring return value of ‘lockf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  221 |       { lockf(fd,F_ULOCK,(off_t)0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
exopen.c: In function ‘unique’:
exopen.c:116:6: warning: ignoring return value of ‘nice’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  116 |      nice(nicediff);               /* put back the priority to the old level */
      |      ^~~~~~~~~~~~~~
foldinfo.c: In function ‘rnmbogus’:
foldinfo.c:60:12: warning: implicit declaration of function ‘ultoan’ [-Wimplicit-function-declaration]
   60 |   *p++='.';ultoan((unsigned long)stbuf->st_ino,p);        /* i-node numbered */
      |            ^~~~~~
In file included from procmail.h:3,
                 from misc.c:13:
misc.c: In function ‘setids’:
includes.h:376:25: warning: ignoring return value of ‘setreuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  376 | #define setruid(uid)    setreuid(uid,-1)
      |                         ^~~~~~~~~~~~~~~~
misc.c:99:6: note: in expansion of macro ‘setruid’
   99 |      setruid(uid);
      |      ^~~~~~~
misc.c:102:6: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  102 |      setegid(gid);
      |      ^~~~~~~~~~~~
lockfile.c: In function ‘elog’:
lockfile.c:54:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   54 | { write(STDERR,a,strlen(a));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
procmail.c: In function ‘main’:
procmail.c:498:9: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  498 |         setuid(uid);                       /* make sure we have enough space */
      |         ^~~~~~~~~~~
formisc.c: In function ‘startprog’:
formisc.c:162:3: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  162 |   dup(oldstdout);
      |   ^~~~~~~~~~~~~~
formisc.c:175:6: warning: ignoring return value of ‘pipe’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  175 |      pipe(poutfd);
      |      ^~~~~~~~~~~~
formisc.c:194:51: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  194 |       { close(STDIN);close(oldstdout);close(PWRO);dup(PRDO);close(PRDO);
      |                                                   ^~~~~~~~~
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  lockfile.o exopen.o sublib.o acommon.o mcommon.o authenticate.o lastdirsep.o -o lockfile -s   -lm -lnsl -ldl -lc
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  procmail.o cstdio.o common.o exopen.o goodies.o locking.o mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o lmtp.o memblk.o variables.o from.o comsat.o -o procmail -s   -lm -lnsl -ldl -lc
make[1]: Leaving directory '/build/procmail/src/procmail-3.22/src'
===============================================================================
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto  formail.o common.o fields.o formisc.o sublib.o ecommon.o acommon.o -o formail -s   -lm -lnsl -ldl -lc
If you are a system administrator you should consider integrating procmail
into the mail-delivery system -- for advanced functionality, speed AND
SECURITY --.  For more information about this topic you should look in the
examples/advanced file.

Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it):

chown root /usr/bin/procmail
chmod 4755 /usr/bin/procmail
===============================================================================
foldinfo.c:60:12: warning: type of ‘ultoan’ does not match original declaration [-Wlto-type-mismatch]
   60 |   *p++='.';ultoan((unsigned long)stbuf->st_ino,p);        /* i-node numbered */
      |            ^
acommon.c:40:6: note: return value type mismatch
   40 | char*ultoan(val,dest)unsigned long val;char*dest;     /* convert to a number */
      |      ^
acommon.c:40:6: note: ‘ultoan’ was previously declared here
acommon.c:40:6: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
make[2]: Leaving directory '/build/procmail/src/procmail-3.22/src'
/bin/sh ./mansed /bin/sh procmail.man procmail.1 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh formail.man formail.1 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh lockfile.man lockfile.1 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh procmailrc.man procmailrc.5 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh procmailsc.man procmailsc.5 "/bin/rm -f" /dev/null
/bin/sh ./mansed /bin/sh procmailex.man procmailex.5 "/bin/rm -f" /dev/null
ln ../man/procmailsc.5 ../new/procmailsc.5
ln ../man/lockfile.1 ../new/lockfile.1
ln ../man/procmailex.5 ../new/procmailex.5
ln ../man/formail.1 ../new/formail.1
ln ../man/procmailrc.5 ../new/procmailrc.5
ln ../man/procmail.1 ../new/procmail.1
make[1]: Leaving directory '/build/procmail/src/procmail-3.22/man'
ln ../src/lockfile ../new/lockfile
ln ../src/formail ../new/formail
ln ../src/procmail ../new/procmail
make[1]: Leaving directory '/build/procmail/src/procmail-3.22/src'
If you would like to inspect the results before running make install:
All installable files can be found in the new/ subdirectory.
==> Entering fakeroot environment...
==> Starting package()...
make[1]: Entering directory '/build/procmail/src/procmail-3.22'
cd man; make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5
new/mkinstalldirs /build/procmail/pkg/procmail/usr
cd src; make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat
make[2]: Entering directory '/build/procmail/src/procmail-3.22/man'
mkdir /build/procmail/pkg/procmail/usr
make[2]: Entering directory '/build/procmail/src/procmail-3.22/src'
make[2]: '../new/procmail' is up to date.
make[2]: '../new/lockfile' is up to date.
make[2]: '../new/formail' is up to date.
make[2]: '../new/mailstat' is up to date.
make[2]: Leaving directory '/build/procmail/src/procmail-3.22/src'
make[3]: Entering directory '/build/procmail/src/procmail-3.22/src'
make[3]: '../man/man.sed' is up to date.
make[3]: Leaving directory '/build/procmail/src/procmail-3.22/src'
make[2]: '../new/formail.1' is up to date.
make[2]: '../new/lockfile.1' is up to date.
make[2]: '../new/procmailrc.5' is up to date.
make[2]: '../new/procmailsc.5' is up to date.
make[2]: '../new/procmailex.5' is up to date.
make[2]: Leaving directory '/build/procmail/src/procmail-3.22/man'
cp new/procmail new/lockfile new/formail new/mailstat /build/procmail/pkg/procmail/usr/bin
echo Housekeeping file >install.bin
echo Housekeeping file >install.man
make[1]: Leaving directory '/build/procmail/src/procmail-3.22'

Installed in /build/procmail/pkg/procmail/usr/bin
-rwxr-xr-x 1 root root  47224 Jun 22 16:44 formail
-rwxr-xr-x 1 root root  18272 Jun 22 16:44 lockfile
-rwxr-xr-x 1 root root   5859 Jun 22 16:44 mailstat
-rwxr-xr-x 1 root root 104800 Jun 22 16:44 procmail
Installed in /build/procmail/pkg/procmail/usr/share/man/man1
-rw-r--r-- 1 root root 15334 Jun 22 16:44 formail.1
-rw-r--r-- 1 root root  6897 Jun 22 16:44 lockfile.1
-rw-r--r-- 1 root root 27967 Jun 22 16:44 procmail.1
Installed in /build/procmail/pkg/procmail/usr/share/man/man5
-rw-r--r-- 1 root root 16858 Jun 22 16:44 procmailex.5
-rw-r--r-- 1 root root 31340 Jun 22 16:44 procmailrc.5
-rw-r--r-- 1 root root  8074 Jun 22 16:44 procmailsc.5
make[1]: Entering directory '/build/procmail/src/procmail-3.22'
make[2]: Entering directory '/build/procmail/src/procmail-3.22/src'
make[2]: 'recommend' is up to date.
make[2]: Leaving directory '/build/procmail/src/procmail-3.22/src'
===============================================================================
If you are a system administrator you should consider integrating procmail
into the mail-delivery system -- for advanced functionality, speed AND
SECURITY --.  For more information about this topic you should look in the
examples/advanced file.

Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it):

chown root /build/procmail/pkg/procmail/usr/bin/procmail
chmod 4755 /build/procmail/pkg/procmail/usr/bin/procmail
===============================================================================
make[1]: Leaving directory '/build/procmail/src/procmail-3.22'
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "procmail"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: procmail 3.22-10 (Wed Jun 22 16:44:13 2022)
==> Installing package procmail with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)  New Version  Net Change

procmail     3.22-10        0.24 MiB

Total Installed Size:  0.24 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing procmail...
resolving dependencies...
looking for conflicting packages...

Package (6)              New Version  Net Change

core/elfutils            0.187-1        3.44 MiB
core/licenses            20220125-1     0.41 MiB
extra/pyalpm             0.10.6-4       0.18 MiB
core/python              3.10.5-1      54.28 MiB
extra/python-pyelftools  0.28-1         1.43 MiB
extra/namcap             3.2.10-5       0.41 MiB

Total Installed Size:  60.15 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing python...
Optional dependencies for python
    python-setuptools
    python-pip
    sqlite [installed]
    mpdecimal: for decimal
    xz: for lzma [installed]
    tk: for tkinter
installing pyalpm...
installing licenses...
installing elfutils...
installing python-pyelftools...
installing namcap...
Checking PKGBUILD
Checking procmail-3.22-10-x86_64.pkg.tar.zst
procmail W: Dependency glibc included but already satisfied
==> Running checkpkg
error: target not found: procmail
==> WARNING: Skipped checkpkg due to missing repo packages

Online

#8 2022-06-22 17:32:19

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 354

Re: procmail benchmarking takes too long

thank you, loqs!

$ pstree 8294
sudo───makechrootpkg───systemd-nspawn───(sd-stubinit)───chrootbuild───sudo───makepkg─┬─make───make───sh───_autotst
                                                                                     ├─tee
                                                                                     └─yes

reaches the same point and gets stuck

 > :-) $ !?/procmail
cd /tmp/trizen-vb/procmail/
[ 20:18:26 Wed Jun 22 @ procmail ]
 > :-) $ extra-x86_64-build
[sudo] password for vb: 
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
:: Starting full system upgrade...
 there is nothing to do
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [vb]...done
==> Making package: procmail 3.22-10 (Wed Jun 22 20:20:51 2022)
==> Retrieving sources...
  -> Found procmail-3.22.tar.gz
  -> Found procmail-3.22-getline.patch
  -> Found formisc.c.patch
  -> Found fix_memory_allocation_bug.diff
==> Validating source files with sha256sums...
    procmail-3.22.tar.gz ... Passed
    procmail-3.22-getline.patch ... Passed
    formisc.c.patch ... Passed
    fix_memory_allocation_bug.diff ... Passed
==> Making package: procmail 3.22-10 (Wed Jun 22 20:20:59 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
:: There are 3 providers available for smtp-server:
:: Repository extra
   1) postfix
:: Repository community
   2) exim  3) opensmtpd

Enter a number (default=1): 
resolving dependencies...
looking for conflicting packages...

Package (2)    New Version  Net Change

core/libnsl    2.0.0-2        0.07 MiB
extra/postfix  3.7.2-1        4.40 MiB

Total Installed Size:  4.47 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libnsl...
installing postfix...
Optional dependencies for postfix
    perl: for postfix-collate.pl, postfix-tlstype.pl and qshape [installed]
    postfix-cdb: for CDB integration
    postfix-ldap: for LDAP integration
    postfix-lmdb: for LMDB integration
    postfix-mysql: for MySQL integration
    postfix-pcre: for PCRE integration
    postfix-pgsql: for PostgreSQL integration
    postfix-sqlite: for SQLite integration
==> Retrieving sources...
  -> Found procmail-3.22.tar.gz
  -> Found procmail-3.22-getline.patch
  -> Found formisc.c.patch
  -> Found fix_memory_allocation_bug.diff
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting procmail-3.22.tar.gz with bsdtar
==> Starting prepare()...
patching file src/fields.c
patching file src/formail.c
patching file src/formisc.c
patching file src/formisc.h
patching file src/formisc.c
Hunk #1 succeeded at 104 (offset 1 line).
patching file src/pipes.c
==> Starting build()...
/bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
 "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \
 "/lib /usr/lib /usr/local/lib" \
 /dev/null "make" o \
 "cc" "-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto " "-s  " "procmail lockfile formail mailstat" \
 "procmail formail lockfile" \
 "procmailrc procmailsc procmailex" "src man" \
 "/usr/bin" \
 "strip"
cc seems to work fine, using that as the C-compiler
	...scanning for 13 libraries...
Added LDFLAGS= -lm -lnsl -ldl -lc
cd src; make ../autoconf.h
make[1]: Entering directory '/build/procmail/src/procmail-3.22/src'
/bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \
 "grep -F" "make" o "/tmp ." \
 "/usr/bin" ../autoconf.h
Using the following directories for the LOCKINGTESTs:
  /tmp . 
Initiating fcntl()/kernel-locking-support tests

Proceeding with kernel-locking-support tests in the background
Testing for const
Testing for volatile
Testing for prototypes
Testing for enum
Checking for POSIX and ANSI/ISO system include files
Checking for network/comsat/biff support
Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t
Checking realloc implementation
Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()
Testing for various struct passwd members
Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
	rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
	ftruncate, strtod, strncasecmp, strerror, strlcat,
	memset, bzero, and _exit
Determining the maximum number of 16 byte arguments execv() takes
Benchmarking your system's strstr() implementation

Offline

Board footer

Powered by FluxBB