Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627164 - =sys-libs/glibc-2.25-r2 fails to be built with sys-devel/binutils-2.29: regexp.c: Error: `loc1@GLIBC_2.0' can't be versioned to common symbol 'loc1'
Summary: =sys-libs/glibc-2.25-r2 fails to be built with sys-devel/binutils-2.29: regex...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/git/?p=glibc.g...
Whiteboard:
Keywords: PATCH
: 627750 (view as bug list)
Depends on:
Blocks: binutils-2.29.1-stable glibc-2.25
  Show dependency tree
 
Reported: 2017-08-06 09:14 UTC by Sergei Trofimovich (RETIRED)
Modified: 2017-10-19 19:14 UTC (History)
3 users (show)

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


Attachments
patch created from upstream fix commit (glibc-2.26-symver-on-common-symbols.388b4f1a02f.patch,2.20 KB, patch)
2017-08-07 23:04 UTC, Joe Harvell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-06 09:14:48 UTC
Already fixed upstream as: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=388b4f1a02f3a801965028bbfcd48d905638b797

Build fails on amd64/x86 as:

x86_64-pc-linux-gnu-gcc -m64 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu regexp.c -c -std=gnu11 -fgnu89-inline  -O2 -Wall -Wundef -Wwrite-strings -fmerge-all-constants -fno-strict-aliasing -frounding-math -fstack-protector-all -Wstrict-prototypes -Wold-style-definition   -fPIC   -ftls-model=initial-exec   -U_FORTIFY_SOURCE   -I../include -I/tmp/portage/sys-libs/glibc-2.25-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/misc  -I/tmp/portage/sys-libs/glibc-2.25-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl  -I../sysdeps/unix/sysv/linux/x86_64/64  -I../sysdeps/unix/sysv/linux/x86_64  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/x86_64/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/x86_64  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu/multiarch  -I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/x86_64/multiarch  -I../sysdeps/x86_64  -I../sysdeps/x86  -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64/wordsize-64  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.0/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.0/include-fixed -isystem /usr/include  -D_LIBC_REENTRANT -include /tmp/portage/sys-libs/glibc-2.25-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC -DSHARED     -o /tmp/portage/sys-libs/glibc-2.25-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/misc/regexp.os -MD -MP -MF /tmp/portage/sys-libs/glibc-2.25-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/misc/regexp.os.dt -MT /tmp/portage/sys-libs/glibc-2.25-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/misc/regexp.os
/tmp/ccHgJPPL.s: Assembler messages:
/tmp/ccHgJPPL.s: Error: `loc1@GLIBC_2.2.5' can't be versioned to common symbol 'loc1'
/tmp/ccHgJPPL.s: Error: `loc2@GLIBC_2.2.5' can't be versioned to common symbol 'loc2'
/tmp/ccHgJPPL.s: Error: `locs@GLIBC_2.2.5' can't be versioned to common symbol 'locs'
Comment 1 Joe Harvell 2017-08-07 23:04:11 UTC
Created attachment 488264 [details, diff]
patch created from upstream fix commit

I created this patch with 'git show --patch 388b4f1a02f'.  But then I manually edited out the diff for the Changelog file, since that hunk failed.

I successfully built sys-libs/glibc-2.24-r3 after modifying it apply this patch.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-12 22:34:13 UTC
Added the patch to glibc patch queues for next patchset for 2.24 and 2.25 at:

https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/glibc/2.25/
https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/glibc/2.24/
Comment 3 Cănărău Constantin 2017-08-13 12:29:51 UTC
*** Bug 627750 has been marked as a duplicate of this bug. ***
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-13 16:18:27 UTC
Did cut new patchset for 2.24-r4 and 2.25-r3 and pushed as:

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