Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706730 - sys-libs/libsepol-3.0 : fails to build with -fno-common or gcc-10
Summary: sys-libs/libsepol-3.0 : 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: SE Linux Bugs
URL: https://github.com/SELinuxProject/sel...
Whiteboard:
Keywords: PATCH
: 721178 (view as bug list)
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-27 17:43 UTC by Toralf Förster
Modified: 2020-10-31 05:06 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.91 KB, text/plain)
2020-01-27 17:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,41.96 KB, text/plain)
2020-01-27 17:43 UTC, Toralf Förster
Details
environment (environment,61.72 KB, text/plain)
2020-01-27 17:43 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.84 KB, application/x-bzip)
2020-01-27 17:43 UTC, Toralf Förster
Details
sys-libs:libsepol-3.0:20200127-173701.log (sys-libs:libsepol-3.0:20200127-173701.log,561.51 KB, text/plain)
2020-01-27 17:43 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,31.37 KB, application/x-bzip)
2020-01-27 17:43 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-27 17:43:10 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -I. -I../include -D_GNU_SOURCE -I../cil/include -fPIC -DSHARED -c -o ../cil/src/cil_tree.lo ../cil/src/cil_tree.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -I. -I../include -D_GNU_SOURCE -I../cil/include -fPIC -DSHARED -c -o ../cil/src/cil_verify.lo ../cil/src/cil_verify.c
cp libsepol.map.in libsepol.map
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -I. -I../include -D_GNU_SOURCE -I../cil/include -Wl,-O1 -Wl,--as-needed -shared -o libsepol.so.1 assertion.lo avrule_block.lo avtab.lo boolean_record.lo booleans.lo conditional.lo constraint.lo context.lo context_record.lo debug.lo deprecated_funcs.lo ebitmap.lo expand.lo handle.lo hashtab.lo hierarchy.lo ibendport_record.lo ibendports.lo ibpkey_record.lo ibpkeys.lo iface_record.lo interfaces.lo kernel_to_cil.lo kernel_to_common.lo kernel_to_conf.lo link.lo mls.lo module.lo module_to_cil.lo node_record.lo nodes.lo optimize.lo polcaps.lo policydb.lo policydb_convert.lo policydb_public.lo port_record.lo ports.lo roles.lo services.lo sidtab.lo symtab.lo user_record.lo users.lo util.lo write.lo ../cil/src/cil.lo ../cil/src/cil_binary.lo ../cil/src/cil_build_ast.lo ../cil/src/cil_copy_ast.lo ../cil/src/cil_find.lo ../cil/src/cil_fqn.lo ../cil/src/cil_lexer.lo ../cil/src/cil_list.lo ../cil/src/cil_log.lo ../cil/src/cil_mem.lo ../cil/src/cil_parser.lo ../cil/src/cil_policy.lo ../cil/src/cil_post.lo ../cil/src/cil_reset_ast.lo ../cil/src/cil_resolve_ast.lo ../cil/src/cil_stack.lo ../cil/src/cil_strpool.lo ../cil/src/cil_symtab.lo ../cil/src/cil_tree.lo ../cil/src/cil_verify.lo -Wl,-soname,libsepol.so.1,--version-script=libsepol.map,-z,defs
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../cil/src/cil_binary.lo:(.bss+0x3c0): multiple definition of `CIL_KEY_RANGE'; ../cil/src/cil.lo:(.bss+0x3c0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../cil/src/cil_binary.lo:(.bss+0x3c8): multiple definition of `CIL_KEY_ALL'; ../cil/src/cil.lo:(.bss+0x3c8): first defined here

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

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

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

  Please see the tracker bug for details.

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


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)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *




repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 27 Jan 2020 16:26:19 +0000

emerge -qpvO sys-libs/libsepol
[ebuild  N    ] sys-libs/libsepol-3.0  ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2020-01-27 17:43:13 UTC
Created attachment 605630 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 17:43:15 UTC
Created attachment 605632 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-27 17:43:18 UTC
Created attachment 605634 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-27 17:43:23 UTC
Created attachment 605636 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-27 17:43:26 UTC
Created attachment 605638 [details]
sys-libs:libsepol-3.0:20200127-173701.log
Comment 6 Toralf Förster gentoo-dev 2020-01-27 17:43:29 UTC
Created attachment 605640 [details]
temp.tbz2
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-21 11:53:24 UTC
*** Bug 721178 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2020-07-01 17:34:27 UTC
The bug has been referenced in the following commit(s):

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

commit eb1b4e717c58bf5d34e6bccdb2fa9503d82790fb
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-07-01 17:33:53 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-07-01 17:34:22 +0000

    sys-libs/libsepol: add workaround for GCC 10
    
    Bug: https://bugs.gentoo.org/706730
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-libs/libsepol/libsepol-3.0.ebuild  | 4 ++++
 sys-libs/libsepol/libsepol-9999.ebuild | 4 ++++
 2 files changed, 8 insertions(+)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-31 05:06:38 UTC
Fixed in 3.1: https://github.com/SELinuxProject/selinux/commit/a96e8c59ecac84096d870b42701a504791a8cc8c, so we can just close this as it's not an issue in ~ and stable has a mitigation.