Opened 8 years ago

Closed 8 years ago

#51420 closed defect (invalid)

py27-matplotlib @ 2.3.4 build failure command execution failed

Reported by: tim.bauer@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port:

Description

Hi there,

I'm quite new to packages and everything around but I'm currently trying to install py27-matplotlib. It returns: Error: org.macports.build for port py27-matplotlib returned: command execution failed

I am running OSX 10.11.5 and Xcode 6.4 with command line tools.

Cleaned and retried several times but produces the same error

here the last lines of the log where the error seems to appear:

:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:7:15: error: expected ';' after @class
:info:build @class NSArray<ObjectType>;
:info:build               ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:7:16: error: cannot find protocol declaration for 'ObjectType'
:info:build @class NSArray<ObjectType>;
:info:build                ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:25: error: cannot find protocol declaration for 'ObjectType'
:info:build @interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>
:info:build                         ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:37: error: expected identifier or '('
:info:build @interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>
:info:build                                     ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:36:13: error: expected ')'
:info:build - (nullable ObjectType)nextObject;
:info:build             ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:36:3: note: to match this '('
:info:build - (nullable ObjectType)nextObject;
:info:build   ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:25: error: cannot find protocol declaration for 'ObjectType'
:info:build @interface NSEnumerator<ObjectType> (NSExtendedEnumerator)
:info:build                         ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:1: error: duplicate interface definition for class 'NSEnumerator'
:info:build @interface NSEnumerator<ObjectType> (NSExtendedEnumerator)
:info:build ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:12: note: previous definition is here
:info:build @interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>
:info:build            ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:37: error: method type specifier must start with '-' or '+'
:info:build @interface NSEnumerator<ObjectType> (NSExtendedEnumerator)
:info:build                                     ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:38: error: expected a type
:info:build @interface NSEnumerator<ObjectType> (NSExtendedEnumerator)
:info:build                                      ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:42:1: error: expected selector for Objective-C method
:info:build @property (readonly, copy) NSArray<ObjectType> *allObjects;
:info:build ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:42:36: error: cannot find protocol declaration for 'ObjectType'
:info:build @property (readonly, copy) NSArray<ObjectType> *allObjects;
:info:build                                    ^
:info:build In file included from src/_macosx.m:1:
:info:build In file included from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
:info:build In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:32: error: cannot find protocol declaration for 'ObjectType'
:info:build @interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
:info:build                                ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:44: error: expected identifier or '('
:info:build @interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
:info:build                                            ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:19:4: error: expected a type
:info:build - (ObjectType)objectAtIndex:(NSUInteger)index;
:info:build    ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:21:40: error: expected ')'
:info:build - (instancetype)initWithObjects:(const ObjectType [])objects count:(NSUInteger)cnt NS_DESIGNATED_INITIALIZER;
:info:build                                        ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:21:33: note: to match this '('
:info:build - (instancetype)initWithObjects:(const ObjectType [])objects count:(NSUInteger)cnt NS_DESIGNATED_INITIALIZER;
:info:build                                 ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:20: error: cannot find protocol declaration for 'ObjectType'
:info:build @interface NSArray<ObjectType> (NSExtendedArray)
:info:build                    ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:1: error: duplicate interface definition for class 'NSArray'
:info:build @interface NSArray<ObjectType> (NSExtendedArray)
:info:build ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:12: note: previous definition is here
:info:build @interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
:info:build            ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:32: error: method type specifier must start with '-' or '+'
:info:build @interface NSArray<ObjectType> (NSExtendedArray)
:info:build                                ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:33: error: expected a type
:info:build @interface NSArray<ObjectType> (NSExtendedArray)
:info:build                                 ^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
:info:build error: command '/usr/bin/clang' failed with exit status 1
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib/py27-matplotlib/work/matplotlib-1.5.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
:info:build Exit code: 1
:error:build org.macports.build for port py27-matplotlib returned: command execution failed
:debug:build Error code: CHILDSTATUS 28654 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for py27-matplotlib: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port py27-matplotlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib/py27-matplotlib/main.log

Change History (2)

comment:1 Changed 8 years ago by tim.bauer@…

SOLVED: Updated Xcode no problems anymore. Sorry for bothering you!

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.