LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2019, 05:04 AM   #1
slacknedo
LQ Newbie
 
Registered: Apr 2019
Distribution: slackware64-current
Posts: 22

Rep: Reputation: 0
can't compile octave on slackware current libinterp/dldfcn/__delaunayn__.la] Error 2


Hi,
I try to install octave 5.1.0 with sbopkg but gives me an error.
I already install blas and lapack with sbopkg.
i see related post to use "su -l" and the run sbopkg but i got this error

Code:
make  all-recursive
make[1]: Entering directory '/tmp/SBo/octave-5.1.0'
preserving existing HG-ID file
Making all in libgnu
make[2]: Entering directory '/tmp/SBo/octave-5.1.0/libgnu'
make  all-recursive
make[3]: Entering directory '/tmp/SBo/octave-5.1.0/libgnu'
make[4]: Entering directory '/tmp/SBo/octave-5.1.0/libgnu'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/tmp/SBo/octave-5.1.0/libgnu'
make[3]: Leaving directory '/tmp/SBo/octave-5.1.0/libgnu'
make[2]: Leaving directory '/tmp/SBo/octave-5.1.0/libgnu'
make[2]: Entering directory '/tmp/SBo/octave-5.1.0'
preserving existing HG-ID file
  GEN      liboctave/array/CMatrix.cc-tst
  GEN      liboctave/array/CSparse.cc-tst
  GEN      liboctave/array/dMatrix.cc-tst
  GEN      liboctave/array/dSparse.cc-tst
  GEN      liboctave/array/fCMatrix.cc-tst
  GEN      liboctave/array/fMatrix.cc-tst
  GEN      liboctave/array/idx-vector.cc-tst
  GEN      liboctave/util/oct-inttypes.cc-tst
  GEN      liboctave/array/Array.cc-tst
  GEN      liboctave/array/Sparse.cc-tst
  CXX      libinterp/dldfcn/__delaunayn___la-__delaunayn__.lo



rdclibtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Iliboctave -I./liboctave -I./liboctave/array -Iliboctave/numeric -I./liboctave/numeric -Iliboctave/operators -I./liboctave/operators -I./liboctave/system -I./liboctave/util -I./libinterp/octave-value -Ilibinterp -I./libinterp -I./libinterp/operators -Ilibinterp/parse-tree -I./libinterp/parse-tree -Ilibinterp/corefcn -I./libinterp/corefcn -I./liboctave/wrappers -I/usr/include/ImageMagick-6 -fPIC -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -fPIC -c -o libinterp/dldfcn/__delaunayn___la-__delaunayn__.lo libinterp/dldfcn/__delaunayn__.cc

  CXXLD    libinterp/dldfcn/__delaunayn__.la



rdclibtool --silent --tag=CXX --mode=link g++ -fPIC -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -fPIC -avoid-version -module -no-undefined -o libinterp/dldfcn/__delaunayn__.la -rpath /usr/lib64/octave/5.1.0 libinterp/dldfcn/__delaunayn___la-__delaunayn__.lo -lutil -lm

/usr/bin/ld: libinterp/dldfcn/.libs/__delaunayn___la-__delaunayn__.o: in function `F__delaunayn__(octave_value_list const&, int)':
__delaunayn__.cc:(.text+0x75): undefined reference to `err_disabled_feature(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: libinterp/dldfcn/.libs/__delaunayn___la-__delaunayn__.o: in function `G__delaunayn__':
__delaunayn__.cc:(.text+0xf6): undefined reference to `check_version(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: __delaunayn__.cc:(.text+0x167): undefined reference to `octave_dld_function::create(octave_value_list (*)(octave_value_list const&, int), octave::dynamic_library const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
rdclibtool: exec error upon slbt_exec_link_create_library(), line 1415: (see child process error messages).
rdclibtool: < returned to > slbt_exec_link(), line 1779.
make[2]: *** [Makefile:12059: libinterp/dldfcn/__delaunayn__.la] Error 2
make[2]: Leaving directory '/tmp/SBo/octave-5.1.0'
make[1]: *** [Makefile:27055: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/octave-5.1.0'
make: *** [Makefile:10875: all] Error 2
I don't post all the log because is too long.

Thanks in advance.
 
Old 04-11-2019, 02:30 PM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I see that you are using slibtool. What slibtool version do you have? Does it work with the libtool in Slackware instead?

I tried to reproduce this with slibtool-0.5.28 and while I was not able to reproduce it, I did run into a different build issue.

Code:
rdclibtool: error: 'F77' is not a valid option value for [--tag]={CC|CXX|NASM|RC|disable-static|disable-shared}
I suspect the issue I found is an octave bug.

Edit: I can actually reproduce your issue now, but only with -j1. This program seems like a real mess...

Last edited by orbea; 04-11-2019 at 03:05 PM.
 
Old 04-12-2019, 05:38 PM   #3
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
This compiled and installed fine for me, though it took some time. I don't know if this will work since I've never passed one on before, but here's a link to the binary compiled by sbopkg:

https://www.sendspace.com/file/bj0jl4
 
Old 04-12-2019, 07:44 PM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Quote:
Originally Posted by Lysander666 View Post
This compiled and installed fine for me
Because you are using GNU libtool and not slibtool, slibtool has a habit of exposing program bugs which libtool has been silently ignoring. Although it could also be an slibtool bug too (midipix should be able to tell)...

Unfortunately octave is also broken on current for other reasons.
 
1 members found this post helpful.
Old 04-15-2019, 11:34 AM   #5
slacknedo
LQ Newbie
 
Registered: Apr 2019
Distribution: slackware64-current
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by orbea View Post
Because you are using GNU libtool and not slibtool, slibtool has a habit of exposing program bugs which libtool has been silently ignoring. Although it could also be an slibtool bug too (midipix should be able to tell)...

Unfortunately octave is also broken on current for other reasons.
When i don't use slibtool the compilation interrupt much erlier, i have slibtool 0.5.28.
I tried with all the flag of slibtool [rdc] but the result it's the same.
So it's a octave problem?
 
Old 04-15-2019, 11:42 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
I can confirm that octave and its dependencies (blas and lapack) build fine for me too on slackware64-current (also with 23 jobs), so it might be something specific to your installation.
 
1 members found this post helpful.
Old 04-16-2019, 02:14 AM   #7
slacknedo
LQ Newbie
 
Registered: Apr 2019
Distribution: slackware64-current
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ponce View Post
I can confirm that octave and its dependencies (blas and lapack) build fine for me too on slackware64-current (also with 23 jobs), so it might be something specific to your installation.
blas and lapack build fine for me too, can you tell me what options and environment are you using to build octave?
 
Old 04-16-2019, 05:01 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
I've tried on a clean and full installation of slackware64-current building only blas, lapack and octave, and also on another installation where I had installed also the following optional dependencies: hdf5, ftgl, jdk, portaudio and qt5.
in both cases the build went fine.
 
1 members found this post helpful.
Old 04-16-2019, 08:31 AM   #9
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Does octave build for you with Qt4? It keeps erroring on Qt code here regardless if I use QT=4 or not. My Qt5 install might be too new for octave though.
 
Old 04-16-2019, 08:35 AM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by orbea View Post
Does octave build for you with Qt4? It keeps erroring on Qt code here regardless if I use QT=4 or not. My Qt5 install might be too new for octave though.
yes, it builds with qt5 (using the version -5.9.6- in the unofficial repo for current) and with qt4 (autoselected when qt5 is not installed).
 
Old 04-16-2019, 08:42 AM   #11
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I think I wasn't clear enough. Does it actually build with and link against Qt4 if you have both Qt4 and Qt5 installed while building with "QT=4 ./octave.SlackBuild" as mentioned in the README?
 
Old 04-16-2019, 09:39 AM   #12
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I tried again in a clean Slackware current chroot with only blas and lapack installed and now it has finally compiled. It also links against Qt4, but I am not sure if the QT=4 environment variable works?

Code:
# ldd usr/lib/octave/4.2.2/liboctgui.so.2.0.0 | grep -i qt
	libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xf5948000)
	libQtOpenGL.so.4 => /usr/lib/libQtOpenGL.so.4 (0xf5830000)
	libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xf4c50000)
	libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xf4910000)
Trying again with slibtool shows the same build failures, this is something that will need to be discussed with the slibtool developer, it may be either a slibtool or octave bug, possibly both.
 
Old 04-16-2019, 10:16 AM   #13
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
I think you are using an old version of the repository: octave is at version 5.1.0 on SBo and it builds fine here with QT=4 also when qt5 is installed
Code:
# ldd /usr/lib64/octave/5.1.0/liboctgui.so | grep qt
        libqscintilla2_qt4.so.13 => /usr/lib64/libqscintilla2_qt4.so.13 (0x00007fe6791ac000)
 
Old 04-16-2019, 11:45 AM   #14
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Oops, I failed to update the repository on my chroot which still builds.

Code:
# ldd /usr/lib/octave/5.1.0/liboctgui.so | grep qt
	libqscintilla2_qt4.so.13 => /usr/lib/libqscintilla2_qt4.so.13 (0xf2e30000
This is not the case on my main install.

Code:
+++++++++++++++++++++++++++++++++++++++++++
PRE-CHECK LOG
Using the SBo repository for Slackware 14.2
Queue Process:  Download and build

octave:
  Checking GPG for octave.tar.gz ... OK
  Processing octave 5.1.0-1
  Using original .info file
  Using original SlackBuild file
  Build options: QT="4"

+++++++++++++++++++++++++++++++++++++++++++
And I'm not really sure what to do about this or why I'm getting it.

Code:
  CXX      src/octave_gui-main-gui.o
  CXX      src/octave_gui-octave-build-info.o
  CXX      libgui/liboctgui_la-liboctgui-build-info.lo
  CXX      libgui/qterminal/libqterminal/unix/la-BlockArray.lo
  CXX      libgui/qterminal/libqterminal/unix/la-Emulation.lo
  CXX      libgui/qterminal/libqterminal/unix/la-Filter.lo
  CXX      libgui/qterminal/libqterminal/unix/la-History.lo
  CXX      libgui/qterminal/libqterminal/unix/la-KeyboardTranslator.lo
  CXX      libgui/qterminal/libqterminal/unix/la-konsole_wcwidth.lo
  CXX      libgui/qterminal/libqterminal/unix/la-kpty.lo
  CXX      libgui/qterminal/libqterminal/unix/la-QUnixTerminalImpl.lo
  CXX      libgui/qterminal/libqterminal/unix/la-Screen.lo
  CXX      libgui/qterminal/libqterminal/unix/la-ScreenWindow.lo
  CXX      libgui/qterminal/libqterminal/unix/la-TerminalCharacterDecoder.lo
  CXX      libgui/qterminal/libqterminal/unix/la-Vt102Emulation.lo
  CXX      libgui/qterminal/libqterminal/unix/la-SelfListener.lo
  CXX      libgui/qterminal/libqterminal/unix/la-TerminalModel.lo
  CXX      libgui/qterminal/libqterminal/unix/la-TerminalView.lo
  CXX      libgui/qterminal/libqterminal/la-QTerminal.lo
  CXX      libgui/qterminal/libqterminal/la-moc-QTerminal.lo
In file included from ./config.h:2750,
                 from /usr/include/cmdline.h:47,
                 from /usr/include/define.h:48,
                 from /usr/include/util.h:56,
                 from libgui/qterminal/libqterminal/unix/kpty.cpp:77:
./oct-conf-post.h:96:1: error: template with C linkage
 template <typename T>
 ^~~~~~~~
In file included from libgui/qterminal/libqterminal/unix/kpty.cpp:77:
/usr/include/util.h:52:1: note: ‘extern "C"’ linkage started here
 extern "C" {
 ^~~~~~~~~~
In file included from ./config.h:2750,
                 from /usr/include/cmdline.h:47,
                 from /usr/include/define.h:48,
                 from /usr/include/util.h:56,
                 from libgui/qterminal/libqterminal/unix/kpty.cpp:77:
./oct-conf-post.h:98:1: error: redefinition of ‘template<class T> void octave_unused_parameter(const T&)’
 octave_unused_parameter (const T&)
 ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./config.h:2750,
                 from libgui/qterminal/libqterminal/unix/kpty.cpp:26:
./oct-conf-post.h:98:1: note: ‘template<class T> void octave_unused_parameter(const T&)’ previously declared here
 octave_unused_parameter (const T&)
 ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:17546: libgui/qterminal/libqterminal/unix/la-kpty.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/SBo/octave-5.1.0'
make[1]: *** [Makefile:27055: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/octave-5.1.0'
make: *** [Makefile:10875: all] Error 2
I'm not sure how this differs from slacknedo's compilation issues without slibtool or not.

Last edited by orbea; 04-16-2019 at 11:53 AM.
 
Old 04-18-2019, 03:08 AM   #15
slacknedo
LQ Newbie
 
Registered: Apr 2019
Distribution: slackware64-current
Posts: 22

Original Poster
Rep: Reputation: 0
Ok, I tried to install octave without slibtool and i get
Code:
libtool:   error: cannot find the library '/usr/lib64/libxcb.la' or unhandled argument '/usr/lib64/libxcb.la
If i install the package libxcb-1.11.1-x86_64-1.txz for slackware 14.2 on pkgs.org my window manager crash.
I also without slibtool pass the options QT="4" to sbopkg but the result it's the same.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can not compile octave on Slackware 14 rasitabay Slackware 14 07-09-2013 12:29 PM
[SOLVED] Octave 3.4.2 gives compilation error on Slackware-current 64 Bindestreck Slackware 1 05-25-2012 11:26 AM
GNU Octave compile error and fix without recompile ivanp84 Slackware 2 02-12-2012 04:54 AM
Slackware 13 and Octave 3.2 slackuser998 Slackware 1 09-18-2009 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration