Skip to content

UnwindLevel1.c:334:9: error: expected compatible register or logical immediate #167658

@sylvestre

Description

@sylvestre

On linux ubuntu plucky arm64:


FAILED: libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1.c.o
/build/source/build-llvm/bin/clang --target=aarch64-unknown-linux-gnu -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/build/source/libunwind/include -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=3 -fPIC -fno-semantic-interposition -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 -fdebug-prefix-map=/build/source/build-llvm/runtimes/runtimes-bins=../../../ -fdebug-prefix-map=/build/source/= -no-canonical-prefixes -ffile-prefix-map=/build/source/build-llvm/runtimes/runtimes-bins=../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O3 -DNDEBUG -fPIC -Werror=return-type -funwind-tables -nostdinc++ -D_DEBUG -UNDEBUG -D_LIBUNWIND_IS_NATIVE_ONLY -Wall -Wextra -Wnewline-eof -Wshadow -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wunused-template -Wformat-nonliteral -Wzero-length-array -Wdeprecated-redundant-constexpr-static-def -Wno-nullability-completeness -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Wno-error -pedantic -fno-rtti -std=c99 -fexceptions -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 /build/source/libunwind/src/UnwindLevel1.c
/build/source/libunwind/src/UnwindLevel1.c:334:9: error: expected compatible register or logical immediate
  334 |         __unw_phase2_resume(cursor, framesWalked);
      |         ^
/build/source/libunwind/src/UnwindLevel1.c:84:35: note: expanded from macro '__unw_phase2_resume'
   84 |     __asm__ volatile("mov x0, %0\n\t"                                          \
      |                                   ^
<inline asm>:2:10: note: instantiated into assembly here
    2 |         mov x1, wzr
      |                 ^
/build/source/libunwind/src/UnwindLevel1.c:437:9: error: expected compatible register or logical immediate
  437 |         __unw_phase2_resume(cursor, framesWalked);
      |         ^
/build/source/libunwind/src/UnwindLevel1.c:84:35: note: expanded from macro '__unw_phase2_resume'
   84 |     __asm__ volatile("mov x0, %0\n\t"                                          \
      |                                   ^
<inline asm>:2:10: note: instantiated into assembly here
    2 |         mov x1, wzr
      |                 ^
2 errors generated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions