User forums > General (but related to Code::Blocks)

"codesnippets" error when built rpm package -- svn 7028 [ SOLVED ]

(1/3) > >>

wangdong1226:
I've downloaded the latest svn 7028 version of CB.
And I started to build rpm packages, but I got errors on "codesnippets" area, here are the output log:

=======
.....
.....
g++ -DHAVE_CONFIG_H -I. -I../../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -I../../../../../src/include -I../../../../../src/sdk/wxscintilla/include -I../../../../../src/plugins/contrib/codesnippets -I../../../../../src/plugins/contrib/codesnippets/Search -I../../../../../src/plugins/contrib/codesnippets/editor -I../../../../../src/include/mozilla_chardet  -Ulinux -Uunix  -O2 -ffast-math -DCB_AUTOCONF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c -o codesnippetsevent.o `test -f './../codesnippetsevent.cpp' || echo './'`./../codesnippetsevent.cpp
g++ -DHAVE_CONFIG_H -I. -I../../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -I../../../../../src/include -I../../../../../src/sdk/wxscintilla/include -I../../../../../src/plugins/contrib/codesnippets -I../../../../../src/plugins/contrib/codesnippets/Search -I../../../../../src/plugins/contrib/codesnippets/editor -I../../../../../src/include/mozilla_chardet  -Ulinux -Uunix  -O2 -ffast-math -DCB_AUTOCONF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c -o codesnippetstreectrl.o `test -f './../codesnippetstreectrl.cpp' || echo './'`./../codesnippetstreectrl.cpp
./../codesnippetstreectrl.cpp: In constructor 'CodeSnippetsTreeCtrl::CodeSnippetsTreeCtrl(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, long int)':
./../codesnippetstreectrl.cpp:97:39: error: conversion from 'int' to 'const wxTreeItemId' is ambiguous
/usr/include/wx-2.8/wx/treebase.h:75:5: note: candidates are: wxTreeItemId::wxTreeItemId(long int)
/usr/include/wx-2.8/wx/treebase.h:59:5: note:                 wxTreeItemId::wxTreeItemId(void*)
./../codesnippetstreectrl.cpp: In member function 'void CodeSnippetsTreeCtrl::EndInternalTreeItemDrag()':
./../codesnippetstreectrl.cpp:1073:23: error: conversion from 'int' to 'const wxTreeItemId' is ambiguous
/usr/include/wx-2.8/wx/treebase.h:75:5: note: candidates are: wxTreeItemId::wxTreeItemId(long int)
/usr/include/wx-2.8/wx/treebase.h:59:5: note:                 wxTreeItemId::wxTreeItemId(void*)
./../codesnippetstreectrl.cpp:1074:21: error: conversion from 'int' to 'const wxTreeItemId' is ambiguous
/usr/include/wx-2.8/wx/treebase.h:75:5: note: candidates are: wxTreeItemId::wxTreeItemId(long int)
/usr/include/wx-2.8/wx/treebase.h:59:5: note:                 wxTreeItemId::wxTreeItemId(void*)
./../codesnippetstreectrl.cpp: In member function 'void CodeSnippetsTreeCtrl::FinishExternalDrag()':
./../codesnippetstreectrl.cpp:1294:23: error: conversion from 'int' to 'const wxTreeItemId' is ambiguous
/usr/include/wx-2.8/wx/treebase.h:75:5: note: candidates are: wxTreeItemId::wxTreeItemId(long int)
/usr/include/wx-2.8/wx/treebase.h:59:5: note:                 wxTreeItemId::wxTreeItemId(void*)
./../codesnippetstreectrl.cpp:1295:21: error: conversion from 'int' to 'const wxTreeItemId' is ambiguous
/usr/include/wx-2.8/wx/treebase.h:75:5: note: candidates are: wxTreeItemId::wxTreeItemId(long int)
/usr/include/wx-2.8/wx/treebase.h:59:5: note:                 wxTreeItemId::wxTreeItemId(void*)
./../codesnippetstreectrl.cpp: In member function 'void CodeSnippetsTreeCtrl::OnEndTreeItemDrag(wxTreeEvent&)':
./../codesnippetstreectrl.cpp:1406:21: error: conversion from 'int' to 'const wxTreeItemId' is ambiguous
/usr/include/wx-2.8/wx/treebase.h:75:5: note: candidates are: wxTreeItemId::wxTreeItemId(long int)
/usr/include/wx-2.8/wx/treebase.h:59:5: note:                 wxTreeItemId::wxTreeItemId(void*)
make[5]: *** [codesnippetstreectrl.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src/plugins/contrib/codesnippets/resources'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src/plugins/contrib/codesnippets'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.4mxdSo (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.4mxdSo (%build)
[David@Ocean SPECS]$
=======

But the svn 7028 on WebSVN shows that:
CodeSnippets 1.3.120 2011/02/11
- Fix crash when double clicking previously opened snippet
- Copy fixes 5995 & 6000 from CB EditorManager to SEditormanager

Could anyone be kindly to help me? how to solve the problem?


David.

wangdong1226:
If I downgrade to svn 7027, it can be built successfully.

My system is Fedora 14 (x86_64) with latest subcomponents installed (gcc, make, ...).

Pecan:
I do not get any errors. My results are clean.
Also, your statements numbers do not match mine.
Some of the lines you're getting errors on are blank lines for me.

It looks like you're using lib64. If you want to provide changes that would work with 64 bit Codeblocks and wxWidgets, I'll be glad to try and make the changes.

svn build  rev 7028 (2011-02-24 18:02:27)   gcc 4.4.3 Linux/unicode - 32 bit


--- Code: ---
-------------- Clean: Plugin-unix in CodeSnippets-unix ---------------

Cleaned "CodeSnippets-unix - Plugin-unix"

-------------- Clean: App-unix in CodeSnippets-unix ---------------

Cleaned "CodeSnippets-unix - App-unix"

-------------- Build: Plugin-unix in CodeSnippets-unix ---------------
<snip>
g++ -Wall -g -Ulinux -Uunix -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  -fexceptions -Winvalid-pch -fPIC -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12    -DcbDEBUG -DCB_PRECOMP     -I../../../include -I../../../sdk/wxscintilla/include -I. -Ieditor -ISearch -I../../../include/mozilla_chardet -I/usr/include  -c /home/pecan/devel/trunk/src/plugins/contrib/codesnippets/codesnippetstreectrl.cpp -o ../../../.objs/plugins/contrib/codesnippets/plugin/codesnippetstreectrl.o

<snip>
Output size is 7.71 MB

-------------- Build: App-unix in CodeSnippets-unix ---------------
<snip>
g++ -Wall -g -Ulinux -Uunix -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  -fexceptions -Winvalid-pch -fPIC -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12    -DcbDEBUG -DCB_PRECOMP     -I../../../include -I../../../sdk/wxscintilla/include -I. -Ieditor -ISearch -I../../../include/mozilla_chardet -I/usr/include  -c /home/pecan/devel/trunk/src/plugins/contrib/codesnippets/codesnippetstreectrl.cpp -o ../../../.objs/plugins/contrib/codesnippets/app/codesnippetstreectrl.o

Output size is 7.55 MB
Running project post-build steps
./update
  adding: manifest.xml (deflated 51%)
Process terminated with status 0 (1 minutes, 47 seconds)
0 errors, 0 warnings (1 minutes, 47 seconds)



--- End code ---

oBFusCATed:
This looks like missing includes... probably a no-PCH issue

Jenna:
CB_PRECOMP is set!
Anyway: if I compile without CB_PRECOMP and with NOPCH, it still compiles without problems on 64-bit debian.

I also set all defines and special parameters the same way, but it still compiles.

What version of wxWidgets do you use ( wx-config --version-full )?

Navigation

[0] Message Index

[#] Next page

Go to full version