Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608990 - sys-devel/gcc add USE for libquad installation instead of hiding behind USE=fortran (was: sci-libs/fftw[quad]: missing dependency for libquadmath)
Summary: sys-devel/gcc add USE for libquad installation instead of hiding behind USE=f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-11 19:11 UTC by Fredric Johansson
Modified: 2020-07-30 20:38 UTC (History)
7 users (show)

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


Attachments
build.log of 3.3.8-r1 on sparc (build.log,47.36 KB, text/plain)
2020-07-25 08:06 UTC, Rolf Eike Beer
Details
config.logs (sci-libs_fftw-3.3.8-r1_use_hLo2L.tar,440.00 KB, application/x-tar)
2020-07-25 08:09 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fredric Johansson 2017-02-11 19:11:33 UTC
sci-libs/fftw have USE=quad but fails to check that libquadmath is installed by gcc causing error during configure
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2017-02-12 19:19:04 UTC
Could you please add a build.log and the output of "emerge --info gcc"?
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2017-02-12 19:35:48 UTC
Looking at toolchain.eclass:
    # newer gcc's come with libquadmath, but only fortran uses
    # it, so auto punt it when we don't care
    if tc_version_is_at_least 4.6 && ! is_fortran ; then
        confgcc+=( --disable-libquadmath )
    fi
so I guess fftw[quad] depends on gcc[fortran], even though the above comment is actually wrong, there are packages using quad without fortran.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2017-02-12 19:56:42 UTC
Thanks Chrostoph digging this out
Comment 4 Larry the Git Cow gentoo-dev 2018-09-01 22:23:55 UTC
The bug has been closed via the following commit(s):

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

commit 461721fc58ad27051c1a3108f62a0e431288160e
Author:     Conrad Kostecki <conrad@kostecki.com>
AuthorDate: 2018-09-01 13:49:27 +0000
Commit:     Andrew Savchenko <bircoph@gentoo.org>
CommitDate: 2018-09-01 22:23:44 +0000

    sci-libs/fftw: bump to version 3.3.8
    
    Closes: https://bugs.gentoo.org/651028
    Closes: https://bugs.gentoo.org/608990
    Package-Manager: Portage-2.3.48, Repoman-2.3.10

 sci-libs/fftw/Manifest          |   1 +
 sci-libs/fftw/fftw-3.3.8.ebuild | 181 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 182 insertions(+)
Comment 5 Arfrever Frehtes Taifersar Arahesis 2018-09-01 22:28:35 UTC
I think that GCC maintainer will still be interested in fixing this properly in GCC (toolchain.eclass).

Either a new USE flag should be added to GCC, or libquadmath should be installed unconditionally.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2018-09-01 22:57:08 UTC
Yeah. I think unconditional libquadmath install should be fine.
Comment 7 Rolf Eike Beer archtester 2020-07-25 08:06:57 UTC
Created attachment 650674 [details]
build.log of 3.3.8-r1 on sparc

The problem is still there with 3.3.8-r1
Comment 8 Rolf Eike Beer archtester 2020-07-25 08:09:55 UTC
Created attachment 650676 [details]
config.logs
Comment 9 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2020-07-30 01:42:15 UTC
Still getting the same with gcc-9.3.0-r1[fortran] and fftw-3.3.8-r1 on arm
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-30 06:39:40 UTC
(In reply to John Helmert III (ajak) from comment #9)
> Still getting the same with gcc-9.3.0-r1[fortran] and fftw-3.3.8-r1 on arm

Please file a separate bug. This bug is about missing support library in gcc.
Comment 11 Larry the Git Cow gentoo-dev 2020-07-30 06:54:58 UTC
The bug has been closed via the following commit(s):

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

commit a06e1246568c3c6043de3ae6a5042e5470be1fa8
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-07-30 06:51:44 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-07-30 06:54:52 +0000

    toolchain.eclass: install libquadmath by default
    
    libquadmath is a small support runtime library for _Float128
    types. sci-libs/fftw happens to use it and expects it to be
    provided by gcc. Let's provide it unconditionally.
    
    Reported-by: Fredric Johansson
    Closes: https://bugs.gentoo.org/608990
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 eclass/toolchain.eclass | 6 ------
 1 file changed, 6 deletions(-)
Comment 12 Andrew Aladjev 2020-07-30 19:40:13 UTC
Please do not fix in that way, libquadmath cross compilation is broken.