Opened 9 years ago

Closed 9 years ago

#48430 closed defect (invalid)

Build from source failing on OSX 10.11 (El Capitan)

Reported by: apowers313@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.3
Keywords: Cc: Ionic (Mihai Moldovan)
Port:

Description

I am running the OSX 10.11 beta. I did two builds from the source code today -- the first completed successfully, but after running port selfupdate and trying to install a package, I was required to install the new version of OSX 10.11 command line tools.

After wiping that installation and building from source again, I now get the following error:

configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: error: Could not find a working Foundation implementation

Looking at the config.log, I see that the build is dying due to parse errors in the Foundation header files:

configure:7483: clang -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:6:
/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:7:15: error: expected ';' after @class
@class NSArray<ObjectType>;
              ^
/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:7:16: error: cannot find protocol declaration for 'ObjectType'
@class NSArray<ObjectType>;
               ^
[...]
In file included from conftest.m:26:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:32: error: cannot find protocol declaration for 'ObjectType'
@interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
                               ^
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:44: error: expected identifier or '('
@interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
                                           ^
[...]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
configure:7483: $? = 1
configure: failed program was:
[...]

I see that older releases have had errors with Foundation before as well, but none of the proposed xcode-select solutions seemed to fix this problem.

Has anyone else had this problem and / or any ideas of solutions or potential ways to troubleshoot it?

Attachments (1)

config.log (39.7 KB) - added by apowers313@… 9 years ago.
config.log from failed ./configure due to Foundation syntax erorrs on OSX 10.11

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by apowers313@…

Attachment: config.log added

config.log from failed ./configure due to Foundation syntax erorrs on OSX 10.11

comment:1 Changed 9 years ago by apowers313@…

Fixed by installing Xcode 7 beta 4: https://developer.apple.com/xcode/downloads/

comment:2 Changed 9 years ago by Ionic (Mihai Moldovan)

Cc: ionic@… added
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.