Diff of the two buildlogs: -- --- b1/build.log 2024-08-06 17:15:12.182888535 +0000 +++ b2/build.log 2024-08-06 17:17:11.421820998 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Sep 8 11:37:21 -12 2025 -I: pbuilder-time-stamp: 1757374641 +I: Current time: Wed Aug 7 07:15:16 +14 2024 +I: pbuilder-time-stamp: 1722964516 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -17,8 +17,8 @@ I: copying [./libloki_0.1.7-4.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.ZBl0_hJw/trustedkeys.kbx': General error -gpgv: Signature made Mon Jan 25 13:15:08 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.0ZuAqKe5/trustedkeys.kbx': General error +gpgv: Signature made Tue Jan 26 15:15:08 2021 +14 gpgv: using RSA key EBF30A30A8D9C63BDA44C6945FB33F9359E9ED08 gpgv: issuer "anbe@debian.org" gpgv: Can't check signature: No public key @@ -30,135 +30,166 @@ dpkg-source: info: applying 0.1.7-3.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2301052/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2376569/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Aug 7 07:15 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2376569/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2376569/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=42 ' - DISTRIBUTION='bullseye' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=20 ' + DIRSTACK=() + DISTRIBUTION=bullseye + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='5c70a60cb44b450182b4cb2ce7023820' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2301052' - PS1='# ' - PS2='> ' + INVOCATION_ID=9a1fd90ef76a4dcba4ece895f441e7f1 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2376569 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.IEHV4PC9/pbuilderrc_q8bF --distribution bullseye --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.IEHV4PC9/b1 --logfile b1/build.log libloki_0.1.7-4.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.IEHV4PC9/pbuilderrc_Py04 --distribution bullseye --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.IEHV4PC9/b2 --logfile b2/build.log libloki_0.1.7-4.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos5-amd64 6.9.7+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.7-1~bpo12+1 (2024-07-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux I: ls -l /bin total 5476 - -rwxr-xr-x 1 root root 1234376 Mar 27 2022 bash - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 18424 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 43936 Sep 23 2020 cat - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chgrp - -rwxr-xr-x 1 root root 64448 Sep 23 2020 chmod - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chown - -rwxr-xr-x 1 root root 151168 Sep 23 2020 cp - -rwxr-xr-x 1 root root 125560 Dec 10 2020 dash - -rwxr-xr-x 1 root root 113664 Sep 23 2020 date - -rwxr-xr-x 1 root root 80968 Sep 23 2020 dd - -rwxr-xr-x 1 root root 93936 Sep 23 2020 df - -rwxr-xr-x 1 root root 147176 Sep 23 2020 dir - -rwxr-xr-x 1 root root 84440 Mar 27 2024 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 39712 Sep 23 2020 echo - -rwxr-xr-x 1 root root 28 Jan 24 2023 egrep - -rwxr-xr-x 1 root root 39680 Sep 23 2020 false - -rwxr-xr-x 1 root root 28 Jan 24 2023 fgrep - -rwxr-xr-x 1 root root 69032 Mar 27 2024 findmnt - -rwsr-xr-x 1 root root 34896 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 203072 Jan 24 2023 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 98048 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 22600 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 72840 Sep 23 2020 ln - -rwxr-xr-x 1 root root 56952 Feb 7 2020 login - -rwxr-xr-x 1 root root 147176 Sep 23 2020 ls - -rwxr-xr-x 1 root root 149736 Mar 27 2024 lsblk - -rwxr-xr-x 1 root root 85184 Sep 23 2020 mkdir - -rwxr-xr-x 1 root root 76896 Sep 23 2020 mknod - -rwxr-xr-x 1 root root 48064 Sep 23 2020 mktemp - -rwxr-xr-x 1 root root 59632 Mar 27 2024 more - -rwsr-xr-x 1 root root 55528 Mar 27 2024 mount - -rwxr-xr-x 1 root root 18664 Mar 27 2024 mountpoint - -rwxr-xr-x 1 root root 147080 Sep 23 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Dec 16 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43872 Sep 23 2020 pwd - lrwxrwxrwx 1 root root 4 Mar 27 2022 rbash -> bash - -rwxr-xr-x 1 root root 52032 Sep 23 2020 readlink - -rwxr-xr-x 1 root root 72704 Sep 23 2020 rm - -rwxr-xr-x 1 root root 52032 Sep 23 2020 rmdir - -rwxr-xr-x 1 root root 27472 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 9 03:46 sh -> dash - -rwxr-xr-x 1 root root 43808 Sep 23 2020 sleep - -rwxr-xr-x 1 root root 84928 Sep 23 2020 stty - -rwsr-xr-x 1 root root 71912 Mar 27 2024 su - -rwxr-xr-x 1 root root 39744 Sep 23 2020 sync - -rwxr-xr-x 1 root root 531928 Jan 19 2024 tar - -rwxr-xr-x 1 root root 14456 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 101408 Sep 23 2020 touch - -rwxr-xr-x 1 root root 39680 Sep 23 2020 true - -rwxr-xr-x 1 root root 14328 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 35040 Mar 27 2024 umount - -rwxr-xr-x 1 root root 39744 Sep 23 2020 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 147176 Sep 23 2020 vdir - -rwxr-xr-x 1 root root 63744 Mar 27 2024 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 5898 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8049 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/2301052/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1234376 Mar 28 2022 bash + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 18424 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 43936 Sep 24 2020 cat + -rwxr-xr-x 1 root root 72672 Sep 24 2020 chgrp + -rwxr-xr-x 1 root root 64448 Sep 24 2020 chmod + -rwxr-xr-x 1 root root 72672 Sep 24 2020 chown + -rwxr-xr-x 1 root root 151168 Sep 24 2020 cp + -rwxr-xr-x 1 root root 125560 Dec 11 2020 dash + -rwxr-xr-x 1 root root 113664 Sep 24 2020 date + -rwxr-xr-x 1 root root 80968 Sep 24 2020 dd + -rwxr-xr-x 1 root root 93936 Sep 24 2020 df + -rwxr-xr-x 1 root root 147176 Sep 24 2020 dir + -rwxr-xr-x 1 root root 84440 Mar 29 00:09 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 39712 Sep 24 2020 echo + -rwxr-xr-x 1 root root 28 Jan 25 2023 egrep + -rwxr-xr-x 1 root root 39680 Sep 24 2020 false + -rwxr-xr-x 1 root root 28 Jan 25 2023 fgrep + -rwxr-xr-x 1 root root 69032 Mar 29 00:09 findmnt + -rwsr-xr-x 1 root root 34896 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 203072 Jan 25 2023 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 98048 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 22600 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 72840 Sep 24 2020 ln + -rwxr-xr-x 1 root root 56952 Feb 8 2020 login + -rwxr-xr-x 1 root root 147176 Sep 24 2020 ls + -rwxr-xr-x 1 root root 149736 Mar 29 00:09 lsblk + -rwxr-xr-x 1 root root 85184 Sep 24 2020 mkdir + -rwxr-xr-x 1 root root 76896 Sep 24 2020 mknod + -rwxr-xr-x 1 root root 48064 Sep 24 2020 mktemp + -rwxr-xr-x 1 root root 59632 Mar 29 00:09 more + -rwsr-xr-x 1 root root 55528 Mar 29 00:09 mount + -rwxr-xr-x 1 root root 18664 Mar 29 00:09 mountpoint + -rwxr-xr-x 1 root root 147080 Sep 24 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Dec 17 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43872 Sep 24 2020 pwd + lrwxrwxrwx 1 root root 4 Mar 28 2022 rbash -> bash + -rwxr-xr-x 1 root root 52032 Sep 24 2020 readlink + -rwxr-xr-x 1 root root 72704 Sep 24 2020 rm + -rwxr-xr-x 1 root root 52032 Sep 24 2020 rmdir + -rwxr-xr-x 1 root root 27472 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 9 Aug 7 07:15 sh -> /bin/bash + -rwxr-xr-x 1 root root 43808 Sep 24 2020 sleep + -rwxr-xr-x 1 root root 84928 Sep 24 2020 stty + -rwsr-xr-x 1 root root 71912 Mar 29 00:09 su + -rwxr-xr-x 1 root root 39744 Sep 24 2020 sync + -rwxr-xr-x 1 root root 531928 Jan 20 2024 tar + -rwxr-xr-x 1 root root 14456 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 101408 Sep 24 2020 touch + -rwxr-xr-x 1 root root 39680 Sep 24 2020 true + -rwxr-xr-x 1 root root 14328 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 35040 Mar 29 00:09 umount + -rwxr-xr-x 1 root root 39744 Sep 24 2020 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 147176 Sep 24 2020 vdir + -rwxr-xr-x 1 root root 63744 Mar 29 00:09 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 5898 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8049 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/2376569/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -225,7 +256,7 @@ Get: 29 http://deb.debian.org/debian bullseye/main amd64 intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get: 30 http://deb.debian.org/debian bullseye/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 31 http://deb.debian.org/debian bullseye/main amd64 debhelper all 13.3.4 [1049 kB] -Fetched 18.3 MB in 0s (99.9 MB/s) +Fetched 18.3 MB in 1s (35.7 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19711 files and directories currently installed.) @@ -370,7 +401,11 @@ fakeroot is already the newest version (1.25.3-1.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/libloki-0.1.7/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../libloki_0.1.7-4_source.changes +I: user script /srv/workspace/pbuilder/2376569/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for bullseye +I: user script /srv/workspace/pbuilder/2376569/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/libloki-0.1.7/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../libloki_0.1.7-4_source.changes dpkg-buildpackage: info: source package libloki dpkg-buildpackage: info: source version 0.1.7-4 dpkg-buildpackage: info: source distribution unstable @@ -380,7 +415,7 @@ fakeroot debian/rules clean dh clean dh_auto_clean - make -j42 distclean + make -j20 distclean make[1]: Entering directory '/build/reproducible-path/libloki-0.1.7' make -C src clean make[2]: Entering directory '/build/reproducible-path/libloki-0.1.7/src' @@ -393,132 +428,132 @@ make -C DeletableSingleton clean make -C Factory clean make -C Function clean -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/CachedFactory' make -C LockingPtr clean -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/DeletableSingleton' make -C Longevity clean make -C OrderedStatic clean make -C Pimpl clean +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/CachedFactory' make -C Register clean make -C RegressionTest clean -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Factory' -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Function' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/DeletableSingleton' make -C SafeFormat clean -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Longevity' -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/LockingPtr' -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/OrderedStatic' make -C ScopeGuard clean -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Pimpl' make -C Singleton clean make -C SingletonDll clean -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Register' make -C SmallObj clean make -C SmartPtr clean -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/RegressionTest' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Factory' make -C Visitor clean -rm -f -R .static-dep +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Longevity' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/LockingPtr' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Function' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/OrderedStatic' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Pimpl' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Register' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/RegressionTest' make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/SafeFormat' make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/ScopeGuard' -rm -f -R .static-dep make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Singleton' make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/SingletonDll' -rm -f -R .shared-dep -rm -f -R .shared-dep make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/SmallObj' -rm -f -R .static-dep make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/SmartPtr' +make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Visitor' rm -f -R .static-dep rm -f -R .static-dep -rm -f DeletableSingleton rm -f -R .static-dep -make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Visitor' rm -f -R .static-dep -rm -f CachedFactoryTest -rm -f DeletableSingleton.o -rm -f -R .shared-dep rm -f -R .static-dep -rm -f CachedFactoryTest.o rm -f -R .shared-dep rm -f -R .shared-dep rm -f -R .shared-dep -rm -f -R .static-dep rm -f -R .shared-dep -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/DeletableSingleton' -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/CachedFactory' -rm -f Factory rm -f -R .static-dep rm -f -R .shared-dep -rm -f FunctionTest rm -f -R .static-dep +rm -f CachedFactoryTest +rm -f Factory +rm -f -R .static-dep +rm -f DeletableSingleton +rm -f CachedFactoryTest.o +rm -f DeletableSingleton.o +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/CachedFactory' +rm -f Factory.o +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/DeletableSingleton' rm -f main -rm -f main +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Factory' rm -f -R .shared-dep +rm -f main.o rm -f main +rm -f main2 +rm -f main.o +rm -f main2.o +rm -f -R .shared-dep +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/LockingPtr' +rm -f -R .shared-dep +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Longevity' rm -f -R .static-dep -rm -f Factory.o rm -f -R .static-dep -rm -f -R .shared-dep -rm -f FunctionTest.o +rm -f -R .static-dep +rm -f FunctionTest rm -f -R .static-dep rm -f -R .static-dep rm -f main +rm -f FunctionTest.o +rm -f main rm -f main.o -rm -f -R .shared-dep +rm -f -R .static-dep rm -f -R .static-dep rm -f main.o -rm -f main.o -rm -f main +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Function' rm -f -R .shared-dep -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Factory' -rm -f Test rm -f -R .shared-dep +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/OrderedStatic' +rm -f -R .shared-dep +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Pimpl' rm -f -R .static-dep -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Function' rm -f -R .shared-dep rm -f -R .shared-dep -rm -f main.o -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/LockingPtr' -rm -f main -rm -f main.o +rm -f -R .static-dep rm -f -R .shared-dep -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/OrderedStatic' -rm -f main2 -rm -f Dependencies -rm -f Test.o -rm -f main rm -f -R .shared-dep -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Pimpl' rm -f main rm -f main +rm -f Test +rm -f -R .shared-dep rm -f main.o -rm -f libfoo.a +rm -f main +rm -f Dependencies rm -f SmallObjBench +rm -f main +rm -f main.o +rm -f Test.o +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SafeFormat' rm -f Dependencies.o -rm -f main2.o -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/RegressionTest' rm -f main.o +rm -f SmallObjBench.o rm -f client -rm -f main.o +rm -f libfoo.a +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/RegressionTest' +rm -f -R .shared-dep rm -f main.o strong.o LockTest.o -rm -f foo.o -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/ScopeGuard' -rm -f SmallObjBench.o -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Longevity' -rm -f Phoenix -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SafeFormat' +rm -f SmallObjSingleton rm -f client.o +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/ScopeGuard' make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SmartPtr' -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Visitor' -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Register' -rm -f SmallObjSingleton -rm -f Phoenix.o -rm -f libfoo.so +rm -f Phoenix +rm -f main +rm -f foo.o rm -f SmallObjSingleton.o -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Singleton' +rm -f libfoo.so +rm -f Phoenix.o +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Register' +rm -f main.o rm -f foo.lo -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SmallObj' +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Singleton' rm -f libsingletondll.so +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SmallObj' rm -f singletondll.lo +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Visitor' make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SingletonDll' make[2]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test' make -C src distclean @@ -540,23 +575,23 @@ debian/rules override_dh_auto_build make[1]: Entering directory '/build/reproducible-path/libloki-0.1.7' dh_auto_build -- OS=Linux build-static build-shared - make -j42 "INSTALL=install --strip-program=true" OS=Linux build-static build-shared + make -j20 "INSTALL=install --strip-program=true" OS=Linux build-static build-shared make[2]: Entering directory '/build/reproducible-path/libloki-0.1.7' make -C src build-static make -C src build-shared make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/src' make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/src' g++ -MM -MT StrongPtr.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG StrongPtr.cpp > .shared-dep/StrongPtr.dep -g++ -MM -MT StrongPtr.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG StrongPtr.cpp > .shared-dep/StrongPtr.dep g++ -MM -MT SmartPtr.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmartPtr.cpp > .shared-dep/SmartPtr.dep g++ -MM -MT SmartPtr.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmartPtr.cpp > .shared-dep/SmartPtr.dep g++ -MM -MT SmallObj.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmallObj.cpp > .shared-dep/SmallObj.dep -g++ -MM -MT SmallObj.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmallObj.cpp > .shared-dep/SmallObj.dep -g++ -MM -MT Singleton.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG Singleton.cpp > .shared-dep/Singleton.dep g++ -MM -MT Singleton.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG Singleton.cpp > .shared-dep/Singleton.dep +g++ -MM -MT StrongPtr.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG StrongPtr.cpp > .shared-dep/StrongPtr.dep g++ -MM -MT SafeFormat.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SafeFormat.cpp > .shared-dep/SafeFormat.dep -g++ -MM -MT SafeFormat.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SafeFormat.cpp > .shared-dep/SafeFormat.dep +g++ -MM -MT SmallObj.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmallObj.cpp > .shared-dep/SmallObj.dep +g++ -MM -MT Singleton.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG Singleton.cpp > .shared-dep/Singleton.dep g++ -MM -MT OrderedStatic.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG OrderedStatic.cpp > .shared-dep/OrderedStatic.dep +g++ -MM -MT SafeFormat.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SafeFormat.cpp > .shared-dep/SafeFormat.dep g++ -MM -MT OrderedStatic.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG OrderedStatic.cpp > .shared-dep/OrderedStatic.dep g++ -MM -MT LevelMutex.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG LevelMutex.cpp > .shared-dep/LevelMutex.dep g++ -MM -MT LevelMutex.lo -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG LevelMutex.cpp > .shared-dep/LevelMutex.dep @@ -565,29 +600,29 @@ g++ -MM -MT SmartPtr.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmartPtr.cpp > .static-dep/SmartPtr.dep g++ -MM -MT SmartPtr.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmartPtr.cpp > .static-dep/SmartPtr.dep g++ -MM -MT SmallObj.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmallObj.cpp > .static-dep/SmallObj.dep -g++ -MM -MT SmallObj.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmallObj.cpp > .static-dep/SmallObj.dep -g++ -MM -MT Singleton.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG Singleton.cpp > .static-dep/Singleton.dep g++ -MM -MT Singleton.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG Singleton.cpp > .static-dep/Singleton.dep +g++ -MM -MT SmallObj.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SmallObj.cpp > .static-dep/SmallObj.dep g++ -MM -MT SafeFormat.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SafeFormat.cpp > .static-dep/SafeFormat.dep +g++ -MM -MT Singleton.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG Singleton.cpp > .static-dep/Singleton.dep g++ -MM -MT OrderedStatic.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG OrderedStatic.cpp > .static-dep/OrderedStatic.dep g++ -MM -MT SafeFormat.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG SafeFormat.cpp > .static-dep/SafeFormat.dep g++ -MM -MT LevelMutex.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG LevelMutex.cpp > .static-dep/LevelMutex.dep g++ -MM -MT OrderedStatic.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG OrderedStatic.cpp > .static-dep/OrderedStatic.dep g++ -MM -MT LevelMutex.o -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG LevelMutex.cpp > .static-dep/LevelMutex.dep -g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o LevelMutex.lo LevelMutex.cpp g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -c -o LevelMutex.o LevelMutex.cpp -g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o OrderedStatic.lo OrderedStatic.cpp g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -c -o OrderedStatic.o OrderedStatic.cpp -g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o SafeFormat.lo SafeFormat.cpp g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -c -o SafeFormat.o SafeFormat.cpp -g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o Singleton.lo Singleton.cpp g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -c -o Singleton.o Singleton.cpp -g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o SmallObj.lo SmallObj.cpp g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -c -o SmallObj.o SmallObj.cpp -g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o SmartPtr.lo SmartPtr.cpp g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -c -o SmartPtr.o SmartPtr.cpp -g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o StrongPtr.lo StrongPtr.cpp g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -c -o StrongPtr.o StrongPtr.cpp +g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o LevelMutex.lo LevelMutex.cpp +g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o OrderedStatic.lo OrderedStatic.cpp +g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o SafeFormat.lo SafeFormat.cpp +g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o Singleton.lo Singleton.cpp +g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o SmallObj.lo SmallObj.cpp +g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o SmartPtr.lo SmartPtr.cpp +g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DNDEBUG -o StrongPtr.lo StrongPtr.cpp LevelMutex.cpp: In function 'Loki::MutexErrors::Type Loki::DoMutexesMatchContainer(const MutexContainer&)': LevelMutex.cpp:186:44: warning: conversion from 'std::vector::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 186 | const unsigned int count = mutexes.size(); @@ -621,7 +656,9 @@ 493 | const unsigned int count = mutexes.size(); | ~~~~~~~~~~~~^~ In file included from ../include/loki/SmallObj.h:23, - from SmallObj.cpp:19: + from ../include/loki/SmartPtr.h:33, + from ../include/loki/StrongPtr.h:20, + from StrongPtr.cpp:16: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -629,30 +666,42 @@ In file included from /usr/include/c++/10/memory:83, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, - from SmallObj.cpp:19: + from ../include/loki/SmartPtr.h:33, + from ../include/loki/StrongPtr.h:20, + from StrongPtr.cpp:16: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from SmallObj.cpp:19: +In file included from ../include/loki/SmartPtr.h:33, + from ../include/loki/StrongPtr.h:20, + from StrongPtr.cpp:16: ../include/loki/SmallObj.h: At global scope: ../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ -In file included from ../include/loki/OrderedStatic.h:22, - from OrderedStatic.cpp:16: +In file included from StrongPtr.cpp:16: +../include/loki/StrongPtr.h: In static member function 'static void Loki::DeleteSingle

::Delete(const P*)': +../include/loki/StrongPtr.h:193:22: warning: typedef 'Type_Must_Be_Defined' locally defined but not used [-Wunused-local-typedefs] + 193 | typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; + | ^~~~~~~~~~~~~~~~~~~~ +../include/loki/StrongPtr.h: In static member function 'static void Loki::DeleteArray

::Delete(const P*)': +../include/loki/StrongPtr.h:224:22: warning: typedef 'Type_Must_Be_Defined' locally defined but not used [-Wunused-local-typedefs] + 224 | typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; + | ^~~~~~~~~~~~~~~~~~~~ +In file included from Singleton.cpp:19: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../include/loki/Singleton.h:30, - from ../include/loki/OrderedStatic.h:22, - from OrderedStatic.cpp:16: + from Singleton.cpp:19: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ../include/loki/SmallObj.h:23, - from SmallObj.cpp:19: + from ../include/loki/SmartPtr.h:33, + from SmartPtr.cpp:20: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -660,24 +709,37 @@ In file included from /usr/include/c++/10/memory:83, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, - from SmallObj.cpp:19: + from ../include/loki/SmartPtr.h:33, + from SmartPtr.cpp:20: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../include/loki/OrderedStatic.h:22, - from OrderedStatic.cpp:16: +In file included from ../include/loki/SmartPtr.h:33, + from SmartPtr.cpp:20: +../include/loki/SmallObj.h: At global scope: +../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) + | ^~~~~ +In file included from ../include/loki/SmallObj.h:23, + from ../include/loki/SmartPtr.h:33, + from ../include/loki/StrongPtr.h:20, + from StrongPtr.cpp:16: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../include/loki/Singleton.h:30, - from ../include/loki/OrderedStatic.h:22, - from OrderedStatic.cpp:16: + from ../include/loki/SmallObj.h:23, + from ../include/loki/SmartPtr.h:33, + from ../include/loki/StrongPtr.h:20, + from StrongPtr.cpp:16: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from SmallObj.cpp:19: +In file included from ../include/loki/SmartPtr.h:33, + from ../include/loki/StrongPtr.h:20, + from StrongPtr.cpp:16: ../include/loki/SmallObj.h: At global scope: ../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) @@ -694,8 +756,7 @@ 57 | template class auto_ptr; | ^~~~~~~~ In file included from ../include/loki/SmallObj.h:23, - from ../include/loki/SmartPtr.h:33, - from SmartPtr.cpp:20: + from SmallObj.cpp:19: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -703,20 +764,12 @@ In file included from /usr/include/c++/10/memory:83, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, - from ../include/loki/SmartPtr.h:33, - from SmartPtr.cpp:20: + from SmallObj.cpp:19: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../include/loki/SmartPtr.h:33, - from SmartPtr.cpp:20: -../include/loki/SmallObj.h: At global scope: -../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) - | ^~~~~ In file included from ../include/loki/SmallObj.h:23, - from ../include/loki/SmartPtr.h:33, - from SmartPtr.cpp:20: + from SmallObj.cpp:19: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -724,21 +777,32 @@ In file included from /usr/include/c++/10/memory:83, from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, - from ../include/loki/SmartPtr.h:33, - from SmartPtr.cpp:20: + from SmallObj.cpp:19: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../include/loki/SmartPtr.h:33, - from SmartPtr.cpp:20: +In file included from SmallObj.cpp:19: +../include/loki/SmallObj.h: At global scope: +../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) + | ^~~~~ +In file included from StrongPtr.cpp:16: +../include/loki/StrongPtr.h: In static member function 'static void Loki::DeleteSingle

::Delete(const P*)': +../include/loki/StrongPtr.h:193:22: warning: typedef 'Type_Must_Be_Defined' locally defined but not used [-Wunused-local-typedefs] + 193 | typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; + | ^~~~~~~~~~~~~~~~~~~~ +../include/loki/StrongPtr.h: In static member function 'static void Loki::DeleteArray

::Delete(const P*)': +../include/loki/StrongPtr.h:224:22: warning: typedef 'Type_Must_Be_Defined' locally defined but not used [-Wunused-local-typedefs] + 224 | typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; + | ^~~~~~~~~~~~~~~~~~~~ +In file included from SmallObj.cpp:19: ../include/loki/SmallObj.h: At global scope: ../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ In file included from ../include/loki/SmallObj.h:23, from ../include/loki/SmartPtr.h:33, - from ../include/loki/StrongPtr.h:20, - from StrongPtr.cpp:16: + from SmartPtr.cpp:20: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -747,73 +811,43 @@ from ../include/loki/Singleton.h:30, from ../include/loki/SmallObj.h:23, from ../include/loki/SmartPtr.h:33, - from ../include/loki/StrongPtr.h:20, - from StrongPtr.cpp:16: + from SmartPtr.cpp:20: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ../include/loki/SmartPtr.h:33, - from ../include/loki/StrongPtr.h:20, - from StrongPtr.cpp:16: + from SmartPtr.cpp:20: ../include/loki/SmallObj.h: At global scope: ../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ -In file included from StrongPtr.cpp:16: -../include/loki/StrongPtr.h: In static member function 'static void Loki::DeleteSingle

::Delete(const P*)': -../include/loki/StrongPtr.h:193:22: warning: typedef 'Type_Must_Be_Defined' locally defined but not used [-Wunused-local-typedefs] - 193 | typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; - | ^~~~~~~~~~~~~~~~~~~~ -../include/loki/StrongPtr.h: In static member function 'static void Loki::DeleteArray

::Delete(const P*)': -../include/loki/StrongPtr.h:224:22: warning: typedef 'Type_Must_Be_Defined' locally defined but not used [-Wunused-local-typedefs] - 224 | typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; - | ^~~~~~~~~~~~~~~~~~~~ -In file included from Singleton.cpp:19: +In file included from ../include/loki/OrderedStatic.h:22, + from OrderedStatic.cpp:16: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../include/loki/Singleton.h:30, - from Singleton.cpp:19: + from ../include/loki/OrderedStatic.h:22, + from OrderedStatic.cpp:16: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../include/loki/SmallObj.h:23, - from ../include/loki/SmartPtr.h:33, - from ../include/loki/StrongPtr.h:20, - from StrongPtr.cpp:16: +In file included from ../include/loki/OrderedStatic.h:22, + from OrderedStatic.cpp:16: ../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../include/loki/Singleton.h:30, - from ../include/loki/SmallObj.h:23, - from ../include/loki/SmartPtr.h:33, - from ../include/loki/StrongPtr.h:20, - from StrongPtr.cpp:16: + from ../include/loki/OrderedStatic.h:22, + from OrderedStatic.cpp:16: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../include/loki/SmartPtr.h:33, - from ../include/loki/StrongPtr.h:20, - from StrongPtr.cpp:16: -../include/loki/SmallObj.h: At global scope: -../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) - | ^~~~~ -In file included from StrongPtr.cpp:16: -../include/loki/StrongPtr.h: In static member function 'static void Loki::DeleteSingle

::Delete(const P*)': -../include/loki/StrongPtr.h:193:22: warning: typedef 'Type_Must_Be_Defined' locally defined but not used [-Wunused-local-typedefs] - 193 | typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; - | ^~~~~~~~~~~~~~~~~~~~ -../include/loki/StrongPtr.h: In static member function 'static void Loki::DeleteArray

::Delete(const P*)': -../include/loki/StrongPtr.h:224:22: warning: typedef 'Type_Must_Be_Defined' locally defined but not used [-Wunused-local-typedefs] - 224 | typedef char Type_Must_Be_Defined[ sizeof(P) ? 1 : -1 ]; - | ^~~~~~~~~~~~~~~~~~~~ g++ -Wl,-z,relro --shared -Wl,-soname=libloki.so.0.1.7 -fPIC -o ../lib/libloki.so.0.1.7 LevelMutex.lo OrderedStatic.lo SafeFormat.lo Singleton.lo SmallObj.lo SmartPtr.lo StrongPtr.lo -lpthread -make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/src' ar rv ../lib/libloki.a LevelMutex.o OrderedStatic.o SafeFormat.o Singleton.o SmallObj.o SmartPtr.o StrongPtr.o ar: creating ../lib/libloki.a a - LevelMutex.o @@ -824,12 +858,13 @@ a - SmartPtr.o a - StrongPtr.o make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/src' +make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/src' make[2]: Leaving directory '/build/reproducible-path/libloki-0.1.7' make[1]: Leaving directory '/build/reproducible-path/libloki-0.1.7' debian/rules override_dh_auto_test make[1]: Entering directory '/build/reproducible-path/libloki-0.1.7' dh_auto_test -- OS=Linux - make -j42 check OS=Linux + make -j20 check OS=Linux make[2]: Entering directory '/build/reproducible-path/libloki-0.1.7' make -C src build-static make -C src build-shared @@ -848,94 +883,53 @@ make -C LockingPtr make -C Longevity make -C OrderedStatic +make -C Pimpl +make -C Register make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/CachedFactory' +make -C RegressionTest g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o CachedFactoryTest.o CachedFactoryTest.cpp -make -C Pimpl +make -C SafeFormat +make -C ScopeGuard make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/DeletableSingleton' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o DeletableSingleton.o DeletableSingleton.cpp -make -C Register +make -C Singleton make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Factory' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o Factory.o Factory.cpp -make -C RegressionTest -make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Function' -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o FunctionTest.o FunctionTest.cpp -make -C SafeFormat +make -C SingletonDll make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/LockingPtr' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp -make -C ScopeGuard -make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Longevity' -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -fexpensive-optimizations -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp -make -C Singleton -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -fexpensive-optimizations -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main2.o main2.cpp +make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Function' +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o FunctionTest.o FunctionTest.cpp +make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Pimpl' make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/OrderedStatic' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp -make -C SingletonDll -make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Register' -make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Pimpl' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp +make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Register' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp -make -C SmallObj +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o foo.o foo.cpp +make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/ScopeGuard' make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/SafeFormat' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -fexpensive-optimizations -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/RegressionTest' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o Test.o Test.cpp -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o foo.o foo.cpp -make -C SmartPtr -make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/ScopeGuard' -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp +make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Longevity' make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Singleton' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o Dependencies.o Dependencies.cpp -make -C Visitor +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -fexpensive-optimizations -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/SingletonDll' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o Phoenix.o Phoenix.cpp +make -C SmallObj g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o client.o client.cpp +make -C SmartPtr g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -o foo.lo foo.cpp +make -C Visitor make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/SmallObj' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -fexpensive-optimizations -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o SmallObjBench.o SmallObjBench.cpp -g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -o singletondll.lo singletondll.cpp -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -fexpensive-optimizations -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o SmallObjSingleton.o SmallObjSingleton.cpp make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/SmartPtr' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp make[4]: Entering directory '/build/reproducible-path/libloki-0.1.7/test/Visitor' g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main.o main.cpp -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o strong.o strong.cpp -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o LockTest.o LockTest.cpp -In file included from ../../include/loki/SmallObj.h:22, - from SmallObjBench.cpp:25: -../../include/loki/Threads.h:190:57: warning: unnecessary parentheses in declaration of 'mtx_' [-Wparentheses] - 190 | #define LOKI_THREADS_MUTEX(x) pthread_mutex_t (x); - | ^ -../../include/loki/Threads.h:348:9: note: in expansion of macro 'LOKI_THREADS_MUTEX' - 348 | LOKI_THREADS_MUTEX(mtx_) - | ^~~~~~~~~~~~~~~~~~ -../../include/loki/Threads.h: In static member function 'static void Loki::ObjectLevelLockable::AtomicAssign(volatile IntType&, Loki::ObjectLevelLockable::IntType)': -../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive] - 254 | return lval; \ - | ^~~~ -../../include/loki/Threads.h:505:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' - 505 | LOKI_THREADS_ATOMIC_FUNCTIONS - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../include/loki/Threads.h: In static member function 'static void Loki::ObjectLevelLockable::AtomicAssign(Loki::ObjectLevelLockable::IntType&, const volatile IntType&)': -../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive] - 262 | return lval; \ - | ^~~~ -../../include/loki/Threads.h:505:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' - 505 | LOKI_THREADS_ATOMIC_FUNCTIONS - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../include/loki/Threads.h: In static member function 'static void Loki::ClassLevelLockable::AtomicAssign(volatile IntType&, Loki::ClassLevelLockable::IntType)': -../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive] - 254 | return lval; \ - | ^~~~ -../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' - 590 | LOKI_THREADS_ATOMIC_FUNCTIONS - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../include/loki/Threads.h: In static member function 'static void Loki::ClassLevelLockable::AtomicAssign(Loki::ClassLevelLockable::IntType&, const volatile IntType&)': -../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive] - 262 | return lval; \ - | ^~~~ -../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' - 590 | LOKI_THREADS_ATOMIC_FUNCTIONS - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Thread.h:17, from main.cpp:22: ../../include/loki/Threads.h:190:57: warning: unnecessary parentheses in declaration of 'mtx_' [-Wparentheses] @@ -973,9 +967,7 @@ 590 | LOKI_THREADS_ATOMIC_FUNCTIONS | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../include/loki/SmallObj.h:22, - from ../../include/loki/SmartPtr.h:33, - from ../../include/loki/StrongPtr.h:20, - from strong.cpp:22: + from SmallObjBench.cpp:25: ../../include/loki/Threads.h:190:57: warning: unnecessary parentheses in declaration of 'mtx_' [-Wparentheses] 190 | #define LOKI_THREADS_MUTEX(x) pthread_mutex_t (x); | ^ @@ -1016,7 +1008,10 @@ ../../include/loki/Pimpl.h:93:26: warning: typedef 'T_must_be_defined' locally defined but not used [-Wunused-local-typedefs] 93 | typedef char T_must_be_defined[sizeof(T) ? 1 : -1 ]; | ^~~~~~~~~~~~~~~~~ -In file included from LockTest.cpp:37: +In file included from ../../include/loki/SmallObj.h:22, + from ../../include/loki/Functor.h:24, + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/Threads.h:190:57: warning: unnecessary parentheses in declaration of 'mtx_' [-Wparentheses] 190 | #define LOKI_THREADS_MUTEX(x) pthread_mutex_t (x); | ^ @@ -1051,21 +1046,10 @@ ../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' 590 | LOKI_THREADS_ATOMIC_FUNCTIONS | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from singletondll.h:26, - from client.cpp:28: -../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': -../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 158 | std::auto_ptr - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from singletondll.h:26, - from client.cpp:28: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ In file included from ../../include/loki/SmallObj.h:23, - from SmallObjBench.cpp:25: + from ../../include/loki/Functor.h:24, + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -1073,21 +1057,32 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from SmallObjBench.cpp:25: + from ../../include/loki/Functor.h:24, + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from SmallObjBench.cpp:25: +In file included from ../../include/loki/Functor.h:24, + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/SmallObj.h: At global scope: ../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ -../../include/loki/SmallObj.h:516:13: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 516 | throw ( std::bad_alloc ) - | ^~~~~ +In file included from main.cpp:20: +../SmallObj/timer.h: In member function 'void Timer::start()': +../SmallObj/timer.h:34:19: warning: conversion from 'clock_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 34 | t0 = clock(); + | ~~~~~^~ +../SmallObj/timer.h: In member function 'void Timer::stop()': +../SmallObj/timer.h:39:19: warning: conversion from 'clock_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 39 | t1 = clock(); + | ~~~~~^~ In file included from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from main.cpp:22: + from ../../include/loki/Factory.h:20, + from Factory.cpp:19: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -1096,28 +1091,35 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from main.cpp:22: + from ../../include/loki/Factory.h:20, + from Factory.cpp:19: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ../../include/loki/Functor.h:24, - from main.cpp:22: + from ../../include/loki/Factory.h:20, + from Factory.cpp:19: ../../include/loki/SmallObj.h: At global scope: ../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ -In file included from Phoenix.cpp:35: +In file included from ../../include/loki/SmallObj.h:23, + from ../../include/loki/Functor.h:24, + from main.cpp:22: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, - from Phoenix.cpp:35: + from ../../include/loki/SmallObj.h:23, + from ../../include/loki/Functor.h:24, + from main.cpp:22: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from main.cpp:22: +In file included from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/Functor.h:1250:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1250 | Functor(std::auto_ptr spImpl) : spImpl_(spImpl) | ^~~~~~~~ @@ -1125,11 +1127,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from main.cpp:22: + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from main.cpp:22: +In file included from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/Functor.h:1263:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1263 | typedef Impl * (std::auto_ptr::*unspecified_bool_type)() const; | ^~~~~~~~ @@ -1137,11 +1141,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from main.cpp:22: + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from main.cpp:22: +In file included from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/Functor.h:1428:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1428 | std::auto_ptr spImpl_; | ^~~~~~~~ @@ -1149,11 +1155,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from main.cpp:22: + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from main.cpp:22: +In file included from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/Functor.h: In member function 'Loki::Functor::operator Loki::Functor::unspecified_bool_type() const': ../../include/loki/Functor.h:1267:42: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1267 | return spImpl_.get() ? &std::auto_ptr::get : 0; @@ -1162,11 +1170,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from main.cpp:22: + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from main.cpp:22: +In file included from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/Functor.h: In function 'typename Loki::Private::BinderFirstTraits::BoundFunctorType Loki::BindFirst(const Fctor&, typename Fctor::Parm1)': ../../include/loki/Functor.h:1619:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1619 | return Outgoing(std::auto_ptr( @@ -1175,22 +1185,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from main.cpp:22: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ -In file included from main2.cpp:15: -../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': -../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 158 | std::auto_ptr - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from main2.cpp:15: + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from main.cpp:22: +In file included from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: ../../include/loki/Functor.h: In function 'Fun2 Loki::Chain(const Fun1&, const Fun2&)': ../../include/loki/Functor.h:1781:26: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1781 | return Fun2(std::auto_ptr( @@ -1199,83 +1200,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from main.cpp:22: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ -In file included from main.cpp:57: -../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': -../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 158 | std::auto_ptr - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from main.cpp:57: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ -In file included from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from Factory.cpp:19: -../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': -../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 158 | std::auto_ptr - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from Factory.cpp:19: + from ../../include/loki/Function.h:22, + from FunctionTest.cpp:50: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from Factory.cpp:19: -../../include/loki/SmallObj.h: At global scope: -../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) - | ^~~~~ -In file included from ../../include/loki/SmallObj.h:23, - from ../../include/loki/SmartPtr.h:33, - from ../../include/loki/StrongPtr.h:20, - from strong.cpp:22: -../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': -../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 158 | std::auto_ptr - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from ../../include/loki/SmallObj.h:23, - from ../../include/loki/SmartPtr.h:33, - from ../../include/loki/StrongPtr.h:20, - from strong.cpp:22: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ -In file included from ../../include/loki/SmallObj.h:23, - from Dependencies.cpp:18: -../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': -../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 158 | std::auto_ptr - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from ../../include/loki/SmallObj.h:23, - from Dependencies.cpp:18: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ -In file included from ../../include/loki/SmartPtr.h:33, - from ../../include/loki/StrongPtr.h:20, - from strong.cpp:22: -../../include/loki/SmallObj.h: At global scope: -../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) - | ^~~~~ -In file included from Dependencies.cpp:18: + from main.cpp:22: ../../include/loki/SmallObj.h: At global scope: ../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) @@ -1367,53 +1298,43 @@ /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from SmallObjBench.cpp:26: -timer.h: In member function 'void Timer::start()': -timer.h:34:19: warning: conversion from 'clock_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 34 | t0 = clock(); - | ~~~~~^~ -timer.h: In member function 'void Timer::stop()': -timer.h:39:19: warning: conversion from 'clock_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 39 | t1 = clock(); - | ~~~~~^~ -In file included from ../../include/loki/Function.h:22, - from Dependencies.cpp:19: +In file included from main.cpp:22: ../../include/loki/Functor.h:1250:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1250 | Functor(std::auto_ptr spImpl) : spImpl_(spImpl) | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from Dependencies.cpp:18: + from ../../include/loki/Functor.h:24, + from main.cpp:22: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from Dependencies.cpp:19: +In file included from main.cpp:22: ../../include/loki/Functor.h:1263:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1263 | typedef Impl * (std::auto_ptr::*unspecified_bool_type)() const; | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from Dependencies.cpp:18: + from ../../include/loki/Functor.h:24, + from main.cpp:22: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from Dependencies.cpp:19: +In file included from main.cpp:22: ../../include/loki/Functor.h:1428:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1428 | std::auto_ptr spImpl_; | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from Dependencies.cpp:18: + from ../../include/loki/Functor.h:24, + from main.cpp:22: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from Dependencies.cpp:19: +In file included from main.cpp:22: ../../include/loki/Functor.h: In member function 'Loki::Functor::operator Loki::Functor::unspecified_bool_type() const': ../../include/loki/Functor.h:1267:42: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1267 | return spImpl_.get() ? &std::auto_ptr::get : 0; @@ -1421,12 +1342,12 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from Dependencies.cpp:18: + from ../../include/loki/Functor.h:24, + from main.cpp:22: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from Dependencies.cpp:19: +In file included from main.cpp:22: ../../include/loki/Functor.h: In function 'typename Loki::Private::BinderFirstTraits::BoundFunctorType Loki::BindFirst(const Fctor&, typename Fctor::Parm1)': ../../include/loki/Functor.h:1619:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1619 | return Outgoing(std::auto_ptr( @@ -1434,12 +1355,12 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from Dependencies.cpp:18: + from ../../include/loki/Functor.h:24, + from main.cpp:22: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from Dependencies.cpp:19: +In file included from main.cpp:22: ../../include/loki/Functor.h: In function 'Fun2 Loki::Chain(const Fun1&, const Fun2&)': ../../include/loki/Functor.h:1781:26: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1781 | return Fun2(std::auto_ptr( @@ -1447,82 +1368,66 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from Dependencies.cpp:18: + from ../../include/loki/Functor.h:24, + from main.cpp:22: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -Dependencies.cpp: In function 'int main()': -Dependencies.cpp:411:11: warning: variable 'p' set but not used [-Wunused-but-set-variable] - 411 | void* p; - | ^ -In file included from ../../include/loki/SmallObj.h:22, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, +FunctionTest.cpp: In function 'void test_ref()': +FunctionTest.cpp:740:25: warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=] + 740 | catch(runtime_error e) + | ^ +FunctionTest.cpp: In function 'void test_exception()': +FunctionTest.cpp:757:11: error: reference to 'bad_function_call' is ambiguous + 757 | catch(bad_function_call) + | ^~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/10/functional:59, + from FunctionTest.cpp:13: +/usr/include/c++/10/bits/std_function.h:56:9: note: candidates are: 'class std::bad_function_call' + 56 | class bad_function_call : public std::exception + | ^~~~~~~~~~~~~~~~~ +In file included from ../../include/loki/Function.h:22, from FunctionTest.cpp:50: -../../include/loki/Threads.h:190:57: warning: unnecessary parentheses in declaration of 'mtx_' [-Wparentheses] - 190 | #define LOKI_THREADS_MUTEX(x) pthread_mutex_t (x); - | ^ -../../include/loki/Threads.h:348:9: note: in expansion of macro 'LOKI_THREADS_MUTEX' - 348 | LOKI_THREADS_MUTEX(mtx_) - | ^~~~~~~~~~~~~~~~~~ -../../include/loki/Threads.h: In static member function 'static void Loki::ObjectLevelLockable::AtomicAssign(volatile IntType&, Loki::ObjectLevelLockable::IntType)': -../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive] - 254 | return lval; \ - | ^~~~ -../../include/loki/Threads.h:505:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' - 505 | LOKI_THREADS_ATOMIC_FUNCTIONS - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../include/loki/Threads.h: In static member function 'static void Loki::ObjectLevelLockable::AtomicAssign(Loki::ObjectLevelLockable::IntType&, const volatile IntType&)': -../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive] - 262 | return lval; \ - | ^~~~ -../../include/loki/Threads.h:505:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' - 505 | LOKI_THREADS_ATOMIC_FUNCTIONS - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../include/loki/Threads.h: In static member function 'static void Loki::ClassLevelLockable::AtomicAssign(volatile IntType&, Loki::ClassLevelLockable::IntType)': -../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive] - 254 | return lval; \ - | ^~~~ -../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' - 590 | LOKI_THREADS_ATOMIC_FUNCTIONS - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../include/loki/Threads.h: In static member function 'static void Loki::ClassLevelLockable::AtomicAssign(Loki::ClassLevelLockable::IntType&, const volatile IntType&)': -../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive] - 262 | return lval; \ - | ^~~~ -../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' - 590 | LOKI_THREADS_ATOMIC_FUNCTIONS - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from singletondll.h:26, - from singletondll.cpp:16: +../../include/loki/Functor.h:1180:11: note: 'class Loki::bad_function_call' + 1180 | class bad_function_call : public std::runtime_error + | ^~~~~~~~~~~~~~~~~ +In file included from ../../include/loki/SmallObj.h:23, + from ../../include/loki/SmartPtr.h:33, + from type.h:24, + from main.cpp:24: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, - from singletondll.h:26, - from singletondll.cpp:16: + from ../../include/loki/SmallObj.h:23, + from ../../include/loki/SmartPtr.h:33, + from type.h:24, + from main.cpp:24: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/SmallObj.h:23, - from SmallObjSingleton.cpp:17: +In file included from DeletableSingleton.cpp:29: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, - from ../../include/loki/SmallObj.h:23, - from SmallObjSingleton.cpp:17: + from DeletableSingleton.cpp:29: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ +In file included from ../../include/loki/SmartPtr.h:33, + from type.h:24, + from main.cpp:24: +../../include/loki/SmallObj.h: At global scope: +../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) + | ^~~~~ In file included from ../../include/loki/SmallObj.h:23, - from ../../include/loki/SmartPtr.h:33, - from ../../include/loki/StrongPtr.h:20, - from LockTest.cpp:38: + from SmallObjBench.cpp:25: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -1530,26 +1435,22 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/SmartPtr.h:33, - from ../../include/loki/StrongPtr.h:20, - from LockTest.cpp:38: + from SmallObjBench.cpp:25: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from SmallObjSingleton.cpp:17: -../../include/loki/SmallObj.h: At global scope: -../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) - | ^~~~~ -In file included from ../../include/loki/SmartPtr.h:33, - from ../../include/loki/StrongPtr.h:20, - from LockTest.cpp:38: +In file included from SmallObjBench.cpp:25: ../../include/loki/SmallObj.h: At global scope: ../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ +../../include/loki/SmallObj.h:516:13: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 516 | throw ( std::bad_alloc ) + | ^~~~~ +g++ -c -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -o singletondll.lo singletondll.cpp In file included from ../../include/loki/SmallObj.h:23, - from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/Functor.h:24, + from ../../include/loki/Factory.h:20, from main.cpp:18: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] @@ -1558,31 +1459,15 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/Functor.h:24, + from ../../include/loki/Factory.h:20, from main.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from main.cpp:20: -../SmallObj/timer.h: In member function 'void Timer::start()': -../SmallObj/timer.h:34:19: warning: conversion from 'clock_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 34 | t0 = clock(); - | ~~~~~^~ -../SmallObj/timer.h: In member function 'void Timer::stop()': -../SmallObj/timer.h:39:19: warning: conversion from 'clock_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 39 | t1 = clock(); - | ~~~~~^~ -strong.cpp: In function 'void DoWeakLeakTest()': -strong.cpp:329:24: warning: unused variable 'ctorCount' [-Wunused-variable] - 329 | const unsigned int ctorCount = Counted::GetCtorCount(); - | ^~~~~~~~~ -strong.cpp:330:24: warning: unused variable 'dtorCount' [-Wunused-variable] - 330 | const unsigned int dtorCount = Counted::GetDtorCount(); - | ^~~~~~~~~ In file included from ../../include/loki/SmallObj.h:23, from ../../include/loki/SmartPtr.h:33, - from type.h:24, - from main.cpp:24: + from main.cpp:18: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -1591,61 +1476,68 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/SmartPtr.h:33, - from type.h:24, - from main.cpp:24: + from main.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/SmartPtr.h:33, +In file included from ../../include/loki/Functor.h:24, + from ../../include/loki/Factory.h:20, from main.cpp:18: ../../include/loki/SmallObj.h: At global scope: ../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ In file included from ../../include/loki/SmartPtr.h:33, - from type.h:24, - from main.cpp:24: + from main.cpp:18: ../../include/loki/SmallObj.h: At global scope: ../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ -In file included from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: -../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': -../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 158 | std::auto_ptr +In file included from main.cpp:24: +type.h:94:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 94 | typedef std::auto_ptr > StdAutoPtr; | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: + from ../../include/loki/SmartPtr.h:33, + from type.h:24, + from main.cpp:24: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: -../../include/loki/SmallObj.h: At global scope: -../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) - | ^~~~~ -In file included from DeletableSingleton.cpp:29: +In file included from main.cpp:25: +type2.h:133:23: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 133 | Pimpl > d; + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from ../../include/loki/SmallObj.h:23, + from ../../include/loki/SmartPtr.h:33, + from type.h:24, + from main.cpp:24: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ +In file included from ../../include/loki/SmallObj.h:23, + from ../../include/loki/Functor.h:24, + from ../../include/loki/Factory.h:20, + from CachedFactoryTest.cpp:29: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, - from DeletableSingleton.cpp:29: + from ../../include/loki/SmallObj.h:23, + from ../../include/loki/Functor.h:24, + from ../../include/loki/Factory.h:20, + from CachedFactoryTest.cpp:29: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: +In file included from ../../include/loki/Factory.h:20, + from main.cpp:18: ../../include/loki/Functor.h:1250:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1250 | Functor(std::auto_ptr spImpl) : spImpl_(spImpl) | ^~~~~~~~ @@ -1653,13 +1545,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: + from ../../include/loki/Factory.h:20, + from main.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: +In file included from ../../include/loki/Factory.h:20, + from main.cpp:18: ../../include/loki/Functor.h:1263:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1263 | typedef Impl * (std::auto_ptr::*unspecified_bool_type)() const; | ^~~~~~~~ @@ -1667,13 +1559,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: + from ../../include/loki/Factory.h:20, + from main.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: +In file included from ../../include/loki/Factory.h:20, + from main.cpp:18: ../../include/loki/Functor.h:1428:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1428 | std::auto_ptr spImpl_; | ^~~~~~~~ @@ -1681,26 +1573,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ -In file included from main.cpp:24: -type.h:94:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 94 | typedef std::auto_ptr > StdAutoPtr; - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from ../../include/loki/SmallObj.h:23, - from ../../include/loki/SmartPtr.h:33, - from type.h:24, - from main.cpp:24: + from ../../include/loki/Factory.h:20, + from main.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: +In file included from ../../include/loki/Factory.h:20, + from main.cpp:18: ../../include/loki/Functor.h: In member function 'Loki::Functor::operator Loki::Functor::unspecified_bool_type() const': ../../include/loki/Functor.h:1267:42: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1267 | return spImpl_.get() ? &std::auto_ptr::get : 0; @@ -1709,13 +1588,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: + from ../../include/loki/Factory.h:20, + from main.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: +In file included from ../../include/loki/Factory.h:20, + from main.cpp:18: ../../include/loki/Functor.h: In function 'typename Loki::Private::BinderFirstTraits::BoundFunctorType Loki::BindFirst(const Fctor&, typename Fctor::Parm1)': ../../include/loki/Functor.h:1619:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1619 | return Outgoing(std::auto_ptr( @@ -1724,13 +1603,13 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: + from ../../include/loki/Factory.h:20, + from main.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: +In file included from ../../include/loki/Factory.h:20, + from main.cpp:18: ../../include/loki/Functor.h: In function 'Fun2 Loki::Chain(const Fun1&, const Fun2&)': ../../include/loki/Functor.h:1781:26: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1781 | return Fun2(std::auto_ptr( @@ -1739,45 +1618,31 @@ from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, - from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ -In file included from main.cpp:25: -type2.h:133:23: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 133 | Pimpl > d; - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from ../../include/loki/SmallObj.h:23, - from ../../include/loki/SmartPtr.h:33, - from type.h:24, - from main.cpp:24: + from ../../include/loki/Factory.h:20, + from main.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, +In file included from ../../include/loki/Functor.h:24, from ../../include/loki/Factory.h:20, from CachedFactoryTest.cpp:29: +../../include/loki/SmallObj.h: At global scope: +../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) + | ^~~~~ +In file included from Phoenix.cpp:35: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, - from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from CachedFactoryTest.cpp:29: + from Phoenix.cpp:35: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from main.cpp:18: + from Dependencies.cpp:18: ../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': ../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 158 | std::auto_ptr @@ -1785,41 +1650,24 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from main.cpp:18: + from Dependencies.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from CachedFactoryTest.cpp:29: -../../include/loki/SmallObj.h: At global scope: -../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) - | ^~~~~ -In file included from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from main.cpp:18: +In file included from SmallObjBench.cpp:26: +timer.h: In member function 'void Timer::start()': +timer.h:34:19: warning: conversion from 'clock_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 34 | t0 = clock(); + | ~~~~~^~ +timer.h: In member function 'void Timer::stop()': +timer.h:39:19: warning: conversion from 'clock_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 39 | t1 = clock(); + | ~~~~~^~ +In file included from Dependencies.cpp:18: ../../include/loki/SmallObj.h: At global scope: ../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) | ^~~~~ -In file included from ../../include/loki/SmallObj.h:23, - from SmallObjectTest.h:20, - from Test.cpp:45: -../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': -../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 158 | std::auto_ptr - | ^~~~~~~~ -In file included from /usr/include/c++/10/memory:83, - from ../../include/loki/Singleton.h:30, - from ../../include/loki/SmallObj.h:23, - from SmallObjectTest.h:20, - from Test.cpp:45: -/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here - 57 | template class auto_ptr; - | ^~~~~~~~ In file included from ../../include/loki/Factory.h:20, from CachedFactoryTest.cpp:29: ../../include/loki/Functor.h:1250:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] @@ -1893,70 +1741,63 @@ 57 | template class auto_ptr; | ^~~~~~~~ In file included from ../../include/loki/Factory.h:20, - from main.cpp:18: -../../include/loki/Functor.h:1250:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 1250 | Functor(std::auto_ptr spImpl) : spImpl_(spImpl) - | ^~~~~~~~ + from CachedFactoryTest.cpp:29: +../../include/loki/Functor.h: In function 'Fun2 Loki::Chain(const Fun1&, const Fun2&)': +../../include/loki/Functor.h:1781:26: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 1781 | return Fun2(std::auto_ptr( + | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, from ../../include/loki/Functor.h:24, from ../../include/loki/Factory.h:20, - from main.cpp:18: + from CachedFactoryTest.cpp:29: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Factory.h:20, - from main.cpp:18: -../../include/loki/Functor.h:1263:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 1263 | typedef Impl * (std::auto_ptr::*unspecified_bool_type)() const; - | ^~~~~~~~ +make[4]: *** [: main.o] Error 1 +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/LockingPtr' +make[3]: *** [Makefile:12: LockingPtr] Error 2 +make[3]: *** Waiting for unfinished jobs.... +In file included from ../../include/loki/Function.h:22, + from Dependencies.cpp:19: +../../include/loki/Functor.h:1250:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 1250 | Functor(std::auto_ptr spImpl) : spImpl_(spImpl) + | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from main.cpp:18: + from Dependencies.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Factory.h:20, - from CachedFactoryTest.cpp:29: -../../include/loki/Functor.h: In function 'Fun2 Loki::Chain(const Fun1&, const Fun2&)': -../../include/loki/Functor.h:1781:26: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] - 1781 | return Fun2(std::auto_ptr( - | ^~~~~~~~ +In file included from ../../include/loki/Function.h:22, + from Dependencies.cpp:19: +../../include/loki/Functor.h:1263:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 1263 | typedef Impl * (std::auto_ptr::*unspecified_bool_type)() const; + | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from CachedFactoryTest.cpp:29: + from Dependencies.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Factory.h:20, - from main.cpp:18: +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -fexpensive-optimizations -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o SmallObjSingleton.o SmallObjSingleton.cpp +In file included from ../../include/loki/Function.h:22, + from Dependencies.cpp:19: ../../include/loki/Functor.h:1428:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1428 | std::auto_ptr spImpl_; | ^~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from main.cpp:18: + from Dependencies.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from SmallObjectTest.h:20, - from Test.cpp:45: -../../include/loki/SmallObj.h: At global scope: -../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] - 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) - | ^~~~~ -In file included from ../../include/loki/Factory.h:20, - from main.cpp:18: +In file included from ../../include/loki/Function.h:22, + from Dependencies.cpp:19: ../../include/loki/Functor.h: In member function 'Loki::Functor::operator Loki::Functor::unspecified_bool_type() const': ../../include/loki/Functor.h:1267:42: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1267 | return spImpl_.get() ? &std::auto_ptr::get : 0; @@ -1964,14 +1805,12 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from main.cpp:18: + from Dependencies.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Factory.h:20, - from main.cpp:18: +In file included from ../../include/loki/Function.h:22, + from Dependencies.cpp:19: ../../include/loki/Functor.h: In function 'typename Loki::Private::BinderFirstTraits::BoundFunctorType Loki::BindFirst(const Fctor&, typename Fctor::Parm1)': ../../include/loki/Functor.h:1619:30: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1619 | return Outgoing(std::auto_ptr( @@ -1979,14 +1818,12 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from main.cpp:18: + from Dependencies.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -In file included from ../../include/loki/Factory.h:20, - from main.cpp:18: +In file included from ../../include/loki/Function.h:22, + from Dependencies.cpp:19: ../../include/loki/Functor.h: In function 'Fun2 Loki::Chain(const Fun1&, const Fun2&)': ../../include/loki/Functor.h:1781:26: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 1781 | return Fun2(std::auto_ptr( @@ -1994,62 +1831,42 @@ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, - from ../../include/loki/Functor.h:24, - from ../../include/loki/Factory.h:20, - from main.cpp:18: + from Dependencies.cpp:18: /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -FunctionTest.cpp: In function 'void test_ref()': -FunctionTest.cpp:740:25: warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=] - 740 | catch(runtime_error e) - | ^ -FunctionTest.cpp: In function 'void test_exception()': -FunctionTest.cpp:757:11: error: reference to 'bad_function_call' is ambiguous - 757 | catch(bad_function_call) - | ^~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/10/functional:59, - from FunctionTest.cpp:13: -/usr/include/c++/10/bits/std_function.h:56:9: note: candidates are: 'class std::bad_function_call' - 56 | class bad_function_call : public std::exception - | ^~~~~~~~~~~~~~~~~ -In file included from ../../include/loki/Function.h:22, - from FunctionTest.cpp:50: -../../include/loki/Functor.h:1180:11: note: 'class Loki::bad_function_call' - 1180 | class bad_function_call : public std::runtime_error - | ^~~~~~~~~~~~~~~~~ -make[4]: *** [: main.o] Error 1 -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/LockingPtr' -make[3]: *** [Makefile:12: LockingPtr] Error 2 -make[3]: *** Waiting for unfinished jobs.... -make[4]: *** [: SmallObjBench.o] Error 1 -make[4]: *** Waiting for unfinished jobs.... -g++ --shared -fPIC -L../../lib -o libfoo.so foo.lo ../../lib/libloki.a -g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a -ar rv libfoo.a foo.o -g++ -Wl,-z,relro -o Phoenix Phoenix.o ../../lib/libloki.a -ar: creating libfoo.a -g++ -Wl,-z,relro -o main2 main2.o ../../lib/libloki.a -CachedFactoryTest.cpp: In function 'void unitTestCachePerformance(int)': -CachedFactoryTest.cpp:179:119: warning: conversion from 'milliSec' {aka 'long int'} to 'double' may change value [-Wconversion] - 179 | cout << "No cache "<: FunctionTest.o] Error 1 +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Function' main.cpp: In function 'void DoRefLinkSwapTests()': main.cpp:612:10: warning: variable 'merged' set but not used [-Wunused-but-set-variable] 612 | bool merged = false; | ^~~~~~ -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Visitor' +make[3]: *** [Makefile:12: Function] Error 2 +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o strong.o strong.cpp +g++ -Wl,-z,relro -o DeletableSingleton DeletableSingleton.o ../../lib/libloki.a main.cpp: In function 'int main(int, const char**)': main.cpp:1004:10: warning: variable 'doThreadTest' set but not used [-Wunused-but-set-variable] 1004 | bool doThreadTest = false; | ^~~~~~~~~~~~ -g++ --shared -fPIC -L../../lib -L. -o libsingletondll.so singletondll.lo libfoo.so -lfoo ../../lib/libloki.a -a - foo.o -make[4]: *** [: FunctionTest.o] Error 1 -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Function' -make[3]: *** [Makefile:12: Function] Error 2 -make[4]: *** [: strong.o] Error 1 -make[4]: *** Waiting for unfinished jobs.... +ar rv libfoo.a foo.o +ar: creating libfoo.a +Dependencies.cpp: In function 'int main()': +Dependencies.cpp:411:11: warning: variable 'p' set but not used [-Wunused-but-set-variable] + 411 | void* p; + | ^ +In file included from singletondll.h:26, + from client.cpp:28: +../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': +../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 158 | std::auto_ptr + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from singletondll.h:26, + from client.cpp:28: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ In file included from main.cpp:18: ../../include/loki/SmartPtr.h: In instantiation of 'void Loki::DefaultSPStorage::Destroy() [with T = Thingy]': ../../include/loki/SmartPtr.h:1264:28: required from 'Loki::SmartPtr::~SmartPtr() [with T = Thingy; OwnershipPolicy = Loki::RefCounted; ConversionPolicy = Loki::DisallowConversion; CheckingPolicy = Loki::AssertCheck; StoragePolicy = Loki::DefaultSPStorage; ConstnessPolicy = Loki::PropagateConst]' @@ -2067,24 +1884,134 @@ ../../include/loki/SmartPtr.h:200:13: note: neither the destructor nor the class-specific 'operator delete' will be called, even if they are declared when the class is defined 200 | delete pointee_; | ^~~~~~~~~~~~~~~ -g++ -L. -L../../lib -o client client.o ../../lib/libloki.a -lfoo -lsingletondll -g++ -Wl,-z,relro -o DeletableSingleton DeletableSingleton.o ../../lib/libloki.a -LockTest.cpp: In function 'void DoLockedPtrTest()': -LockTest.cpp:431:13: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 431 | ::system( "pause" ); - | ~~~~~~~~^~~~~~~~~~~ -LockTest.cpp:439:13: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 439 | ::system( "pause" ); - | ~~~~~~~~^~~~~~~~~~~ -LockTest.cpp: In function 'void DoLockedStorageTest()': -LockTest.cpp:456:13: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 456 | ::system( "pause" ); - | ~~~~~~~~^~~~~~~~~~~ -LockTest.cpp:463:13: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 463 | ::system( "pause" ); - | ~~~~~~~~^~~~~~~~~~~ -g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a +CachedFactoryTest.cpp: In function 'void unitTestCachePerformance(int)': +CachedFactoryTest.cpp:179:119: warning: conversion from 'milliSec' {aka 'long int'} to 'double' may change value [-Wconversion] + 179 | cout << "No cache "< class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 158 | std::auto_ptr + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from main.cpp:57: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ +a - foo.o +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o LockTest.o LockTest.cpp +In file included from ../../include/loki/SmallObj.h:22, + from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/StrongPtr.h:20, + from strong.cpp:22: +../../include/loki/Threads.h:190:57: warning: unnecessary parentheses in declaration of 'mtx_' [-Wparentheses] + 190 | #define LOKI_THREADS_MUTEX(x) pthread_mutex_t (x); + | ^ +../../include/loki/Threads.h:348:9: note: in expansion of macro 'LOKI_THREADS_MUTEX' + 348 | LOKI_THREADS_MUTEX(mtx_) + | ^~~~~~~~~~~~~~~~~~ +../../include/loki/Threads.h: In static member function 'static void Loki::ObjectLevelLockable::AtomicAssign(volatile IntType&, Loki::ObjectLevelLockable::IntType)': +../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive] + 254 | return lval; \ + | ^~~~ +../../include/loki/Threads.h:505:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' + 505 | LOKI_THREADS_ATOMIC_FUNCTIONS + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../include/loki/Threads.h: In static member function 'static void Loki::ObjectLevelLockable::AtomicAssign(Loki::ObjectLevelLockable::IntType&, const volatile IntType&)': +../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive] + 262 | return lval; \ + | ^~~~ +../../include/loki/Threads.h:505:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' + 505 | LOKI_THREADS_ATOMIC_FUNCTIONS + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../include/loki/Threads.h: In static member function 'static void Loki::ClassLevelLockable::AtomicAssign(volatile IntType&, Loki::ClassLevelLockable::IntType)': +../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive] + 254 | return lval; \ + | ^~~~ +../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' + 590 | LOKI_THREADS_ATOMIC_FUNCTIONS + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../include/loki/Threads.h: In static member function 'static void Loki::ClassLevelLockable::AtomicAssign(Loki::ClassLevelLockable::IntType&, const volatile IntType&)': +../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive] + 262 | return lval; \ + | ^~~~ +../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' + 590 | LOKI_THREADS_ATOMIC_FUNCTIONS + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ../../include/loki/SmallObj.h:23, + from SmallObjectTest.h:20, + from Test.cpp:45: +../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': +../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 158 | std::auto_ptr + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from ../../include/loki/SmallObj.h:23, + from SmallObjectTest.h:20, + from Test.cpp:45: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ +In file included from singletondll.h:26, + from singletondll.cpp:16: +../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': +../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 158 | std::auto_ptr + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from singletondll.h:26, + from singletondll.cpp:16: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ +In file included from SmallObjectTest.h:20, + from Test.cpp:45: +../../include/loki/SmallObj.h: At global scope: +../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) + | ^~~~~ +make[4]: *** [: SmallObjBench.o] Error 1 +make[4]: *** Waiting for unfinished jobs.... +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -fexpensive-optimizations -O3 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -c -o main2.o main2.cpp +In file included from LockTest.cpp:37: +../../include/loki/Threads.h:190:57: warning: unnecessary parentheses in declaration of 'mtx_' [-Wparentheses] + 190 | #define LOKI_THREADS_MUTEX(x) pthread_mutex_t (x); + | ^ +../../include/loki/Threads.h:348:9: note: in expansion of macro 'LOKI_THREADS_MUTEX' + 348 | LOKI_THREADS_MUTEX(mtx_) + | ^~~~~~~~~~~~~~~~~~ +../../include/loki/Threads.h: In static member function 'static void Loki::ObjectLevelLockable::AtomicAssign(volatile IntType&, Loki::ObjectLevelLockable::IntType)': +../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive] + 254 | return lval; \ + | ^~~~ +../../include/loki/Threads.h:505:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' + 505 | LOKI_THREADS_ATOMIC_FUNCTIONS + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../include/loki/Threads.h: In static member function 'static void Loki::ObjectLevelLockable::AtomicAssign(Loki::ObjectLevelLockable::IntType&, const volatile IntType&)': +../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive] + 262 | return lval; \ + | ^~~~ +../../include/loki/Threads.h:505:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' + 505 | LOKI_THREADS_ATOMIC_FUNCTIONS + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../include/loki/Threads.h: In static member function 'static void Loki::ClassLevelLockable::AtomicAssign(volatile IntType&, Loki::ClassLevelLockable::IntType)': +../../include/loki/Threads.h:254:20: error: return-statement with a value, in function returning 'void' [-fpermissive] + 254 | return lval; \ + | ^~~~ +../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' + 590 | LOKI_THREADS_ATOMIC_FUNCTIONS + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../include/loki/Threads.h: In static member function 'static void Loki::ClassLevelLockable::AtomicAssign(Loki::ClassLevelLockable::IntType&, const volatile IntType&)': +../../include/loki/Threads.h:262:20: error: return-statement with a value, in function returning 'void' [-fpermissive] + 262 | return lval; \ + | ^~~~ +../../include/loki/Threads.h:590:9: note: in expansion of macro 'LOKI_THREADS_ATOMIC_FUNCTIONS' + 590 | LOKI_THREADS_ATOMIC_FUNCTIONS + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CachedFactoryTest.cpp: In instantiation of 'milliSec typicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory; milliSec = long int]': CachedFactoryTest.cpp:238:42: required from 'void displayTypicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory]' CachedFactoryTest.cpp:252:89: required from here @@ -2099,10 +2026,100 @@ CachedFactoryTest.cpp:238:42: required from 'void displayTypicalUse(Cache&, unsigned int, unsigned int, unsigned int) [with Cache = Loki::CachedFactory]' CachedFactoryTest.cpp:262:75: required from here CachedFactoryTest.cpp:204:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] +g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a +g++ --shared -fPIC -L../../lib -o libfoo.so foo.lo ../../lib/libloki.a make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/DeletableSingleton' -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SingletonDll' +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Visitor' +In file included from ../../include/loki/SmallObj.h:23, + from SmallObjSingleton.cpp:17: +../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': +../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 158 | std::auto_ptr + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from ../../include/loki/SmallObj.h:23, + from SmallObjSingleton.cpp:17: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ +In file included from SmallObjSingleton.cpp:17: +../../include/loki/SmallObj.h: At global scope: +../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) + | ^~~~~ +In file included from ../../include/loki/SmallObj.h:23, + from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/StrongPtr.h:20, + from strong.cpp:22: +../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': +../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 158 | std::auto_ptr + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from ../../include/loki/SmallObj.h:23, + from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/StrongPtr.h:20, + from strong.cpp:22: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ +In file included from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/StrongPtr.h:20, + from strong.cpp:22: +../../include/loki/SmallObj.h: At global scope: +../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) + | ^~~~~ +g++ --shared -fPIC -L../../lib -L. -o libsingletondll.so singletondll.lo libfoo.so -lfoo ../../lib/libloki.a make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/ScopeGuard' -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Longevity' +g++ -Wl,-z,relro -o Phoenix Phoenix.o ../../lib/libloki.a +strong.cpp: In function 'void DoWeakLeakTest()': +strong.cpp:329:24: warning: unused variable 'ctorCount' [-Wunused-variable] + 329 | const unsigned int ctorCount = Counted::GetCtorCount(); + | ^~~~~~~~~ +strong.cpp:330:24: warning: unused variable 'dtorCount' [-Wunused-variable] + 330 | const unsigned int dtorCount = Counted::GetDtorCount(); + | ^~~~~~~~~ +In file included from ../../include/loki/SmallObj.h:23, + from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/StrongPtr.h:20, + from LockTest.cpp:38: +../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': +../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 158 | std::auto_ptr + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from ../../include/loki/SmallObj.h:23, + from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/StrongPtr.h:20, + from LockTest.cpp:38: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ +In file included from ../../include/loki/SmartPtr.h:33, + from ../../include/loki/StrongPtr.h:20, + from LockTest.cpp:38: +../../include/loki/SmallObj.h: At global scope: +../../include/loki/SmallObj.h:462:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] + 462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc ) + | ^~~~~ +g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a +g++ -L. -L../../lib -o client client.o ../../lib/libloki.a -lfoo -lsingletondll +g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a +In file included from main2.cpp:15: +../../include/loki/Singleton.h: In function 'void Loki::SetLongevity(T*, unsigned int, Destroyer)': +../../include/loki/Singleton.h:158:14: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] + 158 | std::auto_ptr + | ^~~~~~~~ +In file included from /usr/include/c++/10/memory:83, + from ../../include/loki/Singleton.h:30, + from main2.cpp:15: +/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here + 57 | template class auto_ptr; + | ^~~~~~~~ In file included from ../../include/loki/Factory.h:20, from FactoryTest.h:19, from Test.cpp:55: @@ -2190,7 +2207,8 @@ /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -make[4]: *** [: LockTest.o] Error 1 +make[4]: *** [: strong.o] Error 1 +make[4]: *** Waiting for unfinished jobs.... In file included from Test.cpp:57: AbstractFactoryTest.h: In member function 'virtual void AbstractFactoryTest::execute(TestResult&)': AbstractFactoryTest.h:74:10: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] @@ -2204,10 +2222,18 @@ /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SingletonDll' In file included from Test.cpp:57: AbstractFactoryTest.h:75:10: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] 75 | std::auto_ptr hardFactory(new HardLevelEnemyFactory); | ^~~~~~~~ +LockTest.cpp: In function 'void DoLockedPtrTest()': +LockTest.cpp:431:13: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 431 | ::system( "pause" ); + | ~~~~~~~~^~~~~~~~~~~ +LockTest.cpp:439:13: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 439 | ::system( "pause" ); + | ~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/c++/10/memory:83, from ../../include/loki/Singleton.h:30, from ../../include/loki/SmallObj.h:23, @@ -2216,29 +2242,38 @@ /usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ -g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a +LockTest.cpp: In function 'void DoLockedStorageTest()': +LockTest.cpp:456:13: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 456 | ::system( "pause" ); + | ~~~~~~~~^~~~~~~~~~~ +LockTest.cpp:463:13: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 463 | ::system( "pause" ); + | ~~~~~~~~^~~~~~~~~~~ +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/OrderedStatic' +make[4]: *** [: LockTest.o] Error 1 In file included from Test.cpp:60: AssocVectorTest.h: In function 'void test_vect2()': AssocVectorTest.h:262:45: warning: variable 'aux' set but not used [-Wunused-but-set-variable] 262 | std::pair aux = vec21.insert(std::make_pair("xyz", 99)); | ^~~ +g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -L. -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -o main main.o ../../lib/libloki.a -lfoo AssocVectorTest.h: In function 'void test_vect4()': AssocVectorTest.h:321:28: warning: variable 'it' set but not used [-Wunused-but-set-variable] 321 | test_vect4_t::iterator it = vec41.find(AVTestClass(22)); | ^~ -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/OrderedStatic' +g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Register' +g++ -Wl,-z,relro -o main2 main2.o ../../lib/libloki.a +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SafeFormat' make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SmallObj' make[3]: *** [Makefile:12: SmallObj] Error 2 -g++ -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -g -O2 -L. -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -DNDEBUG -o main main.o ../../lib/libloki.a -lfoo -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Register' +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Longevity' g++ -Wl,-z,relro -o Dependencies Dependencies.o ../../lib/libloki.a -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Singleton' -g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SafeFormat' g++ -Wl,-z,relro -o main main.o ../../lib/libloki.a -make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Pimpl' make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/SmartPtr' make[3]: *** [Makefile:12: SmartPtr] Error 2 +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Singleton' +make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Pimpl' g++ -Wl,-z,relro -o Factory Factory.o ../../lib/libloki.a make[4]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test/Factory' g++ -Wl,-z,relro -o CachedFactoryTest CachedFactoryTest.o ../../lib/libloki.a @@ -2248,7 +2283,7 @@ make[3]: Leaving directory '/build/reproducible-path/libloki-0.1.7/test' make[2]: *** [Makefile:12: check] Error 2 make[2]: Leaving directory '/build/reproducible-path/libloki-0.1.7' -dh_auto_test: error: make -j42 check OS=Linux returned exit code 2 +dh_auto_test: error: make -j20 check OS=Linux returned exit code 2 make[1]: [debian/rules:12: override_dh_auto_test] Error 25 (ignored) make[1]: Leaving directory '/build/reproducible-path/libloki-0.1.7' create-stamp debian/debhelper-build-stamp @@ -2259,7 +2294,7 @@ debian/rules override_dh_auto_install make[1]: Entering directory '/build/reproducible-path/libloki-0.1.7' dh_auto_install -- OS=Linux install prefix=/build/reproducible-path/libloki-0.1.7/debian/tmp/usr - make -j42 install DESTDIR=/build/reproducible-path/libloki-0.1.7/debian/tmp AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" OS=Linux install prefix=/build/reproducible-path/libloki-0.1.7/debian/tmp/usr + make -j20 install DESTDIR=/build/reproducible-path/libloki-0.1.7/debian/tmp AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" OS=Linux install prefix=/build/reproducible-path/libloki-0.1.7/debian/tmp/usr make[2]: Entering directory '/build/reproducible-path/libloki-0.1.7' make -C src install-static make[3]: Entering directory '/build/reproducible-path/libloki-0.1.7/src' @@ -2303,10 +2338,10 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'libloki0.1.7' in '../libloki0.1.7_0.1.7-4_amd64.deb'. dpkg-deb: building package 'libloki0.1.7-dbgsym' in '../libloki0.1.7-dbgsym_0.1.7-4_amd64.deb'. -dpkg-deb: building package 'libloki-doc' in '../libloki-doc_0.1.7-4_all.deb'. dpkg-deb: building package 'libloki-dev' in '../libloki-dev_0.1.7-4_amd64.deb'. +dpkg-deb: building package 'libloki0.1.7' in '../libloki0.1.7_0.1.7-4_amd64.deb'. +dpkg-deb: building package 'libloki-doc' in '../libloki-doc_0.1.7-4_all.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../libloki_0.1.7-4_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2314,12 +2349,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/2376569/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2376569/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2301052 and its subdirectories -I: Current time: Mon Sep 8 11:38:11 -12 2025 -I: pbuilder-time-stamp: 1757374691 +I: removing directory /srv/workspace/pbuilder/2376569 and its subdirectories +I: Current time: Wed Aug 7 07:17:10 +14 2024 +I: pbuilder-time-stamp: 1722964630