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

rev 5993/5994 breaks build ? (solved : gch files are hell)

Started by killerbot, January 01, 2010, 12:33:09 PM

Previous topic - Next topic

killerbot

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 :

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 ?

Jenna

We are at 6015 in the meantime, and this builds fine from project-file and with automake on my debian-machine and vista.

killerbot

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

MortenMacFly

Quote from: killerbot on January 01, 2010, 12:52:13 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: [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]

Jenna

Quote from: MortenMacFly on January 01, 2010, 01:07:17 PM
Quote from: killerbot on January 01, 2010, 12:52:13 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.

killerbot

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)

MortenMacFly

Quote from: killerbot on January 01, 2010, 01:34:41 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: [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]

killerbot


MortenMacFly

Quote from: killerbot on January 01, 2010, 02:40:23 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: [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]

oBFusCATed

Debugger branch fails to build using the auto* system:



>>> 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!]

Jenna

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.

Jenna

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.

oBFusCATed

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!]