Comments (10)
The is due to the -pedantic
flag being passed via CMAKE_C_FLAGS
here, but I'm not sure where that's coming from.
I'll try to get these issues cleaned up upstream in AWS-LC.
from aws-lc-rs.
I posted a PR upstream to help address this issue.
from aws-lc-rs.
Our patches to address this issue have been released in v1.7.3. Let us know if you have any other build issues. Thanks!
from aws-lc-rs.
The is due to the
-pedantic
flag being passed viaCMAKE_C_FLAGS
here, but I'm not sure where that's coming from.
Thanks for your reply and the fixes!
I think I have been able to suppress the error and work around it for now, but another problem caused it to fail to compile.
Copying platform assembly files from C:/Users/runneradmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.17.0/aws-lc/generated-src/win-x86_64/crypto/ to D:/a/r-glaredb/r-glaredb/src/rust/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-50dad33b9ae93e0d/out/build/aws-lc/crypto
D:/a/r-glaredb/r-glaredb/src/rust/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-50dad33b9ae93e0d/out/build/aws-lc/crypto/fipsmodule/aesni-xts-avx512.asm:136: error: undefined symbol `zmm25' (first use)
D:/a/r-glaredb/r-glaredb/src/rust/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-50dad33b9ae93e0d/out/build/aws-lc/crypto/fipsmodule/aesni-xts-avx512.asm:136: error: (Each undefined symbol is reported only once.)
I know this is off-topic, is it worth submitting a new issue?
from aws-lc-rs.
Do you have a link to the full output? I believe "zmm25" is related to AVX-512 support, which is supported by NASM v2.11 and later: https://www.nasm.us/xdoc/2.11/html/nasmdocc.html
Is it possible that an older version of NASM is being used?
from aws-lc-rs.
Thanks for your response!
The log is here:
https://github.com/eitsupi/r-glaredb/actions/runs/9426573806/job/25969635968?pr=34#step:11:1469
Is it possible that an older version of NASM is being used?
It seems NASM version 2.16.01 compiled on Dec 21 2022
is downloaded.
https://github.com/eitsupi/r-glaredb/actions/runs/9426573806/job/25969635968?pr=34#step:8:23
Is this a cross compile to x86_64-pc-windows-gnu
so something is misconfigured?
from aws-lc-rs.
The issue is that your build is using YASM instead of NASM as the assembler.
...
-- The ASM_NASM compiler identification is YASM
-- Found assembler: C:/rtools44/x86_64-w64-mingw32.static.posix/bin/yasm.exe
...
YASM appears to be an abandoned rewrite of NASM that's not had a release since August of 2014 -- around the time NASM 2.11 released. I'm not sure how it's being installed or why it's being found instead of NASM.
from aws-lc-rs.
The issue is that your build is using YASM instead of NASM as the assembler.
... -- The ASM_NASM compiler identification is YASM -- Found assembler: C:/rtools44/x86_64-w64-mingw32.static.posix/bin/yasm.exe ...
YASM appears to be an abandoned rewrite of NASM that's not had a release since August of 2014 -- around the time NASM 2.11 released. I'm not sure how it's being installed or why it's being found instead of NASM.
Thanks for pointing out that!
YASM seems to have been updated even recently, and the rtools used here (based on msys2) seem to include both NASM and YASM; I don't know why YASM was preferred over NASM.
https://packages.msys2.org/package/yasm
https://svn.r-project.org/R-dev-web/trunk/WindowsBuilds/winutf8/ucrt3/toolchain_libs/mxe/src/
from aws-lc-rs.
Thanks for taking a look at this, I checked rtools44 and found that I was wrong and that yasm is included but nasm is not.
It appears that I probably need to install additional nasm at this point.
from aws-lc-rs.
Thanks for quick updates! I will try.
from aws-lc-rs.
Related Issues (20)
- AWS-LC’s libcrypto means, is it support for libcrypto of OpenSSL library added?
- Remove NASM requirement for windows builds
- Link to guide on bindgen requirement HOT 2
- Build fails for some targets because of missing _ISOC11_SOURCE preprocessor definition HOT 2
- Consolidate FFI bindings HOT 4
- Build fails for iOS simulator on x86_64 HOT 2
- Build failed at target: aarch64-pc-windows-msvc HOT 16
- Support streaming API for CBC HOT 1
- Compilation Errors on `x86_64-pc-windows-gnu` Target due to Uninitialized Variables in `aws-lc` HOT 4
- Linux -> Mac cannot cross compile aws-lc-sys HOT 6
- Cross build for target x86_64-pc-windows-gnu failed HOT 6
- Android build fails HOT 2
- armv7-unknown-linux-gnueabihf build failed. HOT 2
- arm-unknown-linux-gnueabihf build failed HOT 7
- x86_64-pc-windows-gnu build failed HOT 11
- Exported symbols conflict with boring-sys crate
- Linkage error when cross-compiling for `aarch64-pc-windows-msvc` HOT 35
- Cross compilation support for arm32 HOT 1
- Support for P521 curve with SHA256/SHA384 hash algorithms. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lc-rs.