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

Red hat based system - MakeFile #30

Open
Pouja opened this issue Jun 13, 2015 · 2 comments
Open

Red hat based system - MakeFile #30

Pouja opened this issue Jun 13, 2015 · 2 comments

Comments

@Pouja
Copy link

Pouja commented Jun 13, 2015

So, as always Red Hat based systems (fedora) always need a bit of special guidance when compiling.

This time I had to alter the makefile to set the clang_libs variable to -L/usr/lib64/llvm -lclang. It seems that the file libclang.so is located at /usr/lib64/llvm for a red hat based x64 system. And the clang_prefix was changed to /usr/lib/clang/3.4.2.

I'm not sure if it worth to add another condition to the makefile. But I though I should mention this if someone else is trying to use this awesome sublime package on their red hat system. Just saw #5 that fixes this issue completely

I have to note, I do get errors like /usr/lib/gcc/x86_64-redhat-linux/4.8.3/include/xmmintrin.h:213:10: error: use of undeclared identifier '__builtin_ia32_andps' but it continues parsing and giving the correct warnings and errors for the stuff that matters, so I'm not complaining.

@pfultz2
Copy link
Owner

pfultz2 commented Jun 13, 2015

This time I had to alter the makefile to set the clang_libs variable to -L/usr/lib64/llvm -lclang. It seems that the file libclang.so is located at /usr/lib64/llvm for a red hat based x64 system. And the clang_prefix was changed to /usr/lib/clang/3.4.2.

So you built it using make CLANG_LIBS='-L/usr/lib64/llvm -lclang' CLANG_PREFIX=/usr/lib/clang/3.4.2, correct? I want to make sure, so it can be added to the README.

I'm not sure if it worth to add another condition to the makefile. But I though I should mention this if someone else is trying to use this awesome sublime package on their red hat system. Just saw #5 that fixes this issue completely

Many systems don't have llvm-config. Secondly, it is a lot harder to support custom builds of clang. Most of time, the user can just change CLANG_PREFIX to where they installed clang(it seems redhat throws files all over the place).

I have to note, I do get errors like /usr/lib/gcc/x86_64-redhat-linux/4.8.3/include/xmmintrin.h:213:10: error: use of undeclared identifier '__builtin_ia32_andps' but it continues parsing and giving the correct warnings and errors for the stuff that matters, so I'm not complaining.

This is most likely, because you are missing the include for clang's C runtime. In the additional_options in the settings file, you can see "-isystem", "/usr/lib/llvm-3.4/lib/clang/3.4/include/", that needs to change to the path where it is on redhat(I am not sure where it is on redhat).

@Pouja
Copy link
Author

Pouja commented Jun 14, 2015

So you built it using make CLANG_LIBS='-L/usr/lib64/llvm -lclang' CLANG_PREFIX=/usr/lib/clang/3.4.2, correct? I want to make sure, so it can be added to the README.

That is true

Many systems don't have llvm-config. Secondly, it is a lot harder to support custom builds of clang. Most of time, the user can just change CLANG_PREFIX to where they installed clang(it seems redhat throws files all over the place).

Ah didn't know that, yeah well then you have to make a cmakelists which uses macros to find the libraries.

This is most likely, because you are missing the include for clang's C runtime. In the additional_options in the settings file, you can see "-isystem", "/usr/lib/llvm-3.4/lib/clang/3.4/include/", that needs to change to the path where it is on redhat(I am not sure where it is on redhat).

Ah yeah forgot to change the additional_options, I will try that today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants