• Russ Cox's avatar
    cmd/go, cmd/link: silence bogus Apple Xcode warning · 66bb8ddb
    Russ Cox authored
    Certain installations of Xcode are affected by a bug that causes
    them to print an inconsequential link-time warning that looks like:
    
    	ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.
    
    This has nothing to do with Go, and we've sent this repro case
    to Apple:
    
    	$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep version
    	version: 10.0.0.0.1.1535735448
    	$ clang --version
    	Apple LLVM version 10.0.0 (clang-1000.10.44.2)
    	Target: x86_64-apple-darwin17.7.0
    	Thread model: posix
    	InstalledDir: /Library/Developer/CommandLineTools/usr/bin
    	$ cat > issue.c
    	int main() { return 0; }
    	^D
    	$ clang issue.c -framework CoreFoundation
    	ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
    	$
    
    Even if Apple does release a fixed Xcode, many people are seeing
    this useless warning, and we might as well make it go away.
    
    Fixes #26073.
    
    Change-Id: Ifc17ba7da1f6b59e233c11ebdab7241cb6656324
    Reviewed-on: https://go-review.googlesource.com/c/144112Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: 's avatarAndrew Bonventre <andybons@golang.org>
    66bb8ddb
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
ld Loading commit data...
loadelf Loading commit data...
loadmacho Loading commit data...
loadpe Loading commit data...
loadxcoff Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
objfile Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
sym Loading commit data...
wasm Loading commit data...
x86 Loading commit data...