Orange Forum • View topic - Build error from SVN

Build error from SVN

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

Build error from SVN

Postby kdd » Thu Apr 17, 2008 20:54

I checked out a copy of the source code today (April 17, 2008), but the build fails. I am pretty sure I have all the prerequisites because I can successfully build a snapshot of the code that I obtained in March.

Here's the relevant output from make:

...
g++ -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS -O3 -c lib_kernel.cpp -o obj/lib_kernel.o
python ../pyxtract/jitlink_build.py R.so r_imports.hpp
g++ -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS -O3 -c lib_learner.cpp -o obj/lib_learner.o
linear.hpp:200: error: declaration of ‘model* TLinearClassifier::model’
linear.hpp:92: error: changes meaning of ‘model’ from ‘struct model’
make[1]: *** [obj/lib_learner.o] Error 1

Postby Janez » Thu Apr 17, 2008 22:08

It is weird that MS VC succeeded to compile this. I think I fixed it, please try it out and report.

Thanks,
Janez

Postby kdd » Thu Apr 17, 2008 23:42

Thanks; made it to linear.cpp this time, but a different error emerged:

...
g++ -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS -O3 -c lib_vectors.cpp -o obj/lib_vectors.o
g++ -fPIC -fpermissive -w -DLINUX -DORANGE_EXPORTS -O3 -c linear.cpp -o obj/linear.o
/usr/include/c++/4.1.3/bits/stl_algo.h: In function ‘const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = feature_node, _Compare = NodeSort]’:
/usr/include/c++/4.1.3/bits/stl_algo.h:2679: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = feature_node*, _Size = int, _Compare = NodeSort]’
/usr/include/c++/4.1.3/bits/stl_algo.h:2749: instantiated from ‘void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = feature_node*, _Compare = NodeSort]’
linear.cpp:1638: instantiated from here
/usr/include/c++/4.1.3/bits/stl_algo.h:125: error: no match for call to ‘(NodeSort) (const feature_node&, const feature_node&)’
linear.cpp:1587: note: candidates are: bool NodeSort::operator()(feature_node&, feature_node&)
/usr/include/c++/4.1.3/bits/stl_algo.h:126: error: no match for call to ‘(NodeSort) (const feature_node&, const feature_node&)’
linear.cpp:1587: note: candidates are: bool NodeSort::operator()(feature_node&, feature_node&)
/usr/include/c++/4.1.3/bits/stl_algo.h:128: error: no match for call to ‘(NodeSort) (const feature_node&, const feature_node&)’
linear.cpp:1587: note: candidates are: bool NodeSort::operator()(feature_node&, feature_node&)
/usr/include/c++/4.1.3/bits/stl_algo.h:132: error: no match for call to ‘(NodeSort) (const feature_node&, const feature_node&)’
linear.cpp:1587: note: candidates are: bool NodeSort::operator()(feature_node&, feature_node&)
/usr/include/c++/4.1.3/bits/stl_algo.h:134: error: no match for call to ‘(NodeSort) (const feature_node&, const feature_node&)’
linear.cpp:1587: note: candidates are: bool NodeSort::operator()(feature_node&, feature_node&)
make: *** [obj/linear.o] Error 1

By the way:
$ gcc --version
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

Postby Ales » Fri Apr 18, 2008 20:17

I think it's fixed now.
Can you try again.

Postby kdd » Sat Apr 19, 2008 1:40

Yes, it builds cleanly now. Thank you.


Return to Bugs