Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734820 - sys-devel/gcc: libquadmath fails for stage1-gcc: checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Summary: sys-devel/gcc: libquadmath fails for stage1-gcc: checking dynamic linker char...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-30 20:00 UTC by Andrew Aladjev
Modified: 2020-07-30 21:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Aladjev 2020-07-30 20:00:10 UTC
Sergei Trofimovich has commited the following change to toolchain.eclass:

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

But after that users won't be able to create musl toolchain.

Reproducible: Always

Steps to Reproduce:
1. crossdev -t x86_64-gentoo-linux-musl --stable
Actual Results:  
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [Makefile:11760: configure-target-libquadmath] Error 1


Please read the following links:

https://gcc.gnu.org/legacy-ml/gcc/2010-12/msg00438.html
https://gcc.gnu.org/legacy-ml/gcc-patches/2010-12/msg01447.html

It looks like this issue is related to configure.ac.

https://gcc.gnu.org/git/?p=gcc.git;a=history;f=libquadmath;hb=HEAD

Libquadmath project looks like abandoned, it received less than 100 commits for the last 10 years. I want to recommend disabling it by default.
Comment 1 Larry the Git Cow gentoo-dev 2020-07-30 21:22:57 UTC
The bug has been closed via the following commit(s):

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

commit 590daa6d79ad4ae1c082762b356f6f07b4375ee3
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-07-30 21:17:40 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-07-30 21:22:52 +0000

    toolchain.eclass: avoid libquadmath in stage1-gcc
    
    libquadmath relies on libc presence (sqrt symbols).
    When initial toolchain is bootstrapped libc is not
    available yet.
    
    The change disables libquadmath for bootstrap cases
    when libc is not installed yet. gcc-stage2 still
    uses platform defaults for libquadmath.
    
    Reported-by: Andrew Aladjev
    Closes: https://bugs.gentoo.org/734820
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 eclass/toolchain.eclass | 3 +++
 1 file changed, 3 insertions(+)