Author Topic: Wx_30_64, svn 9520 does not compile  (Read 22663 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Wx_30_64, svn 9520 does not compile
« on: January 03, 2014, 01:24:55 pm »
Hi,
I tried to compile this new no pch version, but it failed on my PC.
Quote
||=== Générer : tinyXML dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : AutoRevision dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : ConsoleRunner dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : Squirrel dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : Squirrel std lib dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : SqPlus dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : scintilla dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : sdk dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
C:\wxWidgets-3.0.0\include\wx\aui\auibook.h|349|warning: 'virtual bool wxAuiNotebook::AddPage(wxWindow*, const wxString&, bool, int)' was hidden [-Woverloaded-virtual]|
include\cbauibook.h|132|warning:   by 'bool cbAuiNotebook::AddPage(wxWindow*, const wxString&, bool, const wxBitmap&)' [-Woverloaded-virtual]|
C:\wxWidgets-3.0.0\include\wx\aui\auibook.h|352|warning: 'virtual bool wxAuiNotebook::InsertPage(size_t, wxWindow*, const wxString&, bool, int)' was hidden [-Woverloaded-virtual]|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|50|error: 'CommentToken' does not name a type|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|50|error: ISO C++ forbids declaration of 'language' with no type [-fpermissive]|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp||In function 'void AnalyseLine(const int&, wxString, bool&, bool&, bool&)':|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|62|error: request for member 'lineComment' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|63|error: request for member 'lineComment' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|65|error: request for member 'streamCommentStart' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|66|error: request for member 'streamCommentStart' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|68|error: request for member 'streamCommentEnd' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|69|error: request for member 'streamCommentEnd' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|79|error: request for member 'streamCommentEnd' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|80|error: request for member 'streamCommentEnd' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|101|error: request for member 'streamCommentStart' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|102|error: request for member 'streamCommentStart' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|111|error: 'CommentToken' does not name a type|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|111|error: ISO C++ forbids declaration of 'language' with no type [-fpermissive]|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp||In member function 'void ProjectFileOptionsDlg::FillGeneralProperties()':|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|310|error: invalid use of incomplete type 'class EditorColourSet'|
include\editormanager.h|32|error: forward declaration of 'class EditorColourSet'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|318|error: invalid use of incomplete type 'class EditorColourSet'|
include\editormanager.h|32|error: forward declaration of 'class EditorColourSet'|
include\cbauibook.h|147|warning:   by 'bool cbAuiNotebook::InsertPage(size_t, wxWindow*, const wxString&, bool, const wxBitmap&)' [-Woverloaded-virtual]|
||=== Génération de terminé : 18 erreur(s), 4 avertissement(s) (0 minute(s), 7 seconde(s)) ===|

Something is missing ?

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Wx_30_64, svn 9520 does not compile
« Reply #1 on: January 03, 2014, 02:01:59 pm »
...works fine here.

But as usual: Please attach the FULL build log, please!
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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Wx_30_64, svn 9520 does not compile
« Reply #2 on: January 03, 2014, 02:06:56 pm »
...wait a sec: I've had forgotten to update the actual C::B project files.

Make an SVN update, then try again.

If is still does not work make sure you REMOVE the .objs* folder(s) and the *.gch files from previous builds.
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Wx_30_64, svn 9520 does not compile
« Reply #3 on: January 03, 2014, 02:26:27 pm »
In fact it is a real problem, which I've just fixed. Thanks for reporting it.
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Wx_30_64, svn 9520 does not compile
« Reply #4 on: January 03, 2014, 03:15:16 pm »
In fact it is a real problem, which I've just fixed. Thanks for reporting it.
Ah - thats why it was working for me: I didn't sync with SVN yet... :-)
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 gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Wx_30_64, svn 9520 does not compile
« Reply #5 on: January 04, 2014, 12:12:18 am »
OK, better now.
But I have a problem with spellchecker. It makes C::B crash at startup on my PC. No problems in 32 bits with wxWidgets 2.8.
If I validate it after C::B start, it seems to run, but if I stop and restart C::B, C::B crashes just after displaying the start screen (the one where previous projects are displayed). No RPT file produced ! Sorry. But a call to Mr Crosoft !!! >:(

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Wx_30_64, svn 9520 does not compile
« Reply #6 on: January 04, 2014, 12:31:50 am »
Does it work with 64bit wx30?
(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 gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Wx_30_64, svn 9520 does not compile
« Reply #7 on: January 04, 2014, 10:29:25 am »
No. It's in 64 bit that it crashes. I have not tried recently with wx 30 in 32 bits.

gd_on

PS : I've just tried in 32 bit. No crashes at startup, but a message already seen :
wxWidgets Debug Alert
../../src/msw/bitmap.cpp(820) :assert "image.IsOk()" failed in CreateFromImage(): invalid image

But my wxWidgets is created as a "release" version not a "debug" one. And if I build wxWidgets by adding DEBUG_FLAG=0, as in Xaviou's version for tdm 4.8.1 (64 or 32 bit), when I build C::B, it claims at link time that some references are missing (those concerning assert). (by default DEBUG_FLAG is set to 1 apparently, even in a release version).
« Last Edit: January 04, 2014, 11:25:11 am by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Wx_30_64, svn 9520 does not compile
« Reply #8 on: January 04, 2014, 11:26:56 am »
Hm, I've messed the version number in my last question - it should have been:

Does it work with 64bit wx28?
(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 gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Wx_30_64, svn 9520 does not compile
« Reply #9 on: January 04, 2014, 11:50:30 am »
Wx 28, 64 bit : never tried. But I can ...

gd_on

PS : Oups ! how to do. There is no CodeBlocks_wx28_64.workspace, and all the .cbps accordingly !

PS2 : I can't compile wx 2.8 in 64 bit (with tdm 4.7.1 and 4.8.1 versions)) : I obtain compilation errors ... So, is it worth it?
« Last Edit: January 04, 2014, 12:46:47 pm by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Wx_30_64, svn 9520 does not compile
« Reply #10 on: January 05, 2014, 11:01:47 am »
PS : Oups ! how to do. There is no CodeBlocks_wx28_64.workspace, and all the .cbps accordingly !
Sure not: wx2.8.12 is NOT compatible with 64 bit. There is a chance to heavily patch wx28, but we want to avoid that.

Instead you'll need wx30 - compile it as 64bit and then use CodeBlocks_wx30_64.workspace.
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 gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Wx_30_64, svn 9520 does not compile
« Reply #11 on: January 05, 2014, 11:39:24 am »
This is what I do. Wx 2.8 was just a suggestion to try to see why I have problems with wx 30 and 64 bits (see posts above...)

gd_on
« Last Edit: January 05, 2014, 11:48:05 am by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: Wx_30_64, svn 9520 does not compile
« Reply #12 on: January 11, 2014, 08:26:55 pm »
fyi : building CB with wx2.8.12 (64 bit builds) works and seems to run ok at first sight (TDM gcc 481)

Build procedure : the same as for the 32 bit build, so no extra settings whatsoever [I need my commi to have3 plugins having specified -fpermissive in their cbp files]

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Wx_30_64, svn 9520 does not compile
« Reply #13 on: January 12, 2014, 10:46:59 am »
Cool, but have you set something special to compile wx 2.8 in 64 bits.
For me, with the standard build (the same as in 32 bits), but of course after configuring my path to use compilers within MinGW64, I obtain compilation errors after a while. One of the messages seems to suggest to use -fpermissive, but I don't know where I should introduce this setting.

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: Wx_30_64, svn 9520 does not compile
« Reply #14 on: January 12, 2014, 01:27:07 pm »
I added this last week to : http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook

Code
mingw32-make -f makefile.gcc CXXFLAGS+=-fpermissive  SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

==> CXXFLAGS+=-fpermissive