[llvm-bugs] [Bug 50622] New: libunwind fails to build on SPARC

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 8 11:26:06 PDT 2021


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

            Bug ID: 50622
           Summary: libunwind fails to build on SPARC
           Product: Runtime Libraries
           Version: 12.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: libunwind
          Assignee: unassignedbugs at nondot.org
          Reporter: arfrever.fta at gmail.com
                CC: llvm-bugs at lists.llvm.org

libunwind (at least version 12.0.0) fails to build on SPARC.

Gentoo report: https://bugs.gentoo.org/794871

> [3/10] /usr/bin/sparc64-unknown-linux-gnu-gcc -Dunwind_shared_EXPORTS -I/var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/include  -O2 -mcpu=ultrasparc -pipe -fPIC -Werror=return-type -W -Wall -Wchar-subscripts -Wconversion -Wmismatched-tags -Wmissing-braces -Wno-unused-function -Wshadow -Wsign-compare -Wsign-conversion -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter -Wunused-variable -Wwrite-strings -Wundef -Wno-suggest-override -Wno-error -pedantic -funwind-tables -nostdinc++ -DNDEBUG -fno-rtti -MD -MT src/CMakeFiles/unwind_shared.dir/UnwindRegistersSave.S.o -MF src/CMakeFiles/unwind_shared.dir/UnwindRegistersSave.S.o.d -o src/CMakeFiles/unwind_shared.dir/UnwindRegistersSave.S.o -c /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S
> FAILED: src/CMakeFiles/unwind_shared.dir/UnwindRegistersSave.S.o
> /usr/bin/sparc64-unknown-linux-gnu-gcc -Dunwind_shared_EXPORTS -I/var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/include  -O2 -mcpu=ultrasparc -pipe -fPIC -Werror=return-type -W -Wall -Wchar-subscripts -Wconversion -Wmismatched-tags -Wmissing-braces -Wno-unused-function -Wshadow -Wsign-compare -Wsign-conversion -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter -Wunused-variable -Wwrite-strings -Wundef -Wno-suggest-override -Wno-error -pedantic -funwind-tables -nostdinc++ -DNDEBUG -fno-rtti -MD -MT src/CMakeFiles/unwind_shared.dir/UnwindRegistersSave.S.o -MF src/CMakeFiles/unwind_shared.dir/UnwindRegistersSave.S.o.d -o src/CMakeFiles/unwind_shared.dir/UnwindRegistersSave.S.o -c /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1007:43: warning: invoking macro GLUE2 argument 1: empty macro arguments are undefined in ISO C90 [-Wpedantic]
>  1007 | DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
>       |                                           ^
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1007:43: warning: invoking macro GLUE2 argument 1: empty macro arguments are undefined in ISO C90 [-Wpedantic]
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1007:43: warning: invoking macro GLUE2 argument 1: empty macro arguments are undefined in ISO C90 [-Wpedantic]
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1007:43: warning: invoking macro GLUE2 argument 1: empty macro arguments are undefined in ISO C90 [-Wpedantic]
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1110:46: warning: invoking macro GLUE2 argument 1: empty macro arguments are undefined in ISO C90 [-Wpedantic]
>  1110 |   WEAK_ALIAS(__unw_getcontext, unw_getcontext)
>       |                                              ^
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1110:46: warning: invoking macro GLUE2 argument 1: empty macro arguments are undefined in ISO C90 [-Wpedantic]
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S: Assembler messages:
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1011: Error: detected global register use not covered by .register pseudo-op
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1011: Error: detected global register use not covered by .register pseudo-op
> /var/tmp/portage/sys-libs/llvm-libunwind-12.0.0/work/libunwind/src/UnwindRegistersSave.S:1011: Error: detected global register use not covered by .register pseudo-op

-- 
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/20210608/e6566b0c/attachment.html>


More information about the llvm-bugs mailing list