News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Cannot compile R2706 under SuSE Linux 9.3 (AMD64)

Started by MortenMacFly, July 07, 2006, 01:15:27 PM

Previous topic - Next topic

MortenMacFly

...I'm lost. I've already fixed a missing include but now I receive the following error:

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.next.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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mandrav

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...

Der Meister

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.

MortenMacFly

Quote from: mandrav on July 07, 2006, 01:57:12 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mandrav

OK, I got it.
Change line 259 from:

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


to:


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


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

MortenMacFly

Quote from: mandrav on July 07, 2006, 02:47:42 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mandrav

Be patient!
This bug will be fixed soon...

MortenMacFly

Quote from: MortenMacFly on July 07, 2006, 02:54: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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Der Meister

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.

mandrav

Quote from: MortenMacFly on July 07, 2006, 03:23:03 PM
Quote from: MortenMacFly on July 07, 2006, 02:54: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...

MortenMacFly

Quote from: mandrav on July 07, 2006, 03:32:36 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

TheTuxKeeper

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):
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

MortenMacFly

Quote from: daniel2000 on July 07, 2006, 04:15:49 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

TheTuxKeeper

#13
Quote from: MortenMacFly on July 07, 2006, 04:25:11 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 ;)
Nightly builds for openSUSE

Der Meister

Quote from: mandrav on July 07, 2006, 03:32:36 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:

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.