Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636786 - dev-util/rr-5.0.0 is broken on no-multilib profile
Summary: dev-util/rr-5.0.0 is broken on no-multilib profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-07 13:35 UTC by Alexander Sergeyev
Modified: 2019-05-09 22:26 UTC (History)
4 users (show)

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


Attachments
build.log (rr.log,4.64 KB, text/plain)
2017-11-07 13:35 UTC, Alexander Sergeyev
Details
patch to conditionally disable x32 (enable-optional-x32.patch,486 bytes, patch)
2017-11-07 13:37 UTC, Alexander Sergeyev
Details | Diff
rr-5.2.0-no-multilib-ebuild.patch (file_636786.txt,807 bytes, patch)
2019-05-05 14:22 UTC, Quentin Minster
Details | Diff
emerge --info (file_636786.txt,7.77 KB, text/plain)
2019-05-08 21:25 UTC, Quentin Minster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Sergeyev 2017-11-07 13:35:35 UTC
Created attachment 502920 [details]
build.log

Profile: default/linux/amd64/13.0/no-multilib

The build fails with:
CMake Error at CMakeLists.txt:94 (message):
  Your toolchain doesn't support 32-bit cross-compilation.  Install the
  required packages or pass -Ddisable32bit=ON to cmake.

The full build log is attached.
Comment 1 Alexander Sergeyev 2017-11-07 13:37:13 UTC
Created attachment 502922 [details, diff]
patch to conditionally disable x32

A simple patch which adds a use flag which proxies disable32bit cmake option.
Comment 2 Quentin Minster 2019-05-05 14:22:06 UTC
Created attachment 575326 [details, diff]
rr-5.2.0-no-multilib-ebuild.patch

Still affected by this bug as of rr-5.2.0. :-(

Here is another patch, for rr-5.2.0.ebuild, that uses the multilib-build eclass instead of adding a new USE flag.

Pretty please fix this?
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-05 16:38:29 UTC
Can you attach `emerge --info` output for completeness?
Comment 4 Quentin Minster 2019-05-08 21:25:59 UTC
Created attachment 575550 [details]
emerge --info
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-09 18:16:36 UTC
Thank you! Reproduced locally as well:

/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
CMake Error at CMakeLists.txt:97 (message):
  Your toolchain doesn't support 32-bit cross-compilation.  Install the
  required packages or pass -Ddisable32bit=ON to cmake.

Looking at the details.
Comment 6 Larry the Git Cow gentoo-dev 2019-05-09 22:26:23 UTC
The bug has been closed via the following commit(s):

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

commit 711700db3988f31876e62f67fe2a5d6db0614d7c
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-05-09 22:25:54 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-05-09 22:26:17 +0000

    dev-util/rr: ass IUSE=multilib, bug #636786
    
    rr has a support to replay both 32-bit and 64-bit binaries
    on amd64. For that it probes toolchain with -m32 support.
    
    On non-multilib profiles -m32 does not work as we don't
    have 32-bit glibc anf libgcc.
    
    Guard the autodetection behing USE=multilib.
    
    Reported-by: Alexander Sergeyev
    Reported-by: Quentin Minster
    Closes: https://bugs.gentoo.org/636786
    Package-Manager: Portage-2.3.66, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-util/rr/rr-5.2.0-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)