bazelbuild / bazelbuild/rules_rust
target already defined - darwin64-x86_64-cc (offending arg: x86_64-apple-macosx13.0)
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
When compiling a Rust binary using the openssl-sys package, an error is emitted: "target already defined - darwin64-x86_64-cc (offending argument: x86_64-apple-macosx13.0)".
I am trying to compare compile options because the rules_rust rule appends the argument "-target" to "x86_64-apple-macosx13.0" to override the target option, leading to this issue.
The compile arguments.
``` The compile arguments
cd
"/path/to/openssl-build/build/src"
&&
CC="/path/to/execroot/__main__/external/local_config_cc/cc_wrapper.sh"
"perl"
"./Configure"
"--prefix=/path/to/openssl-build/install"
"--openssldir=/usr/local/ssl"
"no-dso"
"no-shared"
"no-ssl3"
"no-unit-test"
"no-comp"
"no-zlib"
"no-zlib-dynamic"
"no-md2"
"no-rc5"
"no-weak-ssl-ciphers"
"no-camellia"
"no-idea"
"no-seed"
"darwin64-x86_64-cc"
"-O2"
"-ffunction-sections"
"-fdata-sections"
"-fPIC"
"-gdwarf-2"
"-fno-omit-frame-pointer"
"-m64"
"-D_FORTIFY_SOURCE=1"
"-fstack-protector"
"-fcolor-diagnostics"
"-Wall"
"-Wthread-safety"
"-Wself-assign"
"-fno-omit-frame-pointer"
"-O0"
"-DDEBUG"
"DEBUG_PREFIX_MAP_PWD=."
"-isysroot"
"__BAZEL_XCODE_SDKROOT__"
"-F__BAZEL_XCODE_SDKROOT__/System/Library/Frameworks"
"-F__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/MacOSX.platform/Developer/Library/Frameworks"
"-no-canonical-prefixes"
"-pthread"
"-no-canonical-prefixes"
"-Wno-builtin-macro-redefined"
"-D__DATE__=\"redacted\""
"-D__TIMESTAMP__=\"redacted\""
"-D__TIME__=\"redacted\""
"-target"
"x86_64-apple-macosx13.0"
```
Contributor guide
Assessment
This issue has not been assessed yet.