Re: [gtk-osx-users] cannot build core libraries
- From: "veto myridia com" <veto myridia com>
- To: "John Ralls" <jralls ceridwen fremont ca us>
- Cc: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] cannot build core libraries
- Date: Wed, 6 Mar 2019 12:34:02 +0700
*** 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 <veto 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 <jralls ceridwen fremont ca us>
wrote:
What was the actual error?
Regards,
John Ralls
On Mar 5, 2019, at 8:34 AM, veto 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, veto 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]