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

libllvm does not create a native llvm-config #879

Open
vishalbiswas opened this issue Mar 25, 2017 · 4 comments
Open

libllvm does not create a native llvm-config #879

vishalbiswas opened this issue Mar 25, 2017 · 4 comments
Labels
bug report Something is not working properly help wanted Help is wanted in order to solve the issue inactive No activity in a certain period of time

Comments

@vishalbiswas
Copy link
Contributor

Cross compiling llvm builds a native (host=build) version of llvm-config as a make step. But in termux, this is not the case. The native llvm-config is built for target host.
The native build takes place in $TERMUX_PKG_BUILDDIR/NATIVE. I was unable to find the root cause, but, the native build also uses $TERMUX_STANDALONE_TOOLCHAIN/bin/clang++. I suspect that this may be a bug in the cross compilation mechanism of cmake itself.

This is required to build rustc and other packages dependent on llvm-config.

@fornwall fornwall added bug report Something is not working properly help wanted Help is wanted in order to solve the issue labels Mar 25, 2017
@ghost
Copy link

ghost commented Jan 18, 2019

Implemented in #917.

@ghost ghost closed this as completed Jan 18, 2019
@vishalbiswas
Copy link
Contributor Author

This was kept open because the underlying bug which caused libllvm to not create a host=gnueabi/target=androideabi llvm-config was never fixed. It was just sidestepped.

@ghost ghost reopened this Jan 22, 2019
@stale
Copy link

stale bot commented Nov 18, 2021

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Issue won't be fixed label Nov 18, 2021
@stale stale bot closed this as completed Dec 2, 2021
@xtkoba xtkoba reopened this Dec 24, 2022
@xtkoba xtkoba removed the wontfix Issue won't be fixed label Dec 24, 2022
@stale stale bot added the inactive No activity in a certain period of time label Mar 9, 2023
@truboxl
Copy link
Contributor

truboxl commented Apr 19, 2023

Relevant files to look at: https://github.com/llvm/llvm-project/tree/main/llvm/tools/llvm-config

I dive a little bit and I wonder if it has always been this way (llvm-config will be built for Target not Build)
Target = Android
Build = Linux

For our use case if we want to have cross llvm-config that can run on Build, maybe we should just host build manually ourselves.
Need to track down where the Android variables went to...

@stale stale bot removed the inactive No activity in a certain period of time label Apr 19, 2023
@stale stale bot added the inactive No activity in a certain period of time label Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly help wanted Help is wanted in order to solve the issue inactive No activity in a certain period of time
Projects
None yet
Development

No branches or pull requests

4 participants