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: [email protected]
Reporter: [email protected]
CC: [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs