Thanks John,

I've re-added the "python" to the list of packages to be built and replaced the 
wrong GTK2-based theme package with the correct one for GTK3 
(meta-gtk-osx-gtk3-core-themes).


The build works OK now with two issues remaining, but I have workarounds for 
these:

  1.  First issue is that glib build fails with the error that "six" python 
module is missing. I've fixed that by downloading six module tar.gz package, 
unpacking it and running "python setup.py install" from the jhbuild shell, then 
retrying the glib build action.
  2.  The second build issue is the already described - the __builtin_shuffle 
problem in pixman. I've manually edited the code similar to patch by Phil 
Chimento and retried the build.

Can these two things be integrated into the jhbuild itself?

Once more, thank you for your support.

Regards,
  Miroslav

________________________________
From: John Ralls <jra...@ceridwen.us>
Sent: Thursday, May 31, 2018 11:45 PM
To: Miroslav Rajcic
Cc: gtk-osx-users-list@gnome.org
Subject: Re: [gtk-osx-users] High Sierra issues



> On May 16, 2018, at 5:50 PM, John Ralls <jra...@ceridwen.us> wrote:
>
>
>
>> On May 15, 2018, at 11:32 AM, Miroslav Rajcic <mraj...@hotmail.com> wrote:
>>
>> Hi,
>>
>> I've tried to build GTK3 64-bit stack using gtk-osx, but got some issues in 
>> the process.
>> I am using High Sierra 10.13.4, Xcode 9.3.
>>
>> Added this to .jhbuildrc-custom:
>> setup_sdk(target="10.8")
>>
>> My build process:
>> 1) ./gtk-osx-build-setup.sh
>> 2) jhbuild bootstrap                          (...issue with cmake, see 
>> below ...)
>> 3) jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-gtk3 
>> meta-gtk-osx-themes gtksourceview3         (... many issues here, see below 
>> ...)
>>
>> Step #1 worked OK.
>>
>> Step #2 had the following issue with building cmake (I chose to ignore this 
>> module):
>> Error when bootstrapping CMake:
>> Cannot find a C++ compiler supporting C++11 on this system.
>> Please specify one using environment variable CXX.
>> See cmake_bootstrap.log for compilers attempted.
>> ---------------------------------------------
>> Log of errors: 
>> /Users/miro/gtk/source/cmake-3.10.0/Bootstrap.cmk/cmake_bootstrap.log
>> ---------------------------------------------
>> *** Error during phase configure of cmake: ########## Error running 
>> ./bootstrap --prefix=/Users/miro/gtk/inst *** [8/24]
>> ...
>> *** module meta-bootstrap not built due to non buildable cmake *** [24/24]
>> *** the following modules were not built *** [24/24]
>> cmake meta-bootstrap
>>
>> Step #3 had the following issues, I chose to ignore modules in order to 
>> collect all the issues at one place:
>>
>>   GEN    pt_BR/
>> /Users/miro/gtk/inst/bin/bash: line 1: 28115 Segmentation fault: 11  itstool 
>> -m "${mo}" ${d}/C/index.docbook ${d}/C/fdl-appendix.xml
>> make[2]: *** [fr/fr.stamp] Error 139
>> make[2]: *** Waiting for unfinished jobs....
>> /Users/miro/gtk/inst/bin/bash: line 1: 28130 Segmentation fault: 11  itstool 
>> -m "${mo}" ${d}/C/index.docbook ${d}/C/fdl-appendix.xml
>> make[2]: *** [pt_BR/pt_BR.stamp] Error 139
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all-recursive] Error 1
>> *** Error during phase build of gtk-doc: ########## Error running make -j 5  
>> *** [12/43]
>>
>> I've tried to reduce the job done by gtk-doc build process by adding this, 
>> but it did not help:
>> append_autogenargs("gtk-doc", "--without-xml --without-yelp-tools")
>>
>> ...
>>
>>  CC       alphamap.o
>> utils-prng.c:207:27: error: use of unknown builtin '__builtin_shuffle'
>>       [-Wimplicit-function-declaration]
>>             randdata.vb = __builtin_shuffle (randdata.vb, bswap_shufflemask);
>>                           ^
>> utils-prng.c:207:25: error: assigning to 'uint8x16' (vector of 16 'uint8_t'
>>       values) from incompatible type 'int'
>>             randdata.vb = __builtin_shuffle (randdata.vb, bswap_shufflemask);
>>                         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 2 errors generated.
>> make[2]: *** [utils-prng.lo] Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> *** Error during phase build of pixman: ########## Error running make -j 5  
>> *** [16/43]
>>
>> Other issues are a consequence of these previous ones (described above):
>>
>> checking GLib Version... checking for gtk-doc... no
>> configure: WARNING:
>>   You will not be able to create source packages with 'make dist'
>>   because gtk-doc >= 1.11 is not found.
>> checking for gtkdoc-check... no
>> checking for gtkdoc-check... no
>> checking for gtkdoc-rebase... no
>> checking for gtkdoc-mkpdf... no
>> checking whether to build gtk-doc documentation... no
>> checking for GTKDOC_DEPS... yes
>> checking for GTK3... no
>> configure: WARNING: GTK+-3.0 not found
>> checking for GTK2... no
>> configure: WARNING: GTK+-2.0 not found
>> configure: error: Neither GTK+-2.0 nor GTK+-3.0 was found
>> *** Error during phase configure of gtk-mac-integration: ########## Error 
>> running ./configure --prefix /Users/miro/gtk/inst --disable-python   *** 
>> [32/43]
>>
>> checking for LIBRSVG... no
>> configure: error: Package requirements (    gdk-pixbuf-2.0 >= 2.20     
>> glib-2.0 >= 2.12.0     gio-2.0 >= 2.24.0     libxml-2.0 >= 2.7.0     
>> pangocairo >= 1.32.6     cairo >= 1.2.0     cairo-png >= 1.2.0
>>         libcroco-0.6 >= 0.6.1) were not met:
>>
>> No package 'pangocairo' found
>> No package 'cairo' found
>> No package 'cairo-png' found
>>
>> Consider adjusting the PKG_CONFIG_PATH environment variable if you
>> installed software in a non-standard prefix.
>>
>> Alternatively, you may set the environment variables LIBRSVG_CFLAGS
>> and LIBRSVG_LIBS to avoid the need to call pkg-config.
>> See the pkg-config man page for more details.
>> *** Error during phase configure of librsvg: ########## Error running 
>> ./configure --prefix /Users/miro/gtk/inst --disable-Bsymbolic   *** [35/43]
>> ...
>> configure: error: GTK+-2.12 is required to compile gtk-engines
>> *** Error during phase configure of gtk-engines: ########## Error running 
>> ./configure --prefix /Users/miro/gtk/inst    *** [41/43]
>> ...
>> No package 'gtk+-3.0' found
>>
>> Consider adjusting the PKG_CONFIG_PATH environment variable if you
>> installed software in a non-standard prefix.
>>
>> Alternatively, you may set the environment variables DEP_CFLAGS
>> and DEP_LIBS to avoid the need to call pkg-config.
>> See the pkg-config man page for more details.
>> *** Error during phase configure of gtksourceview3: ########## Error running 
>> ./configure --prefix /Users/miro/gtk/inst    *** [43/43]
>>
>> *** the following modules were not built *** [43/43]
>> gtk-doc meta-gtk-osx-bootstrap pixman cairo gobject-introspection pango 
>> gtk+-3.0 gtk-mac-integration librsvg adwaita-icon-theme 
>> gnome-themes-standard meta-gtk-osx-gtk3-core-themes meta-gtk-osx-gtk3 
>> gtk-engines meta-gtk-osx-themes gtksourceview3
>>
>> Note that I got the same issues with gtk-doc when adding "python" into the 
>> step #3.
>>
>> Any tips to resolve these issues?
>
> Thanks for reporting this.
>
> I haven’t yet tried building from scratch with Xcode 9.3 so there may be some 
> new wrinkles. Unfortunately there are a bunch of modules that insist on 
> gtk-doc even if you tell them that you don’t want to build the documentation.
>
> gtk-doc built for me a couple of weeks ago when I built Python3 first and 
> then from a jhbuild shell installed pypi and six.
>
> The __builtin_shuffle problem is 
> https://bugs.freedesktop.org/show_bug.cgi?id=104886. Phil Chimento has 
> provided a patch.

Sorry it took so long to get back to this. I overlooked something when I first 
read your letter: meta-gtk-osx-themes is for gtk2, you want 
meta-gtk-osx-core-themes instead.
Also, if you're targeting an old MacOS version you need to build Python or 
gobject-introspection will fail to link because of differing 
mac-osx-minimum-version flags between it and libpython.

I just did a build from scratch with Xcode 9.4, no problems. It looks like you 
have a compiler problem: Clang from Xcode 9 is most assuredly C++11-capable, 
itstool shouldn't segfault, and pixman should be able to figure out that clang 
does __builtin_shufflevector but not __builtin_shuffle.

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

Reply via email to