Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 950171

Summary: llvm-runtimes/libunwind-19.1.7 fails to build on aarch64 with musl
Product: Gentoo Linux Reporter: frank <skunk>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: UNCONFIRMED ---    
Severity: normal CC: skunk
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description frank 2025-02-23 08:39:05 UTC
Created attachment 919726 [details]
emerge --info

FAILED: libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1.c.o 
/usr/lib/llvm/19/bin/aarch64-unknown-linux-musl-clang -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBUNWIND_LINK_DL_LIB -D_LIBUNWIND_LINK_PTHREAD_LIB -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/llvm-runtimes/libunwind-19.1.7/work/libunwind/include  -DNDEBUG -march=native -O2 -pipe -fPIE -fPIC -fstack-clash-protection -fstack-protector-strong -D_FORTIFY_SOURCE=3 -ftrivial-auto-var-init=pattern -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fstrict-flex-arrays=3 -mbranch-protection=standard -fno-delete-null-pointer-checks -ftrivial-auto-var-init=zero -fexceptions -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fPIC -Werror=return-type -funwind-tables -nostdinc++ -Wall -Wextra -Wnewline-eof -Wshadow -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wunused-template -Wformat-nonliteral -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Wno-error -pedantic -fno-rtti -std=c99 -MD -MT libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1.c.o -MF libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1.c.o.d -o libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1.c.o -c /var/tmp/portage/llvm-runtimes/libunwind-19.1.7/work/libunwind/src/UnwindLevel1.c
/var/tmp/portage/llvm-runtimes/libunwind-19.1.7/work/libunwind/src/UnwindLevel1.c:313:9: error: invalid input constraint 'D' in asm
  313 |         __unw_phase2_resume(cursor, framesWalked);
      |         ^
/var/tmp/portage/llvm-runtimes/libunwind-19.1.7/work/libunwind/src/UnwindLevel1.c:62:42: note: expanded from macro '__unw_phase2_resume'
   62 |                      "jmp *%%edx\n\t" :: "D"(cetRegContext),                   \
      |                                          ^
/var/tmp/portage/llvm-runtimes/libunwind-19.1.7/work/libunwind/src/UnwindLevel1.c:415:9: error: invalid input constraint 'D' in asm
  415 |         __unw_phase2_resume(cursor, framesWalked);
      |         ^
/var/tmp/portage/llvm-runtimes/libunwind-19.1.7/work/libunwind/src/UnwindLevel1.c:62:42: note: expanded from macro '__unw_phase2_resume'
   62 |                      "jmp *%%edx\n\t" :: "D"(cetRegContext),                   \
      |                                          ^
2 errors generated.
Comment 1 Greg Kubaryk 2025-02-23 08:51:16 UTC
thanks for the report; please upload the build.log (perhaps xz compressed if necessary)
Comment 2 frank 2025-02-23 08:57:02 UTC
Created attachment 919727 [details]
build.log

here it goes...
Comment 3 frank 2025-02-26 19:54:05 UTC
builds fine after unsetting HARDENING_CFLAGS
sorry for the noise...