Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427304 - =dev-libs/mpfr-3.1.1 fails tests with clang-3.1-r4
Summary: =dev-libs/mpfr-3.1.1 fails tests with clang-3.1-r4
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Clang Team (OBSOLETE)
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2012-07-20 12:34 UTC by Fabio Scaccabarozzi
Modified: 2016-02-06 10:53 UTC (History)
0 users

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


Attachments
emerge fail log (dev-libs:mpfr-3.1.1:20120719-230105.log,341.12 KB, text/plain)
2012-07-20 12:34 UTC, Fabio Scaccabarozzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Scaccabarozzi 2012-07-20 12:34:11 UTC
Created attachment 318710 [details]
emerge fail log

=dev-libs/mpfr-3.1.1 fails tests with clang-3.1-r4, latest stable =dev-libs/mpfr-3.0.1_p4 passes tests, I didn't test intermediates.
Comment 1 Fabio Scaccabarozzi 2012-10-08 14:23:01 UTC
According to the attached log, this bug depends on the use of the gold linker:

/usr/bin/x86_64-pc-linux-gnu-ld: internal error in relocate_tls, at /var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/x86_64.cc:3187
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The tests pass fine with the default ld.bfd linker. My fault for setting up the VM with ld.gold in the first place.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-10-08 15:16:38 UTC
(In reply to comment #1)
> According to the attached log, this bug depends on the use of the gold
> linker:
> 
> /usr/bin/x86_64-pc-linux-gnu-ld: internal error in relocate_tls, at
> /var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/x86_64.
> cc:3187
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> 
> The tests pass fine with the default ld.bfd linker. My fault for setting up
> the VM with ld.gold in the first place.

I've just tested ld.gold with current gcc, and tests seem to run fine. It may be a clang+gold problem then.
Comment 3 Fabio Scaccabarozzi 2014-07-24 13:29:31 UTC
Just tested: dev-libs/mpfr-3.1.2-r1 builds fine with clang-3.4.2 and gold linker and passes tests just fine (binutils-2.23.2).
Comment 4 Fabio Scaccabarozzi 2016-02-06 08:52:57 UTC
I retested with clang 3.7.1-r100 and clang-3.8_rc1-r100, ld.gold from binutils-2.25.1-r1 (latest stable): mpfr-3.1.3_p4 compiles and passes tests.
I see that binutils-2.22-r1 is still in tree and stable, but considering the age of that release (late 2011) I guess most users will have upgraded by now, and the bug can be closed as OBSOLETE.
Comment 5 Bernard Cafarelli gentoo-dev 2016-02-06 10:53:32 UTC
If it works with current stable binutils, that is indeed quite enough, thanks for checking!