[llvm-bugs] [Bug 47304] New: Building Solaris/sparcv9 with -O3 fPIC shows many test failures

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 25 01:07:54 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47304

            Bug ID: 47304
           Summary: Building Solaris/sparcv9 with -O3 fPIC shows many test
                    failures
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Solaris
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Backend: Sparc
          Assignee: unassignedbugs at nondot.org
          Reporter: ro at gcc.gnu.org
                CC: llvm-bugs at lists.llvm.org
            Blocks: 46725

Building both the 11.0.0 branch and master with either g++ or clang++ -O3 -fPIC
(a regular Release build) shows a large number of failures.  For the build with
g++, this has been traced to gcc violating the SPARCv9 TLS spec and ld
generating
wrong code for the wrong input.

For the gcc side, is has been determined that the issue can be worked around by
compiling with -O -fPIC instead.

Even with that workaround in place, there are still a large number of failures
in a 2-stage build that vanish if stage 2 is run with -O -fPIC, too:

2-stage Release build, gcc -O -fPIC in stage 1: 4581 failures
2-stage Release build, gcc -O -fPIC in stage 2, clang -O -fPIC in stage 2: 1325
failures

2-stage RelWithDebInfo, -O as before: 140 failures (currently broken due to Bug
47303)

The workaround patch has been posted as https://reviews.llvm.org/D85630 and
would
be good to have in tree (both master and 11.0.0 branch) while real fixes are
being developed.


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=46725
[Bug 46725] [meta] 11.0.0 Release Blockers
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200825/ea49d2b3/attachment.html>


More information about the llvm-bugs mailing list