Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736766 - net-libs/libcork-0.15.0-r1 : /.../helpers.h: error: too many arguments for format [-Werror=format-extra-args]
Summary: net-libs/libcork-0.15.0-r1 : /.../helpers.h: error: too many arguments for fo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords:
: 733950 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-08-11 17:00 UTC by Toralf Förster
Modified: 2020-12-23 12:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.11 KB, text/plain)
2020-08-11 17:00 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,224.27 KB, text/plain)
2020-08-11 17:00 UTC, Toralf Förster
Details
environment (environment,90.91 KB, text/plain)
2020-08-11 17:00 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.69 KB, application/x-bzip)
2020-08-11 17:01 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.10 KB, application/x-bzip)
2020-08-11 17:01 UTC, Toralf Förster
Details
net-libs:libcork-0.15.0-r1:20200811-134712.log (net-libs:libcork-0.15.0-r1:20200811-134712.log,103.76 KB, text/plain)
2020-08-11 17:01 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.24 KB, application/x-bzip)
2020-08-11 17:01 UTC, Toralf Förster
Details
full build log (libcork-build.log,375.40 KB, text/plain)
2020-09-22 07:11 UTC, Anton Kochkov
Details
build log (build.log,114.09 KB, text/x-log)
2020-11-14 05:37 UTC, picnic.sun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-08-11 17:00:51 UTC
In file included from /var/tmp/portage/net-libs/libcork-0.15.0-r1/work/libcork-0.15.0/tests/test-threads.c:15:
/var/tmp/portage/net-libs/libcork-0.15.0-r1/work/libcork-0.15.0/tests/test-threads.c: In function ‘test_atomic_int_fn’:
/var/tmp/portage/net-libs/libcork-0.15.0-r1/work/libcork-0.15.0/tests/helpers.h:86:18: error: too many arguments for format [-Werror=format-extra-args]
   86 |                  "%s not equal (expected " format \
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/net-libs/libcork-0.15.0-r1/work/libcork-0.15.0/tests/test-threads.c:32:9: note: in expansion of macro ‘fail_unless_equal’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20200807-101309

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.45.2 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.265_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Aug 11 01:05:48 PM UTC 2020

emerge -qpvO net-libs/libcork
[ebuild  N    ] net-libs/libcork-0.15.0-r1  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2020-08-11 17:00:54 UTC
Created attachment 654134 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-11 17:00:57 UTC
Created attachment 654136 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-08-11 17:00:59 UTC
Created attachment 654138 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-08-11 17:01:02 UTC
Created attachment 654140 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-08-11 17:01:05 UTC
Created attachment 654142 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-08-11 17:01:08 UTC
Created attachment 654144 [details]
net-libs:libcork-0.15.0-r1:20200811-134712.log
Comment 7 Toralf Förster gentoo-dev 2020-08-11 17:01:11 UTC
Created attachment 654146 [details]
temp.tbz2
Comment 8 Anton Kochkov 2020-09-22 07:11:59 UTC
Created attachment 661858 [details]
full build log

Met the same problem on the following configuration:

Portage 3.0.8 (python 3.7.9-final-0, default/linux/amd64/17.0/no-multilib/hardened, gcc-9.3.0, glibc-2.32-r1, 4.9.24-hardened x86_64)
=================================================================
System uname: Linux-4.9.24-hardened-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.7
KiB Mem:     8163492 total,   4218264 free
KiB Swap:   16016792 total,  15868076 free
Timestamp of repository gentoo: Tue, 22 Sep 2020 05:45:01 +0000
Head commit of repository gentoo: fcf46d9d67c70d4bd2b7ff45a30fd76ed862c626
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r3::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc2::gentoo
dev-util/cmake:           3.18.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            6.4.0-r2::gentoo, 7.3.0-r3::gentoo, 8.1.0-r3::gentoo, 8.2.0-r6::gentoo, 9.3.0-r1::gentoo, 10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

gentoo-xvilka
    location: /var/lib/layman/gentoo-xvilka
    masters: gentoo
    priority: 1

godin
    location: /var/lib/layman/godin
    masters: gentoo
    priority: 50

xvilka-overlay
    location: /var/lib/layman/xvilka-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 crypt cvs git gnutls hardened iconv ipv6 libglvnd libtirpc lighttpd mercurial mmx ncurses nls nptl openmp pam pcre perl php pie postgresql python readline sbcl seccomp split-usr sse sse2 sse4 ssl ssp ssse3 subversion unicode xattr xml xmlrpc xsl xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby27" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 picnic.sun 2020-11-14 05:37:36 UTC
Created attachment 671299 [details]
build log
Comment 10 libesse 2020-11-14 08:47:28 UTC
I found this compile with `-Werror`. `-Werror` treats warnings as errors. I change to `-Wextra`. compile sucessfully.


src_prepare() {
        if ! [ -e "${S}"/RELEASE-VERSION ] ; then
                echo ${PV} > "${S}"/RELEASE-VERSION || die
        fi
        sed -i -e "/DESTINATION/s/\${PROJECT_NAME}/\${PROJECT_NAME}-${PVR}/g" \
                docs/old/CMakeLists.txt || die
        # add this line
        sed -i -e "s/-Werror/-Wextra/" CMakeLists.txt || die

        cmake-utils_src_prepare
}

PS: net-libs/libcorkipset has similar problem.
Comment 11 picnic.sun 2020-11-14 09:46:07 UTC
(In reply to libesse from comment #10)
> I found this compile with `-Werror`. `-Werror` treats warnings as errors. I
> change to `-Wextra`. compile sucessfully.
> 
> 
> src_prepare() {
>         if ! [ -e "${S}"/RELEASE-VERSION ] ; then
>                 echo ${PV} > "${S}"/RELEASE-VERSION || die
>         fi
>         sed -i -e
> "/DESTINATION/s/\${PROJECT_NAME}/\${PROJECT_NAME}-${PVR}/g" \
>                 docs/old/CMakeLists.txt || die
>         # add this line
>         sed -i -e "s/-Werror/-Wextra/" CMakeLists.txt || die
> 
>         cmake-utils_src_prepare
> }
> 
> PS: net-libs/libcorkipset has similar problem.

Great. Who patch them up quickly?
Comment 12 libesse 2020-11-15 15:46:26 UTC
(In reply to picnic.sun from comment #11)
> (In reply to libesse from comment #10)
> > I found this compile with `-Werror`. `-Werror` treats warnings as errors. I
> > change to `-Wextra`. compile sucessfully.
> > 
> > 
> > src_prepare() {
> >         if ! [ -e "${S}"/RELEASE-VERSION ] ; then
> >                 echo ${PV} > "${S}"/RELEASE-VERSION || die
> >         fi
> >         sed -i -e
> > "/DESTINATION/s/\${PROJECT_NAME}/\${PROJECT_NAME}-${PVR}/g" \
> >                 docs/old/CMakeLists.txt || die
> >         # add this line
> >         sed -i -e "s/-Werror/-Wextra/" CMakeLists.txt || die
> > 
> >         cmake-utils_src_prepare
> > }
> > 
> > PS: net-libs/libcorkipset has similar problem.
> 
> Great. Who patch them up quickly?

If OK, Please others patch this(In reply to picnic.sun from comment #11)
> (In reply to libesse from comment #10)
> > I found this compile with `-Werror`. `-Werror` treats warnings as errors. I
> > change to `-Wextra`. compile sucessfully.
> > 
> > 
> > src_prepare() {
> >         if ! [ -e "${S}"/RELEASE-VERSION ] ; then
> >                 echo ${PV} > "${S}"/RELEASE-VERSION || die
> >         fi
> >         sed -i -e
> > "/DESTINATION/s/\${PROJECT_NAME}/\${PROJECT_NAME}-${PVR}/g" \
> >                 docs/old/CMakeLists.txt || die
> >         # add this line
> >         sed -i -e "s/-Werror/-Wextra/" CMakeLists.txt || die
> > 
> >         cmake-utils_src_prepare
> > }
> > 
> > PS: net-libs/libcorkipset has similar problem.
> 
> Great. Who patch them up quickly?

I am not sure. You may create own overlay if possible.
Comment 13 Larry the Git Cow gentoo-dev 2020-12-23 12:47:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b00628908281fa91ee80ac5193475b79b032e2ce

commit b00628908281fa91ee80ac5193475b79b032e2ce
Author:     Yixun Lan <dlan@gentoo.org>
AuthorDate: 2020-12-23 12:38:43 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2020-12-23 12:43:45 +0000

    net-libs/libcork: fix -Werror build err
    
    Closes: https://bugs.gentoo.org/736766
    Package-Manager: Portage-3.0.0, Repoman-2.3.23
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 net-libs/libcork/libcork-0.15.0-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 14 Yixun Lan archtester gentoo-dev 2020-12-23 12:49:58 UTC
*** Bug 733950 has been marked as a duplicate of this bug. ***