Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731904 - sci-libs/sundials-6.5.0 fails to compile: ld.lld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment
Summary: sci-libs/sundials-6.5.0 fails to compile: ld.lld: error: can't create dynamic...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2020-07-09 11:57 UTC by Agostino Sarubbo
Modified: 2024-03-07 13:20 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,582.74 KB, text/plain)
2020-07-09 11:57 UTC, Agostino Sarubbo
Details
other.tar.bz2 (other.tar.bz2,7.77 KB, application/x-bzip-compressed-tar)
2020-07-09 11:57 UTC, Agostino Sarubbo
Details
sundials-5.2.0:20201201-231807.log (sundials-5.2.0:20201201-231807.log,727.20 KB, text/plain)
2020-12-02 06:55 UTC, Bernd
Details

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

Issue: sci-libs/sundials 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 isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-09 11:57:41 UTC
Created attachment 648552 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-09 11:57:44 UTC
Created attachment 648554 [details]
other.tar.bz2

other logs
Comment 3 Bernd 2020-12-02 06:53:53 UTC
The package also fails with gcc and ld in the same module, but with a different error (multiple symbol definition).
Comment 4 Bernd 2020-12-02 06:55:09 UTC
Created attachment 676180 [details]
sundials-5.2.0:20201201-231807.log

gcc build log
Comment 5 François Bissey 2020-12-02 07:33:59 UTC
(In reply to Bernd from comment #3)
> The package also fails with gcc and ld in the same module, but with a
> different error (multiple symbol definition).

This error is caused by the new default behavior of gcc-10 and has been reported upstream at https://github.com/LLNL/sundials/issues/43

The issue is still not fixed in version 5.5.0 as far as I can see.

I think the original error is because the build system does something wrong that gnu ld just happens to accept. I don't think it should.
Comment 6 Bernd 2020-12-02 22:03:34 UTC
(In reply to François Bissey from comment #5)
> This error is caused by the new default behavior of gcc-10 and has been
> reported upstream at https://github.com/LLNL/sundials/issues/43

I see, thanks. Building with -fcommon worked.
Comment 7 Larry the Git Cow gentoo-dev 2022-05-17 22:12:50 UTC
The bug has been referenced in the following commit(s):

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

commit 083c8e158079d734bf9fd4502865ccc50fe9043a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-17 22:12:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-17 22:12:31 +0000

    sci-libs/sundials: add 6.2.0
    
    Bug: https://bugs.gentoo.org/731904
    Bug: https://bugs.gentoo.org/831110
    Bug: https://bugs.gentoo.org/715556
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/sundials/Manifest              |   1 +
 sci-libs/sundials/sundials-6.2.0.ebuild | 119 ++++++++++++++++++++++++++++++++
 2 files changed, 120 insertions(+)
Comment 8 Agostino Sarubbo gentoo-dev 2024-03-07 13:20:26 UTC
clang-lld_tinderbox has reproduced this issue with version 6.5.0 - Updating summary.