Skip to content

Instantly share code, notes, and snippets.

@bkirz
Created April 27, 2023 06:35
Show Gist options
  • Save bkirz/02660a7e26d0dcfbfe2128c7189fa84a to your computer and use it in GitHub Desktop.
Save bkirz/02660a7e26d0dcfbfe2128c7189fa84a to your computer and use it in GitHub Desktop.
++ dirname ./Utils/build-release-macos.sh
+ cd ./Utils/..
+ cmake -B Build/release-arm64 -DCMAKE_BUILD_TYPE=Release -DWITH_FULL_RELEASE=On -DCMAKE_OSX_ARCHITECTURES=arm64 -DWITH_CLUB_FANTASTIC=On
-- Could NOT find nasm (missing: NASM_EXECUTABLE)
Unrecognized host processor type
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.26.0/share/cmake/Modules/FetchContent.cmake:1282 (message):
The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
not set. The policy's OLD behavior will be used. When using a URL
download, the timestamps of extracted files should preferably be that of
the time of extraction, otherwise code that depends on the extracted
contents might not be rebuilt if the URL changes. The OLD behavior
preserves the timestamps from the archive instead, but this is usually not
what you want. Update your project to the NEW behavior or specify the
DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
robustness issue.
Call Stack (most recent call first):
src/CMakeLists.txt:541 (FetchContent_Declare)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done (0.3s)
-- Generating done (0.4s)
-- Build files have been written to: /Users/bkirz/dev/itgmania/Build/release-arm64
++ sysctl -n hw.logicalcpu
+ cmake --build Build/release-arm64 -j 10
[ 0%] Built target ffmpeg
[ 0%] Built target glew
[ 0%] Built target ogg
[ 1%] Built target mad
[ 1%] Built target jsoncpp
[ 3%] Built target pcre
[ 3%] Building C object extern/CMakeFiles/zlib.dir/zlib/gzlib.c.o
[ 3%] Built target miniz
[ 5%] Built target lua-5.1
[ 5%] Building C object extern/CMakeFiles/zlib.dir/zlib/gzread.c.o
[ 6%] Built target png
[ 6%] Built target vorbisfile
[ 6%] Building C object extern/CMakeFiles/zlib.dir/zlib/gzwrite.c.o
/Users/bkirz/dev/itgmania/extern/zlib/gzread.c:35:15: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret = read(state->fd, buf + *have, get);
^
/Users/bkirz/dev/itgmania/extern/zlib/gzread.c:35:15: note: did you mean 'fread'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h:158:9: note: 'fread' declared here
size_t fread(void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream);
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:254:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek/Users/bkirz/dev/itgmania/extern/zlib/gzwrite.c:89:20: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
writ = write(state->fd, strm->next_in, put);
^
[ 8%] Built target vorbis
/Users/bkirz/dev/itgmania/extern/zlib/gzwrite.c:89:20: note: did you mean 'fwrite'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h:165:9
^
: note: 'fwrite' declared here
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:254:9:size_t fwrite(const void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite);
^
note: did you mean 'fseek'?
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:14:17: /Users/bkirz/dev/itgmania/extern/zlib/gzwrite.c:119:24: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
writ = write(state->fd, state->x.next, put);
^
note: /Users/bkirz/dev/itgmania/extern/zlib/gzread.cexpanded from macro 'LSEEK'
# define LSEEK lseek:649:
^
11: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret = close(state->fd);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h:162:6: note: 'fseek' declared here
int fseek(FILE *, long, int);
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:260:24: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
2 errors generated.
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:361:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:402:15: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret = LSEEK(state->fd, offset - (z_off64_t)state->x.have, SEEK_CUR);
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:498:14: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
offset = LSEEK(state->fd, 0, SEEK_CUR);
^
/Users/bkirz/dev/itgmania/extern/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
/Users/bkirz/dev/itgmania/extern/zlib/gzwrite.c:673:9: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (close(state->fd) == -1)
^
3 errors generated.
5 errors generated.
make[2]: *** [extern/CMakeFiles/zlib.dir/zlib/gzread.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [extern/CMakeFiles/zlib.dir/zlib/gzwrite.c.o] Error 1
make[2]: *** [extern/CMakeFiles/zlib.dir/zlib/gzlib.c.o] Error 1
make[1]: *** [extern/CMakeFiles/zlib.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] Built target jpeg
[ 12%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/bignum.c.o
[ 12%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha1.c.o
[ 12%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/rsa_alt_helpers.c.o
[ 12%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/timing.c.o
[ 12%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha512.c.o
[ 13%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/version.c.o
[ 13%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/threading.c.o
[ 13%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha256.c.o
[ 13%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/ssl_debug_helpers_generated.c.o
[ 25%] Built target tommath
[ 25%] Building C object extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/version_features.c.o
/Users/bkirz/dev/itgmania/extern/mbedtls/library/bignum.c:1395:29: error: variable 't' set but not used [-Werror,-Wunused-but-set-variable]
mbedtls_mpi_uint c = 0, t = 0;
^
1 error generated.
make[2]: *** [extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/bignum.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [extern/mbedtls/library/CMakeFiles/mbedcrypto.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment