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

Can't compile 3.2.1 on xcode xcrun --sdk iphoneos15.5 clang++ #6217

Closed
codeservice opened this issue Aug 19, 2022 · 2 comments
Closed

Can't compile 3.2.1 on xcode xcrun --sdk iphoneos15.5 clang++ #6217

codeservice opened this issue Aug 19, 2022 · 2 comments

Comments

@codeservice
Copy link

codeservice commented Aug 19, 2022

Summary

Can't compile 3.2.1 on xcode xcrun --sdk iphoneos15.5 clang++ for ios (no issue when compiling library for Mac os, only ios issue)
Older version 3.1.0 compiles without problem.

ERROR:
ssl_tls12_server.c
<inline asm>:4:2: error: invalid instruction, any one of the following would fix this:
ldr.w r6, [r8, #-4]
^
cannot compile inline asm
:4:22: note: too few operands for instruction
^
note: cannot compile inline asm
:4:15: note: invalid operand for instruction
^
:5:2: error: invalid instruction, any one of the following would fix this:
ldr.w r1, [r10, #-4]
:5:22: note: too few operands for instruction
:5:15: note: invalid operand for instruction
:8:2: error: invalid instruction, any one of the following would fix this:
str.w r3, [r10, #-8]
:8:22: note: too few operands for instruction
:8:15: note: invalid operand for instruction
:9:2: error: invalid instruction, any one of the following would fix this:
str.w r1, [r10, #-4]
:9:22: note: too few operands for instruction
:9:15: note: invalid operand for instruction
:13:2: error: invalid instruction, any one of the following would fix this:
:13:22: note: too few operands for instruction
:13:15: note: invalid operand for instruction
:14:2: error: invalid instruction, any one of the following would fix this:
:14:22: note: too few operands for instruction
:14:15: note: invalid operand for instruction
:17:2: error: invalid instruction, any one of the following would fix this:
:17:22: note: too few operands for instruction
:17:15: note: invalid operand for instruction
:18:2: error: invalid instruction, any one of the following would fix this:
:18:22: note: too few operands for instruction
:18:15: note: invalid operand for instruction
:22:2: error: invalid instruction, any one of the following would fix this:
:22:22: note: too few operands for instruction
:22:15: note: invalid operand for instruction
:23:2: error: invalid instruction, any one of the following would fix this:
:23:22: note: too few operands for instruction
:23:15: note: invalid operand for instruction
:26:2: error: invalid instruction, any one of the following would fix this:
:26:22: note: too few operands for instruction
:26:15: note: invalid operand for instruction
:27:2: error: invalid instruction, any one of the following would fix this:
:27:22: note: too few operands for instruction
:27:15: note: invalid operand for instruction
:31:2: error: invalid instruction, any one of the following would fix this:
:31:22: note: too few operands for instruction
:31:15: note: invalid operand for instruction
:32:2: error: invalid instruction, any one of the following would fix this:
:32:22: note: too few operands for instruction
:32:15: note: invalid operand for instruction
:35:2: error: invalid instruction, any one of the following would fix this:
:35:22: note: too few operands for instruction
:35:15: note: invalid operand for instruction
:36:2: error: invalid instruction, any one of the following would fix this:
:36:22: note: too few operands for instruction
:36:15: note: invalid operand for instruction
:4:2: error: invalid instruction, any one
of the following would fix this:
ldr.w r3, [r10, #-4]
:4:23: note: too few operands for instruction
^
ldr.w r2, [r0, #-4]
:5:21: note: too few operands for instruction
^
str.w r6, [r0, #-8]
:8:21: note: too few operands for instruction
str.w r2, [r0, #-4]
:9:21: note: too few operands for instruction
:13:23: note: too few operands for instruction
:14:21: note: too few operands for instruction
:17:21: note: too few operands for instruction
:18:21: note: too few operands for instruction
:22:23: note: too few operands for instruction
:23:21: note: too few operands for instruction
:26:21: note: too few operands for instruction
:27:21: note: too few operands for instruction
:31:23: note: too few operands for instruction
:32:21: note: too few operands for instruction
:35:21: note: too few operands for instruction
:36:21: note: too few operands for instruction
:4:2: error: invalid instruction, any one of the following would fix this:
ldr.w r9, [r5, #-4]
ldr.w r11, [r3, #-4]
:5:16: note: invalid operand for instruction
^
str.w r2, [r3, #-8]
str.w r11, [r3, #-4]
:9:16: note: invalid operand for instruction
:14:16: note: invalid operand for instruction
:18:16: note: invalid operand for instruction
:23:16: note: invalid operand for instruction
:27:16: note: invalid operand for instruction
:32:16: note: invalid operand for instruction
:36:16: note: invalid operand for instruction
ldr.w r2, [r4, #-4]
:4:22: note: too few op
erands for instruction
ldr.w r10, [r6, #-4]
str.w r5, [r6, #-8]
str.w r10, [r6, #-4]
ldr.w r4, [r0, #-4]
ldr.w r4, [r0, #-4]

    ldr.w    r3, [r11, #-4]                
    str.w    r5, [r11, #-8]                
    str.w    r3, [r11, #-4]                

80 errors generated.
Build failed

System information

Mbed TLS version (number or commit id): 3.2.1
Operating system and version:
Configuration (if not default, please attach mbedtls_config.h):
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information:

Expected behavior

Actual behavior

Steps to reproduce

Additional information

@gilles-peskine-arm
Copy link
Contributor

I believe this is the same issue as #6089. We just merged the fix into the development branch.

@tom-cosgrove-arm
Copy link
Contributor

Yes, agreed, the fix is in #6090

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

3 participants