Skip to content

Missing libcxx folder under projects folder as required in CMakeCache.txt #57

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

Open
programminggit opened this issue Jan 12, 2015 · 3 comments

Comments

@programminggit
Copy link

Hello and thank you for your support in advance.

I'm wanting to compile clang-openmp with libc++ support.

After successfully compiling and running a basic openmp test program on OSX Yosemite I thought all was well until I tried to compile boost with ./b2 install.

The compile failed not finding any libc++ headers.

Looking into CMakeCache.txt I found entry:
LLVM_EXTERNAL_LIBCXX_SOURCE_DIR pointing to a non-existent folder:
/Users/Developer/OpenMPStuff/llvm/projects/libcxx.

Should the libcxx folder be present and does this explain why I'm getting missing libc++ header file compile failures ?(I have the compiler-rt folder under projects)

@alexey-bataev
Copy link
Member

Hi, see comments here
#42 (comment)
Hope it will help you to solve your problems.

Best regards,

Alexey Bataev

Software Engineer
Intel Compiler Team
Intel Corp.

12.01.2015 19:57, Pete Clark пишет:

Hello and thank you for your support in advance.

I'm wanting to compile clang-openmp with libc++ support.

After successfully compiling and running a basic openmp test program
on OSX Yosemite I thought all was well until I tried to compile boost
with ./b2 install.

The compile failed not finding any libc++ headers.

Looking into CMakeCache.txt I found entry:
LLVM_EXTERNAL_LIBCXX_SOURCE_DIR pointing to a non-existent folder:
/Users/Developer/OpenMPStuff/llvm/projects/libcxx.

Should the libcxx folder be present and does this explain why I'm
getting missing libc++ header file compile failures ?(I have the
compiler-rt folder under projects)


Reply to this email directly or view it on GitHub
#57.

@programminggit
Copy link
Author

Thanks Alexey.

I couldn't see in the procedure I was following any opportunity to pass your suggested parameters. (I'm following Kyle Halladays instructions for OSX Mavericks)

However, I have now been able to compile with clib++ successfully by adding an extra step in the Clang / OpenMP procedure.

This is on http://clang-omp.github.io/, under

$ git clone https://github.com/clang-omp/llvm
$ git clone https://github.com/clang-omp/compiler-rt llvm/projects/compiler-rt
$ git clone -b clang-omp https://github.com/clang-omp/clang llvm/tools/clang

I added an extra step here to download the resources cmake is expecting:
$git clone https://github.com/llvm-mirror/libcxx llvm/projects/libcxx

This satisfies the setting LLVM_EXTERNAL_LIBCXX_SOURCE_DIR that is defined in the CMakeCache.tx file.

This then resulted in as successful build with c++11 support.

I had to make a slight modification to the instructions, replacing

../configure --enable-optimized >>> ./configure --enable-optimized CC=/usr/bin/clang CXX=/usr/bin/clang++

Note Kyle Halladays link leads to:
http://stackoverflow.com/questions/20321988/error-enabling-openmp-ld-library-not-found-for-lgomp-and-clang-errors/21789869#21789869

I used the last procedure in this article (marked as '1')

Kind Regards

Peter Clark

@alexey-bataev
Copy link
Member

Peter, glad you were able to resolve your troubles!

Best regards,

Alexey Bataev

Software Engineer
Intel Compiler Team
Intel Corp.

13.01.2015 14:35, Pete Clark пишет:

Thanks Alexey.

I couldn't see in the procedure I was following any opportunity to
pass your suggested parameters. (I'm following Kyle Halladays
instructions for OSX Mavericks)

However, I have now been able to compile with clib++ successfully by
adding an extra step in the Clang / OpenMP procedure.

This is on http://clang-omp.github.io/, under

$ git clone https://github.com/clang-omp/llvm
$ git clone https://github.com/clang-omp/compiler-rt
llvm/projects/compiler-rt
$ git clone -b clang-omp https://github.com/clang-omp/clang
llvm/tools/clang

I added an extra step here to download the resources cmake is expecting:
$git clone https://github.com/llvm-mirror/libcxx llvm/projects/libcxx

This satisfies the setting LLVM_EXTERNAL_LIBCXX_SOURCE_DIR that is
defined in the CMakeCache.tx file.

This then resulted in as successful build with c++11 support.

I had to make a slight modification to the instructions, replacing

../configure --enable-optimized >>> ./configure --enable-optimized
CC=/usr/bin/clang CXX=/usr/bin/clang++

Note Kyle Halladays link leads to:
http://stackoverflow.com/questions/20321988/error-enabling-openmp-ld-library-not-found-for-lgomp-and-clang-errors/21789869#21789869

I used the last procedure in this article (marked as '1')

Kind Regards

Peter Clark


Reply to this email directly or view it on GitHub
#57 (comment).

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