Hi, C::B trunk doesn't compile if pch is not enabled. Fails here with this output:
replacedlg.cpp: In constructor 'ReplaceDlg::ReplaceDlg(wxWindow*, const wxString&, bool, bool, bool)':
replacedlg.cpp:140: error: invalid use of incomplete type 'struct wxSizer'
/usr/include/wx-2.8/wx/window.h:64: error: forward declaration of 'struct wxSizer'
make[3]: *** [replacedlg.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src'
make: *** [all-recursive] Error 1
I think killerbot did fix the same or similar bug (http://forums.codeblocks.org/index.php/topic,12156.msg84845.html#msg84845)before in rev 6216. Anyway it came back with wxWidgets 2.8.11.
C::B svn rev:6345 Gcc-4.4.4 wxGTK-2.8.11.0 ~amd64 gentoo.
killerbot, thanks. Now a different error to solve with rev 6352:
environmentsettingsdlg.cpp: In member function 'virtual void EnvironmentSettingsDlg::EndModal(int)':
environmentsettingsdlg.cpp:437: error: invalid use of incomplete type 'struct EditorManager'
../../src/include/manager.h:27: error: forward declaration of 'struct EditorManager'
environmentsettingsdlg.cpp:439: error: invalid use of incomplete type 'struct EditorManager'
../../src/include/manager.h:27: error: forward declaration of 'struct EditorManager'
make[3]: *** [environmentsettingsdlg.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999/work/codeblocks-9999/src'
make: *** [all-recursive] Error 1
* ERROR: dev-util/codeblocks-9999 failed
Compiling rev. 6352 with the following options: ./configure --prefix=/usr --with-contrib-plugins=all --enable-pch
yields the following:
Making all in src
make[1]: Entering directory `/home/robert_/projects/codeblocks/codeblocks.svn/src'
Making all in base
make[2]: Entering directory `/home/robert_/projects/codeblocks/codeblocks.svn/src/base'
Making all in tinyxml
make[3]: Entering directory `/home/robert_/projects/codeblocks/codeblocks.svn/src/base/tinyxml'
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinystr.lo -MD -MP -MF .deps/tinystr.Tpo -c -o tinystr.lo tinystr.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinystr.lo -MD -MP -MF .deps/tinystr.Tpo -c tinystr.cpp -fPIC -DPIC -o .libs/tinystr.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinystr.lo -MD -MP -MF .deps/tinystr.Tpo -c tinystr.cpp -o tinystr.o >/dev/null 2>&1
mv -f .deps/tinystr.Tpo .deps/tinystr.Plo
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxml.lo -MD -MP -MF .deps/tinyxml.Tpo -c -o tinyxml.lo tinyxml.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxml.lo -MD -MP -MF .deps/tinyxml.Tpo -c tinyxml.cpp -fPIC -DPIC -o .libs/tinyxml.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxml.lo -MD -MP -MF .deps/tinyxml.Tpo -c tinyxml.cpp -o tinyxml.o >/dev/null 2>&1
mv -f .deps/tinyxml.Tpo .deps/tinyxml.Plo
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxmlerror.lo -MD -MP -MF .deps/tinyxmlerror.Tpo -c -o tinyxmlerror.lo tinyxmlerror.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxmlerror.lo -MD -MP -MF .deps/tinyxmlerror.Tpo -c tinyxmlerror.cpp -fPIC -DPIC -o .libs/tinyxmlerror.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxmlerror.lo -MD -MP -MF .deps/tinyxmlerror.Tpo -c tinyxmlerror.cpp -o tinyxmlerror.o >/dev/null 2>&1
mv -f .deps/tinyxmlerror.Tpo .deps/tinyxmlerror.Plo
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxmlparser.lo -MD -MP -MF .deps/tinyxmlparser.Tpo -c -o tinyxmlparser.lo tinyxmlparser.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxmlparser.lo -MD -MP -MF .deps/tinyxmlparser.Tpo -c tinyxmlparser.cpp -fPIC -DPIC -o .libs/tinyxmlparser.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinyxmlparser.lo -MD -MP -MF .deps/tinyxmlparser.Tpo -c tinyxmlparser.cpp -o tinyxmlparser.o >/dev/null 2>&1
mv -f .deps/tinyxmlparser.Tpo .deps/tinyxmlparser.Plo
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinywxuni.lo -MD -MP -MF .deps/tinywxuni.Tpo -c -o tinywxuni.lo tinywxuni.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/sdk/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT tinywxuni.lo -MD -MP -MF .deps/tinywxuni.Tpo -c tinywxuni.cpp -fPIC -DPIC -o .libs/tinywxuni.o
In file included from /usr/include/wx-2.8/wx/dnd.h:219,
from ../../../src/sdk/wxscintilla/include/wx/wxscintilla.h:26,
from ../../../src/include/sdk_common.h:95,
from ../../../src/include/sdk_precomp.h:13,
from tinywxuni.cpp:1:
/usr/include/wx-2.8/wx/x11/dnd.h:130: error: multiple definition of 'enum wxDragResult'
/usr/include/wx-2.8/wx/dnd.h:38: error: previous definition here
/usr/include/wx-2.8/wx/x11/dnd.h:132: error: conflicting declaration 'wxDragError'
/usr/include/wx-2.8/wx/dnd.h:40: error: 'wxDragError' has a previous declaration as 'wxDragResult wxDragError'
/usr/include/wx-2.8/wx/x11/dnd.h:133: error: conflicting declaration 'wxDragNone'
/usr/include/wx-2.8/wx/dnd.h:41: error: 'wxDragNone' has a previous declaration as 'wxDragResult wxDragNone'
/usr/include/wx-2.8/wx/x11/dnd.h:134: error: conflicting declaration 'wxDragCopy'
/usr/include/wx-2.8/wx/dnd.h:42: error: 'wxDragCopy' has a previous declaration as 'wxDragResult wxDragCopy'
/usr/include/wx-2.8/wx/x11/dnd.h:135: error: conflicting declaration 'wxDragMove'
/usr/include/wx-2.8/wx/dnd.h:43: error: 'wxDragMove' has a previous declaration as 'wxDragResult wxDragMove'
/usr/include/wx-2.8/wx/x11/dnd.h:136: error: conflicting declaration 'wxDragCancel'
/usr/include/wx-2.8/wx/dnd.h:45: error: 'wxDragCancel' has a previous declaration as 'wxDragResult wxDragCancel'
In file included from ../../../src/sdk/wxscintilla/include/wx/wxscintilla.h:26,
from ../../../src/include/sdk_common.h:95,
from ../../../src/include/sdk_precomp.h:13,
from tinywxuni.cpp:1:
/usr/include/wx-2.8/wx/dnd.h:236: error: redefinition of 'class wxTextDropTarget'
/usr/include/wx-2.8/wx/x11/dnd.h:63: error: previous definition of 'class wxTextDropTarget'
/usr/include/wx-2.8/wx/dnd.h:250: error: redefinition of 'class wxFileDropTarget'
/usr/include/wx-2.8/wx/x11/dnd.h:111: error: previous definition of 'class wxFileDropTarget'
make[3]: *** [tinywxuni.lo] Error 1
make[3]: Leaving directory `/home/robert_/projects/codeblocks/codeblocks.svn/src/base/tinyxml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/robert_/projects/codeblocks/codeblocks.svn/src/base'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/robert_/projects/codeblocks/codeblocks.svn/src'
make: *** [all-recursive] Error 1