Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compile for watchOS #416

Closed
paulocoutinhox opened this issue Jun 15, 2023 · 10 comments
Closed

Error when compile for watchOS #416

paulocoutinhox opened this issue Jun 15, 2023 · 10 comments

Comments

@paulocoutinhox
Copy link

paulocoutinhox commented Jun 15, 2023

Hi,

Im trying compile for watchOS but get the error below.

To test you can do:

git clone https://github.com/paulocoutinhox/cpp-http-test.git
cd cpp-http-test
./build-watchos.sh

LOG:

CompileC /Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/build/mbedcrypto.build/Debug-watchos/Objects-normal/arm64_32/bignum.o /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c normal arm64_32 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'mbedcrypto' from project 'test')
    cd /Users/paulo/Developer/workspaces/cpp/cpp-http-test
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /var/folders/0j/1vzxlz_d135_p0gs5jjc428c0000gn/C/com.apple.DeveloperTools/14.3.1-14E300c/Xcode/SDKStatCaches.noindex/watchos9.4-20T248-.sdkstatcache -target arm64_32-apple-watchos4.0 -fmessage-length\=245 -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-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 -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Debug-watchos\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS9.4.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/Debug/include -I/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791 -I/Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/_deps/yasio-build -I/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include -I/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library -I/Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/build/mbedcrypto.build/Debug-watchos/DerivedSources-normal/arm64_32 -I/Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/build/mbedcrypto.build/Debug-watchos/DerivedSources/arm64_32 -I/Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/build/mbedcrypto.build/Debug-watchos/DerivedSources -F/Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/Debug -fembed-bitcode -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat\=2 -Wno-format-nonliteral -Werror -Wmissing-declarations -Wmissing-prototypes -Wdocumentation -Wno-documentation-deprecated-sync -Wunreachable-code -std\=gnu99 -MMD -MT dependencies -MF /Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/build/mbedcrypto.build/Debug-watchos/Objects-normal/arm64_32/bignum.d --serialize-diagnostics /Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/build/mbedcrypto.build/Debug-watchos/Objects-normal/arm64_32/bignum.dia -c /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c -o /Users/paulo/Developer/workspaces/cpp/cpp-http-test/build/build/mbedcrypto.build/Debug-watchos/Objects-normal/arm64_32/bignum.o
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:39: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                                      ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1447:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:262:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x4, [%2], #8   \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1447:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:263:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x5, [%1]       \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1447:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:270:19: note: expanded from macro 'MULADDC_CORE'
        "str x5, [%1], #8   \n\t"
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:39: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                                      ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1447:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:262:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x4, [%2], #8   \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1447:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:263:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x5, [%1]       \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1447:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:270:19: note: expanded from macro 'MULADDC_CORE'
        "str x5, [%1], #8   \n\t"
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:39: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                                      ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1448:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:262:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x4, [%2], #8   \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1448:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:263:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x5, [%1]       \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1448:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:270:19: note: expanded from macro 'MULADDC_CORE'
        "str x5, [%1], #8   \n\t"
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:39: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                                      ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1448:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:262:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x4, [%2], #8   \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1448:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:263:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x5, [%1]       \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1448:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:270:19: note: expanded from macro 'MULADDC_CORE'
        "str x5, [%1], #8   \n\t"
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:39: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                                      ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1449:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:262:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x4, [%2], #8   \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1449:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:263:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x5, [%1]       \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1449:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:270:19: note: expanded from macro 'MULADDC_CORE'
        "str x5, [%1], #8   \n\t"
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:39: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                                      ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1449:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:262:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x4, [%2], #8   \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1449:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:263:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x5, [%1]       \n\t"   \
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:29: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                            ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1449:24: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
                       ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:270:19: note: expanded from macro 'MULADDC_CORE'
        "str x5, [%1], #8   \n\t"
                  ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1456:13: error: value size does not match register size specified by the constraint and modifier
      [-Werror,-Wasm-operand-widths]
            MULADDC_STOP
            ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:273:39: note: expanded from macro 'MULADDC_STOP'
         : "+r" (c),  "+r" (d), "+r" (s), "+m" (*(uint64_t (*)[16]) d)  \
                                      ^
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:1450:9: note: use constraint modifier "w"
        MULADDC_CORE   MULADDC_CORE
        ^
In file included from /Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/library/bignum.c:41:
/Users/paulo/.cache/CPM/yasio/dc0d657062bd19df2067839b324a8b1bb0c87791/thirdparty/mbedtls/include/mbedtls/bn_mul.h:262:19: note: expanded from macro 'MULADDC_CORE'
        "ldr x4, [%2], #8   \n\t"   \
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
@halx99 halx99 closed this as completed in 9daa915 Jun 16, 2023
@paulocoutinhox
Copy link
Author

Working now.

But how SSL/HTTPS/WSS will work without mbedtls ou openssl?

@halx99
Copy link
Member

halx99 commented Jun 16, 2023

It's seems mbedtls doesn't support build for watchOS, openssl: you can try https://github.com/axmolengine/buildware

@paulocoutinhox
Copy link
Author

But how HTTPS/SSL/WSS works without mbedtls or openssl inside yasio? What happen if i try call HTTPS url without it?

@halx99
Copy link
Member

halx99 commented Jun 16, 2023

But how HTTPS/SSL/WSS works without mbedtls or openssl inside yasio? What happen if i try call HTTPS url without it?

Doesn't work

@paulocoutinhox
Copy link
Author

Ok, so it compile, but don't work, is this? If i call HTTPS without openssl it will return some error? Only HTTP call will work?

@halx99
Copy link
Member

halx99 commented Jun 16, 2023

Ok, so it compile, but don't work, is this? If i call HTTPS without openssl it will return some error? Only HTTP call will work?

Yes

@paulocoutinhox
Copy link
Author

Hi,

Can you help me test the mbedtls for watchOS?

Mbed-TLS/mbedtls#7787

They changed somethings and need test.

Thanks.

@paulocoutinhox
Copy link
Author

paulocoutinhox commented Aug 4, 2023

We fixed the bug for iOS:
Mbed-TLS/mbedtls#7787

Only need remove the error when warn:
https://github.com/search?q=repo%3AMbed-TLS%2Fmbedtls%20werror&type=code
&
Mbed-TLS/mbedtls#7880

There is a flag inside their project.

@paulocoutinhox
Copy link
Author

Hi,

There is an option "MBEDTLS_FATAL_WARNINGS", can you set OFF for MBEDTLS to it work with iOS, tvOS and watchOS?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants