s-u/macosvm

Issues building from master branch

petemoore opened this issue · 1 comments

Hit this issue when trying to build from master branch (revision f044ad8).

Thanks!

Using xcodebuild:

pmoore@Peters-MacBook-Pro:~/git/macosvm master $ xcodebuild 
2022-08-05 05:35:30.350 xcodebuild[90375:7223177] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-08-05 05:35:30.350 xcodebuild[90375:7223177] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: a37167f2ce8cd2707ce805f47b4e7d39
Build description path: /Users/pmoore/git/macosvm/build/XCBuildData/a37167f2ce8cd2707ce805f47b4e7d39-desc.xcbuild

note: Build preparation complete
note: Building targets in dependency order
CreateBuildDirectory /Users/pmoore/git/macosvm/build
    cd /Users/pmoore/git/macosvm/macosvm.xcodeproj
    builtin-create-build-directory /Users/pmoore/git/macosvm/build

CreateBuildDirectory /Users/pmoore/git/macosvm/build/Release
    cd /Users/pmoore/git/macosvm/macosvm.xcodeproj
    builtin-create-build-directory /Users/pmoore/git/macosvm/build/Release

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/DerivedSources/Entitlements.plist (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/DerivedSources/Entitlements.plist

ProcessProductPackaging /Users/pmoore/git/macosvm/macosvm/macosvm.entitlements /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm.xcent (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    
    Entitlements:
    
    {
    "com.apple.security.app-sandbox" = 0;
    "com.apple.security.device.usb" = 1;
    "com.apple.security.get-task-allow" = 1;
    "com.apple.security.network.client" = 1;
    "com.apple.security.network.server" = 1;
    "com.apple.security.virtualization" = 1;
}
    
    builtin-productPackagingUtility /Users/pmoore/git/macosvm/macosvm/macosvm.entitlements -entitlements -format xml -o /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm.xcent

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm.hmap (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm.hmap

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-project-headers.hmap (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-project-headers.hmap

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-all-target-headers.hmap (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-all-target-headers.hmap

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-own-target-headers.hmap (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-own-target-headers.hmap

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/all-product-headers.yaml (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/all-product-headers.yaml

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-generated-files.hmap (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-generated-files.hmap

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-all-non-framework-target-headers.hmap (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-all-non-framework-target-headers.hmap

WriteAuxiliaryFile /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/macosvm.LinkFileList (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    write-file /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/macosvm.LinkFileList

CompileC /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/main.o /Users/pmoore/git/macosvm/macosvm/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-macos12.0 -fmessage-length\=245 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -std\=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/var/folders/kc/p5r32hgd42xcwxhc9lyfxtwm0000gn/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wquoted-include-in-framework-header -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility\=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -iquote /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-generated-files.hmap -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-own-target-headers.hmap -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-all-target-headers.hmap -iquote /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-project-headers.hmap -I/Users/pmoore/git/macosvm/build/Release/include -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/DerivedSources-normal/arm64 -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/DerivedSources/arm64 -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/DerivedSources -F/Users/pmoore/git/macosvm/build/Release -MMD -MT dependencies -MF /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/main.d --serialize-diagnostics /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/main.dia -c /Users/pmoore/git/macosvm/macosvm/main.m -o /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/main.o
In file included from /Users/pmoore/git/macosvm/macosvm/main.m:3:
/Users/pmoore/git/macosvm/macosvm/VMInstance.h:31:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
/Users/pmoore/git/macosvm/macosvm/VMInstance.h:31:40: note: insert '_Nullable' if the pointer may be null
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
                                         _Nullable 
/Users/pmoore/git/macosvm/macosvm/VMInstance.h:31:40: note: insert '_Nonnull' if the pointer should never be null
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
                                         _Nonnull 
/Users/pmoore/git/macosvm/macosvm/main.m:94:7: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif;
      ^
      //
/Users/pmoore/git/macosvm/macosvm/main.m:93:19: error: expected ';' after expression
    fflush(stdout)
                  ^
                  ;
2 warnings and 1 error generated.

CompileC /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/VMInstance.o /Users/pmoore/git/macosvm/macosvm/VMInstance.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'macosvm' from project 'macosvm')
    cd /Users/pmoore/git/macosvm
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-macos12.0 -fmessage-length\=245 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -std\=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/var/folders/kc/p5r32hgd42xcwxhc9lyfxtwm0000gn/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wquoted-include-in-framework-header -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility\=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -iquote /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-generated-files.hmap -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-own-target-headers.hmap -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-all-target-headers.hmap -iquote /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/macosvm-project-headers.hmap -I/Users/pmoore/git/macosvm/build/Release/include -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/DerivedSources-normal/arm64 -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/DerivedSources/arm64 -I/Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/DerivedSources -F/Users/pmoore/git/macosvm/build/Release -MMD -MT dependencies -MF /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/VMInstance.d --serialize-diagnostics /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/VMInstance.dia -c /Users/pmoore/git/macosvm/macosvm/VMInstance.m -o /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/VMInstance.o
In file included from /Users/pmoore/git/macosvm/macosvm/VMInstance.m:1:
/Users/pmoore/git/macosvm/macosvm/VMInstance.h:31:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
/Users/pmoore/git/macosvm/macosvm/VMInstance.h:31:40: note: insert '_Nullable' if the pointer may be null
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
                                         _Nullable 
/Users/pmoore/git/macosvm/macosvm/VMInstance.h:31:40: note: insert '_Nonnull' if the pointer should never be null
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
                                         _Nonnull 
/Users/pmoore/git/macosvm/macosvm/VMInstance.m:326:20: warning: unused variable 'slavefd' [-Wunused-variable]
            int masterfd, slavefd;
                          ^
2 warnings generated.

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/pmoore/git/macosvm/build/macosvm.build/Release/macosvm.build/Objects-normal/arm64/main.o /Users/pmoore/git/macosvm/macosvm/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'macosvm' from project 'macosvm')
(1 failure)

Using make:

pmoore@Peters-MacBook-Pro:~/git/macosvm master $ make
make -C macosvm macosvm
clang -I/opt/homebrew/opt/ruby/include -Wall -c main.m
In file included from main.m:3:
./VMInstance.h:31:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
./VMInstance.h:31:40: note: insert '_Nullable' if the pointer may be null
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
                                         _Nullable 
./VMInstance.h:31:40: note: insert '_Nonnull' if the pointer should never be null
@property (strong) VZMacOSRestoreImage *restoreImage;
                                       ^
                                         _Nonnull 
main.m:94:7: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif;
      ^
      //
main.m:93:19: error: expected ';' after expression
    fflush(stdout)
                  ^
                  ;
2 warnings and 1 error generated.
make[1]: *** [main.o] Error 1
make: *** [all] Error 2
pmoore@Peters-MacBook-Pro:~/git/macosvm master $ 
s-u commented

Thanks, now fixed.