build fails on macOS

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

build fails on macOS

bpabbott
Administrator
jwe,

On macOS and using Homebrew for dependencies, the build process broke for me after the changes below.

http://hg.savannah.gnu.org/hgweb/octave/rev/332be8be16eb
http://hg.savannah.gnu.org/hgweb/octave/rev/4b661d535ddb

The error I see is below. Which looks to indicates a variable got dropped or “-framework” was added somewhere by mistake.

        No rule to make target `-framework', needed by `libgui/graphics/__init_qt__.la’

I’m happy to help debug. But need some guidance.

Ben


Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

John W. Eaton
Administrator
On 10/18/2018 10:19 PM, Ben Abbott wrote:

> jwe,
>
> On macOS and using Homebrew for dependencies, the build process broke for me after the changes below.
>
> http://hg.savannah.gnu.org/hgweb/octave/rev/332be8be16eb
> http://hg.savannah.gnu.org/hgweb/octave/rev/4b661d535ddb
>
> The error I see is below. Which looks to indicates a variable got dropped or “-framework” was added somewhere by mistake.
>
> No rule to make target `-framework', needed by `libgui/graphics/__init_qt__.la’
>
> I’m happy to help debug. But need some guidance.
Does the attached change fix the problem for you?

jwe


diffs.txt (566 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

Schöps, Sebastian
On 19 Oct 2018, at 4:31, John W. Eaton wrote:

> On 10/18/2018 10:19 PM, Ben Abbott wrote:
>> On macOS and using Homebrew for dependencies, the build process broke for me after the changes below.
>>
>> http://hg.savannah.gnu.org/hgweb/octave/rev/332be8be16eb
>> http://hg.savannah.gnu.org/hgweb/octave/rev/4b661d535ddb
>>
>> The error I see is below. Which looks to indicates a variable got dropped or “-framework” was added somewhere by mistake.
>>
>> No rule to make target `-framework', needed by `libgui/graphics/__init_qt__.la’
>>
>> I’m happy to help debug. But need some guidance.
>
> Does the attached change fix the problem for you?
Yes, somewhat. Now I see

libtool:   error: cannot find the library 'libinterp/liboctinterp.la' or unhandled argument 'libinterp/liboctinterp.la'
make[2]: *** [libgui/graphics/__init_qt__.la] Error 1
make[2]: *** Waiting for unfinished jobs....

Sebastian

signature.asc (891 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

bpabbott
Administrator
In reply to this post by bpabbott
On Oct 21, 2018, at 2:25 AM, Ben Abbott <[hidden email]> wrote:

On Oct 20, 2018, at 8:41 AM, John W. Eaton <[hidden email]> wrote:

On 10/19/2018 10:08 PM, Ben Abbott wrote:
On Oct 18, 2018, at 9:41 PM, Ben Abbott <[hidden email] <[hidden email]>> wrote:

On Oct 18, 2018, at 9:36 PM, John W. Eaton <[hidden email] <[hidden email]>> wrote:

On 10/19/2018 12:26 AM, Ben Abbott wrote:

I tried removing -framework QtOpenGL from the command, which resulted in …
ld: framework not found QtWidgets
I expect Qt is broken in ./libgui/graphics. We’re just marching down the sequence of Qt frameworks -> "-framework QtOpenGL -framework QtWidgets -framework QtGui -framework QtCore”

Can you try

 make V=1 libgui/liboctgui.la <http://liboctgui.la/>

and see how that is linked?

Or go back to a changeset prior to

 changeset:   25934:332be8be16eb
 user:        John W. Eaton <[hidden email] <[hidden email]>>
 date:        Fri Sep 28 18:18:09 2018 -0400
 summary:     dynamically load qt graphics

which made the libgui/graphics library a separate shared library and see how libgui/liboctgui.la <http://liboctgui.la/> was linked?  Did it use -framework Qt... in the link steps?  How was the QtOpenGL library linked?

jwe

I don’t know what I’m looking for, but that command worked.

Could you please go to changeset a00379f6f8c4 (this is the one just prior to the one mentioned above) and build Octave using make V=1 and show me the commands that are used when creating liboctgui.la?

Does that command use -framework QtOpenGL?  If not, then what Qt library provides the QtOpenGL widgets on OS X systems?  And why does configure appear to find a QtOpenGL module?

jwe

Ok. Beginning with tip

changeset:   25955:53f559a78c6d
bookmark:    @
tag:         tip
user:        John W. Eaton <[hidden email]>
date:        Fri Oct 19 14:22:30 2018 -0400
summary:     eliminate temporary using declarations

I updated to rev a00379f6f8c4

hg update -r a00379f6f8c4

then bootstrap, configure, make. Which completed without error. Finally ...

rm libgui/liboctgui.la 
make V=1 libgui/liboctgui.la 

/bin/sh config.status oct-conf-post.h-tmp oct-conf-post.h
config.status: creating oct-conf-post.h-tmp
config.status: executing oct-conf-post.h commands
/bin/sh ./build-aux/mk-octave-config-h.sh config.h > octave-config.h-t && \
    if [ -s octave-config.h-t ]; then /bin/sh ./build-aux/move-if-change octave-config.h-t octave-config.h; else echo "octave-config.h-t is empty!" 1>&2; rm -f octave-config.h-t; exit 1; fi
rm -f libinterp/builtin-defun-decls.h-t && \
perl ./libinterp/mk-builtins.pl --header  "." -- libinterp/dldfcn/__delaunayn__.cc libinterp/dldfcn/__eigs__.cc libinterp/dldfcn/__fltk_uigetfile__.cc libinterp/dldfcn/__glpk__.cc libinterp/dldfcn/__init_fltk__.cc libinterp/dldfcn/__init_gnuplot__.cc libinterp/dldfcn/__ode15__.cc libinterp/dldfcn/__voronoi__.cc libinterp/dldfcn/amd.cc libinterp/dldfcn/audiodevinfo.cc libinterp/dldfcn/audioread.cc libinterp/dldfcn/ccolamd.cc libinterp/dldfcn/chol.cc libinterp/dldfcn/colamd.cc libinterp/dldfcn/convhulln.cc libinterp/dldfcn/dmperm.cc libinterp/dldfcn/fftw.cc libinterp/dldfcn/gzip.cc libinterp/dldfcn/qr.cc libinterp/dldfcn/symbfact.cc libinterp/dldfcn/symrcm.cc libinterp/corefcn/DASPK-opts.cc libinterp/corefcn/DASRT-opts.cc libinterp/corefcn/DASSL-opts.cc libinterp/corefcn/LSODE-opts.cc libinterp/corefcn/Quad-opts.cc libinterp/octave.cc libinterp/octave-value/ov-base.cc libinterp/octave-value/ov-bool-mat.cc libinterp/octave-value/ov-cell.cc libinterp/octave-value/ov-class.cc libinterp/octave-value/ov-classdef.cc libinterp/octave-value/ov-fcn-handle.cc libinterp/octave-value/ov-fcn-inline.cc libinterp/octave-value/ov-java.cc libinterp/octave-value/ov-null-mat.cc libinterp/octave-value/ov-oncleanup.cc libinterp/octave-value/ov-struct.cc libinterp/octave-value/ov-typeinfo.cc libinterp/octave-value/ov-usr-fcn.cc libinterp/octave-value/ov.cc libinterp/parse-tree/lex.ll libinterp/parse-tree/oct-parse.yy libinterp/parse-tree/profiler.cc libinterp/parse-tree/pt-eval.cc libinterp/parse-tree/pt-jit.cc libinterp/corefcn/__betainc__.cc libinterp/corefcn/__contourc__.cc libinterp/corefcn/__dsearchn__.cc libinterp/corefcn/__expint__.cc libinterp/corefcn/__gammainc__.cc libinterp/corefcn/__ichol__.cc libinterp/corefcn/__ilu__.cc libinterp/corefcn/__lin_interpn__.cc libinterp/corefcn/__magick_read__.cc libinterp/corefcn/__pchip_deriv__.cc libinterp/corefcn/__qp__.cc libinterp/corefcn/balance.cc libinterp/corefcn/besselj.cc libinterp/corefcn/bitfcns.cc libinterp/corefcn/bsxfun.cc libinterp/corefcn/call-stack.cc libinterp/corefcn/cellfun.cc libinterp/corefcn/colloc.cc libinterp/corefcn/conv2.cc libinterp/corefcn/daspk.cc libinterp/corefcn/dasrt.cc libinterp/corefcn/dassl.cc libinterp/corefcn/data.cc libinterp/corefcn/debug.cc libinterp/corefcn/defaults.cc libinterp/corefcn/det.cc libinterp/corefcn/dirfns.cc libinterp/corefcn/display.cc libinterp/corefcn/dlmread.cc libinterp/corefcn/dot.cc libinterp/corefcn/eig.cc libinterp/corefcn/ellipj.cc libinterp/corefcn/environment.cc libinterp/corefcn/error.cc libinterp/corefcn/fft.cc libinterp/corefcn/fft2.cc libinterp/corefcn/fftn.cc libinterp/corefcn/file-io.cc libinterp/corefcn/filter.cc libinterp/corefcn/find.cc libinterp/corefcn/gcd.cc libinterp/corefcn/getgrent.cc libinterp/corefcn/getpwent.cc libinterp/corefcn/getrusage.cc libinterp/corefcn/givens.cc libinterp/corefcn/graphics.cc libinterp/corefcn/gsvd.cc libinterp/corefcn/hash.cc libinterp/corefcn/help.cc libinterp/corefcn/hess.cc libinterp/corefcn/hex2num.cc libinterp/corefcn/input.cc libinterp/corefcn/inv.cc libinterp/corefcn/interpreter.cc libinterp/corefcn/kron.cc libinterp/corefcn/load-path.cc libinterp/corefcn/load-save.cc libinterp/corefcn/lookup.cc libinterp/corefcn/ls-oct-text.cc libinterp/corefcn/lsode.cc libinterp/corefcn/lu.cc libinterp/corefcn/mappers.cc libinterp/corefcn/matrix_type.cc libinterp/corefcn/max.cc libinterp/corefcn/mgorth.cc libinterp/corefcn/nproc.cc libinterp/corefcn/oct-hist.cc libinterp/corefcn/octave-link.cc libinterp/corefcn/ordschur.cc libinterp/corefcn/pager.cc libinterp/corefcn/pinv.cc libinterp/corefcn/pr-flt-fmt.cc libinterp/corefcn/pr-output.cc libinterp/corefcn/psi.cc libinterp/corefcn/quad.cc libinterp/corefcn/quadcc.cc libinterp/corefcn/qz.cc libinterp/corefcn/rand.cc libinterp/corefcn/rcond.cc libinterp/corefcn/regexp.cc libinterp/corefcn/schur.cc libinterp/corefcn/settings.cc libinterp/corefcn/sighandlers.cc libinterp/corefcn/sparse.cc libinterp/corefcn/spparms.cc libinterp/corefcn/sqrtm.cc libinterp/corefcn/str2double.cc libinterp/corefcn/strfind.cc libinterp/corefcn/strfns.cc libinterp/corefcn/sub2ind.cc libinterp/corefcn/svd.cc libinterp/corefcn/sylvester.cc libinterp/corefcn/symtab.cc libinterp/corefcn/syscalls.cc libinterp/corefcn/sysdep.cc libinterp/corefcn/time.cc libinterp/corefcn/toplev.cc libinterp/corefcn/tril.cc libinterp/corefcn/tsearch.cc libinterp/corefcn/typecast.cc libinterp/corefcn/urlwrite.cc libinterp/corefcn/utils.cc libinterp/corefcn/variables.cc > libinterp/builtin-defun-decls.h-t && \
    if [ -s libinterp/builtin-defun-decls.h-t ]; then /bin/sh ./build-aux/move-if-change libinterp/builtin-defun-decls.h-t libinterp/builtin-defun-decls.h; else echo "libinterp/builtin-defun-decls.h-t is empty!" 1>&2; rm -f libinterp/builtin-defun-decls.h-t; exit 1; fi
/bin/sh config.status liboctave/mk-version-h.sh-tmp liboctave/mk-version-h.sh
config.status: creating liboctave/mk-version-h.sh-tmp
config.status: executing liboctave/mk-version-h.sh commands
/bin/sh config.status libinterp/corefcn/mk-mxarray-h.sh-tmp libinterp/corefcn/mk-mxarray-h.sh
config.status: creating libinterp/corefcn/mk-mxarray-h.sh-tmp
config.status: executing libinterp/corefcn/mk-mxarray-h.sh commands
/bin/sh config.status liboctave/external/mk-f77-def.sh-tmp liboctave/external/mk-f77-def.sh
config.status: creating liboctave/external/mk-f77-def.sh-tmp
config.status: executing liboctave/external/mk-f77-def.sh commands
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -std=gnu++11 -fPIC -D_THREAD_SAFE -pthread -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -version-info 4:0:0 -no-undefined -bindir /usr/local/bpabbott/octave/bin -F/usr/local/Cellar/qt/5.10.1/lib   -L/usr/local/opt/hdf5/lib -L/usr/local/Cellar/graphicsmagick/1.3.29/lib  -L/usr/local/Cellar/fftw/3.3.7_1/lib -L/usr/local/Cellar/fftw/3.3.7_1/lib           -L/usr/local/Cellar/arpack/3.5.0/libexec/lib  -L/usr/local/Cellar/fftw/3.3.7_1/lib -L/usr/local/Cellar/fftw/3.3.7_1/lib -L/usr/local/Cellar/pcre/8.42/lib  -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/texinfo/lib -L/usr/local/opt/qt/lib -o libgui/liboctgui.la -rpath /usr/local/bpabbott/octave/lib/octave/5.0.0 libgui/liboctgui_la-liboctgui-build-info.lo libgui/qterminal/libqterminal.la libgui/src/libgui-src.la libgui/graphics/libgui-graphics.la libinterp/liboctinterp.la liboctave/liboctave.la -framework QtNetwork -framework QtOpenGL -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtCore  -lqscintilla2_qt5 -framework OpenGL -L/usr/local/opt/freetype/lib -lfreetype -lhdf5 -lGraphicsMagick++ -lGraphicsMagick -lz -lfftw3_threads -lfftw3 -lfftw3f_threads -lfftw3f -framework OpenGL -lfontconfig -lfreetype   -framework Carbon -lgl2ps    -lcurl -lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -lsuitesparseconfig -larpack -lqrupdate -lfftw3_threads -lfftw3 -lfftw3f_threads -lfftw3f  -L/usr/local/opt/veclibfort/lib -lvecLibFort -lreadline -lncurses  -lpcre -ldl   -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/texinfo/lib -L/usr/local/opt/qt/lib -L/usr/local/Cellar/gcc/8.1.0/lib/gcc/8/gcc/x86_64-apple-darwin17.5.0/8.1.0 -L/usr/local/Cellar/gcc/8.1.0/lib/gcc/8/gcc/x86_64-apple-darwin17.5.0/8.1.0/../../.. -lgfortran -lquadmath -lm  -lm           -liconv   -lm 
libtool: link: rm -fr  libgui/.libs/liboctgui.4.dylib libgui/.libs/liboctgui.dylib libgui/.libs/liboctgui.la libgui/.libs/liboctgui.lai
libtool: link: g++ -std=gnu++11 -dynamiclib  -o libgui/.libs/liboctgui.4.dylib  libgui/.libs/liboctgui_la-liboctgui-build-info.o   -Wl,-force_load,libgui/qterminal/.libs/libqterminal.a -Wl,-force_load,libgui/src/.libs/libgui-src.a -Wl,-force_load,libgui/graphics/.libs/libgui-graphics.a  -L/usr/local/opt/hdf5/lib -L/usr/local/Cellar/graphicsmagick/1.3.29/lib -L/usr/local/Cellar/fftw/3.3.7_1/lib -L/usr/local/Cellar/arpack/3.5.0/libexec/lib -L/usr/local/Cellar/pcre/8.42/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/texinfo/lib -L/usr/local/opt/qt/lib libinterp/.libs/liboctinterp.dylib -L/usr/local/opt/openblas/lib -L/usr/local/opt/veclibfort/lib -L/usr/local/Cellar/gcc/8.1.0/lib/gcc/8/gcc/x86_64-apple-darwin17.5.0/8.1.0 -L/usr/local/Cellar/gcc/8.1.0/lib/gcc/8/gcc/x86_64-apple-darwin17.5.0/8.1.0/../../.. -L/usr/local/opt/freetype/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib /Users/bpabbott/Development/mercurial/default/sources/liboctave/.libs/liboctave.dylib liboctave/.libs/liboctave.dylib -framework QtNetwork -framework QtOpenGL -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtCore -lqscintilla2_qt5 -framework OpenGL -lhdf5 /usr/local/Cellar/graphicsmagick/1.3.29/lib/libGraphicsMagick++.dylib /usr/local/Cellar/graphicsmagick/1.3.29/lib/libGraphicsMagick.dylib -lbz2 -lltdl -lpthread -lz -lfontconfig -lfreetype -framework Carbon -lgl2ps -lcurl -lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -lsuitesparseconfig /usr/local/Cellar/arpack/3.5.0/libexec/lib/libarpack.dylib -lopenblas -lqrupdate -lfftw3_threads -lfftw3 -lfftw3f_threads -lfftw3f -lvecLibFort -lreadline -lncurses -lpcre -ldl -lgfortran -lquadmath -liconv -lm  -pthread -g -O2 -F/usr/local/Cellar/qt/5.10.1/lib -Wl,-dylib_file -Wl,/usr/local/bpabbott/octave/lib/octave/5.0.0/liboctave.6.dylib:/Users/bpabbott/Development/mercurial/default/sources/liboctave/.libs/liboctave.dylib   -pthread -framework OpenGL -framework Carbon -framework QtNetwork -framework QtOpenGL -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtCore -install_name  /usr/local/bpabbott/octave/lib/octave/5.0.0/liboctgui.4.dylib -compatibility_version 5 -current_version 5.0 -Wl,-single_module
libtool: link: (cd "libgui/.libs" && rm -f "liboctgui.dylib" && ln -s "liboctgui.4.dylib" "liboctgui.dylib")
libtool: link: ( cd "libgui/.libs" && rm -f "liboctgui.la" && ln -s "../liboctgui.la" "liboctgui.la" )

Ben

Noticed I dropped the mail-list … correcting that now.

John, let me know if there is additional information that would be useful.

Ben


Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

bpabbott
Administrator
John,

My apologies, the liboctgui.la now builds (the command below completes without error).

make V=1 libgui/liboctgui.la 

However, the build now fails with the same error below.

libtool: link: g++ -std=gnu++11  -o libgui/graphics/.libs/__init_qt__.so -bundle  libgui/graphics/.libs/__init_qt___la-__init_qt__.o libgui/graphics/.libs/__init_qt___la-annotation-dialog.o libgui/graphics/.libs/__init_qt___la-Backend.o libgui/graphics/.libs/__init_qt___la-BaseControl.o libgui/graphics/.libs/__init_qt___la-ButtonControl.o libgui/graphics/.libs/__init_qt___la-ButtonGroup.o libgui/graphics/.libs/__init_qt___la-Canvas.o libgui/graphics/.libs/__init_qt___la-CheckBoxControl.o libgui/graphics/.libs/__init_qt___la-Container.o libgui/graphics/.libs/__init_qt___la-ContextMenu.o libgui/graphics/.libs/__init_qt___la-EditControl.o libgui/graphics/.libs/__init_qt___la-Figure.o libgui/graphics/.libs/__init_qt___la-FigureWindow.o libgui/graphics/.libs/__init_qt___la-GLCanvas.o libgui/graphics/.libs/__init_qt___la-KeyMap.o libgui/graphics/.libs/__init_qt___la-ListBoxControl.o libgui/graphics/.libs/__init_qt___la-Logger.o libgui/graphics/.libs/__init_qt___la-Menu.o libgui/graphics/.libs/__init_qt___la-MouseModeActionGroup.o libgui/graphics/.libs/__init_qt___la-Object.o libgui/graphics/.libs/__init_qt___la-ObjectFactory.o libgui/graphics/.libs/__init_qt___la-ObjectProxy.o libgui/graphics/.libs/__init_qt___la-Panel.o libgui/graphics/.libs/__init_qt___la-PopupMenuControl.o libgui/graphics/.libs/__init_qt___la-PushButtonControl.o libgui/graphics/.libs/__init_qt___la-PushTool.o libgui/graphics/.libs/__init_qt___la-QtHandlesUtils.o libgui/graphics/.libs/__init_qt___la-RadioButtonControl.o libgui/graphics/.libs/__init_qt___la-SliderControl.o libgui/graphics/.libs/__init_qt___la-TextControl.o libgui/graphics/.libs/__init_qt___la-TextEdit.o libgui/graphics/.libs/__init_qt___la-ToggleButtonControl.o libgui/graphics/.libs/__init_qt___la-ToggleTool.o libgui/graphics/.libs/__init_qt___la-ToolBar.o libgui/graphics/.libs/__init_qt___la-gl-select.o libgui/graphics/.libs/__init_qt___la-moc-annotation-dialog.o libgui/graphics/.libs/__init_qt___la-moc-Backend.o libgui/graphics/.libs/__init_qt___la-moc-ButtonControl.o libgui/graphics/.libs/__init_qt___la-moc-ButtonGroup.o libgui/graphics/.libs/__init_qt___la-moc-ContextMenu.o libgui/graphics/.libs/__init_qt___la-moc-EditControl.o libgui/graphics/.libs/__init_qt___la-moc-Figure.o libgui/graphics/.libs/__init_qt___la-moc-FigureWindow.o libgui/graphics/.libs/__init_qt___la-moc-ListBoxControl.o libgui/graphics/.libs/__init_qt___la-moc-Menu.o libgui/graphics/.libs/__init_qt___la-moc-MouseModeActionGroup.o libgui/graphics/.libs/__init_qt___la-moc-Object.o libgui/graphics/.libs/__init_qt___la-moc-ObjectFactory.o libgui/graphics/.libs/__init_qt___la-moc-ObjectProxy.o libgui/graphics/.libs/__init_qt___la-moc-PopupMenuControl.o libgui/graphics/.libs/__init_qt___la-moc-PushTool.o libgui/graphics/.libs/__init_qt___la-moc-SliderControl.o libgui/graphics/.libs/__init_qt___la-moc-TextEdit.o libgui/graphics/.libs/__init_qt___la-moc-ToggleTool.o libgui/graphics/.libs/__init_qt___la-moc-ToolBar.o libgui/graphics/.libs/__init_qt___la-qrc-qthandles.o   -L/usr/local/opt/readline/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/texinfo/lib -L/usr/local/opt/qt/lib libgui/.libs/liboctgui.dylib -L/usr/local/opt/hdf5/lib -L/usr/local/Cellar/graphicsmagick/1.3.29/lib -L/usr/local/Cellar/fftw/3.3.7_1/lib -L/usr/local/Cellar/arpack/3.5.0/libexec/lib -L/usr/local/Cellar/pcre/8.42/lib -L/usr/local/opt/openblas/lib -L/usr/local/opt/veclibfort/lib -L/usr/local/Cellar/gcc/8.1.0/lib/gcc/8/gcc/x86_64-apple-darwin17.5.0/8.1.0 -L/usr/local/Cellar/gcc/8.1.0/lib/gcc/8/gcc/x86_64-apple-darwin17.5.0/8.1.0/../../.. -L/usr/local/opt/freetype/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib /Users/bpabbott/Development/mercurial/default/sources/libinterp/.libs/liboctinterp.dylib -lqscintilla2_qt5 libinterp/.libs/liboctinterp.dylib /Users/bpabbott/Development/mercurial/default/sources/liboctave/.libs/liboctave.dylib -lhdf5 /usr/local/Cellar/graphicsmagick/1.3.29/lib/libGraphicsMagick++.dylib /usr/local/Cellar/graphicsmagick/1.3.29/lib/libGraphicsMagick.dylib -lbz2 -lltdl -lpthread -lz -lfontconfig -lfreetype -lgl2ps liboctave/.libs/liboctave.dylib -lcurl -lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -lsuitesparseconfig /usr/local/Cellar/arpack/3.5.0/libexec/lib/libarpack.dylib -lopenblas -lqrupdate -lfftw3_threads -lfftw3 -lfftw3f_threads -lfftw3f -lvecLibFort -lreadline -lncurses -lpcre -ldl -lgfortran -lquadmath -liconv -framework QtOpenGL -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -lm  -pthread -g -O2 -Wl,-dylib_file -Wl,/usr/local/bpabbott/octave/lib/octave/5.0.0/liboctinterp.6.dylib:/Users/bpabbott/Development/mercurial/default/sources/libinterp/.libs/liboctinterp.dylib -Wl,-dylib_file -Wl,/usr/local/bpabbott/octave/lib/octave/5.0.0/liboctave.6.dylib:/Users/bpabbott/Development/mercurial/default/sources/liboctave/.libs/liboctave.dylib -Wl,-dylib_file -Wl,/usr/local/bpabbott/octave/lib/octave/5.0.0/liboctave.6.dylib:/Users/bpabbott/Development/mercurial/default/sources/liboctave/.libs/liboctave.dylib -Wl,-dylib_file -Wl,/usr/local/bpabbott/octave/lib/octave/5.0.0/liboctave.6.dylib:/Users/bpabbott/Development/mercurial/default/sources/liboctave/.libs/liboctave.dylib   -pthread -framework OpenGL -framework Carbon -framework QtNetwork -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtCore -framework QtOpenGL
ld: framework not found QtOpenGL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgui/graphics/__init_qt__.la] Error 1

Ben

Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

John W. Eaton
Administrator
On 10/24/2018 06:31 PM, Ben Abbott wrote:
> John,
>
> My apologies, the liboctgui.la <http://liboctgui.la> now builds (the
> command below completes without error).
>
> make V=1 libgui/liboctgui.la <http://liboctgui.la>
>
> However, the build now fails with the same error below.
>
 > [...]
 >
>    -pthread -framework OpenGL -framework Carbon -framework QtNetwork
> -framework QtPrintSupport -framework QtHelp -framework QtWidgets
> -framework QtGui -framework QtSql -framework QtCore -framework QtOpenGL
> ld: framework not found QtOpenGL
> clang: *error: *linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: *** [libgui/graphics/__init_qt__.la] Error 1

I don't know how to solve this problem.

Is there no QtOpenGL framework on your system, or does that simply not
exist on OS X systems?  Other Qt modules appear to work with "-framework
QtMODULE" on OS X systems, why not this one?

jwe



Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

bpabbott
Administrator
On Oct 26, 2018, at 5:26 AM, John W. Eaton <[hidden email]> wrote:

On 10/24/2018 06:31 PM, Ben Abbott wrote:
John,
My apologies, the liboctgui.la <http://liboctgui.la> now builds (the command below completes without error).
make V=1 libgui/liboctgui.la <http://liboctgui.la>
However, the build now fails with the same error below.

> [...]
>
  -pthread -framework OpenGL -framework Carbon -framework QtNetwork -framework QtPrintSupport -framework QtHelp -framework QtWidgets -framework QtGui -framework QtSql -framework QtCore -framework QtOpenGL
ld: framework not found QtOpenGL
clang: *error: *linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgui/graphics/__init_qt__.la] Error 1

I don't know how to solve this problem.

Is there no QtOpenGL framework on your system, or does that simply not exist on OS X systems?  Other Qt modules appear to work with "-framework QtMODULE" on OS X systems, why not this one?

jwe

The framework is there and worked in the past.

$ ls -l /usr/local/Cellar/qt/5.10.1/lib/QtOpenGL.framework
total 8
lrwxr-xr-x  1 bpabbott  admin    24 Feb 10  2018 Headers -> Versions/Current/Headers
lrwxr-xr-x  1 bpabbott  admin    25 Feb 10  2018 QtOpenGL -> Versions/Current/QtOpenGL
-r--r--r--  1 bpabbott  admin  1415 Feb 10  2018 QtOpenGL.prl
lrwxr-xr-x  1 bpabbott  admin    26 Feb 10  2018 Resources -> Versions/Current/Resources
drwxr-xr-x  4 bpabbott  admin   128 Feb 10  2018 Versions

I’d venture to guess that the location of the QtOpenGL framework isn’t being passed along.

Over the weekend I can try to revert back and compare what did work with what doesn’t now. The build fails with libgui/graphics/.libs/__init_qt__.so. However, when I try ... 

make libgui/graphics/.libs/__init_qt__.so
make: *** No rule to make target `libgui/graphics/.libs/__init_qt__.so'.  Stop.

I’m obviously not up to speed on the dependencies during the make process. What should I “make" to give us some context to the problem?

Ben

+Sebastian


Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

Mike Miller-4
On Fri, Oct 26, 2018 at 07:32:16 +0900, Ben Abbott wrote:
> make libgui/graphics/.libs/__init_qt__.so
> make: *** No rule to make target `libgui/graphics/.libs/__init_qt__.so'.  Stop.
>
> I’m obviously not up to speed on the dependencies during the make
> process. What should I “make" to give us some context to the problem?

Try

    make V=1 libgui/graphics/__init_qt__.la

--
mike

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

bpabbott
Administrator
On Oct 26, 2018, at 7:38 AM, Mike Miller <[hidden email]> wrote:

On Fri, Oct 26, 2018 at 07:32:16 +0900, Ben Abbott wrote:
make libgui/graphics/.libs/__init_qt__.so
make: *** No rule to make target `libgui/graphics/.libs/__init_qt__.so'.  Stop.

I’m obviously not up to speed on the dependencies during the make
process. What should I “make" to give us some context to the problem?

Try

   make V=1 libgui/graphics/__init_qt__.la


Unfortunately, that didn’t work for me on macOS

make: *** No rule to make target `libgui/graphics/__init_qt__.la'.  Stop.

By chance does that work for you on Linux?

Ben

Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

bpabbott
Administrator
In reply to this post by bpabbott
jwe,

For clearer context, I ...

1) hg update -r a00379f6f8c4
2) bootstrap, configure, make
3) touch libgui/graphics/__init_qt__.cc
4) “make” and copied the result into a00379f6f8c4.txt
5) hg update -C
6) bootstrap, configure, make
7) “make” and copied the result into 456523d3cb4a.txt

The tip fails with "g++ -std=gnu++11  -o libgui/graphics/.libs/__init_qt__.so […]”

ld: framework not found QtOpenGL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgui/graphics/__init_qt__.la] Error 1

I expect the problem is the macOS feature/desire to know the location of other shared libs/frameworks. The successful build includes the info below.

        -F/usr/local/Cellar/qt/5.10.1/lib

This is not present in the build that failed. “gcc —help” indicates

        -F <value>              Add directory to framework include search path

My configure script includes the location information below (which is symbolically linked to "/usr/local/Cellar/qt/5.10.1/lib"

        LDFLAGS="$LDFLAGS -L/usr/local/opt/qt/lib”

To test, I switched “-L” to “-F"

        LDFLAGS="$LDFLAGS -F/usr/local/opt/qt/lib”

With that added, the app builds.

I don’t know how the old process switched the “-L” to “-F”, but the fix doesn’t increase the complexity of my build, to I don’t think it is a problem.

—————

I now see a new problem when building docs.

doc/interpreter/plot.texi:6980: @ref reference to nonexistent node `XREFopenfig' (possibly involving @seealso)
make[2]: *** [doc/interpreter/octave.info] Error 1
make[1]: *** [all-recursive] Error 1

I’m also seeing a new problem with sundials during configure.

onfigure: WARNING: SUNDIALS NVECTOR serial library not found.  Solvers ode15i and ode15s will be disabled.
configure: WARNING: SUNDIALS IDA library not found.  Solvers ode15i and ode15s will be disabled.

These are each separate problems, but I thought I’d mention it incase anyone has some inspired insight.

I expect the doc problem is related to a recent change (I’ll track that down). I’ll also look into configure’s trouble with sundials. If needed, I’ll start new threads for each.

Ben



a00379f6f8c4.txt (18K) Download Attachment
456523d3cb4a.txt (11K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

Rik-4
In reply to this post by bpabbott
On 10/26/2018 05:46 PM, [hidden email] wrote:
Subject:
Re: build fails on macOS
From:
Ben Abbott [hidden email]
Date:
10/26/2018 05:45 PM
To:
John Eaton [hidden email]
CC:
Ben Abbott [hidden email], Octave Maintainers [hidden email], Sebastian Schöps [hidden email]

I now see a new problem when building docs.

doc/interpreter/plot.texi:6980: @ref reference to nonexistent node `XREFopenfig' (possibly involving @seealso)
make[2]: *** [doc/interpreter/octave.info] Error 1
make[1]: *** [all-recursive] Error 1

Temporary problem.  Guillaume added a new function savefig which had openfig in the seealso list, but openfig doesn't yet exist in Octave.  I just fixed the documentation in this changeset to remove openfig (https://hg.savannah.gnu.org/hgweb/octave/rev/29eb60bd2e81).

I’m also seeing a new problem with sundials during configure.

onfigure: WARNING: SUNDIALS NVECTOR serial library not found.  Solvers ode15i and ode15s will be disabled.
configure: WARNING: SUNDIALS IDA library not found.  Solvers ode15i and ode15s will be disabled.

Do you have those libraries installed?  I'm running on Linux, but don't bother to install them so I get this message all the time.  If you need those two particular solvers then you will need to install the libraries.  Otherwise, just carry on with life.

--Rik

Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

bpabbott
Administrator
> On Oct 27, 2018, at 11:17 AM, Rik <[hidden email]> wrote:
>
> On 10/26/2018 05:46 PM, [hidden email] wrote:
>> Subject: Re: build fails on macOS
>> From: Ben Abbott <[hidden email]>
>> Date: 10/26/2018 05:45 PM
>> To: John Eaton <[hidden email]>
>> CC: Ben Abbott <[hidden email]>, Octave Maintainers <[hidden email]>, Sebastian Schöps <[hidden email]>
>>
>> I now see a new problem when building docs.
>>
>> doc/interpreter/plot.texi:6980: @ref reference to nonexistent node `XREFopenfig' (possibly involving @seealso)
>> make[2]: *** [doc/interpreter/octave.info] Error 1
>> make[1]: *** [all-recursive] Error 1
>>
>
> Temporary problem.  Guillaume added a new function savefig which had openfig in the seealso list, but openfig doesn't yet exist in Octave.  I just fixed the documentation in this changeset to remove openfig (https://hg.savannah.gnu.org/hgweb/octave/rev/29eb60bd2e81).
>
>> I’m also seeing a new problem with sundials during configure.
>>
>> onfigure: WARNING: SUNDIALS NVECTOR serial library not found.  Solvers ode15i and ode15s will be disabled.
>> configure: WARNING: SUNDIALS IDA library not found.  Solvers ode15i and ode15s will be disabled.
>>
>
> Do you have those libraries installed?  I'm running on Linux, but don't bother to install them so I get this message all the time.  If you need those two particular solvers then you will need to install the libraries.  Otherwise, just carry on with life.
>
> —Rik

For some reason sundials worked before jwe’s changes, even though it was located in a non-standard location and I didn’t include the -L and -I info.. Now it is behaving as I’d expect. The easy fix was to add the proper -L and -I info. Now all works.

Ben
Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

Sebastian Schöps
bpabbott wrote
> For some reason sundials worked before jwe’s changes, even though it was
> located in a non-standard location and I didn’t include the -L and -I
> info.. Now it is behaving as I’d expect. The easy fix was to add the
> proper -L and -I info. Now all works.

Dear Ben,

do you have a patch for me that fixes the "-L" and "-I"?

Sebastian



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html

Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

bpabbott
Administrator
> On Oct 28, 2018, at 6:08 PM, Sebastian Schöps <[hidden email]> wrote:

>
> bpabbott wrote
>> For some reason sundials worked before jwe’s changes, even though it was
>> located in a non-standard location and I didn’t include the -L and -I
>> info.. Now it is behaving as I’d expect. The easy fix was to add the
>> proper -L and -I info. Now all works.
>
> Dear Ben,
>
> do you have a patch for me that fixes the "-L" and "-I"?
>
> Sebastian
Hi Sebastian,

I’m not referring to the homebrew port file.

I’ve attached the configure script I use the build from my local mercurial archive. I had to modify the Sundials and Qt portion.

Ben


homebrew_configure_octave_v5.sh (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

Sebastian Schöps
bpabbott wrote
> I’ve attached the configure script I use the build from my local mercurial
> archive. I had to modify the Sundials and Qt portion.

Thanks! Indeed, "-F/usr/local/opt/qt/lib" helps also my build. However, I
see (new) crashes when generating the docs:

/bin/sh run-octave --norc --silent --no-history --path
/Users/User/octave/doc/interpreter/ --eval "geometryimages
('doc/interpreter/', 'voronoi', 'txt');"
fatal: caught signal Segmentation fault: 11 -- stopping myself...
Segmentation fault: 11

Do you see the same? I am not sure where this comes from (qt 5.11.2?).

Best,
Sebastian



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html

Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

Dmitri A. Sergatskov


On Sun, Oct 28, 2018 at 12:19 PM Sebastian Schöps <[hidden email]> wrote:
bpabbott wrote
> I’ve attached the configure script I use the build from my local mercurial
> archive. I had to modify the Sundials and Qt portion.

Thanks! Indeed, "-F/usr/local/opt/qt/lib" helps also my build. However, I
see (new) crashes when generating the docs:

/bin/sh run-octave --norc --silent --no-history --path
/Users/User/octave/doc/interpreter/ --eval "geometryimages
('doc/interpreter/', 'voronoi', 'txt');"
fatal: caught signal Segmentation fault: 11 -- stopping myself...
Segmentation fault: 11

Do you see the same? I am not sure where this comes from (qt 5.11.2?).


Will go through if you re-run make ? I have seen those on linux every now and then;
I assume we have some subtle issues with parallel make.

 
Best,
Sebastian


Dmitri.
--
Reply | Threaded
Open this post in threaded view
|

Re: build fails on macOS

bpabbott
Administrator
In reply to this post by Sebastian Schöps
> On Oct 29, 2018, at 2:18 AM, Sebastian Schöps <[hidden email]> wrote:
>
> bpabbott wrote
>> I’ve attached the configure script I use the build from my local mercurial
>> archive. I had to modify the Sundials and Qt portion.
>
> Thanks! Indeed, "-F/usr/local/opt/qt/lib" helps also my build. However, I
> see (new) crashes when generating the docs:
>
> /bin/sh run-octave --norc --silent --no-history --path
> /Users/User/octave/doc/interpreter/ --eval "geometryimages
> ('doc/interpreter/', 'voronoi', 'txt');"
> fatal: caught signal Segmentation fault: 11 -- stopping myself...
> Segmentation fault: 11
>
> Do you see the same? I am not sure where this comes from (qt 5.11.2?).
>
> Best,
> Sebastian


My build was clean.  I’m using qt 5.10.1.

Ben