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

Specify path to system libraries for cross-compile #2

Open
3 tasks
Artalus opened this issue May 7, 2018 · 0 comments
Open
3 tasks

Specify path to system libraries for cross-compile #2

Artalus opened this issue May 7, 2018 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Artalus
Copy link
Owner

Artalus commented May 7, 2018

  • Search for <string> in /arm/target/usr/include instead of /usr/include
  • Prevent clang builtin limits.h #include_nexting /usr/include/limits.h
  • Ensure right primitives' sizeof when targeting different bitness (leading to sizeof(long) != SIZE_OF_LONG)

Clue from #llvm

@filcab [07.05.2018 1:15 PM]
You’ll want to explicitly add the target to your libclang command lines. You might want to add -isysroot too. If all else fails, do what I did for ycm and explicitly add the include paths that your compiler searches (check out the output of a compile with -v)

Can be partially worked around by providing -nostdinc++ -isystem /path/to/usr/include -isystem /path/to/cross-gcc/stdlib in compile_commads.json.

Probably those can be added with a commandline adjuster like the one in clang's CommonOptionsParser.cpp.

Another clue.

Once fixed, apply the same to leak-marker.

@Artalus Artalus added the help wanted Extra attention is needed label May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant