Closed Colerar closed 1 year ago
Data point: I just built using macOS 12.6.6 with 14.2 installed.
90 warnings generated.
[100%] Linking C executable lzfse
[100%] Built target lzfse_cli
$ file afsctool
afsctool: Mach-O 64-bit executable arm64
This usually means that your header search paths are not configured properly.
The same system as yours - all works.
But I can see that your compiler is looking for headers in /usr/local/opt/llvm
which is not where xcode headers are - so as described in the error message - fix your paths.
But I can see that your compiler is looking for headers in
/usr/local/opt/llvm
which is not where xcode headers are - so as described in the error message - fix your paths.
You can also see the AppleClang v14.0.3.14030022 Build Log, Apple Clang is looking for /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk
, but the build is still failed.
Ohh have not seen your second build. Weird that it fails.
Okay, after do some magic, I can build with MacOSX12.3.sdk
:
/Library/Developer/CommandLineTools/SDKs
❯ sudo mv MacOSX13.3.sdk MacOSX13.3.sdk.bak
/Library/Developer/CommandLineTools/SDKs
❯ sudo ln -s MacOSX12.3.sdk MacOSX13.3.sdk
So maybe afsctool
is incompatible with MacOSX13.3.sdk
?
but I am building against MacOSX13.3.sdk as you can see and all is fine...
Some warning only
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h:210:1: note: 'mktemp' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) attribute((deprecated(_msg)))
^
1 warning generated.
So maybe
afsctool
is incompatible withMacOSX13.3.sdk
?
No, as shown. Is your installation configured to use the command line toolchain only or the full Xcode? Not that it should make a difference for afsctool ... but maybe there is a difference. (And maybe the distinction has been removed since I last looked 8) )
@Colerar what was the issue BTW?
Fixed after completely reinstalling the Xcode command line tool and upgrading the Xcode.app
.
I think I had run into something similar at one point which was solved by running sudo xcode-select --switch /Applications/Xcode.app
, but I'm not sure it was the same issue.
I think I had run into something similar at one point which was solved by running
sudo xcode-select --switch /Applications/Xcode.app
, but I'm not sure it was the same issue.
this worked for me thank you!
System: macOS Ventura 13.4 (22F66) CPU:
x86_64
Intel Branch:master
Commit: https://github.com/RJVB/afsctool/commit/8b89d8f20e8dbb3efddbbca1f9f7852318727d87Homebrew Clang v16.0.5 Build Log
``` ~/Developer/afsctool/build master* ❯ cmake -Wno-dev .. -- The C compiler identification is Clang 16.0.5 -- The CXX compiler identification is Clang 16.0.5 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/local/opt/ccache/libexec/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: /usr/local/opt/ccache/libexec/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- 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 void* -- Check size of void* - done -- sizeof(void*)=8 -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") -- Checking for module 'zlib' -- Found zlib, version 1.2.11 -- Found ZLIBP: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include (found suitable version "1.2.11", minimum required is "1.2.8") -- Checking for module 'libsparsehash' -- Found libsparsehash, version 2.0.2 -- Found SPARSEHASH: /usr/local/Cellar/google-sparsehash/2.0.4/include (found version "2.0.2") -- Enabling LZVN and (possibly) LZFSE support -- Performing Test CFLAG_Wall -- Performing Test CFLAG_Wall - Success -- Performing Test CFLAG_Wno_unknown_pragmas -- Performing Test CFLAG_Wno_unknown_pragmas - Success -- Performing Test CFLAG_Wno_unused_variable -- Performing Test CFLAG_Wno_unused_variable - Success -- Setting afsctool version to: 1.7.3. (v1.7.3-5-g8b89d8f) -- The following OPTIONAL packages have been found: * Git -- The following REQUIRED packages have been found: * ZLIBP (required version >= 1.2.8), zlib compression library,AppleClang v14.0.3.14030022 Build Log
``` ~/Developer/afsctool/build-appleclang master* ❯ cmake -Wno-dev .. -- The C compiler identification is AppleClang 14.0.3.14030022 -- The CXX compiler identification is AppleClang 14.0.3.14030022 -- 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 -- 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 void* -- Check size of void* - done -- sizeof(void*)=8 -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") -- Checking for module 'zlib' -- Found zlib, version 1.2.11 -- Found ZLIBP: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include (found suitable version "1.2.11", minimum required is "1.2.8") -- Checking for module 'libsparsehash' -- Found libsparsehash, version 2.0.2 -- Found SPARSEHASH: /usr/local/Cellar/google-sparsehash/2.0.4/include (found version "2.0.2") -- Enabling LZVN and (possibly) LZFSE support -- Performing Test CFLAG_Wall -- Performing Test CFLAG_Wall - Success -- Performing Test CFLAG_Wno_unknown_pragmas -- Performing Test CFLAG_Wno_unknown_pragmas - Success -- Performing Test CFLAG_Wno_unused_variable -- Performing Test CFLAG_Wno_unused_variable - Success -- Setting afsctool version to: 1.7.3. (v1.7.3-5-g8b89d8f) -- The following OPTIONAL packages have been found: * Git -- The following REQUIRED packages have been found: * ZLIBP (required version >= 1.2.8), zlib compression library,