Menu

Problems when compiling in it++ test direcory

Anonymous
2003-07-24
2012-09-15
  • Anonymous

    Anonymous - 2003-07-24

    Hi,

    I have compiled it++3.7.1,
    atlas3.4.1_Linux_P4SSE2, lapack under  Cygwin.
    I have the problem that the comilation result of it++ looks ok. But problems always occure when
    running 'make test' in the itt++/tests directory.
    Has anyone an Idea what get's wrong ?
    It looks for me that something with BLAS does not work.

    thanks
    /Manuel

    $ make test
    g++ `./../bin/it-config --flags --debug` array_test.cpp -o array_test.run `./../
    bin/it-config --libs --debug`
    ./array_test.run > array_test.tmp
    ---------------------------------------------------------------------------
    Testing: array_test.run
    diff array_test.tmp array_test.ref
    Test completed
    ---------------------------------------------------------------------------

    g++ `./../bin/it-config --flags --debug` audiodev_test.cpp -o audiodev_test.run
    `./../bin/it-config --libs --debug`
    ./audiodev_test.run > audiodev_test.tmp
    ---------------------------------------------------------------------------
    Testing: audiodev_test.run
    diff audiodev_test.tmp audiodev_test.ref
    1d0
    < IT++ does not support sound in the Cygwin or the Apple envirionments. Sorry.
    make: [audiodev_test.tmp] Error 1 (ignored)
    Test completed
    ---------------------------------------------------------------------------

    g++ `./../bin/it-config --flags --debug` bessel_test.cpp -o bessel_test.run `./.
    ./bin/it-config --libs --debug`
    /cygdrive/h/it++3.7.1/lib/libit++_d.a(specmat_debug.o)(.text$_ZN4itpp11copy_vect
    orIdEEviPKT_PS1_+0x2b): In function `_ZN4itpp4findERKNS_3VecINS_3binEEE':
    /cygdrive/h/it++3.7.1/src/base/specmat.cpp:32: undefined reference to `_cblas_dc
    opy'
    /cygdrive/h/it++3.7.1/lib/libit++_d.a(specmat_debug.o)(.text$_ZN4itpp11copy_vect
    orISt7complexIdEEEviPKT_PS3_+0x2b):/cygdrive/h/it++3.7.1/src/base/specmat.cpp:32
    undefined reference to `_cblas_zcopy'
    collect2: ld returned 1 exit status
    make: [bessel_test.run] Error 1 (ignored)
    ./bessel_test.run > bessel_test.tmp
    ./bessel_test.run: not found
    make: *** [bessel_test.tmp] Error 127
     
    • Pĺl Frenger

      Pĺl Frenger - 2003-07-31

      Hi Manuel,

      You probably need to check that your soft links in the it++/lib directory are correct. Assuming that you use ATLAS and netlib-LAPACK you need to add the followin soft links in the it++/lib directory:

      ln -s <ATLAS_LIBDIR>/libatlas.a ./libatlas.a
      ln -s <ATLAS_LIBDIR>/libcblas.a ./libcblas.a
      ln -s <ATLAS_LIBDIR>/libf77blas.a ./libf77blas.a
      ln -s <ATLAS_LIBDIR>/liblapack ./liblapack.a

      Make shure that you have a complete LAPACK lib file in your ATLAS_LIBDIR folder (see the installation section in the IT++ getting started manual on how to do that).

      When the soft links are OK you need to re-run the configure script to regenerate the it-config script in the it++/bin folder.

      Also make shure that you use the same GCC compiler version for ATLAS, LAPACK and IT++. If you use different versions of GCC for the different libraries you will have problems.

      On Cygwin I have tested with ATLAS 3.5.5, netlib-LAPACK 3.0 and GCC 3.2 20020927 (prerelease) and that works fine. Other combinations will probably work as well but we haven't tested them.

      Good luck

      Pl Frenger

       

Log in to post a comment.