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

Fail to build on macOS #157

Open
naymapl opened this issue Mar 6, 2022 · 2 comments
Open

Fail to build on macOS #157

naymapl opened this issue Mar 6, 2022 · 2 comments

Comments

@naymapl
Copy link

naymapl commented Mar 6, 2022

Helo. I try to build it on macOS on apple silicon arm64 but always got error on build.

my cmake:

-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- The C compiler identification is AppleClang 13.0.0.13000029
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test HAVE_C11_SMART_PTRS
-- Performing Test HAVE_C11_SMART_PTRS - Success
-- Performing Test HAVE_STATIC_ASSERT
-- Performing Test HAVE_STATIC_ASSERT - Success
-- Performing Test HAVE_MAKE_UNIQUE
-- Performing Test HAVE_MAKE_UNIQUE - Success
-- Performing Test HAVE_INDEX_SEQUENCE
-- Performing Test HAVE_INDEX_SEQUENCE - Success
-- Performing Test HAVE_VARIADIC_TEMPLATES
-- Performing Test HAVE_VARIADIC_TEMPLATES - Success
-- Performing Test HAVE_WORKING_REGEX
-- Performing Test HAVE_WORKING_REGEX - Success
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for C++ include io.h
-- Looking for C++ include io.h - not found
-- Looking for C++ include share.h
-- Looking for C++ include share.h - not found
-- Looking for C++ include signal.h
-- Looking for C++ include signal.h - found
-- Looking for C++ include sys/stat.h
-- Looking for C++ include sys/stat.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Looking for C++ include poll.h
-- Looking for C++ include poll.h - found
-- Looking for C++ include sys/inotify.h
-- Looking for C++ include sys/inotify.h - not found
-- Looking for C++ include sys/timerfd.h
-- Looking for C++ include sys/timerfd.h - not found
-- Looking for C++ include sys/socket.h
-- Looking for C++ include sys/socket.h - found
-- Looking for C++ include sys/eventfd.h
-- Looking for C++ include sys/eventfd.h - not found
-- Looking for C++ include sys/file.h
-- Looking for C++ include sys/file.h - found
-- Looking for C++ include files X11/Xlib.h, X11/extensions/Xrandr.h
-- Looking for C++ include files X11/Xlib.h, X11/extensions/Xrandr.h - not found
-- Performing Test HAVE_GETOPT_H
-- Performing Test HAVE_GETOPT_H - Success
-- Checking for module 'freetype2'
--   Found freetype2, version 24.1.18
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libz.tbd (found version "1.2.11")
-- Found JPEG: /opt/homebrew/lib/libjpeg.dylib (found version "80")
-- Found PNG: /opt/homebrew/lib/libpng.dylib (found version "1.4.12")
-- 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
-- Looking for backtrace
-- Looking for backtrace - found
-- Could NOT find TinyXML (missing: TinyXML_LIBRARY TinyXML_INCLUDE_DIR)
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/OpenGL.framework
-- Found Epoxy: /opt/homebrew/lib/libepoxy.dylib
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.22.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (READLINE)
  does not match the name of the calling package (Readline).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindReadline.cmake:42 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:320 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found READLINE: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libreadline.tbd
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- Checking for module 'gthread-2.0'
--   Found gthread-2.0, version 2.70.4
-- Checking for module 'gio-2.0'
--   Found gio-2.0, version 2.70.4
-- Checking for module 'gobject-2.0'
--   Found gobject-2.0, version 2.70.4
-- Checking for module 'glib-2.0'
--   Found glib-2.0, version 2.70.4
-- Checking for module 'gtksourceview-3.0'
--   No package 'gtksourceview-3.0' found
-- Found GTK3: /opt/homebrew/Cellar/glib/2.70.4/include;/opt/homebrew/Cellar/glib/2.70.4/include/glib-2.0;/opt/homebrew/Cellar/glib/2.70.4/lib/glib-2.0/include;/opt/homebrew/opt/gettext/include;/opt/homebrew/Cellar/pcre/8.45/include;/opt/homebrew/Cellar/libffi/3.4.2/include (found version "") found components: gthread gio gobject glib missing components: gtksourceview
-- Found CURL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libcurl.tbd (found version "7.77.0")
-- Found SDL2: /opt/homebrew/lib/libSDL2.dylib
-- Found SDL2Mixer: /opt/homebrew/lib/libSDL2_mixer.dylib
-- Using Audio toolkit: SDL_Mixer
-- Performing Test HAVE_X86_64
-- Performing Test HAVE_X86_64 - Failed
-- Found BZip2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libbz2.tbd (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Could NOT find GTest/GMock (missing: gtest/gtest.h gtest-all.cc gmock/gmock.h gmock-all.cc)
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:1231 (add_executable):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /Users/naymapl/openclonk/src/C4Version.h.in
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  Run "cmake --help-policy CMP0071" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  For compatibility, CMake is excluding the GENERATED source file(s):

    "/Users/naymapl/openclonk/build/OCLicenses.cpp"

  from processing by AUTOMOC and AUTOUIC.  If any of the files should be
  processed, set CMP0071 to NEW.  If any of the files should not be
  processed, explicitly exclude them by setting the source file property
  SKIP_AUTOGEN:

    set_property(SOURCE file.h PROPERTY SKIP_AUTOGEN ON)

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/naymapl/openclonk/build

Error from build:

[ 15%] Building C object CMakeFiles/libmisc.dir/src/zlib/gzio.c.o
In file included from /Users/naymapl/openclonk/src/platform/StdSchedulerMac.mm:16:
In file included from /Users/naymapl/openclonk/src/C4Include.h:76:
/Users/naymapl/openclonk/src/config/C4Reloc.h:46:3: warning: explicitly defaulted copy constructor is implicitly deleted [-Wdefaulted-function-deleted]
                const_iterator(const const_iterator&) = default;
                ^
/Users/naymapl/openclonk/src/config/C4Reloc.h:67:37: note: copy constructor of 'const_iterator' is implicitly deleted because field 'temporaryPathInfo' has a deleted copy constructor
                mutable std::unique_ptr<PathInfo> temporaryPathInfo;
                                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1584:3: note: copy constructor is implicitly deleted because 'unique_ptr<C4Reloc::PathInfo>' has a user-declared move constructor
  unique_ptr(unique_ptr&& __u) _NOEXCEPT
  ^
/Users/naymapl/openclonk/src/zlib/gzio.c:638:11: error: implicitly declaring library function 'vsnprintf' with type 'int (char *, unsigned long, const char *, __builtin_va_list)' [-Werror,-Wimplicit-function-declaration]
    len = vsnprintf(buf, sizeof(buf), format, va);
          ^
/Users/naymapl/openclonk/src/zlib/gzio.c:638:11: note: include the header <stdio.h> or explicitly provide a declaration for 'vsnprintf'
1 error generated.
make[2]: *** [CMakeFiles/libmisc.dir/src/zlib/gzio.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /Users/naymapl/openclonk/src/platform/StdSchedulerWin32.cpp:18:
In file included from /Users/naymapl/openclonk/src/C4Include.h:76:
/Users/naymapl/openclonk/src/config/C4Reloc.h:46:3: warning: explicitly defaulted copy constructor is implicitly deleted [-Wdefaulted-function-deleted]
                const_iterator(const const_iterator&) = default;
                ^
/Users/naymapl/openclonk/src/config/C4Reloc.h:67:37: note: copy constructor of 'const_iterator' is implicitly deleted because field 'temporaryPathInfo' has a deleted copy constructor
                mutable std::unique_ptr<PathInfo> temporaryPathInfo;
                                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1584:3: note: copy constructor is implicitly deleted because 'unique_ptr<C4Reloc::PathInfo>' has a user-declared move constructor
  unique_ptr(unique_ptr&& __u) _NOEXCEPT
  ^
1 warning generated.
1 warning generated.
In file included from /Users/naymapl/openclonk/src/platform/StdSchedulerPoll.cpp:17:
In file included from /Users/naymapl/openclonk/src/C4Include.h:76:
/Users/naymapl/openclonk/src/config/C4Reloc.h:46:3: warning: explicitly defaulted copy constructor is implicitly deleted [-Wdefaulted-function-deleted]
                const_iterator(const const_iterator&) = default;
                ^
/Users/naymapl/openclonk/src/config/C4Reloc.h:67:37: note: copy constructor of 'const_iterator' is implicitly deleted because field 'temporaryPathInfo' has a deleted copy constructor
                mutable std::unique_ptr<PathInfo> temporaryPathInfo;
                                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1584:3: note: copy constructor is implicitly deleted because 'unique_ptr<C4Reloc::PathInfo>' has a user-declared move constructor
  unique_ptr(unique_ptr&& __u) _NOEXCEPT
  ^
1 warning generated.
In file included from /Users/naymapl/openclonk/src/platform/C4TimeMilliseconds.cpp:17:
In file included from /Users/naymapl/openclonk/src/C4Include.h:76:
/Users/naymapl/openclonk/src/config/C4Reloc.h:46:3: warning: explicitly defaulted copy constructor is implicitly deleted [-Wdefaulted-function-deleted]
                const_iterator(const const_iterator&) = default;
                ^
/Users/naymapl/openclonk/src/config/C4Reloc.h:67:37: note: copy constructor of 'const_iterator' is implicitly deleted because field 'temporaryPathInfo' has a deleted copy constructor
                mutable std::unique_ptr<PathInfo> temporaryPathInfo;
                                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1584:3: note: copy constructor is implicitly deleted because 'unique_ptr<C4Reloc::PathInfo>' has a user-declared move constructor
  unique_ptr(unique_ptr&& __u) _NOEXCEPT
  ^
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
make[1]: *** [CMakeFiles/libmisc.dir/all] Error 2
make: *** [all] Error 2

Any idea what is wrong. Thank you for any help.

@KoleckOLP
Copy link

That is a shame to hear, I was looking for a macOS build, and the last macOS build is 8.0, 8.1 does not have a build one the website and there are multiple reports of problems here on GitHub.
Is this project still active or is it dead?

@Armag3ddon
Copy link
Contributor

Armag3ddon commented Apr 22, 2023

That is a shame to hear, I was looking for a macOS build, and the last macOS build is 8.0, 8.1 does not have a build one the website and there are multiple reports of problems here on GitHub. Is this project still active or is it dead?

Hey there,

the project can be, for all intents and purposes, considered dead at the moment with no clear plan of revival. We still had an active macOS dev for 8.0 but that person was no longer around for 8.1 and with no one with expertise with macOS or a machine to test on, we couldn't maintain the mac build.

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

3 participants