Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Building after svn export
php-coder:
Why C::B from SVN (1651 revision) after export cannot compilling ?
C::B from SVN compiles successfully, but i cannot compile his after svn export trunk codeblocks
I see that error:
g++ -g -O2 -O2 -ffast-math -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o auto_revision autorevision.o -pthread -lpthread -ldl -lpangox-1.0 -L/usr/X11R6/lib -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6
./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.h
Error: could not open input file
make[3]: *** [all-local] Ошибка 255
make[3]: Leaving directory `/home/coder/RPM/BUILD/codeblocks-1.0/src/tools/autorevision'
make[2]: *** [all-recursive] Ошибка 1
make[2]: Leaving directory `/home/coder/RPM/BUILD/codeblocks-1.0/src/tools'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/coder/RPM/BUILD/codeblocks-1.0/src'
make: *** [all-recursive] Ошибка 1
[c2der@mycomp ~/RPM/BUILD/codeblocks-1.0]$
php-coder:
--- Quote from: php-coder on January 04, 2006, 01:42:27 am ---./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.h
Error: could not open input file
--- End quote ---
Problem in that file! autoversion.h does not exist :(
Urxae:
--- Quote from: php-coder on January 04, 2006, 01:53:21 am ---
--- Quote from: php-coder on January 04, 2006, 01:42:27 am ---./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.h
Error: could not open input file
--- End quote ---
Problem in that file! autoversion.h does not exist :(
--- End quote ---
No, that's not the problem (close though). Autorevision is told to generate it, not use it. However, it attempts to inspects the SVN metadata to do so (to insert the SVN revision into the file) which it can't do after an export.
If you really want to build after exporting, be sure to run that command before exporting and remove it from the makefile so it doesn't give that error.
Maybe one of the devs can patch autorevision to emit something like "N/A" or just 0/-1/whatever instead of the revision number if such an error occurs?
mandrav:
Heh, interesting :)
Thomas, will you fix this?
thomas:
--- Quote from: mandrav on January 04, 2006, 08:51:21 am ---Heh, interesting :)
Thomas, will you fix this?
--- End quote ---
Although I disagree on the term "fix", I've changed it. Actually, the program was doing exactly what it should ;)
autorevision will now silently continue in absence of revision information and output "0" as the revision number.
EDIT:
Hmmm... something else just comes to my mind:
How can you actually get an error about a missing file? autorevision used to exit with status -1 on error, so should the build not abort at that point, and you would never see the message about a missing file?
Navigation
[0] Message Index
[#] Next page
Go to full version