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 SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: Need InfoAssigned to: None
Originator Name: maor shutmanOpen/Closed: Open
Release: 4.2.1Operating System: Mac OS

Add a New Comment(Rich Markup)

You are not logged in

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


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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 Mar 2018 07:17:51 AM UTCmtmillerCategoryNone=>Configuration and Build System
      StatusNone=>Need Info
    Sat 24 Feb 2018 07:05:43 PM UTCmaorsCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1