Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 741434 - sci-libs/fflas-ffpack-2.4.3 fails to compile
Summary: sci-libs/fflas-ffpack-2.4.3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
: 741510 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-09-09 14:01 UTC by Agostino Sarubbo
Modified: 2021-08-07 16:36 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,15.19 KB, text/plain)
2020-09-09 14:01 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,54.78 KB, text/plain)
2020-09-09 14:01 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 2020-09-09 14:01:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/fflas-ffpack-2.4.3 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-09 14:01:16 UTC
Created attachment 659266 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-09 14:01:18 UTC
Created attachment 659268 [details]
1-config.log

1-config.log
Comment 3 Michael Orlitzky gentoo-dev 2020-09-30 15:31:03 UTC
*** Bug 741510 has been marked as a duplicate of this bug. ***
Comment 4 Michael Orlitzky gentoo-dev 2020-09-30 15:35:19 UTC
The problem here (and in #741510) is that somehow, when you built sci-libs/givaro, it became convinced that you were using gcc4, as determined by the AC_COMPILER_NAME macro in https://github.com/linbox-team/givaro/blob/master/macros/debug.m4.

As a result, the configure.ac for givaro (https://github.com/linbox-team/givaro/blob/master/configure.ac#L77) appends "-fabi-version=6" to its CXXFLAGS. That gets propagated to the fflas-ffpack and linbox builds, even when you're performing them with clang and not gcc. Since clang doesn't understand -fabi-version=6, those builds fail.

Do you have any record of your givaro build? It may have made a mistake in determining that your compiler was gcc4.
Comment 5 Michael Orlitzky gentoo-dev 2021-07-16 00:01:11 UTC
Ping, we need some info about another package (sci-libs/givaro) here since that's where the problem originates.
Comment 6 Michael Orlitzky gentoo-dev 2021-08-07 16:30:40 UTC
This was back before I was using gcc-10.x; now I can reproduce the issue. It has been fixed upstream in givaro & fflas-ffpack, but not in a way that's easy to backport. A quick Gentoo-specific hack around the issue is incoming.
Comment 7 Larry the Git Cow gentoo-dev 2021-08-07 16:36:59 UTC
The bug has been closed via the following commit(s):

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

commit 0986d11b9e8cc6aeee297afc358cf76e53283665
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2021-08-07 16:32:54 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2021-08-07 16:35:54 +0000

    sci-libs/fflas-ffpack: patch to avoid -fabi-version=6.
    
    This is part two of a quick fix to prevent -fabi-version=6 from
    finding its way into CXXFLAGS with givaro and fflas-ffpack. A better
    fix is upstream, but difficult to backport. Since in Gentoo we don't
    support gcc-4.x, I've just deleted the stuff.
    
    I've made a new revision because the -fabi-version flags wind up
    in "fflas-ffpack-config --cflags".
    
    Closes: https://bugs.gentoo.org/741434
    Package-Manager: Portage-3.0.20, Repoman-3.0.2
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 ....4.3-r1.ebuild => fflas-ffpack-2.4.3-r2.ebuild} |  1 +
 .../files/fflas-ffpack-2.4.3-no-fabi-version.patch | 31 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit ae6b26acdfebbf19c8f8855a63fd86bab3e63b5d
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2021-08-07 16:08:09 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2021-08-07 16:35:44 +0000

    sci-libs/givaro: new revision to eliminate -fabi-version=6.
    
    This is just a quick hack directly to the ./configure script to ensure
    that the current version of givaro doesn't erroneously detect gcc-4.x
    where none exists. A real fix is already upstreamed, but not in a
    release, and is not easy to backport.
    
    Bug: https://bugs.gentoo.org/741434
    Package-Manager: Portage-3.0.20, Repoman-3.0.2
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 sci-libs/givaro/files/givaro-4.1.1-gcc-10.patch | 36 ++++++++++++++++
 sci-libs/givaro/givaro-4.1.1-r2.ebuild          | 56 +++++++++++++++++++++++++
 2 files changed, 92 insertions(+)