Author Topic: rev 5993/5994 breaks build ? (solved : gch files are hell)  (Read 9180 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
rev 5993/5994 breaks build ? (solved : gch files are hell)
« on: January 01, 2010, 12:33:09 pm »
I have already stared at this, and did some make clean's, or even starting from a bootstrap.
But on linux I already have 3 machines failing to build CB.
They all give this error :
Code
 g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../src/include -I../../../src/include/wxscintilla/include -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT codecompletion.lo -MD -MP -MF .deps/codecompletion.Tpo -c codecompletion.cpp  -fPIC -DPIC -o .libs/codecompletion.o
codecompletion.cpp: In member function ‘void CodeCompletion::OnOpenIncludeFile(wxCommandEvent&)’:
codecompletion.cpp:1920: error: ‘IsSuffixOfPath’ was not declared in this scope
make[4]: *** [codecompletion.lo] Error 1
make[4]: Leaving directory `/home/lieven/Projects/Codeblocks/trunk/src/plugins/codecompletion'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/lieven/Projects/Codeblocks/trunk/src/plugins/codecompletion'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lieven/Projects/Codeblocks/trunk/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lieven/Projects/Codeblocks/trunk/src'
make: *** [all-recursive] Error 1

Anyone else suffering from this issue ?
« Last Edit: January 01, 2010, 01:35:24 pm by killerbot »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: rev 5993/5994 breaks build ?
« Reply #1 on: January 01, 2010, 12:42:05 pm »
We are at 6015 in the meantime, and this builds fine from project-file and with automake on my debian-machine and vista.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: rev 5993/5994 breaks build ?
« Reply #2 on: January 01, 2010, 12:52:13 pm »
I am also at 6015, but the 'breaking' code was added in those revisions.
Now manually deleted all .gch files (since my experience always tend to end up with precompiled headers being utterly shit, yes I still love them ;-) ).
Anxious to see the result of that experiment ...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: rev 5993/5994 breaks build ?
« Reply #3 on: January 01, 2010, 01:07:17 pm »
I am also at 6015, but the 'breaking' code was added in those revisions.
I am happy to assist. I've still some patches pending for CC. Hence this may be the reason for the broken build as my version of CC is heavily different. I tried to be as careful as possible when doing the "patch wave" (as you got aware obviously... ;-)), but maybe I missed some lines of code for the CC plugin.
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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: rev 5993/5994 breaks build ?
« Reply #4 on: January 01, 2010, 01:12:17 pm »
I am also at 6015, but the 'breaking' code was added in those revisions.
I am happy to assist. I've still some patches pending for CC. Hence this may be the reason for the broken build as my version of CC is heavily different. I tried to be as careful as possible when doing the "patch wave" (as you got aware obviously... ;-)), but maybe I missed some lines of code for the CC plugin.
I don't think so, because it works here.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: rev 5993/5994 breaks build ?
« Reply #5 on: January 01, 2010, 01:34:41 pm »
Good news, after manually deleting the gch files all builds well (already checked 2 linux boxes).
On day 1 of 2010 precompiled headers already have bitten me.
I hate those nasty things.  8)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: rev 5993/5994 breaks build ?
« Reply #6 on: January 01, 2010, 01:44:25 pm »
I hate those nasty things.  8)
This is really weired, really! It happens to me over and over again, too. But I can't figure out exactly when this happens - there seems to be no logic. Sometimes it works, the other times not. I made myself a "clean.bat" file for C::B which takes care of removing all PCH's and libs for a "true" re-build. If you (or anyone else) is interested, I can attach it here...
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 killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: rev 5993/5994 breaks build ? (solved : gch files are hell)
« Reply #7 on: January 01, 2010, 02:40:23 pm »
I am surely interested.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: rev 5993/5994 breaks build ? (solved : gch files are hell)
« Reply #8 on: January 01, 2010, 07:26:56 pm »
I am surely interested.
...so here it comes (zipped). place it where the C::B project file is and adjust the path at the beginning of the batch file. You may need to adjust the path to libwxPdfDocument.a.

[attachment deleted by admin]
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: rev 5993/5994 breaks build ? (solved : gch files are hell)
« Reply #9 on: January 01, 2010, 09:35:53 pm »
Debugger branch fails to build using the auto* system:

Code

>>> Emerging (1 of 1) dev-util/codeblocks-9999-r20 from obfuscated local repo
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                                               [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                                              [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                                             [ ok ]
>>> Unpacking source...
 * subversion update start -->
 *      repository: svn://svn.berlios.de/codeblocks/branches/wxpropgrid_debugger
At revision 6018.
 *    working copy: /usr/portage/distfiles/svn-src/codeblocks-9999/wxpropgrid_debugger

 * Syncing /usr/portage/distfiles/svn-src/codeblocks-9999/wxpropgrid_debugger/ into /var/tmp/portage/dev-util/codeblocks-9999-r20/work/codeblocks-9999
 * Applying up_01_cc_stl.patch ...                                                                                                                                                                                                                                  [ ok ]
 * Applying up_02_cbauibook_20091114.patch ...                                                                                                                                                                                                                      [ ok ]
 * Applying 11_better_compiler_log.patch ...                                                                                                                                                                                                                        [ ok ]
 * Applying 13_cc_call_tip.patch ...                                                                                                                                                                                                                                [ ok ]
 * Applying 19_select_file_all_projects.patch ...                                                                                                                                                                                                                   [ ok ]
 * Applying 21_text_ctrl_color.patch ...                                                                                                                                                                                                                            [ ok ]
 * Applying 23_cc_toolbar.patch ...                                                                                                                                                                                                                                 [ ok ]
 * Applying 24_dbg_speedup.patch ...                                                                                                                                                                                                                                [ ok ]
 * Applying 25_todo_doubleclick.patch ...                                                                                                                                                                                                                           [ ok ]
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize:   `/usr/share/aclocal/libtool.m4'
libtoolize:   `/usr/share/aclocal/ltoptions.m4'
libtoolize:   `/usr/share/aclocal/ltversion.m4'
libtoolize:   `/usr/share/aclocal/ltsugar.m4'
libtoolize:   `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.in: installing `./install-sh'
configure.in: installing `./missing'
src/base/tinyxml/Makefile.am: installing `./depcomp'
configure.in:7: installing `./config.guess'
configure.in:7: installing `./config.sub'
configure.in:209: required file `src/plugins/scriptedwizard/resources/directx/files/Makefile.in' not found
(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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: rev 5993/5994 breaks build ? (solved : gch files are hell)
« Reply #10 on: January 01, 2010, 10:07:37 pm »
Running ./bootstrap and ./configure ... works here on a clean svn source-tree (no patches).

Just running make.

I will report whether it works or not, but looks good so far.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: rev 5993/5994 breaks build ? (solved : gch files are hell)
« Reply #11 on: January 01, 2010, 10:50:25 pm »
My error: I reverted all chages, but the subdirectory files in dirctx remained, and it contains a Makefile and a Makefile.in, so no error occured.

I just committed a fixed configure.in.
./bootstrap has to be run.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: rev 5993/5994 breaks build ? (solved : gch files are hell)
« Reply #12 on: January 02, 2010, 08:11:34 am »
Thanks, seems to work now.

btw I'm using an ebuild and so emerge always uses a clean svn tree.
(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!]