×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Issue with Ekos Scheduler

  • Posts: 150
  • Thank you received: 15
Hi all,

i've an issue during scheduler execution. i use simulators and kstars

I created 2 tasks, one for the dso, one for the flats. I launch the scheduler The mount slewing to the target, starts focuser and after 2 or 3 iterrations, kstars close and i've the message below :
[New Thread 0x7fffa9ffa700 (LWP 9656)]
[Thread 0x7fffa8ff7700 (LWP 9650) exited]
[New Thread 0x7fffa8ff7700 (LWP 9661)]
/usr/local/bin/kstars: symbol lookup error: /usr/local/lib/libgsl.so.23: undefined symbol: cblas_dasum
[Thread 0x7fffa9ffa700 (LWP 9656) exited]
[Thread 0x7fffb8cc7700 (LWP 9655) exited]
[Thread 0x7fffb9f8f700 (LWP 9654) exited]
[Thread 0x7fffb94c8700 (LWP 9653) exited]
[Thread 0x7fffaaffc700 (LWP 9652) exited]
[Thread 0x7fffab7fd700 (LWP 9651) exited]
[Thread 0x7fffaa7fb700 (LWP 9647) exited]
[Thread 0x7fffc4be5700 (LWP 9594) exited]
[Thread 0x7fffa97f8700 (LWP 9589) exited]
[Thread 0x7fffbb19d700 (LWP 9567) exited]
[Thread 0x7fffbb99e700 (LWP 9562) exited]
[Thread 0x7fffd487d700 (LWP 9539) exited]
[Thread 0x7fffd68eb700 (LWP 9538) exited]
[Thread 0x7fffd70ec700 (LWP 9537) exited]
[Thread 0x7fffd78ed700 (LWP 9536) exited]
[Thread 0x7fffe2508700 (LWP 9534) exited]
[Thread 0x7fffe4c1c940 (LWP 9532) exited]
[Inferior 1 (process 9532) exited with code 0177]

I have the latest libgsl and libgslcblas (compiled by myself) installed. This problem occurs when i use the polynomial algorithm.Otherwise, i have not the problem.
-rw-r--r-- 1 root root 19427338 juin  25 21:05 libgsl.a
-rw-r--r-- 1 root root  1842930 juin  25 21:05 libgslcblas.a
-rwxr-xr-x 1 root root      965 juin  25 21:05 libgslcblas.la*
lrwxrwxrwx 1 root root       20 juin  25 21:05 libgslcblas.so -> libgslcblas.so.0.0.0*
lrwxrwxrwx 1 root root       20 juin  25 21:05 libgslcblas.so.0 -> libgslcblas.so.0.0.0*
-rwxr-xr-x 1 root root  1100536 juin  25 21:05 libgslcblas.so.0.0.0*
-rwxr-xr-x 1 root root      934 juin  25 21:05 libgsl.la*
lrwxrwxrwx 1 root root       16 juin  25 21:05 libgsl.so -> libgsl.so.23.0.0*
lrwxrwxrwx 1 root root       16 juin  25 21:05 libgsl.so.23 -> libgsl.so.23.0.0*
-rwxr-xr-x 1 root root 11334072 juin  25 21:05 libgsl.so.23.0.0*

anybody have this issue ?

Thank you.

Christian
Last edit: 6 years 9 months ago by Picard.
6 years 9 months ago #17447

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 37
Why did you compile the latest gsl yourself?

What is the system? Which (Linux) version? Intel or RaspPi?

What do these commands say?

ldd /usr/local/bin/kstars
ldd /usr/local/lib/libgsl.so.23
6 years 9 months ago #17449

Please Log in or Create an account to join the conversation.

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Issue with Ekos Scheduler

Because, for other project i need it.

Is an kubuntu 16.04.2 on Intel

ldd /usr/local/lib/libgsl.so.23
linux-vdso.so.1 =>  (0x00007fff21b99000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9c2e49e000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9c2e0d4000)
        /lib64/ld-linux-x86-64.so.2 (0x000055afbd2be000)
for Kstars :
linux-vdso.so.1 =>  (0x00007fff788fb000)
        libKF5Crash.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Crash.so.5 (0x00007f28ea1cf000)
        libKF5NewStuff.so.5 => /usr/lib/x86_64-linux-gnu/libKF5NewStuff.so.5 (0x00007f28e9f21000)
        libKF5XmlGui.so.5 => /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5 (0x00007f28e9c2c000)
        libKF5Plotting.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Plotting.so.5 (0x00007f28e9a19000)
        libQt5PrintSupport.so.5 => /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f28e99a6000)
        libQt5Sql.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5 (0x00007f28e9963000)
        libQt5Svg.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007f28e990c000)
        libQt5Quick.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5 (0x00007f28e953c000)
        libQt5Qml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007f28e910f000)
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f28e8ef3000)
        libKF5NotifyConfig.so.5 => /usr/lib/x86_64-linux-gnu/libKF5NotifyConfig.so.5 (0x00007f28e8cde000)
        libKF5KIOWidgets.so.5 => /usr/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5 (0x00007f28e89c4000)
        libKF5ConfigWidgets.so.5 => /usr/lib/x86_64-linux-gnu/libKF5ConfigWidgets.so.5 (0x00007f28e8773000)
        libKF5Auth.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Auth.so.5 (0x00007f28e8560000)
        libKF5KIOCore.so.5 => /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5 (0x00007f28e8204000)
        libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f28e80aa000)
        libQt5Concurrent.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Concurrent.so.5 (0x00007f28e80a3000)
        libKF5I18n.so.5 => /usr/lib/x86_64-linux-gnu/libKF5I18n.so.5 (0x00007f28e7e4f000)
        libKF5WidgetsAddons.so.5 => /usr/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5 (0x00007f28e7b0e000)
        libKF5ConfigGui.so.5 => /usr/lib/x86_64-linux-gnu/libKF5ConfigGui.so.5 (0x00007f28e78ee000)
        libcfitsio.so.5 => /usr/local/lib/libcfitsio.so.5 (0x00007f28e7495000)
        libgsl.so.23 => /usr/local/lib/libgsl.so.23 (0x00007f28e7027000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f28e6e0a000)
        libKF5Notifications.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Notifications.so.5 (0x00007f28e6bc0000)
        libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f28e6533000)
        libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f28e5feb000)
        libQt5DBus.so.5 => /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f28e5f6c000)
        libKF5ConfigCore.so.5 => /usr/lib/x86_64-linux-gnu/libKF5ConfigCore.so.5 (0x00007f28e5d11000)
        libKF5CoreAddons.so.5 => /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5 (0x00007f28e5a83000)
        libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f28e55ac000)
        libnova-0.16.so.0 => /usr/local/lib/libnova-0.16.so.0 (0x00007f28e4ecb000)
        libwcs.so.5 => /usr/local/lib/libwcs.so.5 (0x00007f28e4b75000)
        libraw.so.16 => /usr/local/lib/libraw.so.16 (0x00007f28e489a000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f28e4518000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f28e420f000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f28e3ff8000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f28e3c2e000)
        libKF5WindowSystem.so.5 => /usr/lib/x86_64-linux-gnu/libKF5WindowSystem.so.5 (0x00007f28e39e6000)
        libQt5X11Extras.so.5 => /usr/lib/x86_64-linux-gnu/libQt5X11Extras.so.5 (0x00007f28e39e0000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f28e36a6000)
        libKF5Archive.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Archive.so.5 (0x00007f28e3473000)
        libKF5TextWidgets.so.5 => /usr/lib/x86_64-linux-gnu/libKF5TextWidgets.so.5 (0x00007f28e3231000)
        libKF5Attica.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Attica.so.5 (0x00007f28e2f9a000)
        libKF5Service.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Service.so.5 (0x00007f28e2d06000)
        libKF5Completion.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Completion.so.5 (0x00007f28e2acf000)
        libKF5IconThemes.so.5 => /usr/lib/x86_64-linux-gnu/libKF5IconThemes.so.5 (0x00007f28e2894000)
        libKF5ItemViews.so.5 => /usr/lib/x86_64-linux-gnu/libKF5ItemViews.so.5 (0x00007f28e265c000)
        libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f28e261f000)
        libKF5GlobalAccel.so.5 => /usr/lib/x86_64-linux-gnu/libKF5GlobalAccel.so.5 (0x00007f28e23fe000)
        libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f28e21ec000)
        libphonon4qt5.so.4 => /usr/lib/x86_64-linux-gnu/libphonon4qt5.so.4 (0x00007f28e1f74000)
        libKF5JobWidgets.so.5 => /usr/lib/x86_64-linux-gnu/libKF5JobWidgets.so.5 (0x00007f28e1d4c000)
        libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007f28e1b47000)
        libKF5Codecs.so.5 => /usr/lib/x86_64-linux-gnu/libKF5Codecs.so.5 (0x00007f28e190c000)
        libKF5GuiAddons.so.5 => /usr/lib/x86_64-linux-gnu/libKF5GuiAddons.so.5 (0x00007f28e16f2000)
        libKF5DBusAddons.so.5 => /usr/lib/x86_64-linux-gnu/libKF5DBusAddons.so.5 (0x00007f28e14e1000)
        libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f28e12d9000)
        libproxy.so.1 => /usr/lib/x86_64-linux-gnu/libproxy.so.1 (0x00007f28e10b8000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f28e0eaf000)
        /lib64/ld-linux-x86-64.so.2 (0x000056324e3d9000)
        libdbusmenu-qt5.so.2 => /usr/lib/x86_64-linux-gnu/libdbusmenu-qt5.so.2 (0x00007f28e0c7e000)
        libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f28e0a2a000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f28e0719000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f28e04f4000)
        libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f28e0295000)
        libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f28e0021000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f28dfdd5000)
        libfam.so.0 => /usr/lib/libfam.so.0 (0x00007f28dfbcb000)
        libicui18n.so.55 => /usr/lib/x86_64-linux-gnu/libicui18n.so.55 (0x00007f28df769000)
        libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007f28df3d5000)
        libpcre16.so.3 => /usr/lib/x86_64-linux-gnu/libpcre16.so.3 (0x00007f28df16e000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f28def6a000)
        libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f28ded10000)
        libjasper.so.1 => /usr/lib/x86_64-linux-gnu/libjasper.so.1 (0x00007f28deabb000)
        liblcms2.so.2 => /usr/lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f28de864000)
        libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f28de642000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f28de41f000)
        libxcb-keysyms.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f28de21c000)
        libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f28de00b000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f28ddde9000)
        libKF5SonnetUi.so.5 => /usr/lib/x86_64-linux-gnu/libKF5SonnetUi.so.5 (0x00007f28ddbc6000)
        libKF5SonnetCore.so.5 => /usr/lib/x86_64-linux-gnu/libKF5SonnetCore.so.5 (0x00007f28dd9a4000)
        libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f28dd754000)
        libpulse-mainloop-glib.so.0 => /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x00007f28dd54e000)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f28dd346000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f28dd0d5000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f28dce2b000)
        libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f28dcc06000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f28dc9dc000)
        libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f28dc7d9000)
        libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f28dc5d6000)
        libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f28dc3ce000)
        libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f28dc1cb000)
        libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f28dbf9c000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f28dbd89000)
        libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f28dbb86000)
        libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f28db980000)
        libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f28db77d000)
        libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f28db564000)
        libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f28db35f000)
        libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f28db158000)
        libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f28daf49000)
        libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f28daec3000)
        libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007f28d940c000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f28d9208000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f28d9001000)
        libjson-c.so.2 => /lib/x86_64-linux-gnu/libjson-c.so.2 (0x00007f28d8df6000)
        libpulsecommon-8.0.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so (0x00007f28d8b7a000)
        libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f28d8958000)
        libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f28d8676000)
        libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f28d846c000)
        libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f28d8203000)
        libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f28d7ffc000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f28d7de8000)
        libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f28d7bce000)
        libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f28d7959000)
        libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f28d76b0000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f28d7494000)
        libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f28d728b000)
        libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f28d705f000)

On other project like Siril, i have the twin library, gsl + gslcblas :
libgsl.so.23 => /usr/local/lib/libgsl.so.23 (0x00007f25f1fe9000)
        libgslcblas.so.0 => /usr/local/lib/libgslcblas.so.0 (0x00007f25f1dab000)

Thanks.
Last edit: 6 years 9 months ago by Picard.
6 years 9 months ago #17452

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 37
That is pretty straightforward. KStars is linked against gsl, but gsl is not linked with cblas. You should check your custom gsl compilation and make sure that when the gsl library is linked, it is linked against cblas with e.g -lcblas if you don't want to use libgslcblas for KStars.
Last edit: 6 years 9 months ago by Csaba Kertesz.
6 years 9 months ago #17453

Please Log in or Create an account to join the conversation.

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Issue with Ekos Scheduler

Hi,

i don't think that libgsl must be linked with libgslcblas. Some applications that use this libraries, link them during the linking phase. But kstars
Do you think kstars must link this library ?
The real problem is not in the scheduler like i think, but in the focus module when use the polynomial algo. After 5 iterations, he call the method gsl_polynomial_fit that call some gsl functions that call cblas_dasum method (i don't know exactly when).

Do you know a method for link the library during the make procedure ?
6 years 9 months ago #17481

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 37
Ok, Now I see. I don't know too much about gsl, but I can see that the cblas-related linking flags are defined in gsl's pkgconfig file. I am not even sure how could you properly instruct to build KStars with this custom-built library "properly" because it will get the linking flags all the time for the Ubuntu-version of gsl.

What you can do to edit KStars build files to make it work for your special case.

Inside kstars/CMakeLists.txt, there is line 990-992, you should change to something like this:

# find_package(GSL REQUIRED)
include_directories(/usr/local/include)
target_link_libraries(KStarsLib -L/usr/local/lib -lgsl -lgslcblas ${CMAKE_THREAD_LIBS_INIT} KF5::Notifications)

If you want to use cblas instead of gslcblas, change -lgslcblas to -lcblas
The following user(s) said Thank You: Picard
6 years 9 months ago #17484

Please Log in or Create an account to join the conversation.

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Issue with Ekos Scheduler

Great !!!

i will testing this evening.

Thank you.
6 years 9 months ago #17488

Please Log in or Create an account to join the conversation.

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Issue with Ekos Scheduler

Hi,

i reply to myself !!! in fact, i think it's an instability on my ubuntu (too much hack). since a time, i wanted to test ubuntu mate and i have completely reinstall my system. Is better and i have no more problem.

Thank you for your help
Clear sky
Christian
6 years 9 months ago #17578

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 37
Hi Christian,

we have just found out that there was a problem with KStars linking against cblas/gslcblas if you built KStars with gcc. Now a fix is pushed in the git master.
6 years 9 months ago #17592

Please Log in or Create an account to join the conversation.

Time to create page: 0.189 seconds