generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 169
Open
Description
Problem:
When building with Clang on Windows, the compilation fails with the following error
FAILED: aws-lc/crypto/fipsmodule/bcm.o O:/GitHub/aws-lc-rs/target/debug/build/aws-lc-fips-sys-dc904e8765dea6e9/out/build/aws-lc/crypto/fipsmodule/bcm.o
C:\Windows\System32\cmd.exe /C "cd /D O:\GitHub\aws-lc-rs\target\debug\build\aws-lc-fips-sys-dc904e8765dea6e9\out\build\aws-lc\crypto\fipsmodule && C:\Users\aminya\llvm\bin\lld-link.exe -r -T O:/GitHub/aws-lc-rs/aws-lc-fips-sys/aws-lc/crypto/fipsmodule/fips_shared.lds -o bcm.o --whole-archive O:/GitHub/aws-lc-rs/target/debug/build/aws-lc-fips-sys-dc904e8765dea6e9/out/build/aws-lc/crypto/fipsmodule/bcm_library.lib"
lld-link: warning: ignoring unknown argument '-r'
lld-link: warning: ignoring unknown argument '-T'
lld-link: warning: ignoring unknown argument '-o'
lld-link: warning: ignoring unknown argument '--whole-archive'
lld-link: error: O:/GitHub/aws-lc-rs/aws-lc-fips-sys/aws-lc/crypto/fipsmodule/fips_shared.lds: unknown file type
lld-link: error: could not open 'bcm.o': no such file or directory
ninja: build stopped: subcommand failed.Relevant details
AWS-LC commit: 478ca60
System information:
- CPU architecture: x86
- CPU name: AMD
- OS: Windows 11
Build log:
- The log tells compiler and version. It's available when building awslc with CMake.
> cmake "--build" "O:\\GitHub\\aws-lc-rs\\target\\debug\\build\\aws-lc-fips-sys-dc904e8765dea6e9\\out\\build" "--target" "install" "--config" "Debug" "--parallel" "32"
[0/1] Re-running CMake...CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):
The OLD behavior for policy CMP0091 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Go compiler 1.25.6 found
-- ENABLE_PRE_SONAME_BUILD: ON
-- PERFORM_SONAME_BUILD: 0
-- Entropy source configured: Dynamic (default: CPU Jitter)
-- Prefix build configured: performing build using prefix "aws_lc_fips_0_13_11_" and headers path "O:\GitHub\aws-lc-rs\aws-lc-fips-sys\generated-include"
-- Setting CMAKE_C_STANDARD=11
-- Performing Test HAVE_C_FLAG__Wno_cast_function_type
-- Performing Test HAVE_C_FLAG__Wno_cast_function_type - Success
-- Compiler supports '-Wno-cast-function-type', adding to CMAKE_C_FLAGS
-- Performing Test HAVE_C_FLAG__Wstring_concatenation
-- Performing Test HAVE_C_FLAG__Wstring_concatenation - Success
-- Compiler supports '-Wstring-concatenation', adding to C_CXX_FLAGS
-- Performing Test HAVE_C_FLAG__Wimplicit_fallthrough
-- Performing Test HAVE_C_FLAG__Wimplicit_fallthrough - Success
-- Compiler supports '-Wimplicit-fallthrough', adding to C_CXX_FLAGS
-- linux_random_h.c probe is negative, NOT enabling HAVE_LINUX_RANDOM_H:
-- Use -DFEATURE_PROBE_VERBOSE=ON to view feature probe error output.
-- linux_random_h.c probe is negative, NOT enabling AWS_LC_URANDOM_NEEDS_U32:
-- Use -DFEATURE_PROBE_VERBOSE=ON to view feature probe error output.
-- stdalign_check.c probe is positive, enabling AWS_LC_STDALIGN_AVAILABLE
-- builtin_swap_check.c probe is positive, enabling AWS_LC_BUILTIN_SWAP_SUPPORTED
-- Performing Test HAVE_C_FLAG__Wshadow
-- Performing Test HAVE_C_FLAG__Wshadow - Success
-- Compiler supports '-Wshadow', adding to C_CXX_FLAGS
-- Configuring done (2.0s)
-- Generating done (0.1s)
...
FAILED: aws-lc/crypto/fipsmodule/bcm.o O:/GitHub/aws-lc-rs/target/debug/build/aws-lc-fips-sys-dc904e8765dea6e9/out/build/aws-lc/crypto/fipsmodule/bcm.o
C:\Windows\System32\cmd.exe /C "cd /D O:\GitHub\aws-lc-rs\target\debug\build\aws-lc-fips-sys-dc904e8765dea6e9\out\build\aws-lc\crypto\fipsmodule && C:\Users\aminya\llvm\bin\lld-link.exe -r -T O:/GitHub/aws-lc-rs/aws-lc-fips-sys/aws-lc/crypto/fipsmodule/fips_shared.lds -o bcm.o --whole-archive O:/GitHub/aws-lc-rs/target/debug/build/aws-lc-fips-sys-dc904e8765dea6e9/out/build/aws-lc/crypto/fipsmodule/bcm_library.lib"
lld-link: warning: ignoring unknown argument '-r'
lld-link: warning: ignoring unknown argument '-T'
lld-link: warning: ignoring unknown argument '-o'
lld-link: warning: ignoring unknown argument '--whole-archive'
lld-link: error: O:/GitHub/aws-lc-rs/aws-lc-fips-sys/aws-lc/crypto/fipsmodule/fips_shared.lds: unknown file type
lld-link: error: could not open 'bcm.o': no such file or directory
ninja: build stopped: subcommand failed.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels