[botan-devel] Unknown register 'r3' when building for arm64

Marcel lists at nightsoul.org
Thu Jun 11 12:09:03 EDT 2015


Hello,

trying to build Botan 1.11.16 for iphoneos I encountered the following error:

[…]/Botan-1.11.16/clang-darwin-arm/botan_all.h:5052:11: error: 
      unknown register name 'r3' in asm
        : "r3", "cc“);

The compiler call looks like this:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch arm64 -fmessage-length=120 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug-iphoneos\" -DBOTAN_DLL= -DHAVE_CONFIG_H -DSIGNED_RIGHT_SHIFT_IS=1 -DARITHMETIC_RIGHT_SHIFT=1 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -miphoneos-version-min=8.3
[lots of include dirs]
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/marcel/code/filetrain/client/build-arm/FileTrainCore/Debug-iphoneos -fvisibility=hidden -fvisibility-inlines-hidden -stdlib=libc++ -Wall -Wextra -Wno-unused-parameter -Woverloaded-virtual -std=c++11 -MMD -MT dependencies -MF /Users/marcel/code/filetrain/client/build-arm/FileTrainCore/FileTrain.build/Debug-iphoneos/FileTrainCore.build/Objects-normal/arm64/botan_all.d --serialize-diagnostics /Users/marcel/code/filetrain/client/build-arm/FileTrainCore/FileTrain.build/Debug-iphoneos/FileTrainCore.build/Objects-normal/arm64/botan_all.dia -c /Users/marcel/code/filetrain/client/3rdparty/Botan-1.11.16/clang-darwin-arm/botan_all.cpp -o /Users/marcel/code/filetrain/client/build-arm/FileTrainCore/FileTrain.build/Debug-iphoneos/FileTrainCore.build/Objects-normal/arm64/botan_all.o

And Botan config:
./configure.py --gen-amalgamation --with-bzip2 --cc=clang --cpu=arm

Do you have any clue what is going wrong here? Is Botan targeting a different arm architecture?

Greetings,
Marcel


More information about the botan-devel mailing list