User forums > Nightly builds
The 14 April 2012 build (7932) is out.
headkase:
--- Quote from: oBFusCATed on April 27, 2012, 04:21:48 pm ---
--- Quote from: headkase on April 27, 2012, 04:10:49 pm ---I'm new both to C::B and C++ in general.
--- End quote ---
You are a brave man to use the latest and greatest (buggiest) compiler to compile some random code on the net.
The minimal way you can help us is by providing the full build log. The better is if you can find why the errors are happening,
but I guess this will be a tough job for a c++ beginner.
--- End quote ---
Ok, I'm pretty sure I've tracked it down. However, I don't know if the issue exists in my GCC 4.7.0 or if the issue exists in the build scripts of Code::Blocks SVN 7945.
Compiling C::B SVN 7945 with SVN 7945, there is a linker error (big wall of text):
--- Code: ----------------- Build: default in Tools Plus Plugin (compiler: GNU GCC Compiler)---------------
Compiling: ToolsPlus.cpp
In file included from ..\..\..\include/sdk_common.h:43:0,
from ..\..\..\include/sdk.h:14,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\ToolsPlus.h:20,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\ToolsPlus.cpp:1:
..\..\..\include/prep.h:32:1: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
Compiling: ShellCtrlBase.cpp
In file included from ..\..\..\include/sdk_common.h:43:0,
from ..\..\..\include/sdk.h:14,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\ShellCtrlBase.h:16,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\ShellCtrlBase.cpp:4:
..\..\..\include/prep.h:32:1: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
Compiling: PipedProcessCtrl.cpp
In file included from ..\..\..\include/sdk_common.h:43:0,
from ..\..\..\include/sdk.h:14,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\PipedProcessCtrl.h:13,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\PipedProcessCtrl.cpp:4:
..\..\..\include/prep.h:32:1: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
Compiling: CmdConfigDialog.cpp
In file included from ..\..\..\include/sdk_common.h:43:0,
from ..\..\..\include/sdk.h:14,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\ToolsPlus.h:20,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\CmdConfigDialog.cpp:18:
..\..\..\include/prep.h:32:1: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
Compiling: shellproperties.cpp
In file included from ..\..\..\include/sdk_common.h:43:0,
from ..\..\..\include/sdk.h:14,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\shellproperties.h:13,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\shellproperties.cpp:1:
..\..\..\include/prep.h:32:1: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
Compiling: se_globals.cpp
In file included from ..\..\..\include/sdk_common.h:43:0,
from ..\..\..\include/sdk.h:14,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\se_globals.h:10,
from E:\Data\CB_Build\CB\trunk\src\plugins\contrib\ToolsPlus\se_globals.cpp:1:
..\..\..\include/prep.h:32:1: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
Linking dynamic library: ..\..\..\devel\share\codeblocks\plugins\ToolsPlus.dll
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla6CreateEP8wxWindowiRK7wxPointRK6wxSizelRK8wxString':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:182: undefined reference to `__imp___ZN9wxControl6CreateEP8wxWindowiRK7wxPointRK6wxSizelRK11wxValidatorRK8wxString'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:184: undefined reference to `__imp___Z17wxSafeShowMessageRK8wxStringS1_'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:195: undefined reference to `__imp___Z17wxSafeShowMessageRK8wxStringS1_'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:197: undefined reference to `__imp___ZN11wxStopWatch5StartEl'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla18MarkerDefineBitmapEiRK8wxBitmap':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:653: undefined reference to `__imp___ZN20wxMemoryOutputStreamC1EPvj'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:654: undefined reference to `__imp___ZNK8wxBitmap14ConvertToImageEv'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:656: undefined reference to `__imp___ZN7wxImage18ConvertAlphaToMaskEh'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:657: undefined reference to `__imp___ZNK7wxImage8SaveFileER14wxOutputStreami'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:658: undefined reference to `__imp___ZNK12wxStreamBase7GetSizeEv'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:660: undefined reference to `__imp___ZNK20wxMemoryOutputStream6CopyToEPvj'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:663: undefined reference to `__imp___ZN20wxMemoryOutputStreamD1Ev'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:663: undefined reference to `__imp___ZN20wxMemoryOutputStreamD1Ev'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla13RegisterImageEiRK8wxBitmap':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:1265: undefined reference to `__imp___ZN20wxMemoryOutputStreamC1EPvj'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:1266: undefined reference to `__imp___ZNK8wxBitmap14ConvertToImageEv'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:1268: undefined reference to `__imp___ZN7wxImage18ConvertAlphaToMaskEh'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:1269: undefined reference to `__imp___ZNK7wxImage8SaveFileER14wxOutputStreami'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:1270: undefined reference to `__imp___ZNK12wxStreamBase7GetSizeEv'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:1272: undefined reference to `__imp___ZNK20wxMemoryOutputStream6CopyToEPvj'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:1275: undefined reference to `__imp___ZN20wxMemoryOutputStreamD1Ev'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:1275: undefined reference to `__imp___ZN20wxMemoryOutputStreamD1Ev'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla12StyleSetSpecEiRK8wxString':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4223: undefined reference to `__imp___ZN17wxStringTokenizerC1ERK8wxStringS2_21wxStringTokenizerMode'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4225: undefined reference to `__imp___ZN17wxStringTokenizer12GetNextTokenEv'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4224: undefined reference to `__imp___ZNK17wxStringTokenizer13HasMoreTokensEv'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla12StyleGetFontEi':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4264: undefined reference to `__imp___ZN6wxFont12SetPointSizeEi'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4265: undefined reference to `__imp___ZN6wxFont11SetFaceNameERK8wxString'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4267: undefined reference to `__imp___ZN6wxFont9SetWeightEi'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4269: undefined reference to `__imp___ZN6wxFont9SetWeightEi'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4272: undefined reference to `__imp___ZN6wxFont8SetStyleEi'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4274: undefined reference to `__imp___ZN6wxFont8SetStyleEi'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla8SaveFileERK8wxString':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4468: undefined reference to `__imp__wxConvCurrent'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla8LoadFileERK8wxString':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4488: undefined reference to `__imp___ZNK6wxFile6LengthEv'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4494: undefined reference to `__imp___ZN6wxFile4ReadEPvj'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4497: undefined reference to `__imp__wxConvCurrent'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4497: undefined reference to `__imp___ZN8wxStringC1EPKcRK8wxMBConvj'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla7OnPaintER12wxPaintEvent':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4671: undefined reference to `__imp___ZN9wxPaintDCC1EP8wxWindow'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4674: undefined reference to `__imp___ZN9wxPaintDCD1Ev'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4674: undefined reference to `__imp___ZN9wxPaintDCD1Ev'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla8OnScrollER13wxScrollEvent':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4687: undefined reference to `__imp___ZN11wxScrollBar12ms_classInfoE'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla15OnMouseLeftDownER12wxMouseEvent':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4708: undefined reference to `__imp___ZNK11wxStopWatch4TimeEv'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla13OnMouseLeftUpER12wxMouseEvent':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4721: undefined reference to `__imp___ZNK11wxStopWatch4TimeEv'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN11wxScintilla12OnMouseWheelER12wxMouseEvent':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4761: undefined reference to `__imp___ZNK11wxStopWatch4TimeEv'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:4767: undefined reference to `__imp___ZNK11wxStopWatch4TimeEv'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `_ZN16wxScintillaEventC2Eii':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:5093: undefined reference to `__imp___ZN14wxCommandEventC2Eii'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `__static_initialization_and_destruction_0':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:80: undefined reference to `__imp___Z14wxNewEventTypev'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:81: undefined reference to `__imp___Z14wxNewEventTypev'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:82: undefined reference to `__imp___Z14wxNewEventTypev'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:83: undefined reference to `__imp___Z14wxNewEventTypev'
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:84: undefined reference to `__imp___Z14wxNewEventTypev'
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o):E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:85: more undefined references to `__imp___Z14wxNewEventTypev' follow
..\..\..\devel/libwxscintilla_cb.a(wxscintilla.o): In function `__static_initialization_and_destruction_0':
E:/Data/CB_Build/CB/trunk/src/sdk/wxscintilla/src/wxscintilla.cpp:121: undefined reference to `__imp___ZN8wxWindow13sm_eventTableE'
Process terminated with status 1 (0 minutes, 18 seconds)
50 errors, 6 warnings (0 minutes, 18 seconds)
--- End code ---
Anyway, while building the parent C::B project (CodeBlocks.cbp) with SVN 7945 there is this error message:
Unable to resolve 1 external dependencies:
\devel\libcodeblocks.a
This file is NOT in devel, but it IS in the parent folder, src.
Building the entire project using SVN 7932: the "libcodeblocks.a" file DOES get correctly placed into \devel AND then entire project, CodeBlocks.cbp AND ContribPlugins.workspace ALL compile successfully.
It is only when then building SVN 7945 again using SVN 7945 that libcodeblocks.a doesn't end up in the correct location and later on this causes a linking error.
So, there are two possibilities: either the GCC 4.7.0 I'm using has a regression for handling files, OR the SVN 7945 build scripts/file handling code has a regression. I don't know which. However, I'm leaning towards the SVN 7945 being the regression as using SVN 7932 to build the complete project I am still using my system's GCC 4.7.0 as well.
oBFusCATed:
headkase:
Have you built c::b before using compiler known to work?
Gcc 4.5 for example?
Also have you build wxWidgets with the same compiler you're trying to build c::b.
This is pretty important!
btw: What is your final goal? To contribute to C::B? Write a plugin? To test yourself if you can build c::b?
headkase:
I've only tried to build C::B using GCC 4.7.0 as I linked before. I built wx using the exact same compiler. wx I had to use the
--- Code: ---CXXFLAGS ?= -fno-keep-inline-dllexport
--- End code ---
flag in config.gcc as the linker ran out of memory without it. Other than that wx was compiled exactly as given on the wiki.
So, no known "good" compile with another compiler.
If nothing obvious stands out to you in SVN 7945 however then I am willing to go get another compiler and repeat the entire process, wx and up. However, if you would like me to do this I would likely not have results until Monday - I'm working over the weekend so it's just a matter of free time.
Edit: My eventual goal? To have the most current version of C::B at all times! Mwhahahahahaha. ;)
Edit2: If you would like me to try another compiler, please link to it!
oBFusCATed:
Then why don't you use the nightlies? If you feel there is no new nightly for a long time you can bug us :)
headkase:
--- Quote from: oBFusCATed on April 27, 2012, 10:58:31 pm ---Then why don't you use the nightlies? If you feel there is no new nightly for a long time you can bug us :)
--- End quote ---
;) I'm hoping there will we a 12.05 release soon.. :P Most Linux distributions only package the latest stable releases, just sayin', .. :)
Anyway, I'm doing it really because I can. Please link to me another compiler if you like and I will definitely try it. If there is a regression in this GCC 4.7.0 I'm using I'd like to know sooner rather than banging my head against a wall later saying "Why you no work!!!!?" :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version