Menu

#56 Error when compiling

2.1.0
open
nobody
None
5
2020-06-04
2018-09-28
No

Hey,
when installing the Mac build, I run through an error that says:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I.. -O0 -c gnDefs.cpp -o gnDefs.o
gnDefs.cpp:8:7: error: 'abs' is missing exception specification 'throw()'
int64 abs( int64 a ){
      ^
                     throw()
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:113:44: note: previous declaration is
      here
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
                                           ^
1 error generated.

It looks like it can't compile the file gnDefs.cpp in libGenome. Any advice?

Thanks!!

Discussion

  • Ekaterina Bocharova

    Hi!

    I have the same error:

    gnDefs.cpp:8:7: error: 'abs' is missing exception specification 'throw()'
    int64 abs( int64 a ){
    ^
    throw()
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:113:44: note:
    previous declaration is here
    inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT ...
    ^
    1 error generated.
    make[1]: [gnDefs.lo] Error 1
    make[1]:
    Waiting for unfinished jobs....
    make: *** [install-recursive] Error 1

    I'm compiling on macOS Catalina v 10.15.3 and couldn't find libGenome after the process was finished.

    Could you solve this problem?

    Thank you!

     
  • Ann Gill

    Ann Gill - 2020-06-04

    I have the same problem-- macOS Catalina v 10.15.4

     

Log in to post a comment.