I have a 32 bit framework called Tk that I need to use with Python. The problem is I have to make a 32 bit version of Python in order to use Tk(inter). The directions on doing this for Linux state the --host and --build options must be used. Here is one such example: ./configure --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu. So now I think I just need to be told what to use as the build and host options. My host system is 64 bit.
Some might be wondering why am I trying to upgrade Tkinter? Because the version that comes with Mac OS 10.12 is 8.5.9. It is very old and has a few bugs with it that Tk 8.5.11 fix. Since I already have the Tk framework 8.5.11 ready to go, I just need to make Python in order to be happy.
I have tired this:
./configure --with-tcltk-includes='-I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers' --with-tcltk-libs='/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl /Library/Frameworks/Tk.framework/Versions/8.5/Tk' CFLAGS="-arch i386"
It didn't work. This is the error message I saw:
ignoring file Python/pyctype.o, file was built for i386 which is not the architecture being linked (x86_64): Python/pyctype.o
Undefined symbols for architecture x86_64:
"_PyObject_Free", referenced from:
_getgrammar in pgenmain.o
"_PyParser_ParseFile", referenced from:
_getgrammar in pgenmain.o
"__Py_ctype_table", referenced from:
_PyTokenizer_Get in tokenizer_pgen.o
"__Py_meta_grammar", referenced from:
_getgrammar in pgenmain.o
"__Py_pgen", referenced from:
_getgrammar in pgenmain.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Parser/pgen] Error 1