[Vm-dev] Small problem after upgrading to Xcode Version 7.3 (7D175)

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu Mar 24 21:02:01 UTC 2016


Hi,

I now get this error message:

clang -x objective-c -MT build/vm/SqueakOSXAppDelegate.o -MMD -MP -MF
deps/SqueakOSXAppDelegate.Td -Wall -Wno-missing-field-initializers
-Wno-missing-prototypes -Wno-missing-braces -Wparentheses -Wswitch
-Wno-unused-function -Wno-unused-label -Wno-unused-parameter
-Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized
-Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion
-Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion
-Wno-enum-conversion -Wno-sign-conversion -Wno-shorten-64-to-32
-Wpointer-sign -Wno-newline-eof -Wno-trigraphs -Wdeprecated-declarations -g
-Os  -DDEBUGVM=0 -DNDEBUG=1   -DUSE_GLOBAL_STRUCT=0 -DNO_ISNAN=1
-DUSE_INLINE_MEMORY_ACCESSORS -D'TZ="CET"' -D'VM_LABEL(foo)=0'
-DSQUEAK_BUILTIN_PLUGIN -DBUILD_FOR_OSX=1 -arch x86_64
-mmacosx-version-min=10.6 -msse4.2 -fvisibility=hidden -fwrapv
-fmacro-backtrace-limit=0 -fdiagnostics-show-note-include-stack
-fmessage-length=0 -fpascal-strings -fasm-blocks -fstrict-aliasing
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
-include ../../platforms/iOS/vm/SqueakPureObjc_Prefix.pch -I.
-I../../spurstack64src/vm -I../../platforms/iOS/vm/Common
-I../../platforms/iOS/vm/Common/Classes -I../../platforms/iOS/vm/OSX
-I../../platforms/unix/vm -I../../platforms/Cross/vm
-I../../platforms/Cross/plugins/FilePlugin
-I../../platforms/Cross/plugins/HostWindowPlugin
-I../../platforms/Cross/plugins/SoundPlugin
-I../../platforms/iOS/plugins/FilePlugin
-I../../platforms/iOS/plugins/HostWindowPlugin
-I../../platforms/iOS/plugins/SoundPlugin -c
../../platforms/iOS/vm/OSX/SqueakOSXAppDelegate.m -o
build/vm/SqueakOSXAppDelegate.o

In file included from ../../platforms/iOS/vm/OSX/SqueakOSXAppDelegate.m:39:
../../platforms/iOS/vm/OSX/SqueakOSXAppDelegate.h:48:22: error: cannot
create __weak reference because the current deployment target does not
support weak references
    NSWindow *__weak window;
                     ^

clang --version
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Changing the ../common/Makefile.flags to

TARGET_VERSION_MIN:=10.7

instead of:

TARGET_VERSION_MIN:=10.6

Did it for me... No idea how/why the code did previously compile, but I
wanted to let you know.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160324/21328447/attachment.htm


More information about the Vm-dev mailing list