That actually goes back to around 10.8. If you want to populate /usr/include install the command-line tools.
Regards, John Ralls > On Mar 5, 2019, at 10:41 PM, v...@myridia.com wrote: > > yes it works on my hackintosh 10.12 > > on my hackingtosh 10.14(latest) i needed to install the xml2 c headers to > /usr/include via this command line: > > sudo installer -pkg > /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg > -target / > > than after pip3 the libxml3-python3 module i could go on go on with > jhbuild build.. > > reason: > Mac OS X 10.14 has stopped placing the include libraries in their usual > location, /usr/include, keeping them only inside the XCode directory. > > https://silvae86.github.io/sysadmin/mac/osx/mojave/beta/libxml2/2018/07/05/fixing-missing-headers-for-homebrew-in-mac-osx-mojave/ > >> *** Success *** >> thanks a lot, >> >> can i donate to the dev what my find time to fix this bug. >> >> >> On Wed, March 6, 2019 11:25 am, John Ralls wrote: >> >>> Please remember to copy the list on all replies. >>> >>> >>> >>> Ah, yes, that's a long-standing python bug. You need to edit >>> $PREFIX/lib/python3.6/_sysconfigdata_m_darwin_darwin.py: >>> --- _sysconfigdata_m_darwin_darwin.py~ 2018-11-03 10:18:50.000000000 >>> -0700 >>> +++ _sysconfigdata_m_darwin_darwin.py 2018-11-03 11:29:09.000000000 >>> -0700 >>> @@ -608,7 +608,7 @@ >>> 'LIBS': '-lintl -ldl -framework CoreFoundation', >>> 'LIBSUBDIRS': 'tkinter tkinter/test tkinter/test/test_tkinter \\', >>> 'LINKCC': '/Applications/Xcode.app/Contents/Developer/usr/bin/gcc', >>> - 'LINKFORSHARED': '-Wl,-stack_size,1000000 -framework CoreFoundation', >>> + 'LINKFORSHARED': '-framework CoreFoundation', >>> 'LIPO_32BIT_FLAGS': '', >>> 'LLVM_PROF_ERR': 'no', >>> 'LLVM_PROF_FILE': 'LLVM_PROFILE_FILE="code-%p.profclangr"', >>> >>> >>> >>> The issue being that -stack_size is only for executables, not for >>> shared libraries. >>> >>> Regards, >>> John Ralls >>> >>> >>> >>> >>>> On Mar 5, 2019, at 3:37 PM, veto <v...@myridia.com> wrote: >>>> >>>> >>>> >>>> I cannot build meta-gtk-osx-bootstrap, it stuck with libxml2 >>>> >>>> >>>> >>>> >>>> >>>> make[4]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>> CC libxml.lo >>>> CC libxml2-py.lo >>>> CC types.lo >>>> CCLD libxml2mod.la >>>> ld: -stack_size option can only be used when linking a main executable >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Here is the full build log: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> *** Building libxml2 *** [1/1] >>>> make -j 9 make all-recursive make[1]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8' >>>> Making all in include >>>> make[2]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/include' >>>> Making all in libxml >>>> make[3]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/include/libxml' >>>> make[3]: Nothing to be done for 'all'. >>>> make[3]: Leaving directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/include/libxml' >>>> make[3]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/include' >>>> make[3]: Nothing to be done for 'all-am'. >>>> make[3]: Leaving directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/include' >>>> make[2]: Leaving directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/include' >>>> Making all in . >>>> make[2]: Entering directory '/Users/veto/gtk/source/libxml2-2.9.8' >>>> sed -e 's?\@XML_LIBDIR\@?-L/Users/veto/gtk/inst/lib?g' \ -e >>>> 's?\@XML_INCLUDEDIR\@?-I/Users/veto/gtk/inst/include/libxml2?g' \ >>>> -e 's?\@VERSION\@?2.9.8?g' \ >>>> -e 's?\@XML_LIBS\@?-lxml2 -L/Users/veto/gtk/inst/lib -lz >>>> -L/Users/veto/gtk/inst/lib -llzma -lpthread -liconv -lm ?g' \ >>>> < ./xml2Conf.sh.in > xml2Conf.tmp \ >>>> && mv xml2Conf.tmp xml2Conf.sh >>>> CC SAX.lo >>>> CC entities.lo >>>> CC error.lo >>>> CC encoding.lo >>>> CC parserInternals.lo >>>> CC parser.lo >>>> CC tree.lo >>>> CC hash.lo >>>> CC list.lo >>>> encoding.c:500:26: warning: cast from 'const unsigned char *' to >>>> 'unsigned short *' increases required alignment from 1 to 2 >>>> [-Wcast-align] >>>> unsigned short* in = (unsigned short*) inb; ^~~~~~~~~~~~~~~~~~~~~ >>>> encoding.c:582:27: warning: cast from 'unsigned char *' to 'unsigned >>>> short *' increases required alignment from 1 to 2 [-Wcast-align] >>>> unsigned short* out = (unsigned short*) outb; ^~~~~~~~~~~~~~~~~~~~~~ >>>> encoding.c:738:26: warning: cast from 'const unsigned char *' to >>>> 'unsigned short *' increases required alignment from 1 to 2 >>>> [-Wcast-align] >>>> unsigned short* in = (unsigned short*) inb; ^~~~~~~~~~~~~~~~~~~~~ >>>> encoding.c:824:27: warning: cast from 'unsigned char *' to 'unsigned >>>> short *' increases required alignment from 1 to 2 [-Wcast-align] >>>> unsigned short* out = (unsigned short*) outb; ^~~~~~~~~~~~~~~~~~~~~~ 4 >>>> warnings generated. CC xmlIO.lo >>>> CC xmlmemory.lo >>>> CC uri.lo >>>> CC valid.lo >>>> CC xlink.lo >>>> CC HTMLparser.lo >>>> CC HTMLtree.lo >>>> CC debugXML.lo >>>> CC xpath.lo >>>> CC xpointer.lo >>>> CC xinclude.lo >>>> CC nanohttp.lo >>>> CC nanoftp.lo >>>> CC catalog.lo >>>> CC globals.lo >>>> CC threads.lo >>>> CC c14n.lo >>>> CC xmlstring.lo >>>> CC buf.lo >>>> CC xmlregexp.lo >>>> CC xmlschemas.lo >>>> CC xmlschemastypes.lo >>>> CC xmlunicode.lo >>>> CC xmlreader.lo >>>> CC relaxng.lo >>>> CC dict.lo >>>> CC SAX2.lo >>>> CC xmlwriter.lo >>>> CC legacy.lo >>>> CC chvalid.lo >>>> CC pattern.lo >>>> CC xmlsave.lo >>>> CC xmlmodule.lo >>>> CC schematron.lo >>>> CC xzlib.lo >>>> CC xmllint.o >>>> CC xmlcatalog.o >>>> CCLD libxml2.la >>>> CCLD xmllint >>>> CCLD xmlcatalog >>>> make[2]: Leaving directory '/Users/veto/gtk/source/libxml2-2.9.8' >>>> Making all in doc >>>> make[2]: Entering directory '/Users/veto/gtk/source/libxml2-2.9.8/doc' >>>> Making all in . >>>> make[3]: Entering directory '/Users/veto/gtk/source/libxml2-2.9.8/doc' >>>> make[3]: Nothing to be done for 'all-am'. >>>> make[3]: Leaving directory '/Users/veto/gtk/source/libxml2-2.9.8/doc' >>>> Making all in devhelp >>>> make[3]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/doc/devhelp' >>>> make[3]: Nothing to be done for 'all'. >>>> make[3]: Leaving directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/doc/devhelp' >>>> Making all in examples >>>> make[3]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/doc/examples' >>>> make[3]: Nothing to be done for 'all'. >>>> make[3]: Leaving directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/doc/examples' >>>> make[2]: Leaving directory '/Users/veto/gtk/source/libxml2-2.9.8/doc' >>>> Making all in example >>>> make[2]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/example' >>>> make[2]: Nothing to be done for 'all'. >>>> make[2]: Leaving directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/example' >>>> Making all in xstc >>>> make[2]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/xstc' >>>> make[2]: Nothing to be done for 'all'. >>>> make[2]: Leaving directory '/Users/veto/gtk/source/libxml2-2.9.8/xstc' >>>> Making all in python >>>> make[2]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>> make all-recursive make[3]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>> Making all in . >>>> make[4]: Entering directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>> CC libxml.lo >>>> CC libxml2-py.lo >>>> CC types.lo >>>> CCLD libxml2mod.la >>>> ld: -stack_size option can only be used when linking a main executable >>>> clang: error: linker command failed with exit code 1 (use -v to see >>>> invocation) make[4]: *** [Makefile:597: libxml2mod.la] Error 1 make[4]: >>>> Leaving directory '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>> make[3]: *** [Makefile:685: all-recursive] Error 1 >>>> make[3]: Leaving directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>> make[2]: *** [Makefile:525: all] Error 2 >>>> make[2]: Leaving directory >>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>> make[1]: *** [Makefile:1442: all-recursive] Error 1 >>>> make[1]: Leaving directory '/Users/veto/gtk/source/libxml2-2.9.8' >>>> make: *** [Makefile:861: all] Error 2 >>>> *** Error during phase build of libxml2: ########## Error running make >>>> -j 9 *** [1/1] >>>> >>>> >>>>> On 5 Mar 2019, at 23:47, John Ralls <jra...@ceridwen.fremont.ca.us> >>>>> wrote: >>>>> >>>>> >>>>> >>>>> What was the actual error? >>>>> >>>>> >>>>> >>>>> Regards, >>>>> John Ralls >>>>> >>>>> >>>>> >>>>> >>>>>> On Mar 5, 2019, at 8:34 AM, v...@myridia.com wrote: >>>>>> >>>>>> >>>>>> >>>>>> thanks i could go on. >>>>>> >>>>>> but now i hang with the jhbuild libxml2 something seems missing: >>>>>> >>>>>> clang: error: linker command failed with exit code 1 (use -v to >>>>>> see invocation) make[4]: *** [Makefile:597: libxml2mod.la] Error 1 >>>>>> make[4]: Leaving directory >>>>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>>>> make[3]: *** [Makefile:685: all-recursive] Error 1 >>>>>> make[3]: Leaving directory >>>>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>>>> make[2]: *** [Makefile:525: all] Error 2 >>>>>> make[2]: Leaving directory >>>>>> '/Users/veto/gtk/source/libxml2-2.9.8/python' >>>>>> make[1]: *** [Makefile:1442: all-recursive] Error 1 >>>>>> make[1]: Leaving directory '/Users/veto/gtk/source/libxml2-2.9.8' >>>>>> make: *** [Makefile:861: all] Error 2 >>>>>> *** Error during phase build of libxml2: ########## Error running >>>>>> make -j 9 *** [1/1] >>>>>> >>>>>> >>>>>> On Thu, February 21, 2019 9:54 pm, John Ralls wrote: >>>>>> >>>>>> >>>>>>> >>>>>> >>>>>>> >>>>>>>> On Feb 20, 2019, at 8:53 PM, v...@myridia.com wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> hi, >>>>>>>> >>>>>>>> im right now with my second clean mojave installation, and i >>>>>>>> follow the instruction on this site: >>>>>>>> >>>>>>>> https://wiki.gnome.org/action/show/Projects/GTK/OSX/Building? >>>>>>>> ac tion=sho w&redirect=Projects%2FGTK%2B%2FOSX%2FBuilding >>>>>>>> >>>>>>>> >>>>>>>> i could again build all except: >>>>>>>> >>>>>>>> meta-gtk-osx-core and meta-gtk-osx-gtk3 >>>>>>>> >>>>>>>> on meta-gtk-osx-gtk3 what i really need for my little c-gtk3 >>>>>>>> desktop app i stuck with missing python libs like six .... >>>>>>> >>>>>>> Python3 is now required by gobject-integration, so add that to >>>>>>> your module list. It will build pretty early because libxml >>>>>>> needs it. After building python 3 completes interrupt the build >>>>>>> and drop to a shell where you'll need to create symlinks >>>>>>> $PREFIX/bin/python >>>>>>> -> $PREFIX//bin/python3 >>>>>>> and $PREFIX/bin/python-config -> $PREFIX/bin/python3-config. >>>>>>> Then >>>>>>> you can run python --ensurepip followed by pip six, quit the >>>>>>> shell, and resume your build. >>>>>>> >>>>>>> Regards, >>>>>>> John Ralls >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >>> >> >> >> _______________________________________________ >> gtk-osx-users-list mailing list gtk-osx-users-list@gnome.org >> https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list >> >> > > _______________________________________________ gtk-osx-users-list mailing list gtk-osx-users-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list