Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove last GCC tools which do not run on the target system #26

Open
Smjert opened this issue Oct 20, 2021 · 0 comments
Open

Remove last GCC tools which do not run on the target system #26

Smjert opened this issue Oct 20, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Smjert
Copy link
Member

Smjert commented Oct 20, 2021

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.

@Smjert Smjert added the bug Something isn't working label Oct 20, 2021
@Smjert Smjert changed the title Remove last GCC tools which do not run on CentOS 6 Remove last GCC tools which do not run on the targe system Oct 20, 2021
@Smjert Smjert changed the title Remove last GCC tools which do not run on the targe system Remove last GCC tools which do not run on the target system Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant