clang-omp / clang

clang with OpenMP 3.1 and some elements of OpenMP 4.0 support
clang-omp.github.com
Other
91 stars 15 forks source link

Cannot re-make with --enable-optimized #65

Closed gabrielefronze closed 9 years ago

gabrielefronze commented 9 years ago

I've successfully compiled and used clang-openmp with Debug+Asserts mode. Now I would like to compile in Release mode (I suppose faster compilation times). Whenever I do so I run into errors and make-ing process doesn't ends. Could someone help me? What compiler should I use for the compilation of clang-openmp?

Thanks

gf

alexey-bataev commented 9 years ago

Hi, Could provide a compilation log?

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

12.03.2015 2:13, gabrielefronze пишет:

I've successfully compiled and used clang-openmp with Debug+Asserts mode. Now I would like to compile in Release mode (I suppose faster compilation times). Whenever I do so I run into errors and make-ing process doesn't ends. Could someone help me? What compiler should I use for the compilation of clang-openmp?

Thanks

gf

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/65.

gabrielefronze commented 9 years ago

HI, yes sure. Here are the links. Those logs are relative to Debug+Asserts build I did tonight. Neither Debug+Asserts or Release builds seems to work right now.

https://drive.google.com/open?id=0ByOhOwrRZv4YSVI3NWp1eWRqX2s&authuser=0 https://drive.google.com/open?id=0ByOhOwrRZv4YV1ZZbWxTVlRXNWs&authuser=0

Kind regards

gf

alexey-bataev commented 9 years ago

Hmm, it seems to me your system clang crashed. I need build log (i.e. what is printed when you tried to build clang-omp, not reproducer)

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

12.03.2015 11:28, gabrielefronze пишет:

HI, yes sure. Here are the links. Those logs are relative to Debug+Asserts build I did tonight. Neither Debug+Asserts or Release builds seems to work right now.

https://drive.google.com/open?id=0ByOhOwrRZv4YSVI3NWp1eWRqX2s&authuser=0 https://drive.google.com/open?id=0ByOhOwrRZv4YV1ZZbWxTVlRXNWs&authuser=0

Kind regards

gf

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/65#issuecomment-78440299.

gabrielefronze commented 9 years ago

I've also tried to force compiling via gcc4.9+g++4.9 but the crash remains. Also seems to me that the clangomp is now seen as the default compiler, instead of the non openmp compliant that comes with xcode CLT. Here the link to the full output! https://drive.google.com/open?id=0ByOhOwrRZv4YR1VIOUYzTjZQTXM&authuser=0

Kind regards

gf

alexey-bataev commented 9 years ago

It seems, you installed debug version of clang-omp and now it is used as a default compiler. Debug version of compiler takes a lot of memory and, probably, you're just running out of stack or something like this. It seems you were using configure-make to build clang. Try to run configure again, but redefined environment variables CC and CXX to point to your original compiler, like: CC=gcc CXX=g++ ./configure && make

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

12.03.2015 12:26, gabrielefronze пишет:

I've also tried to force compiling via gcc4.9+g++4.9 but the crash remains. Also seems to me that the clangomp is now seen as the default compiler, instead of the non openmp compliant that come with xcode CLT. Here the link to the full output! https://drive.google.com/open?id=0ByOhOwrRZv4YR1VIOUYzTjZQTXM&authuser=0

Kind regards

gf

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/65#issuecomment-78447132.

gabrielefronze commented 9 years ago

Yes, I supposed that before. Indeed I've installed the debug version of clang-omp and I sure it's been taken as default compiler, since mpic++ -fopenmp is correctly recognized. I try immediately your suggestion. I'm trying to compile release version to speed up compilation times. Is it related to the fact I'm using debug+asserts version the long compiling time(~20/30 seconds for about 1000 lines of code)? I'll report later on.

Kind regards

gf

alexey-bataev commented 9 years ago

Is it related to the fact I'm using debug+asserts version the long compiling time(~20/30 seconds for about 1000 lines of code)? Yes, debug version works very slowly, you need release version of the compiler

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

12.03.2015 13:03, gabrielefronze пишет:

Yes, I supposed that before. Indeed I've installed the debug version of clang-omp and I sure it's been taken as default compiler, since mpic++ -fopenmp is correctly recognized. I try immediately your suggestion. I'm trying to compile release version to speed up compilation times. Is it related to the fact I'm using debug+asserts version the long compiling time(~20/30 seconds for about 1000 lines of code)? I'll report later on.

Kind regards

gf

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/65#issuecomment-78452223.

gabrielefronze commented 9 years ago

Just to have fun figure out I was compiling clang-omp Release with clang-omp Debug+Asserts: 8 hour of pain ending with stack overflow. :) Compilation running...

gf

alexey-bataev commented 9 years ago

Sometimes ..it happens. :)

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

12.03.2015 13:07, gabrielefronze пишет:

Just to have fun figure out I was compiling clang-omp Release with clang-omp Debug+Asserts: 8 hour of pain ending with stack overflow. :) Compilation running...

gf

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/65#issuecomment-78452774.

gabrielefronze commented 9 years ago

Hi, Debug+Asserts build just finished with no problem. Thanks a lot for your support, have a nice day! Best regards

Gabriele