Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: 18f499935f6cce7fcd7f0477467316ace8f2b29d
Ticket: aefc556471df7ffb785e62c28e3a440d8165b9f4
Tk Cocoa, error: garbage collection is no longer supported
User & Date: hypnotoad 2014-03-15 23:32:46
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    With Xcode 5.1, Apple has discontinued support for Garbage Collection. After configuring, all attempts to compile Tk (or Tk based extension) dies on the first file with:
    
    error: garbage collection is no longer supported
    make[1]: *** [tkStubLib.o] Error 1
    make: *** [tcltk] Error 2
    
    Apple recommends transitioning to Automatic Reference Counting (ARC). The process is described at:
    https://developer.apple.com/library/mac/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226
    
    Essentially the memory access routines that trade in Native Cocoa objects need a rewrite to support the new API. (As do extensions like Canvas3d which also trade in native Cocoa objects.)
    
    No version of Tcl or Tk will compile on OSX with Xcode 5.1 or above until this is fixed. Already compiled binaries seem not to be affected.
    
  5. foundin changed to: "All"
  6. is_private changed to: "0"
  7. login: "hypnotoad"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "5846a328c39e4967aaeb56d4e03d3e783e2dd1b8"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "hypnotoad"
  14. subsystem changed to: "83. Mac OS X Build"
  15. title changed to:
    Tk Cocoa, error: garbage collection is no longer supported
    
  16. type changed to: "Bug"