News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Something broke between 8045 and 8050

Started by ironhead, June 15, 2012, 09:20:10 PM

Previous topic - Next topic

ironhead

I'm compiling C::B using MinGW GCC 4.7.0 and with the '-fpermissive' workaround I was able to compile up to 8045.  I just updated to 8050 and now the compilation is failing (existing with a status code of 1).

oBFusCATed

And the error is?
Also have you tried a clean build (removing .obj, devel and output, even the pchs)?
(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!]

ironhead

Quote from: oBFusCATed on June 15, 2012, 09:48:19 PM
And the error is?

Many - 988 to be exact: http://emergedesktop.org/8050_error.txt

Quote from: oBFusCATed on June 15, 2012, 09:48:19 PM
Also have you tried a clean build (removing .obj, devel and output, even the pchs)?

Didn't help unfortunately.

MortenMacFly

Quote from: ironhead on June 15, 2012, 09:20:10 PM
I'm compiling C::B using MinGW GCC 4.7.0 and with the '-fpermissive' workaround I was able to compile up to 8045.  I just updated to 8050 and now the compilation is failing (existing with a status code of 1).
What platform? I cannot reproduce.
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]

MortenMacFly

Quote from: MortenMacFly on June 16, 2012, 08:14:47 AM
I cannot reproduce.
Well - I could finally (was using the wrong compiler before). I recalled a fix which I have just committed. Try again and report back, please.
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]

ironhead

Quote from: MortenMacFly on June 16, 2012, 08:27:40 AM
Quote from: MortenMacFly on June 16, 2012, 08:14:47 AM
I cannot reproduce.
Well - I could finally (was using the wrong compiler before). I recalled a fix which I have just committed. Try again and report back, please.

I got a little further and the error count is down, but unfortunately it still didn't work: http://emergedesktop.org/8055_error.txt.

Jenna

Works here with -fpermissive hack (fc17 64-bit).
Only tested with automake in clean fedora 17 chroot.

stahta01

#7
Quote from: ironhead on June 16, 2012, 03:37:28 PM
Quote from: MortenMacFly on June 16, 2012, 08:27:40 AM
Quote from: MortenMacFly on June 16, 2012, 08:14:47 AM
I cannot reproduce.
Well - I could finally (was using the wrong compiler before). I recalled a fix which I have just committed. Try again and report back, please.

I got a little further and the error count is down, but unfortunately it still didn't work: http://emergedesktop.org/8055_error.txt.

Those are only warnings; there is no Compiler errors in your txt file.
CB is falsely reporting the Compiler warnings as errors. 

SET The CB value of max number of errors to 0 for unlimited.
Or, fix the regex in CB to ignore the warnings (or treat them as warnings instead of errors)

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

ironhead

I found the source of the build failure, it turns out it has nothing to do with the compilation:

Running target post-build steps
zip -jq9 devel\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
cmd /c "cd sdk\resources & zip -0 -q ..\..\devel\share\CodeBlocks\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png"
zip I/O error: No such file or directory
zip error: Could not create output file (devel/share/CodeBlocks/manager_resources.zip)


With out the devel/share/CodeBlocks directory pre-existing (i.e. you delete, or on first compilation) the zip fails, causing the whole thing to crap out. If I create the directory before hand the compilation will complete.

Quote from: stahta01 on June 16, 2012, 03:55:13 PM
Those are only warnings; there is no Compiler errors in your txt file.
CB is falsely reporting the Compiler warnings as errors. 

SET The CB value of max number of errors to 0 for unlimited.
Or, fix the regex in CB to ignore the warnings (or treat them as warnings instead of errors)

Agreed, but I'm having one heck of time getting the regex to work.  I have:


Which works in the "Test String" but doesn't work when compiling.  Help would be appreciated.

Jenna

Quote from: ironhead on June 16, 2012, 09:01:15 PM
I found the source of the build failure, it turns out it has nothing to do with the compilation:
Which works in the "Test String" but doesn't work when compiling.  Help would be appreciated.

I'm on fedora 17 now, which has gcc 4.7 as default compiler.
I will see, if I can fix it.

Jenna

You can try this one:
([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+([Rr]equired from.*)

killerbot

Quote from: jens on June 16, 2012, 10:16:36 PM
You can try this one:
([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+([Rr]equired from.*)
that was one I had on the top list of things to fix ;-)

Commit please if it works ok :-)

stahta01

Quote from: jens on June 16, 2012, 10:16:36 PM
You can try this one:
([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+([Rr]equired from.*)

It did not work for me; but, I have never messed with the compiler regex adv. options before.

Tim S.

two example lines from Windows

include\scripting\sqplus\sqplus.h|1751|  required from 'SqPlus::SQClassDef<TClassType>& SqPlus::SQClassDef<TClassType>::func(Func, const SQChar*) [with Func = ProjectFile* (cbProject::*)(int); TClassType = cbProject; SqPlus::SQClassDef<TClassType> = SqPlus::SQClassDef<cbProject>; SQChar = char]'|
H:\SourceCode\OpenSourceCode\Apps\IDEs\CodeBlocks\codeblocks-wx28-SJLJ\src\sdk\scripting\bindings\scriptbindings.cpp|519|  required from here|
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Quote from: stahta01 on June 16, 2012, 11:56:04 PM
Quote from: jens on June 16, 2012, 10:16:36 PM
You can try this one:
([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+([Rr]equired from.*)

It did not work for me; but, I have never messed with the compiler regex adv. options before.

Tim S.

two example lines from Windows

include\scripting\sqplus\sqplus.h|1751|  required from 'SqPlus::SQClassDef<TClassType>& SqPlus::SQClassDef<TClassType>::func(Func, const SQChar*) [with Func = ProjectFile* (cbProject::*)(int); TClassType = cbProject; SqPlus::SQClassDef<TClassType> = SqPlus::SQClassDef<cbProject>; SQChar = char]'|
H:\SourceCode\OpenSourceCode\Apps\IDEs\CodeBlocks\codeblocks-wx28-SJLJ\src\sdk\scripting\bindings\scriptbindings.cpp|519|  required from here|

Can you post the cooresponding lines from the "Build log" and not from the "Build messages" tab ?

stahta01

#14
Build log different spot


H:\SourceCode\OpenSourceCode\Apps\IDEs\CodeBlocks\codeblocks-wx28-SJLJ\src\sdk\scripting\bindings\scriptbindings.cpp:680:98:   required from here
include\scripting\sqplus/sqplus.h:626:5: warning: 'Push' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from H:\SourceCode\OpenSourceCode\Apps\IDEs\CodeBlocks\codeblocks-wx28-SJLJ\src\sdk\scripting\bindings\scriptbindings.cpp:28:0:
include\scripting\bindings/sc_base_types.h:74:1: note: 'void SqPlus::Push(HSQUIRRELVM, TargetFilenameGenerationPolicy)' declared here, later in the translation unit
In file included from include\scripting\bindings/sc_base_types.h:26:0,
                from H:\SourceCode\OpenSourceCode\Apps\IDEs\CodeBlocks\codeblocks-wx28-SJLJ\src\sdk\scripting\bindings\scriptbindings.cpp:28:
include\scripting\sqplus/sqplus.h: In instantiation of 'static SQInteger SqPlus::ReturnSpecialization<RT>::Call(RT (*)(P1, P2), HSQUIRRELVM, SQInteger) [with P1 = const wxString&; P2 = const wxString&; RT = bool; SQInteger = int; HSQUIRRELVM = SQVM*]':
include\scripting\sqplus/sqplus.h:1111:53:   required from 'SQInteger SqPlus::Call(RT (*)(P1, P2), HSQUIRRELVM, SQInteger) [with RT = bool; P1 = const wxString&; P2 = const wxString&; SQInteger = int; HSQUIRRELVM = SQVM*]'
include\scripting\sqplus/sqplus.h:1194:26:   required from 'static SQInteger SqPlus::DirectCallFunction<Func>::Dispatch(HSQUIRRELVM) [with Func = bool (*)(const wxString&, const wxString&); SQInteger = int; HSQUIRRELVM = SQVM*]'
include\scripting\sqplus/sqplus.h:1293:3:   required from 'void SqPlus::sq_pushdirectclosure(HSQUIRRELVM, Func, SQUnsignedInteger) [with Func = bool (*)(const wxString&, const wxString&); HSQUIRRELVM = SQVM*; SQUnsignedInteger = unsigned int]'
include\scripting\sqplus/sqplus.h:1330:3:   required from 'void SqPlus::Register(HSQUIRRELVM, Func, const SQChar*) [with Func = bool (*)(const wxString&, const wxString&); HSQUIRRELVM = SQVM*; SQChar = char]'
include\scripting\sqplus/sqplus.h:1376:3:   required from 'void SqPlus::Register(HSQUIRRELVM, HSQOBJECT, Func, const SQChar*) [with Func = bool (*)(const wxString&, const wxString&); HSQUIRRELVM = SQVM*; HSQOBJECT = tagSQObject; SQChar = char]'
include\scripting\sqplus/sqplus.h:1781:5:   required from 'SqPlus::SQClassDef<TClassType>& SqPlus::SQClassDef<TClassType>::staticFunc(Func, const SQChar*) [with Func = bool (*)(const wxString&, const wxString&); TClassType = CompilerFactory; SqPlus::SQClassDef<TClassType> = SqPlus::SQClassDef<CompilerFactory>; SQChar = char]'


Related spot from build message


H:\SourceCode\OpenSourceCode\Apps\IDEs\CodeBlocks\codeblocks-wx28-SJLJ\src\sdk\scripting\bindings\scriptbindings.cpp|680|  required from here|
include\scripting\sqplus\sqplus.h|626|warning: 'Push' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
include\scripting\bindings\sc_base_types.h|74|note: 'void SqPlus::Push(HSQUIRRELVM, TargetFilenameGenerationPolicy)' declared here, later in the translation unit|
include\scripting\sqplus\sqplus.h|1111|  required from 'SQInteger SqPlus::Call(RT (*)(P1, P2), HSQUIRRELVM, SQInteger) [with RT = bool; P1 = const wxString&; P2 = const wxString&; SQInteger = int; HSQUIRRELVM = SQVM*]'|
include\scripting\sqplus\sqplus.h|1194|  required from 'static SQInteger SqPlus::DirectCallFunction<Func>::Dispatch(HSQUIRRELVM) [with Func = bool (*)(const wxString&, const wxString&); SQInteger = int; HSQUIRRELVM = SQVM*]'|
include\scripting\sqplus\sqplus.h|1293|  required from 'void SqPlus::sq_pushdirectclosure(HSQUIRRELVM, Func, SQUnsignedInteger) [with Func = bool (*)(const wxString&, const wxString&); HSQUIRRELVM = SQVM*; SQUnsignedInteger = unsigned int]'|
include\scripting\sqplus\sqplus.h|1330|  required from 'void SqPlus::Register(HSQUIRRELVM, Func, const SQChar*) [with Func = bool (*)(const wxString&, const wxString&); HSQUIRRELVM = SQVM*; SQChar = char]'|
include\scripting\sqplus\sqplus.h|1376|  required from 'void SqPlus::Register(HSQUIRRELVM, HSQOBJECT, Func, const SQChar*) [with Func = bool (*)(const wxString&, const wxString&); HSQUIRRELVM = SQVM*; HSQOBJECT = tagSQObject; SQChar = char]'|
include\scripting\sqplus\sqplus.h|1781|  required from 'SqPlus::SQClassDef<TClassType>& SqPlus::SQClassDef<TClassType>::staticFunc(Func, const SQChar*) [with Func = bool (*)(const wxString&, const wxString&); TClassType = CompilerFactory; SqPlus::SQClassDef<TClassType> = SqPlus::SQClassDef<CompilerFactory>; SQChar = char]'|
H:\SourceCode\OpenSourceCode\Apps\IDEs\CodeBlocks\codeblocks-wx28-SJLJ\src\sdk\scripting\bindings\scriptbindings.cpp|681|  required from here|
include\scripting\sqplus\sqplus.h|638|warning: 'Push' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
include\scripting\bindings\sc_base_types.h|74|note: 'void SqPlus::Push(HSQUIRRELVM, TargetFilenameGenerationPolicy)' declared here, later in the translation unit|


Currently rebuild the full Code::Blocks project will attach minimal build log when done.
Note: Using these option on cpp file(s) "-std=gnu++0x -fpermissive"

Tim S.

[attachment deleted by admin]
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]