-
Notifications
You must be signed in to change notification settings - Fork 110
Build failed for dependency project AWSLC cross compiling issue #799
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
Comments
Can you cross-compile aws-lc standalone? Unless you're pretty sure this is an issue SDK side (which would require additional evidence), I feel like your best bet would be to open an issue with aws-lc. Beyond that, please provide step-by-step instructions for repro that assume no previous toolchain installations. |
@bretambrose Ok i will create an issue in aws-lc thanks for the info. |
I've took a look at the cmake command that is used to build aws-lc, and I see no options related to cross-compiling, e.g. For more details on cross-compiling, see related cmake docs. |
@sfod Thanks for your reply, as for cross compilation i wrote a simple conanfile.py at the root project and just included the conan_toolchain.cmake file in the root CMakelist.txt of aws-sdk. Internally conan takes care of setting the proper toolchain based on profile selection. And i also investigated a bit into aws-lc and saw that for armv8 the libcrypto(13.5mb) that is generated does not seem to include the required perl modules and for armv7 the libcrypto(3.5mb) includes those (I could say this from the size difference of the library), And initially the CMAKE_SYSTEM_PROCESSOR was not passed on to aws-lc via conan include so i passed this param as a CMAKE_ARGUMENT in aws_prebuild_dependency(aws-crt-cpp/CMakelists.txt - line-79 in 1.35.1). But not sure why aws-lc is not properly building the libcrypto for armv7. For now i have a workaround by enabling openssl and include openssl 1.1.1f. But would be good if this issue is resolved. Have also opened one issue in aws-lc - aws/aws-lc#2374 |
Do you mean you added a line to
If yes, try to use |
Describe the bug
The cmake build of aws-sdk using different toolchain seems to fail attaching the output of cmake configure,
Attached the output of this command in log file.
aws_log.txt
Expected Behavior
It should be able to cross compile.
Current Behavior
Build fails trying to compile awslc
Reproduction Steps
Cross compile with linaro toolchain
Possible Solution
No response
Additional Information/Context
No response
SDK version used
aws-lc-v1.49.1
Environment details (OS name and version, etc.)
ubuntu
The text was updated successfully, but these errors were encountered: