Author Topic: Build broken?  (Read 6351 times)

Offline ptDev

  • Almost regular
  • **
  • Posts: 222
Build broken?
« 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Build broken?
« Reply #1 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.
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 ptDev

  • Almost regular
  • **
  • Posts: 222
Re: Build broken?
« Reply #2 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?
« Last Edit: March 17, 2012, 11:35:08 am by ptDev »

Offline gd_on

  • Lives here!
  • ****
  • Posts: 797
Re: Build broken?
« Reply #3 on: March 17, 2012, 11:40:57 am »
did you try to delete the 2 .gch files within include ?

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline ptDev

  • Almost regular
  • **
  • Posts: 222
Re: Build broken?
« Reply #4 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.

Offline ptDev

  • Almost regular
  • **
  • Posts: 222
Re: Build broken?
« Reply #5 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.  ???