Remove last GCC tools which do not run on the target system
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- linux
- Domain
- build-system, compilers
Research direction
No files or tests are named. Start by inspecting the crosstool-ng configuration and the build outputs that retain ar, nm, objcopy, and related GCC binaries; compare them with the available LLVM counterparts. Done means the unwanted static GCC tools are no longer kept and the regenerated toolchain remains usable on the target system.
Written by the indexing model from the issue text.
Description
Due to a misunderstanding on how the build works, we are currently building and keeping binaries like ar, nm, objcopy etc that come from the GCC toolchain that crosstool-ng initially prepares.
These tools are built as fully static, so the even the glibc is statically compiled in. The problem is that it doesn't use the glibc version we want to target, but the one that the system where is currently built on uses.
Since we build on an Ubuntu 18.04, the included glibc version doesn't work with the old kernel that CentOS 6 has.
In general we should just switch to the LLVM counterparts, since they are all available, so ar -> llvm-ar, nm -> llvm-nm and so on.
While it's true that it's rare that the toolchain is used on CentOS 6 directly to build osquery, it's a problem when having to re-generate the configuration for the third party libraries.
A workaround can be done by creating some symlinks.
- Dominant language
- Shell
- Stars
- 43
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from osquery/osquery-toolchain
-
Build error.Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
osquery/osquery-toolchain#29 ·
-
bug
Difficulty 5/5 Over a week Newbie friendliness 20/100
osquery/osquery-toolchain#25 ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 25/100
osquery/osquery-toolchain#24 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
osquery/osquery-toolchain#13 ·
-
Explore toolchain build reproducibilityMay be free again @theopolis claimed this 2644 days ago, and no pull request is open. Openenhancement
osquery/osquery-toolchain#11 · 1 comment · 1 assignee ·
All issues in osquery/osquery-toolchain
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
ardia-browser/ardia#6391 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
software-mansion-labs/Diplomat#291 ·
Maintainers usually reply within 1 day
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
wso2/agent-manager#2717 ·
Maintainers usually reply within 1 day
-
meta
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
last9/last9-mcp-server#786 ·
Maintainers usually reply within 1 day