Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950171 - llvm-runtimes/libunwind-19.1.7 fails to build on aarch64 with musl
Summary: llvm-runtimes/libunwind-19.1.7 fails to build on aarch64 with musl
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-23 08:39 UTC by frank
Modified: 2025-02-26 19:54 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,16.85 KB, text/plain)
2025-02-23 08:39 UTC, frank
Details
build.log (build.log.xz,4.57 KB, application/x-xz)
2025-02-23 08:57 UTC, frank
Details

Note You need to log in before you can comment on or make changes to this bug.
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...