Orange Forum • View topic - Orange compilation fails on Debian Sid.

Orange compilation fails on Debian Sid.

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.

Orange compilation fails on Debian Sid.

Postby jgilbert » Thu Aug 11, 2005 0:23

Installing from CVS Wed Aug 10 19:04:57 EDT 2005.

gcc is version 3.3.6. g++ is version 3.3.6.

After running make in the source directory, things didn't look right. I went to orengeom and got the following:
Code: Select all
jgilbert@carthage:~/tmp/tmp/orange/source/orangeom$ make
g++ -fPIC -fpermissive -w -DLINUX -O3 -c optimizeAnchors.cpp -o obj/optimizeAnchors.o
optimizeAnchors.cpp: In function `float computeEnergyLow(const int&, const
   int&, const int&, double*, int*, TPoint*, TPoint*, double*, double, double,
   int)':
optimizeAnchors.cpp:43: error: call of overloaded `abs(double)' is ambiguous
/usr/include/stdlib.h:778: error: candidates are: int abs(int)
/usr/include/c++/3.3/cstdlib:149: error:                 long long int
   __gnu_cxx::abs(long long int)
/usr/include/c++/3.3/cstdlib:119: error:                 long int std::abs(long
   int)
optimizeAnchors.cpp:52: error: call of overloaded `abs(double)' is ambiguous
/usr/include/stdlib.h:778: error: candidates are: int abs(int)
/usr/include/c++/3.3/cstdlib:149: error:                 long long int
   __gnu_cxx::abs(long long int)
/usr/include/c++/3.3/cstdlib:119: error:                 long int std::abs(long
   int)
optimizeAnchors.cpp:59: error: call of overloaded `abs(double)' is ambiguous
/usr/include/stdlib.h:778: error: candidates are: int abs(int)
/usr/include/c++/3.3/cstdlib:149: error:                 long long int
   __gnu_cxx::abs(long long int)
/usr/include/c++/3.3/cstdlib:119: error:                 long int std::abs(long
   int)
make: *** [obj/optimizeAnchors.o] Error 1


I also tried gcc-4.0 (and g++-4.0) and got the same results, orengeom isn't compiling correctly. There may be other bits not compiling correctly as well, this is a single concrete problem.


Please help?

Postby jgilbert » Tue Aug 16, 2005 23:25

Is there any other information that I could provide to help diagnose the problem? My entire lab works on Linux (Fedora) and we can't install the newest version.

Thank you.

Postby jgilbert » Thu Aug 18, 2005 21:47

I have no idea why it wouldn't install. I just tried again (and again and again) and finally got it working. I posted what knowledge I was able to glean here: http://www.ailab.si/orange/forum/viewtopic.php?p=383

Build

Postby detrout » Sun Aug 28, 2005 23:42

I've made some progress building Orange on Debian. On an x86 laptop mostly running stable I was able to get the posted snapshot to build.

On an AMD64 box well into debian unstable, I needed to modify a couple of function prototypes to get it to build. Of course its not working yet, but that's a different matter--the orange package on my build is missing things like the ExamplesTable class.

gcc/g++=4.0.1-3
libgsl0-dev= 1.6-2
python=2.3.5-2
python-qt-dev=3.14.1-2

Diane

Patch for building on gcc-4.0

Postby detrout » Sun Aug 28, 2005 23:49

===================================================================
RCS file: /CVS/source/orange/lib_preprocess.cpp,v
retrieving revision 1.30
diff -r1.30 lib_preprocess.cpp
376c376
< int TMM_VariableFilterMap::_setitemlow(TVariableFilterMap *aMap, PyObject *pykey, PyObject *pyvalue)
---
> template <> int TMM_VariableFilterMap::_setitemlow(TVariableFilterMap *aMap, PyObject *pykey, PyObject *pyvalue)
384c384
< PyObject *TMM_VariableFilterMap::_setdefault(TPyOrange *self, PyObject *args)
---
> template <> PyObject *TMM_VariableFilterMap::_setdefault(TPyOrange *self, PyObject *args)

Reply

Postby Guest » Thu Sep 29, 2005 5:13

Do people reply to responses here?:I

Postby jgilbert » Fri Oct 07, 2005 21:04

Yes. Is there something that needs to be addressed? detrout didn't ask a question.


Return to Bugs