Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: garbage collection is no longer supported #1

Closed
GoogleCodeExporter opened this issue Apr 13, 2015 · 13 comments
Closed

error: garbage collection is no longer supported #1

GoogleCodeExporter opened this issue Apr 13, 2015 · 13 comments

Comments

@GoogleCodeExporter
Copy link

Hello,

I just tried to compile this on OSX 10.10 and I get the error:

error: garbage collection is no longer supported

which stops the build with error.

here is the whole output:

megrimm-mbpro:tkdnd-read-only megrimm$ cmake .
-- The C compiler identification is AppleClang 6.0.0.6000054
-- The CXX compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- ===========================================================
--  Welcome to the tkdnd 2.7 build system!
--   * Selected generator:  Unix Makefiles
--   * Operating System ID: Darwin-14.0.0-x86_64
--   * Installation Directory: /usr/local
-- ===========================================================
-- Searching for Tcl/Tk...
-- Found Tclsh: /usr/bin/tclsh (found version "8.5") 
-- Found TCL: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.10.sdk/System/Library/Frameworks/tcl.framework  
-- Found TCLTK: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.10.sdk/System/Library/Frameworks/tcl.framework  
-- Found TK: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.10.sdk/System/Library/Frameworks/tk.framework  
--   TCL_INCLUDE_PATH:        
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.10.sdk/System/Library/Frameworks/Tcl.framework/Headers
--   TCL_STUB_LIBRARY:        
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.10.sdk/usr/lib/libtclstub8.5.a
--   TK_INCLUDE_PATH:         
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.10.sdk/System/Library/Frameworks/Tk.framework/Headers
--   TK_STUB_LIBRARY:         
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.10.sdk/usr/lib/libtkstub8.5.a
--       + Shared Library: tkdnd
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/megrimm/Desktop/tkdnd-read-only
megrimm-mbpro:tkdnd-read-only megrimm$ make
Scanning dependencies of target tkdnd2.7
[100%] Building CXX object CMakeFiles/tkdnd2.7.dir/macosx/macdnd.m.o
error: garbage collection is no longer supported
make[2]: *** [CMakeFiles/tkdnd2.7.dir/macosx/macdnd.m.o] Error 1
make[1]: *** [CMakeFiles/tkdnd2.7.dir/all] Error 2
make: *** [all] Error 2


Original issue reported on code.google.com by megr...@gmail.com on 19 Nov 2014 at 8:12

@radarhere
Copy link
Contributor

@petasis can I ask, what OS X versions does tkdnd aim to support? The latest binary on SourceForge is 10.8, so I presume that that's your development environment. So should it be at least your development environment, because you quite rightly want to be able to test and compile the software, and then potentially up to the latest OS X (currently 10.10)?

@petasis
Copy link
Owner

petasis commented Jul 6, 2015

Dear Andrew,
I don't have a specific target, I want to support as many versions as possible. The binaries I distribute target to be compatible with ActiveTcl's distribution (8.6+), which uses the "old" garbage collector.

In order to compile with the newer garbage collector, please edit CMakeLists.txt, lines 56-57 (comment them, both -fobjc-gc, -fno-objc-arc), and uncomment line 58 (-fobjc-arc).
We need some "autodetection" code for this, but I am not sure how to detect it.
(What is the garbage collector used by the tclsh executable...)

Best regards,
George

@megrimm
Copy link

megrimm commented Mar 1, 2016

Hello,

I see radarhere added compatibility for later OSX last July. I just tried to compile on 10.11 using his forked "arc" branch and master branch as well and get same error as last year:

checking for correct TEA configuration... ok (TEA 3.9)
configure: configuring tkdnd 2.8
checking for Tcl configuration... found /Library/Frameworks/Tcl.framework/tclConfig.sh
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for existence of /Library/Frameworks/Tcl.framework/tclConfig.sh... loading
checking platform... unix
checking for Tk configuration... found /Library/Frameworks/Tk.framework/tkConfig.sh
checking for existence of /Library/Frameworks/Tk.framework/tkConfig.sh... loading
configure: --prefix defaulting to TCL_PREFIX /Library/Tcl
configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /Library/Tcl
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking if the compiler understands -pipe... yes
checking whether byte ordering is bigendian... no
checking for sin... yes
checking for main in -lieee... no
checking for main in -linet... no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for Tcl public headers... /Library/Frameworks/Tcl.framework/Headers
checking for Tk public headers... /Library/Frameworks/Tk.framework/Headers
checking for X11 header files... /Library/Frameworks/Tk.framework/Headers
checking for Tk private include files... Using -I"/Library/Frameworks/Tk.framework/Headers" -I"/Library/Frameworks/Tk.framework/PrivateHeaders" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/generic" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/unix" -I""/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/xlib"" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/macosx"
checking for pthread_mutex_init in -lpthread... yes
checking for building with threads... yes (default)
checking how to build libraries... shared
checking for ranlib... (cached) ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking if compiler supports visibility "hidden"... yes
checking if rpath support is requested... yes
checking system version... Darwin-15.3.0
checking for ar... ar
checking if ld accepts -single_module flag... yes
awk: warning: escape sequence \.' treated as plain.'
awk: warning: escape sequence \.' treated as plain.'
checking if ld accepts -search_paths_first flag... yes
checking for SEH support in compiler... no
checking for EXCEPTION_DISPOSITION support in include files... no
checking for winnt.h that ignores VOID define... no
checking for cast to union support... yes
checking for required early compiler flags... none
checking for 64-bit integer type... using long
checking for build with symbols... no
checking for tclsh... tclsh8.6
checking for wish... wish8.6
checking for intptr_t... no
checking for pointer-size signed integer type... none
checking for uintptr_t... no
checking for pointer-size unsigned integer type... none
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pkgIndex.tcl
megrimm-mbp:tkdnd megrimm$ make
gcc -DPACKAGE_NAME="tkdnd" -DPACKAGE_TARNAME="tkdnd" -DPACKAGE_VERSION="2.8" -DPACKAGE_STRING="tkdnd\ 2.8" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DBUILD_tkdnd=/**/ -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ attribute((visibility("hidden"))) -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -DMAC_TK_COCOA -std=gnu99 -x objective-c -fobjc-gc -I"/Library/Frameworks/Tcl.framework/Headers" -I"/Library/Frameworks/Tk.framework/Headers" -I"/Library/Frameworks/Tk.framework/PrivateHeaders" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/generic" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/unix" -I""/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/xlib"" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/macosx" -g -O2 -pipe -Wall -fno-common -c echo ./macosx/macdnd.m -o macdnd.o
clang: error: garbage collection is no longer supported
make: *** [macdnd.o] Error 1

@radarhere
Copy link
Contributor

Are you saying that the output you've included is from my arc branch? Because it really doesn't look like it. You still have -fobjc-gc after you run make, and the code that I added in configure -

if test "`uname -r | cut -d . -f 1`" -gt 10; then :
    MEMORY_MANAGEMENT="-fobjc-arc"
else
    MEMORY_MANAGEMENT="-fobjc-gc"
fi

is simple enough that I have trouble imagining a bug in it's purpose of changing the flag to -fobjc-arc on El Capitan.

@megrimm
Copy link

megrimm commented Mar 2, 2016

yup... on your arc branch:

megrimm-mbp:tkdnd megrimm$ make
gcc -DPACKAGE_NAME="tkdnd" -DPACKAGE_TARNAME="tkdnd"
-DPACKAGE_VERSION="2.8" -DPACKAGE_STRING="tkdnd\ 2.8"
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DBUILD_tkdnd=/**/
-DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1
-DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1
-D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern
attribute((visibility("hidden"))) -DHAVE_NO_SEH=1
-DEXCEPTION_DISPOSITION=int -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_IS_LONG=1
-DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -DMAC_TK_COCOA -std=gnu99 -x objective-c
-fobjc-gc -I"/Library/Frameworks/Tcl.framework/Headers"
-I"/Library/Frameworks/Tk.framework/Headers"
-I"/Library/Frameworks/Tk.framework/PrivateHeaders"
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/generic"
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/unix"
-I""/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/xlib""
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/macosx"
-g -O2 -pipe -Wall -fno-common -c echo ./macosx/macdnd.m -o
macdnd.o
clang: error: garbage collection is no longer supported
make: *** [macdnd.o] Error 1
megrimm-mbp:tkdnd megrimm$ git branch -a

  • arc
    master
    remotes/origin/HEAD -> origin/master
    remotes/origin/arc
    remotes/origin/master
    remotes/origin/version
    remotes/origin/wiki

On Wed, Mar 2, 2016 at 2:07 AM, Andrew Murray notifications@github.com
wrote:

Are you saying that the output you've included is from my arc branch?
Because it really doesn't look like it. You still have -fobjc-gc after
you run make, and the code that I added in configure -

if test "uname -r | cut -d . -f 1" -gt 10; then :
MEMORY_MANAGEMENT="-fobjc-arc"
else
MEMORY_MANAGEMENT="-fobjc-gc"
fi

is simple enough that I have trouble imagining a bug in it's purpose of
changing the flag to -fobjc-arc on El Capitan.


Reply to this email directly or view it on GitHub
#1 (comment).


m.e.grimm, m.f.a, ed.m.
syracuse u., tc3
megrimm.net


@petasis
Copy link
Owner

petasis commented Mar 2, 2016

Does the error also affects the cmake build?
Unfortunately, I do not own a computer with OS X to test and help.

@megrimm
Copy link

megrimm commented Mar 3, 2016

yes... similar error:

megrimm-mbp:build megrimm$ cmake ..
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ===========================================================
-- Welcome to the tkdnd 2.8 build system!
-- * Selected generator: Unix Makefiles
-- * Operating System ID: Darwin-15.3.0-x86_64
-- * Installation Directory: /usr/local
-- ===========================================================
-- Searching for Tcl/Tk...
-- Found Tclsh: /usr/local/bin/tclsh (found version "8.6")
-- Found TCL: /Library/Frameworks/tcl.framework
-- Found TCLTK: /Library/Frameworks/tcl.framework
-- Found TK: /Library/Frameworks/tk.framework
-- TCL_INCLUDE_PATH: /Library/Frameworks/Tcl.framework/Headers
-- TCL_STUB_LIBRARY: /usr/lib/libtclstub8.5.a
-- TK_INCLUDE_PATH: /Library/Frameworks/Tk.framework/Headers
-- TK_STUB_LIBRARY: /usr/lib/libtkstub8.5.a
-- + Shared Library: tkdnd
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/megrimm/Development/pd/tkdnd/build
megrimm-mbp:build megrimm$ make
Scanning dependencies of target tkdnd2.8
[ 50%] Building C object CMakeFiles/tkdnd2.8.dir/macosx/macdnd.m.o
clang: error: garbage collection is no longer supported
clang: error: garbage collection is no longer supported
make[2]: *** [CMakeFiles/tkdnd2.8.dir/macosx/macdnd.m.o] Error 1
make[1]: *** [CMakeFiles/tkdnd2.8.dir/all] Error 2
make: *** [all] Error 2

On Wed, Mar 2, 2016 at 2:15 PM, petasis notifications@github.com wrote:

Does the error also affects the cmake build?
Unfortunately, I do not own a computer with OS X to test and help.


Reply to this email directly or view it on GitHub
#1 (comment).


m.e.grimm, m.f.a, ed.m.
syracuse u., tc3
megrimm.net


@radarhere
Copy link
Contributor

Hi. Would you be able to show me the output of these commands? You can copy paste them into your Terminal, or put them into a file and execute it.

echo "`uname -r`"
echo "`uname -r | cut -d . -f 1`"
if test "`uname -r | cut -d . -f 1`" -gt 10; then :
    echo "-fobjc-arc"
else
    echo "-fobjc-gc"
fi

Also, are you running configure on the arc branch as well? So rather than running configure, change to arc, make, it's necessary to change to arc, then run configure and make. Sorry if any of my questions sound a bit obvious, I'm just having a difficult time figuring out why you would be having this problem.

@megrimm
Copy link

megrimm commented Mar 3, 2016

megrimm-mbp:tkdnd megrimm$ ./test.sh
15.3.0
15
-fobjc-arc

... and YES ./configure was run first in arc branch.

hmmmmm.....

thanks!

On Thu, Mar 3, 2016 at 2:06 AM, Andrew Murray notifications@github.com
wrote:

Hi. Would you be able to show me the output of these commands? You can
copy paste them into your Terminal, or put them into a file and execute it.

echo "uname -r"
echo "uname -r | cut -d . -f 1"
if test "uname -r | cut -d . -f 1" -gt 10; then :
echo "-fobjc-arc"
else
echo "-fobjc-gc"
fi

Also, are you running configure on the arc branch as well? So rather than
running configure, change to arc, make, it's necessary to change to arc,
then run configure and make. Sorry if any of my questions sound a bit
obvious, I'm just having a difficult time figuring out why you would be
having this problem.


Reply to this email directly or view it on GitHub
#1 (comment).


m.e.grimm, m.f.a, ed.m.
syracuse u., tc3
megrimm.net


@radarhere
Copy link
Contributor

Okay then. I've created a new branch, arctest. Would you be able to run that and show me the output?

@megrimm
Copy link

megrimm commented Mar 4, 2016

ok... there is the full output:

megrimm-mbp:tkdnd megrimm$ git pull
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/radarhere/tkdnd

  • [new branch] arctest -> origin/arctest
    Already up-to-date.
    megrimm-mbp:tkdnd megrimm$ git checkout arctest
    Branch arctest set up to track remote branch arctest from origin.
    Switched to a new branch 'arctest'
    megrimm-mbp:tkdnd megrimm$ ./configure
    15.3.0
    15
    -fobjc-arc
    checking for correct TEA configuration... ok (TEA 3.9)
    configure: configuring tkdnd 2.8
    checking for Tcl configuration... found
    /Library/Frameworks/Tcl.framework/tclConfig.sh
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for existence of /Library/Frameworks/Tcl.framework/tclConfig.sh...
    loading
    checking platform... unix
    checking for Tk configuration... found
    /Library/Frameworks/Tk.framework/tkConfig.sh
    checking for existence of /Library/Frameworks/Tk.framework/tkConfig.sh...
    loading
    configure: --prefix defaulting to TCL_PREFIX /Library/Tcl
    configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /Library/Tcl
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking how to run the C preprocessor... gcc -E
    checking whether make sets $(MAKE)... yes
    checking for ranlib... ranlib
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking if the compiler understands -pipe... yes
    checking whether byte ordering is bigendian... no
    checking for sin... yes
    checking for main in -lieee... no
    checking for main in -linet... no
    checking net/errno.h usability... no
    checking net/errno.h presence... no
    checking for net/errno.h... no
    checking for connect... yes
    checking for gethostbyname... yes
    checking dirent.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking float.h usability... yes
    checking float.h presence... yes
    checking for float.h... yes
    checking values.h usability... no
    checking values.h presence... no
    checking for values.h... no
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    uname rendered as
    15.3.0
    uname version rendered as
    15
    uname test indicates -fobjc-arc
    flags would be -
    -DMAC_TK_COCOA -std=gnu99 -x objective-c -fobjc-arc

checking for Tcl public headers... /Library/Frameworks/Tcl.framework/Headers
checking for Tk public headers... /Library/Frameworks/Tk.framework/Headers
checking for X11 header files... /Library/Frameworks/Tk.framework/Headers
checking for Tk private include files... Using
-I"/Library/Frameworks/Tk.framework/Headers"
-I"/Library/Frameworks/Tk.framework/PrivateHeaders"
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/generic"
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/unix"
-I""/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/xlib""
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/macosx"
checking for pthread_mutex_init in -lpthread... yes
checking for building with threads... yes (default)
checking how to build libraries... shared
checking for ranlib... (cached) ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking if compiler supports visibility "hidden"... yes
checking if rpath support is requested... yes
checking system version... Darwin-15.3.0
checking for ar... ar
checking if ld accepts -single_module flag... yes
awk: warning: escape sequence \.' treated as plain.'
awk: warning: escape sequence \.' treated as plain.'
checking if ld accepts -search_paths_first flag... yes
checking for SEH support in compiler... no
checking for EXCEPTION_DISPOSITION support in include files... no
checking for winnt.h that ignores VOID define... no
checking for cast to union support... yes
checking for required early compiler flags... none
checking for 64-bit integer type... using long
checking for build with symbols... no
checking for tclsh... tclsh8.6
checking for wish... wish8.6
checking for intptr_t... no
checking for pointer-size signed integer type... none
checking for uintptr_t... no
checking for pointer-size unsigned integer type... none
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pkgIndex.tcl
megrimm-mbp:tkdnd megrimm$ make
gcc -DPACKAGE_NAME="tkdnd" -DPACKAGE_TARNAME="tkdnd"
-DPACKAGE_VERSION="2.8" -DPACKAGE_STRING="tkdnd\ 2.8"
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DBUILD_tkdnd=/**/
-DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1
-DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1
-D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern
attribute((visibility("hidden"))) -DHAVE_NO_SEH=1
-DEXCEPTION_DISPOSITION=int -DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_IS_LONG=1
-DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -DMAC_TK_COCOA -std=gnu99 -x objective-c
-fobjc-arc -I"/Library/Frameworks/Tcl.framework/Headers"
-I"/Library/Frameworks/Tk.framework/Headers"
-I"/Library/Frameworks/Tk.framework/PrivateHeaders"
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/generic"
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/unix"
-I""/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/xlib""
-I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/macosx"
-g -O2 -pipe -Wall -fno-common -c echo ./macosx/macdnd.m -o
macdnd.o
In file included from ./macosx/macdnd.m:19:
In file included from
/Library/Frameworks/Tk.framework/PrivateHeaders/tkMacOSXInt.h:27:
In file included from
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:153:
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
In file included from
/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43:
In file included from
/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:13:
In file included from
/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h:13:
In file included from
/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:30:
In file included from /usr/include/xpc/xpc.h:330:
In file included from /usr/include/launch.h:29:
/usr/include/mach/mach.h:86:15: error: expected ')'
extern void panic(const char *, ...);
^
/Library/Frameworks/Tcl.framework/Headers/tcl.h:2621:19: note: expanded
from macro 'panic'

define panic Tcl_Panic

                            ^

/Library/Frameworks/Tcl.framework/Headers/tclDecls.h:2503:14: note:
expanded from macro 'Tcl_Panic'
(tclStubsPtr->tcl_Panic) /* 2 */
^
/usr/include/mach/mach.h:86:15: note: to match this '('
/Library/Frameworks/Tcl.framework/Headers/tcl.h:2621:19: note: expanded
from macro 'panic'

define panic Tcl_Panic

                            ^

/Library/Frameworks/Tcl.framework/Headers/tclDecls.h:2503:2: note: expanded
from macro 'Tcl_Panic'
(tclStubsPtr->tcl_Panic) /* 2 */
^
In file included from ./macosx/macdnd.m:19:
In file included from
/Library/Frameworks/Tk.framework/PrivateHeaders/tkMacOSXInt.h:27:
In file included from
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:153:
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
In file included from
/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43:
In file included from
/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:13:
In file included from
/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h:13:
In file included from
/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:30:
In file included from /usr/include/xpc/xpc.h:330:
In file included from /usr/include/launch.h:29:
/usr/include/mach/mach.h:86:15: error: redefinition of 'tclStubsPtr' as
different kind of symbol
extern void panic(const char *, ...);
^
/Library/Frameworks/Tcl.framework/Headers/tcl.h:2621:19: note: expanded
from macro 'panic'

define panic Tcl_Panic

                            ^

/Library/Frameworks/Tcl.framework/Headers/tclDecls.h:2503:3: note: expanded
from macro 'Tcl_Panic'
(tclStubsPtr->tcl_Panic) /* 2 /
^
/Library/Frameworks/Tcl.framework/Headers/tclDecls.h:2486:24: note:
previous definition is here
extern const TclStubs *tclStubsPtr;
^
In file included from ./macosx/macdnd.m:19:
/Library/Frameworks/Tk.framework/PrivateHeaders/tkMacOSXInt.h:62:13: error:
ARC forbids Objective-C objects in struct
NSView *view;
^
./macosx/macdnd.m:157:15: warning: null passed to a callee that requires a
non-null argument [-Wnonnull]
[dnd_view mouseDown:NULL];
^ ~~~~
1 warning and 3 errors generated.
make: *
* [macdnd.o] Error 1
megrimm-mbp:tkdnd megrimm$

On Fri, Mar 4, 2016 at 5:55 AM, Andrew Murray notifications@github.com
wrote:

Okay then. I've created a new branch, arctest. Would you be able to run
that and show me the output?


Reply to this email directly or view it on GitHub
#1 (comment).


m.e.grimm, m.f.a, ed.m.
syracuse u., tc3
megrimm.net


@radarhere
Copy link
Contributor

Okay. Now it looks like the changes from my branch are taking effect. I'm just going to focus on fixing your individual problem now, if that's alright.

The latest errors you're experiencing are ones that I have found myself. My solution was to move the header files into the same directory. I have now made this change on the arctest branch. If you try again, it may now work.

I've used header files from Tk/Tcl 8.6.1. It's possible you're using 8.5, and so that may need be to changed. However, I do feel that we are now close!

@petasis
Copy link
Owner

petasis commented May 26, 2018

This has been fixed.

@petasis petasis closed this as completed May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants