Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708522 - net-misc/ntpsec-1.1.8 : fails to build with -fno-common or gcc-10
Summary: net-misc/ntpsec-1.1.8 : fails to build with -fno-common or gcc-10
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-06 22:22 UTC by Toralf Förster
Modified: 2020-05-02 16:16 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.22 KB, text/plain)
2020-02-06 22:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,178.68 KB, text/plain)
2020-02-06 22:22 UTC, Toralf Förster
Details
environment (environment,145.33 KB, text/plain)
2020-02-06 22:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.77 KB, application/x-bzip)
2020-02-06 22:23 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,15.60 KB, application/x-bzip)
2020-02-06 22:23 UTC, Toralf Förster
Details
net-misc:ntpsec-1.1.8:20200206-064632.log (net-misc:ntpsec-1.1.8:20200206-064632.log,100.31 KB, text/plain)
2020-02-06 22:23 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,38.98 KB, application/x-bzip)
2020-02-06 22:23 UTC, Toralf Förster
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-02-06 22:22:52 UTC
[ 74/104] Compiling ntpd/ntp_signd.c
07:47:11 runner ['x86_64-pc-linux-gnu-gcc', '-DUNITY_EXCLUDE_FLOAT_PRINT', '-fstack-protector-all', '-Wshadow', '-Wpacked', '-Wcast-qual', '-Wmissing-declarations', '-Wdisabled-optimization', '-Wimplicit-function-declaration', '-Winvalid-pch', '-Wpointer-arith', '-Wwrite-strings', '-Winit-self', '-Wfloat-equal', '-Wformat', '-Wformat-signedness', '-Wformat-security', '-Wsuggest-attribute=noreturn', '-fPIC', '-O1', '-Wall', '-Wextra', '-Wmissing-prototypes', '-Wstrict-prototypes', '-Wundef', '-Wunused', '-std=c99', '-D_GNU_SOURCE', '-O2', '-pipe', '-march=native', '-fno-common', '-I..', '-Iinclude', '-I../../include', '-I../host/ntpd', '-Intpd', '-I../../ntpd', '-DPYTHONDIR="/usr/lib64/python2.7/site-packages"', '-DPYTHONARCHDIR="/usr/lib64/python2.7/site-packages"', '-DHAVE_PYEXT=1', '-DHAVE_PYTHON_H=1', '../../ntpd/ntp_signd.c', '-c', '-o/var/tmp/portage/net-misc/ntpsec-1.1.8/work/ntpsec-1.1.8-python2_7/build/main/ntpd/ntp_signd.c.3.o']
[ 75/104] Linking build/main/ntpd/ntpd
07:47:11 runner ['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=native', '-fno-common', '-Wl,-O1', '-Wl,--as-needed', '-pie', 'ntpd/ntp_config.c.3.o', 'ntpd/ntp_io.c.3.o', 'ntpd/ntp_loopfilter.c.3.o', 'ntpd/ntp_packetstamp.c.3.o', 'ntpd/ntp_peer.c.3.o', 'ntpd/ntp_proto.c.3.o', 'ntpd/ntp_sandbox.c.3.o', 'ntpd/ntp_scanner.c.3.o', 'ntpd/ntp_signd.c.3.o', 'ntpd/ntp_timer.c.3.o', 'ntpd/ntp_dns.c.3.o', 'ntpd/ntpd.c.3.o', 'build/host/ntpd/ntp_parser.tab.c.3.o', 'ntpd/ntp_control.c.1.o', 'ntpd/ntp_filegen.c.1.o', 'ntpd/ntp_leapsec.c.1.o', 'ntpd/ntp_monitor.c.1.o', 'ntpd/ntp_recvbuff.c.1.o', 'ntpd/ntp_restrict.c.1.o', 'ntpd/ntp_util.c.1.o', 'ntpd/nts.c.1.o', 'ntpd/nts_server.c.1.o', 'ntpd/nts_client.c.1.o', 'ntpd/nts_cookie.c.1.o', 'ntpd/nts_extens.c.1.o', '-o/var/tmp/portage/net-misc/ntpsec-1.1.8/work/ntpsec-1.1.8-python2_7/build/main/ntpd/ntpd', '-Wl,-Bstatic', '-Llibaes_siv', '-Llibntp', '-laes_siv', '-lntp', '-Wl,-Bdynamic', '-lcrypto', '-lssl', '-lm', '-lrt', '-lcap', '-lseccomp', '-lpthread', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-z,now', '-Wl,-z,relro']
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ntpd/ntp_io.c.3.o:(.bss+0xa0): multiple definition of `sys_maxclock'; ntpd/ntp_config.c.3.o:(.bss+0x994): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ntpd/ntp_loopfilter.c.3.o:(.bss+0x8): multiple definition of `sys_maxclock'; ntpd/ntp_config.c.3.o:(.bss+0x994): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20200202-055736

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

  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.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.0 *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.15.0 [icedtea-8]
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 7.10.3

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 06 Feb 2020 05:55:32 +0000

emerge -qpvO net-misc/ntpsec
[ebuild  N    ] net-misc/ntpsec-1.1.8  USE="seccomp -debug -doc -early -gdb -heat -libbsd -nist -ntpviz -rclock_arbiter -rclock_generic -rclock_gpsd -rclock_hpgps -rclock_jjy -rclock_local -rclock_modem -rclock_neoclock -rclock_nmea -rclock_oncore -rclock_pps -rclock_shm -rclock_spectracom -rclock_trimble -rclock_truetime -rclock_zyfer -samba -smear -tests" PYTHON_TARGETS="python2_7 python3_6"
Comment 1 Toralf Förster gentoo-dev 2020-02-06 22:22:55 UTC
Created attachment 612206 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-06 22:22:58 UTC
Created attachment 612208 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-06 22:23:01 UTC
Created attachment 612210 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-06 22:23:04 UTC
Created attachment 612212 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-06 22:23:07 UTC
Created attachment 612214 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-06 22:23:10 UTC
Created attachment 612216 [details]
net-misc:ntpsec-1.1.8:20200206-064632.log
Comment 7 Toralf Förster gentoo-dev 2020-02-06 22:23:13 UTC
Created attachment 612218 [details]
temp.tbz2
Comment 8 Hanno Böck gentoo-dev 2020-02-11 07:17:42 UTC
Patch from upstream repo:
https://github.com/ntpsec/ntpsec/commit/ccdd9d4b941b30fc44b301595e42809dbe48628d
Comment 9 Sam James (sec padawan) 2020-05-02 16:16:12 UTC
(In reply to Hanno Böck from comment #8)
> Patch from upstream repo:
> https://github.com/ntpsec/ntpsec/commit/
> ccdd9d4b941b30fc44b301595e42809dbe48628d

Please apply this as GCC 10 is close.