bugGNU Octave - Bugs: bug #57186, [mxe-octave] Build error: cannot...

 
 

bug #57186: [mxe-octave] Build error: cannot find the library 'libgui/liboctgui.la' or unhandled argument 'libgui/liboctgui.la'

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Thu 07 Nov 2019 01:23:55 PM UTC
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

( Jump to the original submission )

Fri 08 Nov 2019 05:25:26 PM UTC, comment #8: 
Mike Miller <mtmiller>
Project Administrator
Fri 08 Nov 2019 10:00:27 AM UTC, comment #7: 

With that tiny fix Octave got cross-built. In the maintainers ML I saw Ben applied the same fix.

Philip Nienhuis <philipnienhuis>
Project Member
Fri 08 Nov 2019 07:53:18 AM UTC, comment #6: 

(Just one l***y '$' character ...)

I spotted & adapted it and am trying again.

Makes me wonder why it's only adverse on crossbuilds.

Philip Nienhuis <philipnienhuis>
Project Member
Thu 07 Nov 2019 10:27:43 PM UTC, comment #5: 

Oops, in my change to configure.ac it should have been

  LIBOCTGUI_LINK_DEPS="$QT_LIBS $QT_OPENGL_LIBS"

I missed the $ before the QT_OPENGL_LIBS.  I'll check in a fix soon.

John W. Eaton <jwe>
Project Administrator
Thu 07 Nov 2019 10:18:23 PM UTC, comment #4: 

Unfortunately there's now another error: "error: QT_OPENGL_LIBS: No such file or directory", see below for more of the log.
Still builds fine on Linux, but I started a new build tree there because there was a new configure.ac.

@JWE:
Is what I did in mxe-octave (see comment #2) sufficient w.r.t. starting a new octave build tree in an existing mxe-octave build tree?

:
:
rm -f src/octave-cli-6.0.0.exe && \
cd src && ln -s octave-cli.exe octave-cli-6.0.0.exe
libtool: link: ( cd "libgui/.libs" && rm -f "liboctgui.la" && ln -s "../liboctgui.la" "liboctgui.la" )
/bin/sh ./libtool  --tag=CXX   --mode=link x86_64-w64-mingw32-g++  -fopenmp -Wall -W -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -no-undefined -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/qt5/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/qt5/lib   -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib  -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib   -Wl,-rpath-link,/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/qt5/lib -Wl,--export-all-symbols -o src/octave-gui.exe src/octave_gui-main-gui.o src/octave_gui-octave-build-info.o libgui/liboctgui.la libinterp/liboctinterp.la liboctave/liboctave.la libgnu/libgnu.la -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2_qt5 QT_OPENGL_LIBS -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -lfreetype -lhdf5 -lGraphicsMagick++ -lGraphicsMagick -lz -lfftw3 -lfftw3f -lopengl32 -lglu32 -lfontconfig -lfreetype    -lgl2ps  -ladvapi32 -llapack -lpsapi -lgdi32  -lm
libtool: link: x86_64-w64-mingw32-g++ -fopenmp -Wall -W -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -Wl,-rpath-link -Wl,/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -Wl,--export-all-symbols -o src/.libs/octave-gui.exe src/octave_gui-main-gui.o src/octave_gui-octave-build-info.o QT_OPENGL_LIBS  -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/qt5/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib libgui/.libs/liboctgui.dll.a -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/mingw/lib /home/philip/devel/octdev/mxe/mxe_64w_20190901/tmp-default-octave/octave-6.0.0/.build/libinterp/.libs/liboctinterp.dll.a libinterp/.libs/liboctinterp.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/tmp-default-octave/octave-6.0.0/.build/liboctave/.libs/liboctave.dll.a liboctave/.libs/liboctave.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libcurl.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libssh2.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libgcrypt.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libgpg-error.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libgnutls.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libidn2.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libunistring.dll.a -lnettle -lhogweed /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libgmp.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libpcreposix.dll.a -lcrypt32 -lwldap32 -lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -lsuitesparseconfig /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libarpack.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libqrupdate.dll.a -lxerbla -lblas /home/philip/devel/octdev/mxe/mxe_64w_20190901/tmp-default-octave/octave-6.0.0/.build/liboctave/external/blas-xtra/.libs/libxerbla.dll.a -lreadline -ltermcap /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libpcre.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/lib/gcc/x86_64-w64-mingw32/7.4.0/libgfortran.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/lib/gcc/x86_64-w64-mingw32/7.4.0/libquadmath.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/7.4.0/libgomp.dll.a libgnu/.libs/libgnu.a -lQt5Network -lQt5PrintSupport -lQt5Help -lQt5Widgets -lQt5Gui -lQt5Sql -lQt5Xml -lQt5Core -lqscintilla2_qt5 /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libhdf5.dll.a -lws2_32 /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libGraphicsMagick++.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/lib/gcc/x86_64-w64-mingw32/7.4.0/libstdc++.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libGraphicsMagick.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/liblcms2.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/liblzma.dll.a -lbz2 /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libltdl.dll.a -lpthread -lz /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libfftw3.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libfftw3f.dll.a -lopengl32 -lglu32 /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libfontconfig.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libexpat.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libintl.dll.a /home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/libiconv.dll.a -lfreetype -lgl2ps -ladvapi32 -llapack -lpsapi -lgdi32 -pthread -fopenmp -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/octave/6.0.0 -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/lib/gcc/x86_64-w64-mingw32/7.4.0 -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/7.4.0
x86_64-w64-mingw32-g++: error: QT_OPENGL_LIBS: No such file or directory
make[4]: *** [Makefile:15702: src/octave-gui.exe] Error 1

Philip Nienhuis <philipnienhuis>
Project Member
Thu 07 Nov 2019 08:22:33 PM UTC, comment #3: 

@Mike:
I retried after wiping directories /octave plus the relevant dlls and exes and the relevant octave & octave-6.0.0 subdirs in /usr/x68_64-w64-mingw32/ (bin/, include/, lib/, libexec/ and share/) in the mxe-octave build tree.
Building a complete new mxe-octave tree takes about 20 hours or more on my current build box (a Lenovo X230 core i5 laptop) so I try to keep mxe-octave build trees alive for some time (2-3 months), with hg pull/updates to keep it current.

@JWE:
Thanks, I've started a new build (Linux first of course). As soon as mxe-octave "default-octave" has been built (or failed again) I'll report back here (I guess within ~1 hour).
BTW, (just curious) why is there an /octave subdir in mxe-octave, plus the installed files in /usr/x68_64-w64-mingw32/ ? It seems like mere duplicates.

Philip Nienhuis <philipnienhuis>
Project Member
Thu 07 Nov 2019 07:27:07 PM UTC, comment #2: 

I pushed the following changeset:

  http://hg.savannah.gnu.org/hgweb/octave/rev/93f4e5e65fcd

Does that fix the build for you?

John W. Eaton <jwe>
Project Administrator
Thu 07 Nov 2019 06:56:03 PM UTC, comment #1: 

I'm not building mxe-octave these days, but this looks a lot like https://lists.gnu.org/archive/html/octave-maintainers/2019-11/msg00033.html. Have you tried deleting your octave build directory entirely?

Mike Miller <mtmiller>
Project Administrator
Thu 07 Nov 2019 01:23:55 PM UTC, original submission:  

With tip 27650:2c8fc292ff2c I get a crossbuild error (on Linux dev Octave gets built fine):

:
/bin/sh ./libtool  --tag=CXX   --mode=link x86_64-w64-mingw32-g++  -fopenmp -Wall -W -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -no-undefined   -Wl,-rpath-link,/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/qt5/lib -Wl,--export-all-symbols -o src/octave-cli.exe src/octave_cli-main-cli.o src/octave_cli-octave-build-info.o libinterp/liboctinterp.la liboctave/liboctave.la libgnu/libgnu.la  -lpsapi -lgdi32  -lm
libtool: link: ( cd "libinterp/dldfcn/.libs" && rm -f "symbfact.la" && ln -s "../symbfact.la" "symbfact.la" )
/bin/sh ./libtool  --tag=CXX   --mode=link x86_64-w64-mingw32-g++  -fopenmp -Wall -W -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/qt5/lib  -Wl,-rpath-link,/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/lib -L/home/philip/devel/octdev/mxe/mxe_64w_20190901/usr/x86_64-w64-mingw32/qt5/lib -Wl,--export-all-symbols -o libgui/graphics/libgraphics.la  libgui/graphics/libgraphics_la-BaseControl.lo libgui/graphics/libgraphics_la-ButtonControl.lo libgui/graphics/libgraphics_la-ButtonGroup.lo libgui/graphics/libgraphics_la-Canvas.lo libgui/graphics/libgraphics_la-CheckBoxControl.lo libgui/graphics/libgraphics_la-Container.lo libgui/graphics/libgraphics_la-ContextMenu.lo libgui/graphics/libgraphics_la-EditControl.lo libgui/graphics/libgraphics_la-Figure.lo libgui/graphics/libgraphics_la-FigureWindow.lo libgui/graphics/libgraphics_la-GLCanvas.lo libgui/graphics/libgraphics_la-KeyMap.lo libgui/graphics/libgraphics_la-ListBoxControl.lo libgui/graphics/libgraphics_la-Logger.lo libgui/graphics/libgraphics_la-Menu.lo libgui/graphics/libgraphics_la-Object.lo libgui/graphics/libgraphics_la-ObjectProxy.lo libgui/graphics/libgraphics_la-Panel.lo libgui/graphics/libgraphics_la-PopupMenuControl.lo libgui/graphics/libgraphics_la-PushButtonControl.lo libgui/graphics/libgraphics_la-PushTool.lo libgui/graphics/libgraphics_la-QtHandlesUtils.lo libgui/graphics/libgraphics_la-RadioButtonControl.lo libgui/graphics/libgraphics_la-SliderControl.lo libgui/graphics/libgraphics_la-Table.lo libgui/graphics/libgraphics_la-TextControl.lo libgui/graphics/libgraphics_la-TextEdit.lo libgui/graphics/libgraphics_la-ToggleButtonControl.lo libgui/graphics/libgraphics_la-ToggleTool.lo libgui/graphics/libgraphics_la-ToolBar.lo libgui/graphics/libgraphics_la-annotation-dialog.lo libgui/graphics/libgraphics_la-gl-select.lo libgui/graphics/libgraphics_la-qt-graphics-toolkit.lo libgui/graphics/libgraphics_la-moc-ButtonControl.lo libgui/graphics/libgraphics_la-moc-ButtonGroup.lo libgui/graphics/libgraphics_la-moc-Canvas.lo libgui/graphics/libgraphics_la-moc-Container.lo libgui/graphics/libgraphics_la-moc-ContextMenu.lo libgui/graphics/libgraphics_la-moc-EditControl.lo libgui/graphics/libgraphics_la-moc-Figure.lo libgui/graphics/libgraphics_la-moc-FigureWindow.lo libgui/graphics/libgraphics_la-moc-ListBoxControl.lo libgui/graphics/libgraphics_la-moc-Menu.lo libgui/graphics/libgraphics_la-moc-Object.lo libgui/graphics/libgraphics_la-moc-ObjectProxy.lo libgui/graphics/libgraphics_la-moc-PopupMenuControl.lo libgui/graphics/libgraphics_la-moc-PushTool.lo libgui/graphics/libgraphics_la-moc-SliderControl.lo libgui/graphics/libgraphics_la-moc-Table.lo libgui/graphics/libgraphics_la-moc-TextEdit.lo libgui/graphics/libgraphics_la-moc-ToggleTool.lo libgui/graphics/libgraphics_la-moc-ToolBar.lo libgui/graphics/libgraphics_la-moc-annotation-dialog.lo libgui/graphics/libgraphics_la-moc-qt-graphics-toolkit.lo libgui/liboctgui.la libinterp/liboctinterp.la liboctave/liboctave.la -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Core -lopengl32 -lglu32 -lpsapi -lgdi32  -lm
libtool: link: ( cd "libinterp/dldfcn/.libs" && rm -f "qr.la" && ln -s "../qr.la" "qr.la" )
/usr/bin/install -c libinterp/dldfcn/.libs/__delaunayn__.dll libinterp/dldfcn/__delaunayn__.oct
/usr/bin/install -c libinterp/dldfcn/.libs/__eigs__.dll libinterp/dldfcn/__eigs__.oct
/usr/bin/install -c libinterp/dldfcn/.libs/__fltk_uigetfile__.dll libinterp/dldfcn/__fltk_uigetfile__.oct
/usr/bin/install -c libinterp/dldfcn/.libs/__glpk__.dll libinterp/dldfcn/__glpk__.oct
/usr/bin/install -c libinterp/dldfcn/.libs/__init_fltk__.dll libinterp/dldfcn/__init_fltk__.oct
/usr/bin/install -c libinterp/dldfcn/.libs/__init_gnuplot__.dll libinterp/dldfcn/__init_gnuplot__.oct
/usr/bin/install -c libinterp/dldfcn/.libs/__ode15__.dll libinterp/dldfcn/__ode15__.oct
/usr/bin/install -c libinterp/dldfcn/.libs/__voronoi__.dll libinterp/dldfcn/__voronoi__.oct
/usr/bin/install -c libinterp/dldfcn/.libs/amd.dll libinterp/dldfcn/amd.oct
/usr/bin/install -c libinterp/dldfcn/.libs/audiodevinfo.dll libinterp/dldfcn/audiodevinfo.oct
/usr/bin/install -c libinterp/dldfcn/.libs/audioread.dll libinterp/dldfcn/audioread.oct
/usr/bin/install -c libinterp/dldfcn/.libs/ccolamd.dll libinterp/dldfcn/ccolamd.oct
/usr/bin/install -c libinterp/dldfcn/.libs/chol.dll libinterp/dldfcn/chol.oct
/usr/bin/install -c libinterp/dldfcn/.libs/colamd.dll libinterp/dldfcn/colamd.oct
/usr/bin/install -c libinterp/dldfcn/.libs/convhulln.dll libinterp/dldfcn/convhulln.oct
/usr/bin/install -c libinterp/dldfcn/.libs/dmperm.dll libinterp/dldfcn/dmperm.oct
/usr/bin/install -c libinterp/dldfcn/.libs/fftw.dll libinterp/dldfcn/fftw.oct
/usr/bin/install -c libinterp/dldfcn/.libs/gzip.dll libinterp/dldfcn/gzip.oct
/usr/bin/install -c libinterp/dldfcn/.libs/qr.dll libinterp/dldfcn/qr.oct
/usr/bin/install -c libinterp/dldfcn/.libs/symbfact.dll libinterp/dldfcn/symbfact.oct
libtool:   error: cannot find the library 'libgui/liboctgui.la' or unhandled argument 'libgui/liboctgui.la'
make[4]: *** [Makefile:11457: libgui/graphics/libgraphics.la] Error 1
make[4]: *** Waiting for unfinished jobs....

Philip Nienhuis <philipnienhuis>
Project 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 jwe (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 project members can vote.

     

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-08 mtmiller StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2019-11-07 jwe StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.9