BUILD for aarch64 : Suggested changes#100
BUILD for aarch64 : Suggested changes#100rahulthakre29 wants to merge 2 commits intoeclipse-score:mainfrom
Conversation
|
The created documentation from the pull request is available at: docu-html |
346bf99 to
79047c4
Compare
79047c4 to
b45bfdb
Compare
b45bfdb to
f8d4bb8
Compare
f8d4bb8 to
7c5e445
Compare
MODULE.bazel
Outdated
| name = "valgrind-deb", | ||
| name = "acl-deb-arm64", | ||
| build = "//third_party/acl:acl-arm64.BUILD", | ||
| urls = ["https://launchpadlibrarian.net/581258948/libacl1-dev_2.3.1-1_arm64.deb"], |
There was a problem hiding this comment.
Let's get it from https://ports.ubuntu.com/pool/main/a/acl/ instead.
Please also update the version for amd64
| @@ -0,0 +1,14 @@ | |||
| cc_library( | |||
There was a problem hiding this comment.
Why is this split to dev and non-dev?
ffb641c to
9d7698f
Compare
9d7698f to
4446685
Compare
4446685 to
c8d2343
Compare
c8d2343 to
94efb57
Compare
| # Platform-aware library aliases for backward compatibility | ||
| alias( | ||
| name = "acl", | ||
| actual = "//third_party/acl:acl", | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| alias( | ||
| name = "libcap2", | ||
| actual = "//third_party/libcap2:libcap2", | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| alias( | ||
| name = "libcap2-dev", | ||
| actual = "//third_party/libcap2:libcap2", | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| alias( | ||
| name = "libseccomp2", | ||
| actual = "//third_party/libseccomp2:libseccomp2", | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| alias( | ||
| name = "libseccomp2-dev", | ||
| actual = "//third_party/libseccomp2:libseccomp2", | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| alias( | ||
| name = "valgrind", | ||
| actual = "//third_party/valgrind:valgrind", | ||
| visibility = ["//visibility:public"], | ||
| ) |
There was a problem hiding this comment.
There are already aliases and cc_library targets in //third-party/... Let's not have one more indirection
| deps = select({ | ||
| "@platforms//os:qnx": [], | ||
| "//conditions:default": ["//third_party/valgrind"], | ||
| "//conditions:default": ["//:valgrind"], |
There was a problem hiding this comment.
This change is not needed. Having it refer to //third_party/valgrind is perfectly fine. Moreover, by not having this change, we'll avoid change sin our internal codebase.
| ], | ||
| deps = [ | ||
| "//third_party/libseccomp2", | ||
| "//:libseccomp2-dev", |
There was a problem hiding this comment.
Same as in the valgrind case above. Please leave deps to //third_party/... without change. Same applies to all other similar cases in this PR.
| "@platforms//cpu:aarch64": ["lib/aarch64-linux-gnu/libacl.a"], | ||
| "//conditions:default": ["lib/x86_64-linux-gnu/libacl.a"], |
There was a problem hiding this comment.
lib/x86_64-linux-gnu/libacl.ais a symlink in deb archive tousr/lib/x86_64-linux-gnu/libacl.a. I would avoid extra indirection, i.e. keepusr/lib- In case of aarch64, there is no such symlink, so the build will likely to fail, i.e. add
usr/in front
You can validate AArch64 builds locally with bazel build --config=bl-aarch64-linux //score/...
Suggested Changes to build aarch64 on Baselib