bugGNU Octave - Bugs: bug #43978, MXE octave-4.1.0+ build failure:...

 
 

bug #43978: MXE octave-4.1.0+ build failure: "dlname is empty in $ltlib!"

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Sun 11 Jan 2015 08:37:43 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  Fixed Assigned to:  lostbard
Originator Name:  Phiilp Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Other
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 14 Jan 2015 10:03:46 PM UTC, comment #9: 

I see the reason: in my main Makefile I still have
OCTAVE_TARGET := octave
rather than " .... default-octave"

so it picked up the wrong .mk file. Building now.

Thx

Philip Nienhuis <philipnienhuis>
Group Member
Wed 14 Jan 2015 08:47:06 PM UTC, comment #8: 

sndfile was added as a dependency a couple of days ago:
http://hg.octave.org/mxe-octave/rev/80b2b5cfde0f and should be detected.

John Donoghue <lostbard>
Group Member
Wed 14 Jan 2015 08:30:57 PM UTC, comment #7: 

Slightly OT follow-up:
The sound functions don't work, it seems they aren't included in the MXE build.
(audioinfo complains about missing sndfile)

Philip Nienhuis <philipnienhuis>
Group Member
Tue 13 Jan 2015 10:05:36 PM UTC, comment #6: 

@John D:
I think it's OK now, mxe just went past "[build] octave" to "[download] openblas" & "[build] openblas" for octave-4.1.0+ w 64-bit indexing.
(I'm curious if the new sound functions work fine on the Windows side. I never use those but it'll be nice to be able to show them)

Thanks for the fixes.

Closing this report as "fixed"

Philip Nienhuis <philipnienhuis>
Group Member
Tue 13 Jan 2015 07:24:03 PM UTC, comment #5: 

Should be patch #8469, sorry  (blush)

Philip Nienhuis <philipnienhuis>
Group Member
Tue 13 Jan 2015 06:50:58 PM UTC, comment #4: 

No, sorry.
My MXE trees are usually a bit modded (~see task #8469 +newer io + mapping pkg etc.) so many changesets do not apply easily.
I've applied the cs manually and got this:

:
:
libtool: install: x86_64-w64-mingw32-ranlib /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/lib/octave/4.1.0+/audiodevinfo.a
libtool: install: warning: remember to run `libtool --finish /home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/lib/octave/4.1.0+'
make  install-data-hook
make[7]: Entering directory '/home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave/octave-4.1.0+/.build/libinterp'
/usr/bin/mkdir -p /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/lib/octave/4.1.0+/oct/x86_64-w64-mingw32
/usr/bin/mkdir -p /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/share/octave/4.1.0+/etc
if [ -n "`cat dldfcn/PKG_ADD`" ]; then \
  /usr/bin/install -c -m 644 dldfcn/PKG_ADD /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/lib/octave/4.1.0+/oct/x86_64-w64-mingw32/PKG_ADD; \
fi
/usr/bin/install -c -m 644 DOCSTRINGS /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/share/octave/4.1.0+/etc/built-in-docstrings
cd /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/lib/octave/4.1.0+ && \
for ltlib in dldfcn/__delaunayn__.la dldfcn/__dsearchn__.la dldfcn/__eigs__.la dldfcn/__fltk_uigetfile__.la dldfcn/__glpk__.la dldfcn/__ichol__.la dldfcn/__ilu__.la dldfcn/__init_fltk__.la dldfcn/__init_gnuplot__.la dldfcn/__magick_read__.la dldfcn/__voronoi__.la dldfcn/amd.la dldfcn/ccolamd.la dldfcn/chol.la dldfcn/colamd.la dldfcn/convhulln.la dldfcn/dmperm.la dldfcn/fftw.la dldfcn/qr.la dldfcn/symbfact.la dldfcn/symrcm.la dldfcn/tsearch.la dldfcn/audioread.la dldfcn/audiodevinfo.la; do \
  f=`echo $ltlib | /usr/bin/sed 's,.*/,,'`; \
  dl=`/usr/bin/sed -n -e "s/dlname='\([^']*\)'/\1/p" < $f`; \
  if [ -n "$dl" ]; then \
    /usr/bin/install -c $dl /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/lib/octave/4.1.0+/oct/x86_64-w64-mingw32/`echo $f | /usr/bin/sed 's,^lib,,; s,\.la$,.oct,'`; \
  else \
    echo "error: dlname is empty in $ltlib!"; \
    exit 1; \
  fi; \
  lnames=`/usr/bin/sed -n -e "s/library_names='\([^']*\)'/\1/p" < $f`; \
  if [ -n "$lnames" ]; then \
    rm -f $f $lnames $dl; \
  fi \
done
error: dlname is empty in dldfcn/audiodevinfo.la!
Makefile:8806: recipe for target 'install-oct' failed
make[7]: *** [install-oct] Error 1


... and then I didn't have time to dig further.
Anyway I think it is better if I re-clone mxe-octave and start over again. Tonight I may have time for that.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 13 Jan 2015 05:29:00 PM UTC, comment #3: 

Any luck on rebuilding?

John Donoghue <lostbard>
Group Member
Mon 12 Jan 2015 03:27:52 AM UTC, comment #2: 
John Donoghue <lostbard>
Group Member
Sun 11 Jan 2015 09:15:28 PM UTC, comment #1: 

The issue is with libuuid in mxe-octave not allowing a dynamic link for the new audio functions and so creating the dynamic library fails.

It shows up as a warning earlier on in the compile but ends up being a error during install.

I have fixed uuid, and added libsndfile and portaudio to default-octave but havent pushed the changeset yet as am waiting for it to finish compiling on my machine.


John Donoghue <lostbard>
Group Member
Sun 11 Jan 2015 08:37:43 PM UTC, original submission:  

When (cross-) building Octave for Windows, the build of Octave-4.1.0+ fails at -AFAICS- "install" time:


:
/usr/bin/install -c -m 644 DOCSTRINGS /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/share/octave/4.1.0+/etc/built-in-docstrings
cd /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/lib/octave/4.1.0+ && \
for ltlib in dldfcn/__delaunayn__.la dldfcn/__dsearchn__.la dldfcn/__eigs__.la dldfcn/__fltk_uigetfile__.la dldfcn/__glpk__.la dldfcn/__ichol__.la dldfcn/__ilu__.la dldfcn/__init_fltk__.la dldfcn/__init_gnuplot__.la dldfcn/__magick_read__.la dldfcn/__voronoi__.la dldfcn/amd.la dldfcn/ccolamd.la dldfcn/chol.la dldfcn/colamd.la dldfcn/convhulln.la dldfcn/dmperm.la dldfcn/fftw.la dldfcn/qr.la dldfcn/symbfact.la dldfcn/symrcm.la dldfcn/tsearch.la dldfcn/audioread.la dldfcn/audiodevinfo.la; do \
  f=`echo $ltlib | /usr/bin/sed 's,.*/,,'`; \
  dl=`/usr/bin/sed -n -e "s/dlname='\([^']*\)'/\1/p" < $f`; \
  if [ -n "$dl" ]; then \
    /usr/bin/install -c $dl /home/philip/devel/octdev/mxe/mxe64_141227/tmp-octave-install/home/philip/devel/octdev/mxe/mxe64_141227/usr/x86_64-w64-mingw32/lib/octave/4.1.0+/oct/x86_64-w64-mingw32/`echo $f | /usr/bin/sed 's,^lib,,; s,\.la$,.oct,'`; \
  else \
    echo "error: dlname is empty in $ltlib!"; \
    exit 1; \
  fi; \
  lnames=`/usr/bin/sed -n -e "s/library_names='\([^']*\)'/\1/p" < $f`; \
  if [ -n "$lnames" ]; then \
    rm -f $f $lnames $dl; \
  fi \
done
error: dlname is empty in dldfcn/audiodevinfo.la!
Makefile:8806: recipe for target 'install-oct' failed
make[7]: *** [install-oct] Error 1


AFAICS Octave seems to have been built fine.
IIRC I've seen this over a week ago as well, but after that time I've added --without-sndfile and --without-portaudio flags to the configure options in octave.mk. I just tried again without.

BTW I build MXE with --enable-64

hg -v summary:
parent: 19564:c304687571c8 tip
 fullfile.m: properly process file separators .....

Philip Nienhuis <philipnienhuis>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-13 philipnienhuis StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2015-01-12 lostbard StatusNone Ready For Test
    2015-01-11 lostbard Assigned toNone lostbard

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code