Opened 9 years ago

Closed 9 years ago

#49035 closed defect (worksforme)

textmate2 @2.0-beta.7.8 build error on elcapitan

Reported by: hardwhack Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: elcapitan Cc: ryandesign (Ryan Carsten Schmidt)
Port: textmate2

Description

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.

Attachments (1)

main.log (763.1 KB) - added by hardwhack 9 years ago.
main.log

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by hardwhack

Attachment: main.log added

main.log

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; cal openmaintainer removed
Owner: changed from macports-tickets@… to cal@…

The Cc field requires valid email addresses.

comment:2 Changed 9 years ago by hardwhack

I updated to Mac OS 10.11.1 as well as XCode 7.1 yesterday and textmate2 now builds cleanly. I think this ticket can be closed.

Update: jumped the gun. I tried to install on another machine after upgrading to 10.11.1 and 7.1 and got the same error message as above. So now I don't know what to make of this. Anyone else having build problems?

Last edited 9 years ago by hardwhack (previous) (diff)

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Please "sudo port selfupdate" and try again. Fixes for building on El Capitan were committed in r141424.

comment:4 Changed 9 years ago by neverpanic (Clemens Lang)

Resolution: worksforme
Status: newclosed

Assuming to be fixed, please re-open if you still see issues.

Note: See TracTickets for help on using tickets.