[MacPorts] #48430: Build from source failing on OSX 10.11 (El Capitan)

MacPorts noreply at macports.org
Fri Jul 24 14:18:55 PDT 2015


#48430: Build from source failing on OSX 10.11 (El Capitan)
--------------------------+--------------------------------
 Reporter:  apowers313@…  |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  base          |    Version:  2.3.3
 Keywords:                |       Port:
--------------------------+--------------------------------
 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?

-- 
Ticket URL: <https://trac.macports.org/ticket/48430>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list