Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836308 - sys-libs/zlib-1.2.12 fails to compile: ld: libz.a(deflate.o): relocation R_X86_64_PC32 against symbol _length_code can not be used when making a shared object; recompile with -fPIC
Summary: sys-libs/zlib-1.2.12 fails to compile: ld: libz.a(deflate.o): relocation R_X8...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 836303
  Show dependency tree
 
Reported: 2022-03-28 07:09 UTC by Agostino Sarubbo
Modified: 2022-03-28 07:45 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,58.69 KB, text/plain)
2022-03-28 07:09 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-03-28 07:09:44 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-libs/zlib-1.2.12 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-28 07:09:46 UTC
Created attachment 768043 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-28 07:09:47 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ./../../libz.a(deflate.o): relocation R_X86_64_PC32 against symbol `_length_code' can not be used when making a shared object; recompile with -fPIC
collect2: error: ld returned 1 exit status
Comment 3 Larry the Git Cow gentoo-dev 2022-03-28 07:28:12 UTC
The bug has been closed via the following commit(s):

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

commit 0a91cef90a3879f5fe3763a01c0f37c336bd1a6c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-28 07:27:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-28 07:28:03 +0000

    sys-libs/zlib: fix CC detection in configure
    
    Notably fixes multilib (although it actually silently skipped
    for me) in at least one way.
    
    Closes: https://bugs.gentoo.org/836308
    Signed-off-by: Sam James <sam@gentoo.org>

 .../zlib-1.2.12-fix-CC-logic-in-configure.patch    | 27 ++++++++++++++++++++++
 sys-libs/zlib/zlib-1.2.12.ebuild                   |  4 ++++
 2 files changed, 31 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2022-03-28 07:29:54 UTC
The bug has been referenced in the following commit(s):

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

commit 5e2bd29b39d577e88ecf6bc0752cd50c56ea6411
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-28 07:28:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-28 07:29:30 +0000

    sys-libs/zlib: revbump 1.2.12 for configure fix
    
    For me, it silently installed no 32-bit lib (or tried to build
    it statically, which then didn't get installed), so let's
    be cautious.
    
    Still unkeyworded until later though.
    
    Bug: https://bugs.gentoo.org/835958
    Bug: https://bugs.gentoo.org/836308
    Fixes: 0a91cef90a3879f5fe3763a01c0f37c336bd1a6c
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/zlib/{zlib-1.2.12.ebuild => zlib-1.2.12-r1.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-03-28 07:45:53 UTC
The bug has been referenced in the following commit(s):

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

commit ffafdfd3eed513c49aa7047f4b09fd1dd0bb6768
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-28 07:42:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-28 07:45:45 +0000

    sys-libs/zlib: add link to upstream PR for 1.2.12 configure
    
    Bug: https://bugs.gentoo.org/836308
    Signed-off-by: Sam James <sam@gentoo.org>

 .../zlib-1.2.12-fix-CC-logic-in-configure.patch    | 28 +++++++++++++++++-----
 1 file changed, 22 insertions(+), 6 deletions(-)