Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Trouble rebuilding Code::Blocks from trunk.

(1/3) > >>

ptDev:
I attempted a full clean rebuild (manually deleted all output binaries and even object files) of a recent Code::Blocks through the CodeBlocks.workspace file.

Using TDM-GCC 4.7.1 on Windows, with which I built wxWidgets 2.8.12.

Early on, I got a linker error when building the autorevision target, and I can't see where it comes from.

The compiler output:


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

mingw32-g++.exe -Wall C:\Users\Francisco\Dev\svn\codeblocks\src -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -w -Wfatal-errors -iquote.objs\include -I.objs\include -I. -IC:\Users\Francisco\Dev\libs\wx2812\include -IC:\Users\Francisco\Dev\libs\wx2812\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c C:\Users\Francisco\Dev\svn\codeblocks\src\base\tinyxml\tinystr.cpp -o .objs\base\tinyxml\tinystr.o
mingw32-g++.exe: warning: C:\Users\Francisco\Dev\svn\codeblocks\src: linker input file unused because linking not done
mingw32-g++.exe -Wall C:\Users\Francisco\Dev\svn\codeblocks\src -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -w -Wfatal-errors -iquote.objs\include -I.objs\include -I. -IC:\Users\Francisco\Dev\libs\wx2812\include -IC:\Users\Francisco\Dev\libs\wx2812\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c C:\Users\Francisco\Dev\svn\codeblocks\src\base\tinyxml\tinyxml.cpp -o .objs\base\tinyxml\tinyxml.o
mingw32-g++.exe: warning: C:\Users\Francisco\Dev\svn\codeblocks\src: linker input file unused because linking not done
mingw32-g++.exe -Wall C:\Users\Francisco\Dev\svn\codeblocks\src -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -w -Wfatal-errors -iquote.objs\include -I.objs\include -I. -IC:\Users\Francisco\Dev\libs\wx2812\include -IC:\Users\Francisco\Dev\libs\wx2812\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c C:\Users\Francisco\Dev\svn\codeblocks\src\base\tinyxml\tinyxmlerror.cpp -o .objs\base\tinyxml\tinyxmlerror.o
mingw32-g++.exe: warning: C:\Users\Francisco\Dev\svn\codeblocks\src: linker input file unused because linking not done
mingw32-g++.exe -Wall C:\Users\Francisco\Dev\svn\codeblocks\src -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -w -Wfatal-errors -iquote.objs\include -I.objs\include -I. -IC:\Users\Francisco\Dev\libs\wx2812\include -IC:\Users\Francisco\Dev\libs\wx2812\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c C:\Users\Francisco\Dev\svn\codeblocks\src\base\tinyxml\tinyxmlparser.cpp -o .objs\base\tinyxml\tinyxmlparser.o
mingw32-g++.exe: warning: C:\Users\Francisco\Dev\svn\codeblocks\src: linker input file unused because linking not done
cmd /c if exist base\tinyxml\libtxml.a del base\tinyxml\libtxml.a\nar.exe -r -s base\tinyxml\libtxml.a .objs\base\tinyxml\tinystr.o .objs\base\tinyxml\tinyxml.o .objs\base\tinyxml\tinyxmlerror.o .objs\base\tinyxml\tinyxmlparser.o

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

mingw32-g++.exe -Wall C:\Users\Francisco\Dev\svn\codeblocks\src -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -w -Wfatal-errors -iquote.objs\include -I.objs\include -I. -IC:\Users\Francisco\Dev\libs\wx2812\include -IC:\Users\Francisco\Dev\libs\wx2812\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -c C:\Users\Francisco\Dev\svn\codeblocks\src\build_tools\autorevision\autorevision.cpp -o .objs\build_tools\autorevision\autorevision.o
mingw32-g++.exe: warning: C:\Users\Francisco\Dev\svn\codeblocks\src: linker input file unused because linking not done
mingw32-g++.exe -Lbase\tinyxml -LC:\Users\Francisco\Dev\libs\wx2812\lib\gcc_dll -Lbase\tinyxml -o build_tools\autorevision\autorevision.exe .objs\build_tools\autorevision\autorevision.o  -s  -ltxml
c:/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -ltxml
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 7 second(s))
1 error(s), 5 warning(s) (0 minute(s), 7 second(s))

--- End quote ---

The linker input warnings intrigue me as well.

ptDev:
I think I found the problem. There is a generated command-line compiler command with a line break escape sequence in it for no good reason, when it should have been two separate commands.


--- Code: ---cmd /c if exist base\tinyxml\libtxml.a del base\tinyxml\libtxml.a\nar.exe -r -s base\tinyxml\libtxml.a .objs\base\tinyxml\tinystr.o .objs\base\tinyxml\tinyxml.o .objs\base\tinyxml\tinyxmlerror.o .objs\base\tinyxml\tinyxmlparser.o
--- End code ---

Has anyone else reproduced this?

oBFusCATed:

--- Quote from: ptDev on March 02, 2013, 12:05:19 am ---Has anyone else reproduced this?

--- End quote ---
Alpha any ideas about this problem?

ptDev: What revision of CB are you using?

ptDev:
Was a build of revision 8834.

Using 8855, I don't reproduce it any more.

It is strange, because there is no change in options_gcc.xml in between those revisions.

Alpha:
The fix was in rev. 8846, however, what is strange is that the command

--- Quote from: ptDev on March 02, 2013, 12:05:19 am ---
--- Code: ---cmd /c if exist base\tinyxml\libtxml.a del base\tinyxml\libtxml.a\nar.exe -r -s base\tinyxml\libtxml.a .objs\base\tinyxml\tinystr.o .objs\base\tinyxml\tinyxml.o .objs\base\tinyxml\tinyxmlerror.o .objs\base\tinyxml\tinyxmlparser.o
--- End code ---

--- End quote ---
was added in 8847...  Did your files get mixed?

Navigation

[0] Message Index

[#] Next page

Go to full version