Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: smallB on October 27, 2012, 07:10:18 pm
-
Guys, I've installed clang from rubenv distro, then I've installed cb 8478. Next I've selected in compiler LLVM compiler and pressed auto-detection. It detected correctly clang compiler but didn't want to build hello world project telling me that I didn't set the compiler. So I've switched off/on cb and now when I want to open the project for which I've set clang as a compiler cb crashes every time.
-
...again not enough information.
What do you expect from such posts? I am leaving this open - maybe you'll finally learn how to post. :-\
-
Hi, I thought I've given all necessary steps to reproduce:
1. Install clang
2. Install cb 8478
3. Select compiler LLVM
4. Press auto-detect
5. Switch off/on code blocks
6. If you try to open this project, cb will crash.
I'm sorry but if you need more info, which I don't know of, I'd rather see post from you, something like:
"Hey, we need x, y and z in order to be able to fix it. Could you provide it?"
Locking, and giving rude reply in form "...and what?" isn't the best way to improve your product. It is I who took the time to bother to post it to let you know that your product has problem, and out of curtesy you should at least try to pretend that you appreciate it.
If you need any more info, please let me know.
-
If you need any more info, please let me know.
Still no platform (OS). No version (OS, compiler etc.). Shall I search the internet for "rubenv" for whatever that is? Sure not.
BTW: When you registered with the forums you agreed on the rules, including the rules how to post.
As a side note to clarify: Sure, we can over and over ask for the same things - but wouldn't it be easier for all of us, if people just read and follow the guide lines? There is a difference between just posting "something" and thinking about what would be needed in order to reproduce, collect all info, and post. The latter saves us many time and helps us making the "product" better. The first one keeps us busy in the forums not doing anything. What would you prefer?
I don't want to sound rude, but you know - after so many years of this forum things really become worse. While is used to be roughly 4 out of 10 posts that provided not enough info, meanwhile its 7 out of 10. People seem to become more and more lazy and this really gets very annoying... Not offending you personally.
-
Hi, thanks for your reply and apologies for not knowing what to post:
OS: W7
rubenv's edition of clang: http://sourceforge.net/projects/mingw-w64/files/Toolchain%20sources/Personal%20Builds/ - you can find it in folder called rubenv
Let me know if you need any additional info.
-
3. Select compiler LLVM
Select as default compiler, and/or just adjust this' compiler's options?
What compiler precisely? under the link you provided are very many.
4. Press auto-detect
6. If you try to open this project, cb will crash.
What project? A simple console project?
-
3. Yes, select as default compiler. If you go to folder rubenv there is clang compiler.
6. Yes, this is simple console project.
-
3. Yes, select as default compiler. If you go to folder rubenv there is clang compiler.
http://sourceforge.net/projects/mingw-w64/files/Toolchain%20sources/Personal%20Builds/rubenvb/
I see there only:
- experimental
- release
- old
...if I dig further into it I see a clang package but this is only source code.
Again: What compiler/download exactly?
-
The clang compiler from rubenv (the one I've used) can be found at:
http://en.sourceforge.jp/projects/sfnet_mingw-w64/downloads/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/clang-3.1-release/i686-w64-mingw32-clang-3.1-release-win32_rubenvb.7z/
-
The clang compiler from rubenv (the one I've used) can be found at:
http://en.sourceforge.jp/projects/sfnet_mingw-w64/downloads/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/clang-3.1-release/i686-w64-mingw32-clang-3.1-release-win32_rubenvb.7z/
OK - I tried that one. If I launch the clang compiler from this package it crashes (outside Code::Blocks!) immediately. Surely it also crashes when run from inside C::B. Maybe you should use another clang. For example this:
www.ishani.org/web/articles/code/clang-win32/
...which works perfectly for me.
So - it really seems not to be a C::B issue.
-
Hi
Thanks for the link. You are right that clang crashes. It is doing on my pc too. I could swear that cb was crashing while opening this project, yet now I can open it and yes, clang crashes.
All I can say is that:
a) I simply don't understand what happend
b) sorry for taking your time
Regards
-
I could swear that cb was crashing while opening this project, yet now I can open it and yes, clang crashes.
This can be true. If an application that C::B runs crashes than this can lead to the mother application (C::B itself) crashing, too (as it is with any other application). When you open a project, CC runs the compiler silently to obtain flags like constants and includes.