Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 707786

Summary: net-misc/openntpd-6.2_p3-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Paul B. Henson <henson>
Status: RESOLVED FIXED    
Severity: normal CC: hydrapolic, junghans, proxy-maint, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/15662
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 752006    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-misc:openntpd-6.2_p3-r1:20200201-161206.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-01 16:58:08 UTC
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common  -Wno-pointer-sign -Wall -std=gnu99 -fno-strict-aliasing -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var/lib\" -O2 -pipe -march=native -fno-common  -Wno-pointer-sign -Wall -std=gnu99 -fno-strict-aliasing  -Wl,-O1 -Wl,--as-needed  -o ntpd ntpd-client.o ntpd-config.o ntpd-constraint.o  ntpd-control.o ntpd-log.o ntpd-ntp.o ntpd-ntp_dns.o ntpd-ntp_msg.o ntpd-ntpd.o ntpd-parse.o  ntpd-fake-sensors.o ntpd-server.o ntpd-util.o   -lm ../compat/libcompat.la ../compat/libcompatnoopt.la -ltls -lcrypto  -ltls -lssl -lcrypto
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wno-pointer-sign -Wall -std=gnu99 -fno-strict-aliasing -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var/lib\" -O2 -pipe -march=native -fno-common -Wno-pointer-sign -Wall -std=gnu99 -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -o ntpd ntpd-client.o ntpd-config.o ntpd-constraint.o ntpd-control.o ntpd-log.o ntpd-ntp.o ntpd-ntp_dns.o ntpd-ntp_msg.o ntpd-ntpd.o ntpd-parse.o ntpd-fake-sensors.o ntpd-server.o ntpd-util.o  -lm ../compat/.libs/libcompat.a ../compat/.libs/libcompatnoopt.a -ltls -lssl -lcrypto
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ntpd-config.o:(.bss+0x0): multiple definition of `__packed'; ntpd-client.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ntpd-constraint.o:(.bss+0x20): multiple definition of `__packed'; ntpd-client.o:(.bss+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl-20200126-092715

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 01 Feb 2020 14:48:30 +0000

emerge -qpvO net-misc/openntpd
[ebuild  N    ] net-misc/openntpd-6.2_p3-r1  USE="libressl (-selinux)"
Comment 1 Toralf Förster gentoo-dev 2020-02-01 16:58:10 UTC
Created attachment 610522 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-01 16:58:13 UTC
Created attachment 610524 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-01 16:58:16 UTC
Created attachment 610526 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-01 16:58:19 UTC
Created attachment 610528 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-01 16:58:22 UTC
Created attachment 610530 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-01 16:58:24 UTC
Created attachment 610532 [details]
net-misc:openntpd-6.2_p3-r1:20200201-161206.log
Comment 7 Toralf Förster gentoo-dev 2020-02-01 16:58:27 UTC
Created attachment 610534 [details]
temp.tbz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-02 16:17:04 UTC
@maintainer(s), please be aware GCC 10 will be out in ~a week, so a fix for this is important. Thanks!
Comment 9 Larry the Git Cow gentoo-dev 2020-05-06 13:46:51 UTC
The bug has been closed via the following commit(s):

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

commit e1b05d95f42a73c2b5a4f6bd78fa2dc25d81b1bc
Author:     Paul B. Henson <henson@acm.org>
AuthorDate: 2020-05-06 03:18:02 +0000
Commit:     Christoph Junghans <junghans@gentoo.org>
CommitDate: 2020-05-06 13:46:40 +0000

    net-misc/openntpd: Fix issues with -fno-common compilation
    
    Closes: https://bugs.gentoo.org/707786
    Closes: https://github.com/gentoo/gentoo/pull/15662
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Paul B. Henson <henson@acm.org>
    Signed-off-by: Christoph Junghans <junghans@gentoo.org>

 .../openntpd/files/openntpd-6.2p3-fno-common.patch | 60 +++++++++++++++++++
 net-misc/openntpd/openntpd-6.2_p3-r2.ebuild        | 70 ++++++++++++++++++++++
 2 files changed, 130 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2021-01-05 21:59:02 UTC
The bug has been referenced in the following commit(s):

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

commit d86ed15b0faa300ca07e7091d5993f5f1626844f
Author:     Andreas K. Huettel <dilfridge@gentoo.org>
AuthorDate: 2021-01-05 21:35:34 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: 2021-01-05 21:58:44 +0000

    net-misc/openntpd: Remove old
    
    Bug: https://bugs.gentoo.org/707786
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>

 net-misc/openntpd/openntpd-6.2_p3-r1.ebuild | 66 -----------------------------
 1 file changed, 66 deletions(-)