Author Topic: CB Won't Run  (Read 24349 times)

Offline xaphilia

  • Single posting newcomer
  • *
  • Posts: 8
CB Won't Run
« on: June 24, 2013, 11:13:17 pm »
I recently installed codeblocks onto Ubuntu 13.04 and whenever I attempt to run it I get a notification saying at least one compiler's master path is empty and invalid, and consequently codeblocks crashes.

I'm sort of new to Linux, so how can I check which master path is the empty one? Thank you!

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CB Won't Run
« Reply #1 on: June 24, 2013, 11:20:51 pm »
hello,
try to run c::b from terminal, and post the log from the terminal.

greetings

Offline xaphilia

  • Single posting newcomer
  • *
  • Posts: 8
Re: CB Won't Run
« Reply #2 on: June 24, 2013, 11:31:06 pm »
I end up with the same results. :\

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CB Won't Run
« Reply #3 on: June 24, 2013, 11:37:15 pm »
hello,
try to run c::b from terminal, and post the log from the terminal.

greetings

Offline xaphilia

  • Single posting newcomer
  • *
  • Posts: 8
Re: CB Won't Run
« Reply #4 on: June 24, 2013, 11:46:53 pm »
Well that's embarrassing.

Code
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
FilesExtensionHandler: loaded
Abbreviations: loaded
AStylePlugin: loaded
CodeCompletion: loaded
ToDoList: loaded
Debugger: loaded
ScriptedWizard: loaded
ProjectsImporter: loaded
Compiler: loaded
OpenFilesList: loaded
ClassWizard: loaded
Autosave: loaded
Files extension handler plugin activated
Abbreviations plugin activated
Source code formatter (AStyle) plugin activated
Code completion plugin activated
Todo List plugin activated
Debugger plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
Foreign projects importer plugin activated
Added compiler "GNU GCC Compiler"
No active project available.
Updating class browser...
Class browser updated.
Added compiler "Intel C/C++ Compiler"
Added compiler "SDCC Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GDC D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU ARM GCC Compiler"
Added compiler "GNU AVR GCC Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Master path of compiler ID "gcc" is empty -> triggers auto-detection.
Master path of compiler ID "icc" is empty -> triggers auto-detection.
Master path of compiler ID "sdcc" is empty -> triggers auto-detection.
Master path of compiler ID "tcc" is empty -> triggers auto-detection.
Master path of compiler ID "gdc" is empty -> triggers auto-detection.
Master path of compiler ID "ldc" is empty -> triggers auto-detection.
Master path of compiler ID "dmd" is empty -> triggers auto-detection.
Master path of compiler ID "gfortran" is empty -> triggers auto-detection.
Master path of compiler ID "g95" is empty -> triggers auto-detection.
Master path of compiler ID "armelfgcc" is empty -> triggers auto-detection.
Master path of compiler ID "avrgcc" is empty -> triggers auto-detection.
Master path of compiler ID "ppcgcc" is empty -> triggers auto-detection.
Master path of compiler ID "tricoregcc" is empty -> triggers auto-detection.
Compiler plugin activated
Open files list plugin activated
Class wizard plugin activated
Autosave plugin activated


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CB Won't Run
« Reply #5 on: June 25, 2013, 02:05:30 am »
i can't find any error in this log... Try again with --debug-log in the terminal:
Code
codeblocks --debug-log
When c::b exactly crash? what do you do before it crashes...

have you installed a compiler?
You can change the compiler paths with Settings->Compiler->Global Compiler Settings->Toolchain executables

try also to delete the .codeblocks folder in your home directory

greetings

Offline xaphilia

  • Single posting newcomer
  • *
  • Posts: 8
Re: CB Won't Run
« Reply #6 on: June 25, 2013, 03:22:18 am »
Using the debug log gets me "aborted (core dumped)" after c::b crashes. I have also already installed compilers, and c::b doesn't even open completely enough for me.

When I try to run I receive these two pop ups:
http://imgur.com/a/VWqqr
And then it crashes.

I also deleted .codeblocks but it hasn't helped

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: CB Won't Run
« Reply #7 on: June 25, 2013, 06:20:51 am »
When I try to run I receive these two pop ups:
Have you tried clicking on the "Detected" one and then on "Set as default"?

ToApolytoXaos

  • Guest
Re: CB Won't Run
« Reply #8 on: June 25, 2013, 09:32:19 am »
It seems you don't have a compiler installed. I might be wrong, but I remember having this issue once as a newbie myself.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CB Won't Run
« Reply #9 on: June 25, 2013, 10:20:52 am »
xaphilia:
Can you pastebin somewhere the generated crash report file?
Read the text in the crash handler dialog for details.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CB Won't Run
« Reply #10 on: June 25, 2013, 11:38:24 am »
Though not having a compiler installed shouldn't cause a crash, it doesn't here.

Might be worth trying without plugins. Possibly aplugin assumes a compiler and does not check. C::B as such works perfectly well without on my convertible.
« Last Edit: June 25, 2013, 11:41:14 am by thomas »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline xaphilia

  • Single posting newcomer
  • *
  • Posts: 8
Re: CB Won't Run
« Reply #11 on: June 25, 2013, 08:11:27 pm »
I'm fairly sure I have the compilers installed, as trying to install build-essential just tells me that it's already installed, and I have tried setting the "detected" compiler to default, but it doesn't do anything. After the second pop-up c::b closes so I can't get to the crash handler dialog, and I've unchecked all the plugins in the software center but once again there's no change.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CB Won't Run
« Reply #12 on: June 25, 2013, 08:16:05 pm »
Try to install g++...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline xaphilia

  • Single posting newcomer
  • *
  • Posts: 8
Re: CB Won't Run
« Reply #13 on: June 25, 2013, 08:19:18 pm »
Quote
Try to install g++...

Code
sudo apt-get install g++
Reading package lists... Done
Building dependency tree       
Reading state information... Done
g++ is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CB Won't Run
« Reply #14 on: June 25, 2013, 11:42:51 pm »
There should be a debug log in the /tmp/ folder. Something with "codeblocks" in the name... can you post it?

greetings