bugGNU Octave - Bugs: bug #53218, Cannot build octave on MacOS due...


bug #53218: Cannot build octave on MacOS due to a clang linking error

Submitted by:  Maor Shutman <maors>
Submitted on:  Sat 24 Feb 2018 07:05:43 PM UTC  
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Works For Me Assigned to:  None
Originator Name:  maor shutman Open/Closed:  Closed
Release:  4.2.1 Operating System:  Mac OS

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Sun 15 Apr 2018 04:48:05 PM UTC, comment #8:

I don't know exactly what fixed it. I Used scripts given by Ben for configure and make. Without all the compiler flags and PATH changes the build failed for me. The instructions you link don't give these scripts at all so I attach the scripts that Ben sent me. IMHO the instructions should be improved.

(file #43936, file #43937)

Maor Shutman <maors>
Sat 14 Apr 2018 09:24:53 PM UTC, comment #7:

Closing as works for me.

Maor - was the linker error resolved by some specific step? Could the instructions (https://wiki.octave.org/Octave_for_macOS) be improved?

Mike Miller <mtmiller>
Project Administrator
Sat 14 Apr 2018 07:46:09 PM UTC, comment #6:

Yes. Ben Abbott gave me the current instructions. please see:


Maor Shutman <maors>
Fri 13 Apr 2018 12:29:15 PM UTC, comment #5:

Since when is UNIX defined as Linux? FreeBSD uses clang just as macOS. I consider derivatives of BSD to be true UNIX, whereas Linux is a "UNIX like" OS.

Marius Schamschula <mschamschula>
Thu 12 Apr 2018 09:53:48 PM UTC, comment #4:

@Maor: Is this still an issue or did you get Octave to build on macOS?

Rik <rik5>
Project Administrator
Tue 20 Mar 2018 07:17:51 AM UTC, comment #3:

It might be best if you ask for help building Octave on macOS on the Octave maintainers mailing list (https://lists.gnu.org/mailman/listinfo/octave-maintainers). We have several regular developers who work on Octave on macOS that might be able to help you, and we have a working continuous build on macOS. Maybe you can work with them to make the wiki instructions clearer if there is something you are missing.

Setting status to need info since it's not clear whether there are any bugs here to address.

Mike Miller <mtmiller>
Project Administrator
Fri 02 Mar 2018 04:33:37 PM UTC, comment #2:

The further you get away from a true Unix system the harder it is to build. Octave builds very cleanly and easily on Linux systems, on macOS it is somewhat more difficult because Apple substitutes some programs such as the compiler (clang) or the stream editor (sed) which are not 100% compatible, and building for Windows is yet more difficult requiring an entire cross-compilation system of its own.

Rik <rik5>
Project Administrator
Sun 25 Feb 2018 04:46:41 AM UTC, comment #1:

I don't know why it's so hard to build octave.I faced several times problems during building Octave.

Dildar Sk <hodor123456>
Sat 24 Feb 2018 07:05:43 PM UTC, original submission:

Im trying to build octave on macos 10.13.3.
I have installed all the dependencies as shown in https://wiki.octave.org/Building_for_Macintosh_platform, but I get an error when running make.

The make check output is:

preserving existing HG-ID file
/Applications/Xcode.app/Contents/Developer/usr/bin/make check-recursive
preserving existing HG-ID file
Making check in libgnu
/Applications/Xcode.app/Contents/Developer/usr/bin/make check-recursive
make[4]: Nothing to be done for `check-am'.
preserving existing HG-ID file
CXXLD libinterp/liboctinterp.la
libtool: warning: '/usr/local/lib/libarpack.la' seems to be moved
libtool: warning: '/usr/local/gfortran/lib/gcc/x86_64-apple-darwin16/6.3.0/../../../libgfortran.la' seems to be moved
libtool: warning: '/usr/local/gfortran/lib/gcc/x86_64-apple-darwin16/6.3.0/../../../libquadmath.la' seems to be moved
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
"octave::sys::file_stat::~file_stat()", referenced from:
octave_fcn_handle::set_fcn(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in liboctave-value.a(libinterp_octave_value_liboctave_value_la-ov-fcn-handle.o)
initialize_java() in liboctave-value.a(libinterp_octave_value_liboctave_value_la-ov-java.o)
octave::base_parser::frob_function(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, octave_user_function*) in libparse-tree.a(libinterp_parse_tree_libparse_tree_la-oct-parse.o)
Fautoload(octave_value_list const&, int) in libparse-tree.a(libinterp_parse_tree_libparse_tree_la-oct-parse.o)
get_file_line(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long) in libcorefcn.a(libinterp_corefcn_libcorefcn_la-debug.o)
F__mkdir__(octave_value_list const&, int) in libcorefcn.a(libinterp_corefcn_libcorefcn_la-dirfns.o)
Ffopen(octave_value_list const&, int) in libcorefcn.a(libinterp_corefcn_libcorefcn_la-file-io.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libinterp/liboctinterp.la] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2


Maor Shutman <maors>


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

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mschamschula (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by hodor123456 (Posted a comment)
  • -email is unavailable- added by maors (Submitted the item)
  • -email is unavailable- added by maors

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-15 maors Attached File- => Added homebrew_make_octave_v2.sh, #43936
        Attached File- => Added homebrew_configure_octave_v4.sh, #43937
    2018-04-14 mtmiller StatusNeed Info => Works For Me
        Open/ClosedOpen => Closed
    2018-03-20 mtmiller CategoryNone => Configuration and Build System
        StatusNone => Need Info
    2018-02-24 maors Carbon-Copy- => Added -email is unavailable-

    Back to the top

    Powered by Savane 3.3