OpenGothic icon indicating copy to clipboard operation
OpenGothic copied to clipboard

[MacOS] Build errors on Apple Silicon arm64 - Tempest engine (libpng), edd-dbg, physfs

Open k-makarov opened this issue 4 years ago • 9 comments

Trying to build project on macOS with arm64 make -C build -j 1

[ 39%] Building C object lib/Tempest/Engine/thirdparty/libpng/CMakeFiles/png_static.dir/pngwutil.c.o
[ 39%] Building C object lib/Tempest/Engine/thirdparty/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o
/Users/k-makarov/Dev/git/OpenGothic/lib/Tempest/Engine/thirdparty/libpng/arm/arm_init.c:49:4: error: "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks"
#  error "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks"
   ^
/Users/k-makarov/Dev/git/OpenGothic/lib/Tempest/Engine/thirdparty/libpng/arm/arm_init.c:86:27: error: implicit declaration of function 'png_have_neon' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
               no_neon = !png_have_neon(pp);
                          ^
2 errors generated.
make[2]: *** [lib/Tempest/Engine/thirdparty/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o] Error 1
make[1]: *** [lib/Tempest/Engine/thirdparty/libpng/CMakeFiles/png_static.dir/all] Error 2
make: *** [all] Error 2

k-makarov avatar Dec 08 '21 22:12 k-makarov

With this discussion trying to set set(PNG_ARM_NEON off CACHE INTERNAL "") in lib/Tempest/Engine/CMakeLists.txt

It fixes the problem but build fails at

[ 95%] Building CXX object lib/edd-dbg/CMakeFiles/edd_dbg.dir/src/unusual.o
[ 95%] Building CXX object lib/edd-dbg/CMakeFiles/edd_dbg.dir/src/osx/debugger.o
[ 95%] Building CXX object lib/edd-dbg/CMakeFiles/edd_dbg.dir/src/osx/envvar.o
[ 95%] Building CXX object lib/edd-dbg/CMakeFiles/edd_dbg.dir/src/osx/frames.o
/Users/k-makarov/Dev/git/OpenGothic/lib/edd-dbg/src/osx/frames.cpp:13:5: error: "unsupported architecture :("
#   error "unsupported architecture :("
    ^
1 error generated.
make[2]: *** [lib/edd-dbg/CMakeFiles/edd_dbg.dir/src/osx/frames.o] Error 1
make[1]: *** [lib/edd-dbg/CMakeFiles/edd_dbg.dir/all] Error 2
make: *** [all] Error 2

seems there's no arm support in edd-dbg

/lib/edd-dbg/src/osx
#if !defined(__i386__) && !defined(__amd64__)
#   error "unsupported architecture :("
#endif

k-makarov avatar Dec 08 '21 23:12 k-makarov

With quick fix in

#if !defined(__i386__) && !defined(__amd64__) **&& !defined(__arm64__)**
#   error "unsupported architecture :("
#endif

build continues but failed when trying to link physfs (Undefined symbols for architecture arm64)

[ 95%] Building C object lib/ZenLib/lib/physfs/CMakeFiles/physfs.dir/src/physfs_archiver_iso9660.c.o
[ 95%] Building C object lib/ZenLib/lib/physfs/CMakeFiles/physfs.dir/src/physfs_archiver_vdf.c.o
[ 96%] Building OBJCXX object lib/ZenLib/lib/physfs/CMakeFiles/physfs.dir/src/physfs_platform_apple.m.o
/Users/k-makarov/Dev/git/OpenGothic/lib/ZenLib/lib/physfs/src/physfs_platform_apple.m:167:9: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
    if (IOMasterPort(MACH_PORT_NULL, &masterPort) != KERN_SUCCESS)
        ^~~~~~~~~~~~
        IOMainPort
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:132:1: note: 'IOMasterPort' has been explicitly marked deprecated here
IOMasterPort( mach_port_t       bootstrapPort,
^
1 warning generated.
[ 96%] Linking OBJCXX shared library ../../../../opengothic/libphysfs.dylib
Undefined symbols for architecture arm64:
  "_CFBooleanGetValue", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_CFRelease", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOBSDNameMatching", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOIteratorNext", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOMasterPort", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOObjectConformsTo", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOObjectRelease", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOObjectRetain", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IORegistryEntryCreateCFProperty", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IORegistryEntryCreateIterator", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOServiceGetMatchingServices", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_NSSearchPathForDirectoriesInDomains", referenced from:
      ___PHYSFS_platformCalcPrefDir in physfs_platform_apple.m.o
  "_OBJC_CLASS_$_NSBundle", referenced from:
      objc-class-ref in physfs_platform_apple.m.o
  "___CFConstantStringClassReference", referenced from:
      CFString in physfs_platform_apple.m.o
  "_objc_autoreleasePoolPop", referenced from:
      ___PHYSFS_platformCalcBaseDir in physfs_platform_apple.m.o
      ___PHYSFS_platformCalcPrefDir in physfs_platform_apple.m.o
  "_objc_autoreleasePoolPush", referenced from:
      ___PHYSFS_platformCalcBaseDir in physfs_platform_apple.m.o
      ___PHYSFS_platformCalcPrefDir in physfs_platform_apple.m.o
  "_objc_msgSend", referenced from:
      ___PHYSFS_platformCalcBaseDir in physfs_platform_apple.m.o
      ___PHYSFS_platformCalcPrefDir in physfs_platform_apple.m.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [opengothic/libphysfs.dylib] Error 1
make[1]: *** [lib/ZenLib/lib/physfs/CMakeFiles/physfs.dir/all] Error 2
make: *** [all] Error 2

k-makarov avatar Dec 08 '21 23:12 k-makarov

Actual physfs builds on arm64 fine tho

k-makarov avatar Dec 08 '21 23:12 k-makarov

Mac os x86_64 - same with physfs from repository lib dependencies (engine) How did you successfully build for mac os?

[ 95%] Building OBJCXX object lib/ZenLib/lib/physfs/CMakeFiles/physfs.dir/src/physfs_platform_apple.m.o
[ 95%] Linking OBJCXX shared library ../../../../opengothic/libphysfs.dylib
Undefined symbols for architecture x86_64:
  "_CFBooleanGetValue", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_CFRelease", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOBSDNameMatching", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOIteratorNext", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOMasterPort", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOObjectConformsTo", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOObjectRelease", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOObjectRetain", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IORegistryEntryCreateCFProperty", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IORegistryEntryCreateIterator", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_IOServiceGetMatchingServices", referenced from:
      ___PHYSFS_platformDetectAvailableCDs in physfs_platform_apple.m.o
  "_NSSearchPathForDirectoriesInDomains", referenced from:
      ___PHYSFS_platformCalcPrefDir in physfs_platform_apple.m.o
  "_OBJC_CLASS_$_NSBundle", referenced from:
      objc-class-ref in physfs_platform_apple.m.o
  "___CFConstantStringClassReference", referenced from:
      CFString in physfs_platform_apple.m.o
  "_objc_autoreleasePoolPop", referenced from:
      ___PHYSFS_platformCalcBaseDir in physfs_platform_apple.m.o
      ___PHYSFS_platformCalcPrefDir in physfs_platform_apple.m.o
  "_objc_autoreleasePoolPush", referenced from:
      ___PHYSFS_platformCalcBaseDir in physfs_platform_apple.m.o
      ___PHYSFS_platformCalcPrefDir in physfs_platform_apple.m.o
  "_objc_msgSend", referenced from:
      ___PHYSFS_platformCalcBaseDir in physfs_platform_apple.m.o
      ___PHYSFS_platformCalcPrefDir in physfs_platform_apple.m.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]: *** [opengothic/libphysfs.dylib] Error 1
make[1]: *** [lib/ZenLib/lib/physfs/CMakeFiles/physfs.dir/all] Error 2
make: *** [all] Error 2
kirill@MacBook-Pro OpenGothic

k-makarov avatar Dec 09 '21 14:12 k-makarov

Hi, @k-makarov !

That's actually a bit odd: I'm building game from QtCreator ide for x86-64 - just works. Tried today to build from command line - that fails, even with correct CC/CXX variables. Checking it out

Try avatar Dec 09 '21 20:12 Try

Manage to build it, here is commandline for Mac:

# make sure to use x64 compiler, not the arm
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

cmake -H. -Bbuild -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
# set target explicitly: dynamic version of physfs is not really needed, but causing troubles
cmake --build ./build --target Gothic2Notr

Try avatar Dec 09 '21 20:12 Try

@Try Ok, I get it and try to specify arch=x86_64 CC, CCX - clang and clang++. This is my printenv:

± printenv
TERM_SESSION_ID=w0t1p0:8C7C75B6-1E28-4109-8394-C162DA027AD4
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.tiFZoK18nk/Listeners
LC_TERMINAL_VERSION=3.4.14
COLORFGBG=15;0
ITERM_PROFILE=Default
XPC_FLAGS=0x0
LANG=ru_RU.UTF-8
PWD=/Users/k-makarov/Dev/git/OpenGothic
SHELL=/bin/zsh
__CFBundleIdentifier=com.googlecode.iterm2
TERM_PROGRAM_VERSION=3.4.14
TERM_PROGRAM=iTerm.app
PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
LC_TERMINAL=iTerm2
COLORTERM=truecolor
COMMAND_MODE=unix2003
TERM=xterm-256color
HOME=/Users/k-makarov
TMPDIR=/var/folders/77/x49mxz6j2dx7xzmltk3ry9z00000gn/T/
USER=k-makarov
XPC_SERVICE_NAME=0
LOGNAME=k-makarov
ITERM_SESSION_ID=w0t1p0:8C7C75B6-1E28-4109-8394-C162DA027AD4
__CF_USER_TEXT_ENCODING=0x0:7:49
SHLVL=1
OLDPWD=/Users/k-makarov/Dev/git
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_CELLAR=/opt/homebrew/Cellar
HOMEBREW_REPOSITORY=/opt/homebrew
HOMEBREW_SHELLENV_PREFIX=/opt/homebrew
MANPATH=/opt/homebrew/share/man::
INFOPATH=/opt/homebrew/share/info:
ZSH=/Users/k-makarov/.oh-my-zsh
PAGER=less
LESS=-R
LSCOLORS=Gxfxcxdxbxegedabagacad
CC=/usr/bin/clang
CXX=/usr/bin/clang++
_=/usr/bin/printenv

First of all cmake -H. -Bbuild -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly.

± cmake -H. -Bbuild -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/clang - 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/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at lib/edd-dbg/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/lib/libsquish/CMakeLists.txt:12 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Warning (dev) at lib/ZenLib/lib/libsquish/CMakeLists.txt:17 (OPTION):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_SHARED_LIBS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at lib/ZenLib/lib/physfs/CMakeLists.txt:174 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'PHYSFS_BUILD_SHARED'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Doxygen not found. You won't be able to build documentation.
-- PhysicsFS will build with the following options:
--   ZIP support: enabled
--   7zip support: enabled
--   GRP support: enabled
--   WAD support: enabled
--   HOG support: enabled
--   MVL support: enabled
--   QPAK support: enabled
--   SLB support: enabled
--   VDF support: enabled
--   ISO9660 support: enabled
--   Build static library: enabled
--   Build shared library: enabled
--   Build stdio test program: disabled
--   Build Doxygen documentation: enabled
CMake Deprecation Warning at lib/ZenLib/utils/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/vdfs/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/zenload/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/daedalus/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/Tempest/Engine/thirdparty/zlib/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/clang
-- Symbol prefix:
-- The OBJCXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting OBJCXX compiler ABI info
-- Detecting OBJCXX compiler ABI info - done
-- Check for working OBJCXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++ - skipped
CMake Deprecation Warning at lib/bullet3/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


Apple
-- 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 OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework
OPENGL FOUND
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework
-- Configuring done
CMake Warning (dev) at lib/bullet3/src/Bullet3Common/CMakeLists.txt:37 (ADD_LIBRARY):
  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/k-makarov/Dev/git/OpenGothic/lib/bullet3/src/Bullet3Common/shared/b3Float4.h
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at lib/bullet3/src/Bullet3Common/CMakeLists.txt:37 (ADD_LIBRARY):
  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/k-makarov/Dev/git/OpenGothic/lib/bullet3/src/Bullet3Common/shared/b3PlatformDefinitions.h
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_OBJCXX_COMPILE_OBJECT
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_OBJCXX_CREATE_STATIC_LIBRARY
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_OBJCXX_COMPILE_OBJECT
CMake Warning (dev):
  Policy CMP0068 is not set: RPATH settings on macOS do not affect
  install_name.  Run "cmake --help-policy CMP0068" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, the install_name fields for
  the following targets are still affected by RPATH settings:

   physfs

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

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

And after cmake --build ./build --target Gothic2Notr

There is

[100%] Building CXX object CMakeFiles/Gothic2Notr.dir/game/world/worldsound.cpp.o
make[3]: *** No rule to make target `lib/ZenLib/lib/physfs/libphysfs.a', needed by `opengothic/Gothic2Notr'.  Stop.
make[2]: *** [CMakeFiles/Gothic2Notr.dir/all] Error 2
make[1]: *** [CMakeFiles/Gothic2Notr.dir/rule] Error 2
make: *** [Gothic2Notr] Error 2

k-makarov avatar Dec 10 '21 15:12 k-makarov

That's odd - my env somewhat same, tested again with clean build directory:

Last login: Thu Dec  9 20:58:11 on ttys002
alexanderveselov@MacBook-Air-Alexander OpenGothic % printenv                                                 
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/zsh
TERM=xterm-256color
TMPDIR=/var/folders/80/j7krqm3j05zc3zx42vlbj_980000gn/T/
TERM_PROGRAM_VERSION=443
TERM_SESSION_ID=757DB474-DB51-460C-BE90-918E8EF38F8F
USER=alexanderveselov
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.xwWo9dB6IR/Listeners
PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
LaunchInstanceID=A9A7064D-E1CD-4963-980D-0F35C932D151
__CFBundleIdentifier=com.apple.Terminal
PWD=/Users/alexanderveselov/Programming/build_tst/OpenGothic
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=1
HOME=/Users/alexanderveselov
LOGNAME=alexanderveselov
SECURITYSESSIONID=186ad
OLDPWD=/Users/alexanderveselov/Programming/build_tst/OpenGothic
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_CELLAR=/opt/homebrew/Cellar
HOMEBREW_REPOSITORY=/opt/homebrew
MANPATH=/opt/homebrew/share/man:/opt/homebrew/share/man:::
INFOPATH=/opt/homebrew/share/info:/opt/homebrew/share/info:
LC_CTYPE=UTF-8
_=/usr/bin/printenv
alexanderveselov@MacBook-Air-Alexander OpenGothic % export CC=/usr/bin/clang
alexanderveselov@MacBook-Air-Alexander OpenGothic % export CXX=/usr/bin/clang++
alexanderveselov@MacBook-Air-Alexander OpenGothic % /Users/alexanderveselov/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -H. -Bbuild -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- 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/clang - 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at lib/edd-dbg/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/lib/libsquish/CMakeLists.txt:12 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Warning (dev) at lib/ZenLib/lib/libsquish/CMakeLists.txt:17 (OPTION):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_SHARED_LIBS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The OBJCXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting OBJCXX compiler ABI info
-- Detecting OBJCXX compiler ABI info - done
-- Check for working OBJCXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
CMake Warning (dev) at lib/ZenLib/lib/physfs/CMakeLists.txt:178 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'PHYSFS_BUILD_SHARED'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Doxygen not found. You won't be able to build documentation.
-- PhysicsFS will build with the following options:
--   ZIP support: enabled
--   7zip support: enabled
--   GRP support: enabled
--   WAD support: enabled
--   HOG support: enabled
--   MVL support: enabled
--   QPAK support: enabled
--   SLB support: enabled
--   VDF support: enabled
--   ISO9660 support: enabled
--   Build static library: enabled
--   Build shared library: enabled
--   Build stdio test program: disabled
CMake Deprecation Warning at lib/ZenLib/utils/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/vdfs/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/zenload/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/ZenLib/daedalus/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at lib/Tempest/Engine/thirdparty/zlib/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- The ASM compiler identification is Clang
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Symbol prefix: 
CMake Deprecation Warning at lib/bullet3/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


Apple
-- 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 OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework   
OPENGL FOUND
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework
-- Configuring done
CMake Warning (dev):
  Policy CMP0068 is not set: RPATH settings on macOS do not affect
  install_name.  Run "cmake --help-policy CMP0068" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, the install_name fields for
  the following targets are still affected by RPATH settings:

   physfs

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

-- Generating done
-- Build files have been written to: /Users/alexanderveselov/Programming/build_tst/OpenGothic/build
alexanderveselov@MacBook-Air-Alexander OpenGothic % 

CMake version is: cmake version 3.19.2, maybe this is can be the cause...

Try avatar Dec 11 '21 20:12 Try

macos build was added to CI: https://ci.appveyor.com/project/Try/opengothic/builds/41891900

Try avatar Dec 14 '21 22:12 Try