On Wed, 14 Apr 2010, Soeren Sonnenburg wrote: > > > one basically would need to build libshogun{,ui} first and then using > > > this libshogun{,ui} build the other interfaces with various settings. > > > quite a bit of effort I currently don't have time for... > there is more needed for this, I tried to add the correct SO prefix for > python debug in shogun-trunk. d'oh -- I've missed that one among the config variables in the dictionary. good catch
> could you please give it a try and tell me > if python-dbg works with shogun in this case? not yet (does it work for you ?), I am running in my regular dirty environment: ,--- | ./configure --prefix=$PWD/../install-dbg --enable-hmm-parallel --python=python2.5-dbg --interfaces=libshogun,python_modular | | and it fails with | | Checking for Python/Python Numpy Developer Files ... no | | Error: python/numpy developer files missing | | Check configure.log if you do not understand why it failed. | The last 20 lines of configure.log are shown below | | dims[0]=10; | Py_Initialize(); | PyObject* outArray = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, (void*)array); | } | | PyMODINIT_FUNC initsg(void); | | cc -I. -I.. -fPIC -g -Wall -O9 -fexpensive-optimizations -frerun-cse-after-loop -fcse-follow-jumps -finline-functions -fschedule-insns2 -fthread-jumps -fforce-addr -fstrength-reduce -funroll-loops -march=native -mtune=native -pthread ./configure-23827-8140.c -o ./configure-17751-8140.o -Xlinker --no-undefined -lm -pthread -llapack -lcblas -llapack_atlas -lglpk -lm -llzo2 -lz -lbz2 -llzma -fno-strict-aliasing -fPIC -I/usr/include/python2.5_d -I/usr/lib/python2.5/site-packages/numpy/core/include -lutil -ldl -shared -L/usr/lib/python2.5/config_d -lpython2.5 | ./configure-23827-8140.c: In function ‘initsg’: | ./configure-23827-8140.c:11: warning: unused variable ‘outArray’ | ./configure-23827-8140.c: At top level: | /usr/include/python2.5_d/numpy/__multiarray_api.h:968: warning: ‘_import_array’ defined but not used | /usr/bin/ld: /usr/lib/python2.5/config_d/libpython2.5.a(pythonrun.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC | /usr/lib/python2.5/config_d/libpython2.5.a: could not read symbols: Bad value | collect2: ld returned 1 exit status | no object file created | | Result is: no `--- -- that config_d insertion (within _pylibpath) seems the one to blame, so revert to become 'for win32' only if it helps there ;) BTW... question from an ignorant bastard (ie me): why -O2 is used for COMP_NOOPTS, -O2 is quite a bit of optimization already, so it seems not to match the 'NOOPTS' ;) ideally it would be best to have debug libraries with -O0 BUT I couldn't actually "configure" with -O0, the problem seems to reside in python-dbg dynamic library which lacks some symbols (probably not present while building with -O2 of python-dbg package), and only static one having them... here is what I am talking about (the only thing different is the -O) ,-- | $> cc -I. -I.. -fPIC -g -Wall -O2 -pthread ./configure-9068-28990.c -o ./configure-10394-28990.o -Xlinker --no-undefined -lm -pthread -llapack -lcblas -llapack_atlas -lglpk -lm -llzo2 -lz -lbz2 -llzma -fno-strict-aliasing -fPIC -I/usr/include/python2.5_d -I/usr/lib/python2.5/site-packages/numpy/core/include -lutil -ldl -shared -lpython2.5 | ./configure-9068-28990.c: In function ‘initsg’: | ./configure-9068-28990.c:50: warning: unused variable ‘outArray’ | ./configure-9068-28990.c: At top level: | /usr/include/python2.5_d/numpy/__multiarray_api.h:968: warning: ‘_import_array’ defined but not used | | $> cc -I. -I.. -fPIC -g -Wall -O0 -pthread ./configure-9068-28990.c -o ./configure-10394-28990.o -Xlinker --no-undefined -lm -pthread -llapack -lcblas -llapack_atlas -lglpk -lm -llzo2 -lz -lbz2 -llzma -fno-strict-aliasing -fPIC -I/usr/include/python2.5_d -I/usr/lib/python2.5/site-packages/numpy/core/include -lutil -ldl -shared -lpython2.5 | ./configure-9068-28990.c: In function ‘initsg’: | ./configure-9068-28990.c:50: warning: unused variable ‘outArray’ | ./configure-9068-28990.c: At top level: | /usr/include/python2.5_d/numpy/__multiarray_api.h:968: warning: ‘_import_array’ defined but not used | /home/yoh/.tmp/ccSljF5u.o: In function `_import_array': | /usr/include/python2.5_d/numpy/__multiarray_api.h:975: undefined reference to `_Py_RefTotal' | /usr/include/python2.5_d/numpy/__multiarray_api.h:975: undefined reference to `_Py_RefTotal' | /usr/include/python2.5_d/numpy/__multiarray_api.h:975: undefined reference to `_Py_NegativeRefcount' | /usr/include/python2.5_d/numpy/__multiarray_api.h:975: undefined reference to `_Py_Dealloc' | /usr/include/python2.5_d/numpy/__multiarray_api.h:979: undefined reference to `_Py_RefTotal' | /usr/include/python2.5_d/numpy/__multiarray_api.h:979: undefined reference to `_Py_RefTotal' | /usr/include/python2.5_d/numpy/__multiarray_api.h:979: undefined reference to `_Py_NegativeRefcount' | /usr/include/python2.5_d/numpy/__multiarray_api.h:979: undefined reference to `_Py_Dealloc' | /usr/include/python2.5_d/numpy/__multiarray_api.h:980: undefined reference to `_Py_RefTotal' | /usr/include/python2.5_d/numpy/__multiarray_api.h:980: undefined reference to `_Py_RefTotal' | /usr/include/python2.5_d/numpy/__multiarray_api.h:980: undefined reference to `_Py_NegativeRefcount' | /usr/include/python2.5_d/numpy/__multiarray_api.h:980: undefined reference to `_Py_Dealloc `--- -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org