Author Topic: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)  (Read 16653 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« on: July 07, 2006, 01:15:27 pm »
...I'm lost. I've already fixed a missing include but now I receive the following error:
Code
compilercommandgenerator.cpp: In member function `virtual void 
   CompilerCommandGenerator::DoBuildScripts(CompileOptionsBase*, const
   wxString&)':
compilercommandgenerator.cpp:258: error: no matching function for call to `
   SqPlus::SquirrelFunction<void>::SquirrelFunction(const wxString&)'
../../src/sdk/scripting/sqplus/sqplus.h:1523: error: candidates are:
   SqPlus::SquirrelFunction<void>::SquirrelFunction(const
   SqPlus::SquirrelFunction<void>&)
../../src/sdk/scripting/sqplus/sqplus.h:1535: error:                 
   SqPlus::SquirrelFunction<RT>::SquirrelFunction(const SQChar*) [with RT =
   void]
../../src/sdk/scripting/sqplus/sqplus.h:1530: error:                 
   SqPlus::SquirrelFunction<RT>::SquirrelFunction(const SquirrelObject&, const
   SQChar*) [with RT = void]
../../src/sdk/scripting/sqplus/sqplus.h:1529: error:                 
   SqPlus::SquirrelFunction<RT>::SquirrelFunction(const SquirrelObject&, const
   SquirrelObject&) [with RT = void]
../../src/sdk/scripting/sqplus/sqplus.h:1528: error:                 
   SqPlus::SquirrelFunction<RT>::SquirrelFunction(SQVM*, const SquirrelObject&,
   const SquirrelObject&) [with RT = void]
../../src/sdk/scripting/sqplus/sqplus.h:1527: error:                 
   SqPlus::SquirrelFunction<RT>::SquirrelFunction() [with RT = void]
compilercommandgenerator.cpp:258: error: invalid declarator
make[4]: *** [compilercommandgenerator.lo] Error 1
make[4]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ftmh/projects/codeblocks/src'
make: *** [all-recursive] Error 1
I think it is not related to http://forums.codeblocks.org/index.php?topic=3481.0... but I'm not sure. Any hint?

My configuration: SuSE Linux 9.3 (AMD64), gcc (GCC) 3.3.5 20050117 (prerelease) -> no PCH support.

With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #1 on: July 07, 2006, 01:57:12 pm »
Try replacing #include <sqplus.h> in that file with


#include "scripting/bindings/sc_base_types.h"
#include "scripting/sqplus/sqplus.h"


If it works, don't commit this. I 'm in the process of cleaning up all the SDK files.
Be patient!
This bug will be fixed soon...

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #2 on: July 07, 2006, 02:20:05 pm »
Doesn't work with gcc 3.3.6 on my gentoo. I get the same error as Morton if I replace #include <sqplus.h>.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #3 on: July 07, 2006, 02:39:06 pm »
Try replacing #include <sqplus.h> in that file with
Nope, doesn't change anything. Anyway, are you aware that for a header-include-cleanup you can nicely use the SDK documenation?! I've added the option to include such graphs on purpose...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #4 on: July 07, 2006, 02:47:42 pm »
OK, I got it.
Change line 259 from:
Code
SqPlus::SquirrelFunction<void>(cbU2C(funcName))(base);

to:

Code
SqPlus::SquirrelFunction<void> f(cbU2C(funcName));
f(base);

The compiler is choking, it seems...
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #5 on: July 07, 2006, 02:54:36 pm »
Change line 259 from: [...]
Yes, that was it. I've also changed back the include because this seems more clean.
Compilation continues, after it finished I would commit the changes I've done concerning non-precompiled headers support?! Ok?!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #6 on: July 07, 2006, 03:04:46 pm »
OK then.
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #7 on: July 07, 2006, 03:23:03 pm »
[...] I would commit the changes I've done concerning non-precompiled headers support?!
O dear, these are quite some... when was the last tiome somebody tried to compile C::B without precomp support?! ;-)

Ps.: I'm still in the process of compiling...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #8 on: July 07, 2006, 03:23:43 pm »
Just a week ago. But in this week there were a lot of changes. ;)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #9 on: July 07, 2006, 03:32:36 pm »
[...] I would commit the changes I've done concerning non-precompiled headers support?!
O dear, these are quite some... when was the last tiome somebody tried to compile C::B without precomp support?! ;-)

Ps.: I'm still in the process of compiling...

You might want to update first. I commited a huge patch (cleaning up #includes in SDK). :)
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #10 on: July 07, 2006, 03:57:20 pm »
You might want to update first. I commited a huge patch (cleaning up #includes in SDK). :)
Ok, I did this and started over again (:roll: my fault - you've warned me), but still: there are quite some... we'll see if I can finish this today here at work...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #11 on: July 07, 2006, 04:15:49 pm »
Strange, just few hours ago I decided to try to build cb without pch  :shock:

I tried to build rev2705 and got few errors (FC4 and gcc 4.0.1). Now I try to build rev2708 and post the errors, if there are any. :)

Here's a short error summary of rev2708 till now (will post the whole error log later):
Code
daniel@linux:~> cat /mnt/daten/daniel/codeblocks-nightlybuilds.log | grep Error
make[5]: [scriptbindings.lo] Error 1 (ignored)
make[5]: [sc_consts.lo] Error 1 (ignored)
make[5]: [sc_globals.lo] Error 1 (ignored)
make[5]: [sc_wxtypes.lo] Error 1 (ignored)
make[5]: [sc_io.lo] Error 1 (ignored)
make[5]: [libsqbindings.la] Error 1 (ignored)
make[4]: [annoyingdialog.lo] Error 1 (ignored)
make[4]: [autodetectcompilers.lo] Error 1 (ignored)
make[4]: [cbeditor.lo] Error 1 (ignored)
make[4]: [cbplugin.lo] Error 1 (ignored)
make[4]: [cbproject.lo] Error 1 (ignored)
make[4]: [compilercommandgenerator.lo] Error 1 (ignored)
make[4]: [compilerfactory.lo] Error 1 (ignored)
make[4]: [compiletargetbase.lo] Error 1 (ignored)
make[4]: [configmanager.lo] Error 1 (ignored)
make[4]: [configmanager-revision.lo] Error 1 (ignored)
make[4]: [devcpploader.lo] Error 1 (ignored)
make[4]: [editkeywordsdlg.lo] Error 1 (ignored)
make[4]: [editorbase.lo] Error 1 (ignored)
Nightly builds for openSUSE

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #12 on: July 07, 2006, 04:25:11 pm »
Here's a short error summary of rev2708 till now (will post the whole error log later):
I'm still here... comping and fixing... give some time and it'll work again...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #13 on: July 07, 2006, 04:51:58 pm »
I'm still here... comping and fixing... give some time and it'll work again...
8)
I'll wait for your commit(s) and then build it again :D

btw. I don't want to hurry you, take your time ;)
« Last Edit: July 07, 2006, 05:03:12 pm by daniel2000 »
Nightly builds for openSUSE

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
« Reply #14 on: July 07, 2006, 04:52:26 pm »
You might want to update first. I commited a huge patch (cleaning up #includes in SDK). :)
Your change in src/sdk/compilerfactory.h broke src/plugins/projectwizard/wiz.cpp as it now doesn't have a declaration of the type 'Compiler' any more. This patch solves this problem:
Code
Index: src/plugins/projectwizard/wiz.cpp
===================================================================
--- src/plugins/projectwizard/wiz.cpp   (revision 2708)
+++ src/plugins/projectwizard/wiz.cpp   (working copy)
@@ -30,6 +30,7 @@
 #include <compilerfactory.h>
 #include <projectbuildtarget.h>
 #include <filefilters.h>
+#include <compiler.h>
 #include <licenses.h> // defines some common licenses (like the GPL)
 
 #include <scripting/bindings/sc_base_types.h>
[/quote]
Note: This problem is *not* specific to gcc 3.3.x. It appeared here while compiling with gcc 3.4.6.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.