Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error on macOS Catalina #13

Open
andynameistaken opened this issue Oct 7, 2021 · 1 comment
Open

make error on macOS Catalina #13

andynameistaken opened this issue Oct 7, 2021 · 1 comment

Comments

@andynameistaken
Copy link

❯ cmake .
-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found LATEX: /Library/TeX/texbin/latex  found components: XELATEX
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/andy/git/umdoc
❯ make .
❯ make
[  1%] Building CXX object Ext/libnstd/src/CMakeFiles/nstd.dir/Callback.cpp.o
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/Callback.cpp:2:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Callback.hpp:4:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Map.hpp:4:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Debug.hpp:4:
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Base.hpp:59:7: warning: 'operator new' is missing exception specification 'throw(std::bad_alloc)' [-Wmissing-exception-spec]
void* operator new(usize size);
      ^
                               throw(std::bad_alloc)
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Base.hpp:60:7: warning: 'operator new[]' is missing exception specification 'throw(std::bad_alloc)' [-Wmissing-exception-spec]
void* operator new [](usize size);
      ^
                                  throw(std::bad_alloc)
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Base.hpp:61:6: warning: 'operator delete' is missing exception specification 'throw()' [-Wmissing-exception-spec]
void operator delete(void* buffer);
     ^
                                   throw()
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Base.hpp:62:6: warning: 'operator delete[]' is missing exception specification 'throw()' [-Wmissing-exception-spec]
void operator delete[](void* buffer);
     ^
                                     throw()
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/Callback.cpp:2:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Callback.hpp:4:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Map.hpp:5:
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Memory.hpp:27:16: warning: 'operator new' is missing exception specification 'throw(std::bad_alloc)' [-Wmissing-exception-spec]
  friend void* operator new(usize size);
               ^
                                        throw(std::bad_alloc)
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Base.hpp:59:7: note: previous declaration is here
void* operator new(usize size);
      ^
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/Callback.cpp:2:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Callback.hpp:4:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Map.hpp:5:
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Memory.hpp:28:16: warning: 'operator new[]' is missing exception specification 'throw(std::bad_alloc)' [-Wmissing-exception-spec]
  friend void* operator new [](usize size);
               ^
                                           throw(std::bad_alloc)
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Base.hpp:60:7: note: previous declaration is here
void* operator new [](usize size);
      ^
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/Callback.cpp:2:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Callback.hpp:4:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Map.hpp:5:
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Memory.hpp:29:15: warning: 'operator delete' is missing exception specification 'throw()' [-Wmissing-exception-spec]
  friend void operator delete(void* buffer);
              ^
                                            throw()
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Base.hpp:61:6: note: previous declaration is here
void operator delete(void* buffer);
     ^
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/Callback.cpp:2:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Callback.hpp:4:
In file included from /Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Map.hpp:5:
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Memory.hpp:30:15: warning: 'operator delete[]' is missing exception specification 'throw()' [-Wmissing-exception-spec]
  friend void operator delete[](void* buffer);
              ^
                                              throw()
/Users/andy/git/umdoc/Ext/libnstd/src/../include/nstd/Base.hpp:62:6: note: previous declaration is here
void operator delete[](void* buffer);
     ^
8 warnings generated.
[  3%] Building CXX object Ext/libnstd/src/CMakeFiles/nstd.dir/Console.cpp.o
/Users/andy/git/umdoc/Ext/libnstd/src/Console.cpp:15:10: fatal error: 'sys/eventfd.h' file not found
#include <sys/eventfd.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Ext/libnstd/src/CMakeFiles/nstd.dir/Console.cpp.o] Error 1
make[1]: *** [Ext/libnstd/src/CMakeFiles/nstd.dir/all] Error 2
make: *** [all] Error 2
@craflin
Copy link
Owner

craflin commented Oct 8, 2021

Yes, MacOS is not one of the supported platforms. Unfortunately, I cannot help you with that since I don't own a Mac and I don't want to look into cross compilers etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants