Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: ptDev on March 17, 2012, 08:15:49 am

Title: Build broken?
Post by: ptDev on March 17, 2012, 08:15:49 am
Since I updated to rev. 7900, I find my self unable to rebuild C::B from scratch:

Code
-------------- Build: Squirrel in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

Compiling: sdk\scripting\squirrel\sqvm.cpp
In file included from include\scripting\squirrel/sqobject.h:5:0,
                 from include\scripting\squirrel/sqpcheader.h:16,
                 from C:\Users\Francisco\Develop\svn\codeblocks\src\sdk\scripting\squirrel\sqvm.cpp:4:
include\scripting\squirrel/squtils.h: In instantiation of 'sqvector<T>::~sqvector() [with T = int]':
include\scripting\squirrel/sqclosure.h:83:52:   required from here
include\scripting\squirrel/squtils.h:38:4: error: 'sq_vm_free' 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 include\scripting\squirrel/sqpcheader.h:17:0,
                 from C:\Users\Francisco\Develop\svn\codeblocks\src\sdk\scripting\squirrel\sqvm.cpp:4:
include\scripting\squirrel/sqstate.h:142:6: note: 'void sq_vm_free(void*, SQUnsignedInteger)' declared here, later in the translation unit
In file included from include\scripting\squirrel/sqobject.h:5:0,
                 from include\scripting\squirrel/sqpcheader.h:16,
                 from C:\Users\Francisco\Develop\svn\codeblocks\src\sdk\scripting\squirrel\sqvm.cpp:4:
include\scripting\squirrel/squtils.h: In instantiation of 'void sqvector<T>::_realloc(SQUnsignedInteger) [with T = int; SQUnsignedInteger = unsigned int]':
include\scripting\squirrel/squtils.h:45:4:   required from 'void sqvector<T>::resize(SQUnsignedInteger, const T&) [with T = int; SQUnsignedInteger = unsigned int]'
include\scripting\squirrel/squtils.h:27:3:   required from 'void sqvector<T>::copy(const sqvector<T>&) [with T = int]'
include\scripting\squirrel/sqclosure.h:97:34:   required from here
include\scripting\squirrel/squtils.h:97:3: error: 'sq_vm_realloc' 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 include\scripting\squirrel/sqpcheader.h:17:0,
                 from C:\Users\Francisco\Develop\svn\codeblocks\src\sdk\scripting\squirrel\sqvm.cpp:4:
include\scripting\squirrel/sqstate.h:141:7: note: 'void* sq_vm_realloc(void*, SQUnsignedInteger, SQUnsignedInteger)' declared here, later in the translation unit

I'm compiling under Windows 7 x64, using TDM-GCC 4.6.1, wxWidgets 2.8.12.
Title: Re: Build broken?
Post by: MortenMacFly on March 17, 2012, 09:22:15 am
Since I updated to rev. 7900, I find my self unable to rebuild C::B from scratch:
Looks like you have old artefacts in your working copy. Do a clean brand-new checkout (remove the whole folder with sources before) and try again.
Title: Re: Build broken?
Post by: ptDev on March 17, 2012, 11:30:25 am
Did a brand new checkout to another folder, and updated the global variables in C::B as well. The rebuild failed again. What else could be wrong? Settings in the compiler?

P.S.: Could someone else try a full checkout to see if they can reproduce the issue?
Title: Re: Build broken?
Post by: gd_on on March 17, 2012, 11:40:57 am
did you try to delete the 2 .gch files within include ?

gd_on
Title: Re: Build broken?
Post by: ptDev on March 17, 2012, 11:53:58 am
did you try to delete the 2 .gch files within include ?

gd_on

I don't even find any such files anywhere. This is a full new checkout from trunk.
Title: Re: Build broken?
Post by: ptDev on March 17, 2012, 12:18:23 pm
Ok, I solved the problem locally. Uninstalled my Code::Blocks (based on 7887) and reinstalled the version corresponding to revision 7807. The full rebuild is now possible.

There might be a problem with the compilergcc plugin.  ???