Author Topic: C::B from SVN won't compile on Ubuntu 9.04  (Read 5278 times)

Offline undergraver

  • Single posting newcomer
  • *
  • Posts: 3
C::B from SVN won't compile on Ubuntu 9.04
« on: June 14, 2009, 01:25:02 pm »
Code
ins@ins-laptop:~/codeblocks_svn/trunk$ svn up
At revision 5647.
ins@ins-laptop:~/codeblocks_svn/trunk$


Code
./configure --prefix=`pwd`/output --with-contrib-plugins=all

ins@ins-laptop:~/codeblocks_svn/trunk$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

make:

Code
make[4]: Entering directory `/home/ins/codeblocks_svn/trunk/src/sdk/scripting/bindings'
/bin/bash ../../../../libtool --tag=CXX   --mode=compile 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 -I../../../../src/include/scripting/include -I../../../../src/include/scripting/bindings -I../../../../src/include/scripting/sqplus  -Ulinux -Uunix  -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT sc_wxtypes.lo -MD -MP -MF .deps/sc_wxtypes.Tpo -c -o sc_wxtypes.lo sc_wxtypes.cpp
libtool: compile:  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 -I../../../../src/include/scripting/include -I../../../../src/include/scripting/bindings -I../../../../src/include/scripting/sqplus -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT sc_wxtypes.lo -MD -MP -MF .deps/sc_wxtypes.Tpo -c sc_wxtypes.cpp  -fPIC -DPIC -o .libs/sc_wxtypes.o
../../../../src/include/scripting/sqplus/sqplus.h: In function ‘void SqPlus::RegisterInstanceVariable(SquirrelObject&, void*, T*, const SQChar*, SqPlus::VarAccessType) [with T = int]’:
../../../../src/include/scripting/sqplus/sqplus.h:1801:   instantiated from ‘SqPlus::SQClassDef<TClassType>& SqPlus::SQClassDef<TClassType>::var(VarType TClassType::*, const SQChar*, SqPlus::VarAccessType) [with VarType = int, TClassType = wxPoint]’
sc_wxtypes.cpp:283:   instantiated from here
../../../../src/include/scripting/sqplus/sqplus.h:443: error: no matching function for call to ‘SqPlus::VarRef::VarRef(void*&, SqPlus::TypeInfo<int>, void*&, void (*)(void*, void*), long unsigned int, SqPlus::VarAccessType&, const SQChar*)’
../../../../src/include/scripting/sqplus/sqplus.h:304: note: candidates are: SqPlus::VarRef::VarRef(void*, SqPlus::ScriptVarType, void*, void (*)(void*, void*), SQInteger, SqPlus::VarAccessType, const SQChar*)
../../../../src/include/scripting/sqplus/sqplus.h:303: note:                 SqPlus::VarRef::VarRef()
../../../../src/include/scripting/sqplus/sqplus.h:294: note:                 SqPlus::VarRef::VarRef(const SqPlus::VarRef&)
make[4]: *** [sc_wxtypes.lo] Error 1

Is there a fix for this or is my gcc version not compatible with the current source code of C::B?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: C::B from SVN won't compile on Ubuntu 9.04
« Reply #1 on: June 14, 2009, 01:35:21 pm »
That's a known issue with 64-bit compilers (see here: http://forums.codeblocks.org/index.php/topic,10684.0.html ).

I applied a fix in trunk and wxAui-branch, because I did not get an error (with the patch),  neither on  64-bit and 32-bit linux nor on 32-bit windows with it.


Offline undergraver

  • Single posting newcomer
  • *
  • Posts: 3
Re: C::B from SVN won't compile on Ubuntu 9.04
« Reply #2 on: June 14, 2009, 01:53:23 pm »
That's a known issue with 64-bit compilers (see here: http://forums.codeblocks.org/index.php/topic,10684.0.html ).

I applied a fix in trunk and wxAui-branch, because I did not get an error (with the patch),  neither on  64-bit and 32-bit linux nor on 32-bit windows with it.



I updated and it passed compiling successfully that file.
I will let you know if something else happens.

Thank you,

Iulian