Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#52915 closed defect (invalid)

Could not find a working Foundation implementation while upgrading from 2.3.4 to 2.3.5

Reported by: Jaymzu Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: raimue (Rainer Müller)
Port:

Description

Hey there, I got the notification about 2.3.5 being released and I tried the update this morning and it failed with the error in the $subj. Most similar tickets are marked as worksforme but for whatever reason, in many years of using macports, I haven't seen it before.

sudo port -v selfupdate output attached.

Attachments (2)

selfupdate.log (7.2 KB) - added by Jaymzu 8 years ago.
port selfupdate output
config.log (41.7 KB) - added by Jaymzu 8 years ago.

Download all attachments as: .zip

Change History (11)

Changed 8 years ago by Jaymzu

Attachment: selfupdate.log added

port selfupdate output

comment:1 Changed 8 years ago by neverpanic (Clemens Lang)

Please attach /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/config.log. Do you have the Command Line Tools installed?

Changed 8 years ago by Jaymzu

Attachment: config.log added

comment:2 Changed 8 years ago by Jaymzu

  • config.log attached in the original post
  • yes, command line tools are installed.

comment:3 Changed 8 years ago by neverpanic (Clemens Lang)

Your /usr/bin/cc compiler does not understand the extensions used in the Foundation headers.

configure:7483: /usr/bin/cc -o conftest -g -O2   conftest.m -framework Foundation  >&5
	In file included from conftest.m:26:
	In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
	In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
	/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44:12: error: unknown property attribute 'class'
	@property (class, readonly) BOOL supportsSecureCoding;
	           ^

What's /usr/bin/cc --version on your system?

comment:4 Changed 8 years ago by Jaymzu

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

Version 0, edited 8 years ago by Jaymzu (next)

comment:5 Changed 8 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed

You're on Sierra, but your Command Line Tools are not the Xcode 8.x ones (see XcodeVersionInfo#Xcode8.1). Update your Command Line Tools.

comment:6 Changed 8 years ago by raimue (Rainer Müller)

Should we extend the Xcode version check with an additional check if the CommandLineTools match the Xcode version? Note that this would not have helped for this selfupdate problem, as it is only checked on port builds, but users would at least be warned at some point.

comment:7 Changed 8 years ago by raimue (Rainer Müller)

Cc: raimue added

comment:8 Changed 8 years ago by Jaymzu

My apologies on this. I just realised that I didn't update Xcode after switching to Sierra.

comment:9 in reply to:  6 Changed 8 years ago by larryv (Lawrence Velázquez)

Replying to raimue:

Should we extend the Xcode version check with an additional check if the CommandLineTools match the Xcode version?

Not a bad idea, although this would have to special-case Xcode 8 + Xcode 7 CLT on El Capitan.

Note: See TracTickets for help on using tickets.