Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707682 - net-analyzer/netdata-1.19.0-r2 : fails to build with -fno-common or gcc-10
Summary: net-analyzer/netdata-1.19.0-r2 : fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-31 22:20 UTC by Toralf Förster
Modified: 2020-02-01 03:09 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.71 KB, text/plain)
2020-01-31 22:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,313.76 KB, text/plain)
2020-01-31 22:20 UTC, Toralf Förster
Details
environment (environment,141.35 KB, text/plain)
2020-01-31 22:20 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.78 KB, application/x-bzip)
2020-01-31 22:20 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,13.96 KB, application/x-bzip)
2020-01-31 22:20 UTC, Toralf Förster
Details
net-analyzer:netdata-1.19.0-r2:20200131-213924.log (net-analyzer:netdata-1.19.0-r2:20200131-213924.log,79.77 KB, text/plain)
2020-01-31 22:20 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,37.44 KB, application/x-bzip)
2020-01-31 22:20 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-01-31 22:20:29 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -DTARGET_OS=1 	-DVARLIB_DIR="\"/var/lib/netdata\"" 	-DCACHE_DIR="\"/var/cache/netdata\"" 	-DCONFIG_DIR="\"/etc/netdata\"" 	-DLIBCONFIG_DIR="\"/usr/lib64/netdata/conf.d\"" 	-DLOG_DIR="\"/var/log/netdata\"" 	-DPLUGINS_DIR="\"/usr/libexec/netdata/plugins.d\"" 	-DRUN_DIR="\"/var/run/netdata\"" 	-DWEB_DIR="\"/usr/share/netdata/web\""     -I/usr/include/uuid  -lcap      -O2 -pipe -march=native -fno-common -pthread -flto    -I/usr/include/uuid                 -c -o libnetdata/json/jsmn.o libnetdata/json/jsmn.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -DTARGET_OS=1 	-DVARLIB_DIR="\"/var/lib/netdata\"" 	-DCACHE_DIR="\"/var/cache/netdata\"" 	-DCONFIG_DIR="\"/etc/netdata\"" 	-DLIBCONFIG_DIR="\"/usr/lib64/netdata/conf.d\"" 	-DLOG_DIR="\"/var/log/netdata\"" 	-DPLUGINS_DIR="\"/usr/libexec/netdata/plugins.d\"" 	-DRUN_DIR="\"/var/run/netdata\"" 	-DWEB_DIR="\"/usr/share/netdata/web\""     -I/usr/include/uuid  -lcap      -O2 -pipe -march=native -fno-common -pthread -flto    -I/usr/include/uuid                 -c -o libnetdata/health/health.o libnetdata/health/health.c
x86_64-pc-linux-gnu-gcc    -I/usr/include/uuid  -lcap      -O2 -pipe -march=native -fno-common -pthread -flto    -I/usr/include/uuid                  -Wl,-O1 -Wl,--as-needed -o apps.plugin collectors/apps.plugin/apps_plugin.o libnetdata/adaptive_resortable_list/adaptive_resortable_list.o libnetdata/config/appconfig.o libnetdata/avl/avl.o libnetdata/buffer/buffer.o libnetdata/clocks/clocks.o libnetdata/dictionary/dictionary.o libnetdata/eval/eval.o libnetdata/libnetdata.o libnetdata/locks/locks.o libnetdata/log/log.o libnetdata/popen/popen.o libnetdata/procfile/procfile.o libnetdata/os.o libnetdata/simple_pattern/simple_pattern.o libnetdata/socket/socket.o libnetdata/socket/security.o libnetdata/statistical/statistical.o libnetdata/storage_number/storage_number.o libnetdata/threads/threads.o libnetdata/url/url.o libnetdata/json/json.o libnetdata/json/jsmn.o libnetdata/health/health.o -lm -lz  -lcrypto -lssl -luuid  -luv -llz4 -lJudy -lcrypto -lssl -ljson-c  -lcap   
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libnetdata/adaptive_resortable_list/adaptive_resortable_list.o (symbol from plugin): in function `arl_callback_str2ull':
(.text+0x0): multiple definition of `silencers'; collectors/apps.plugin/apps_plugin.o (symbol from plugin):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libnetdata/config/appconfig.o (symbol from plugin): in function `appconfig_section_compare':

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20200124-204141

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

  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:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 31 Jan 2020 20:47:54 +0000

emerge -qpvO net-analyzer/netdata
[ebuild  N    ] net-analyzer/netdata-1.19.0-r2  USE="compression dbengine filecaps jsonc python -caps -cups -ipmi -kinesis -mongodb -mysql -nfacct -nodejs -postgres -prometheus -tor -xen" CPU_FLAGS_X86="sse2" PYTHON_TARGETS="python2_7 python3_6 -python3_7"
Comment 1 Toralf Förster gentoo-dev 2020-01-31 22:20:32 UTC
Created attachment 610076 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-31 22:20:34 UTC
Created attachment 610078 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-31 22:20:38 UTC
Created attachment 610080 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-31 22:20:41 UTC
Created attachment 610082 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-31 22:20:44 UTC
Created attachment 610084 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-31 22:20:46 UTC
Created attachment 610086 [details]
net-analyzer:netdata-1.19.0-r2:20200131-213924.log
Comment 7 Toralf Förster gentoo-dev 2020-01-31 22:20:49 UTC
Created attachment 610088 [details]
temp.tbz2
Comment 8 Craig Andrews gentoo-dev 2020-01-31 22:38:06 UTC
Already reported upsteam: https://github.com/netdata/netdata/issues/7869

Will be fixed in the next netdata release.

Thanks!
Comment 9 Larry the Git Cow gentoo-dev 2020-02-01 03:09:15 UTC
The bug has been closed via the following commit(s):

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

commit 630a09cecd1cf4294b5cd3bbb1713dd67a3314c7
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2020-02-01 03:07:14 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2020-02-01 03:09:08 +0000

    net-analyzer/netdata: fix building with -fno-common
    
    Closes: https://bugs.gentoo.org/707682
    Package-Manager: Portage-2.3.86, Repoman-2.3.20
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 .../netdata/files/netdata-1.19.0-fno-common.patch  | 126 +++++++++++++++++++++
 net-analyzer/netdata/netdata-1.19.0-r2.ebuild      |   1 +
 2 files changed, 127 insertions(+)