[MacPorts] #49035: textmate2 @2.0-beta.7.8 build error on elcapitan

MacPorts noreply at macports.org
Thu Oct 1 10:11:34 PDT 2015


#49035: textmate2 @2.0-beta.7.8 build error on elcapitan
-----------------------+--------------------------------
 Reporter:  pjkim00@…  |      Owner:  macports-tickets@…
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.3.3
 Keywords:  elcapitan  |       Port:  textmate2
-----------------------+--------------------------------
 Build error for textmate2 since upgrading to elcapitan. I kludged
 sparsehash to install properly (see #48556) but I don't think the problem
 is related to that.

 I think the relevant parts of the error log are:

 {{{
 :info:build Frameworks/ns/src/ns.mm:218:8: error: assigning to
 'CGEventFlags' from incompatible type 'uint64_t' (aka 'unsigned long
 long')
 :info:build         flags &= kCGEventFlagMaskCommand |
 kCGEventFlagMaskShift | kCGEventFlagMaskAlternate |
 kCGEventFlagMaskControl | kCGEventFlagMaskNumericPad;
 :info:build               ^
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build Frameworks/ns/src/ns.mm:221:39: error: no matching function
 for call to 'string_for'
 :info:build         std::string const keyStringNoFlags = string_for(key,
 0);
 :info:build                                              ^~~~~~~~~~
 :info:build Frameworks/ns/src/ns.mm:49:20: note: candidate function not
 viable: no known conversion from 'int' to 'CGEventFlags' for 2nd argument
 :info:build static std::string string_for (CGKeyCode key, CGEventFlags
 flags)
 :info:build                    ^
 :info:build Frameworks/ns/src/ns.mm:63:20: note: candidate function not
 viable: requires single argument 'flags', but 2 arguments were provided
 :info:build static std::string string_for (CGEventFlags flags)
 :info:build                    ^
 :info:build Frameworks/ns/src/ns.mm:222:15: error: cannot initialize a
 variable of type 'CGEventFlags' with an rvalue of type 'unsigned long
 long'
 :info:build         CGEventFlags newFlags              = flags &
 (kCGEventFlagMaskControl|kCGEventFlagMaskCommand);
 :info:build                      ^
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build Frameworks/ns/src/ns.mm:237:12: error: assigning to
 'CGEventFlags' from incompatible type 'uint64_t' (aka 'unsigned long
 long')
 :info:build                 flags    &= ~kCGEventFlagMaskAlternate;
 :info:build                          ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build Frameworks/ns/src/ns.mm:265:44: error: no matching function
 for call to 'string_for'
 :info:build                                 std::string const
 keyStringAlternate = string_for(key, flags &
 (kCGEventFlagMaskAlternate|kCGEventFlagMaskShift));
 :info:build
 ^~~~~~~~~~
 :info:build Frameworks/ns/src/ns.mm:49:20: note: candidate function not
 viable: no known conversion from 'unsigned long long' to 'CGEventFlags'
 for 2nd argument
 :info:build static std::string string_for (CGKeyCode key, CGEventFlags
 flags)
 :info:build                    ^
 :info:build Frameworks/ns/src/ns.mm:63:20: note: candidate function not
 viable: requires single argument 'flags', but 2 arguments were provided
 :info:build static std::string string_for (CGEventFlags flags)
 :info:build                    ^
 :info:build Frameworks/ns/src/ns.mm:270:15: error: assigning to
 'CGEventFlags' from incompatible type 'uint64_t' (aka 'unsigned long
 long')
 :info:build                                         flags    &=
 ~kCGEventFlagMaskAlternate;
 :info:build                                                  ^
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build Frameworks/ns/src/ns.mm:276:40: error: no matching function
 for call to 'string_for'
 :info:build                                 std::string const
 keyStringShift = string_for(key, flags &
 (kCGEventFlagMaskAlternate|kCGEventFlagMaskShift));
 }}}

 Attaching full error log as well.

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


More information about the macports-tickets mailing list