Re: [gtk-osx-devel] Building gtk+3 on macOS - pygobject3 build error



Coincidence, I just opened https://bugzilla.gnome.org/show_bug.cgi?id=773803 for that, as I ran into it while building from the regular GNOME modulesets. It affects libpeas too.

I would have thought it was fixed by https://github.com/jralls/gtk-osx-build/blob/master/patches/Python3.4-stack_size-flag.patch although that doesn't seem to fix it for me. Perhaps it's because the patch is not applying correctly to Python 3.5.2, which is what I'm building.

Regards,
Philip


On Fri, Nov 4, 2016 at 11:45 AM John Ralls <jralls ceridwen us> wrote:

> On Nov 4, 2016, at 10:22 AM, Марко М. Костић <marko m kostic gmail com> wrote:
>
> First of all, thank you Jim Charlton and John Ralls for assisting me in resolving issues
> with building of libepoxy. I have managed to build it by using John's instructions.
>
> Anyhow, I hit another bump in the road when I tried to build moduleset meta-gtk-osx-python3-gtk3.
> The same configuration is in question (macOS Sierra 10.12.1, Xcode 8.1). The problem happens
> during the build process of the pygobject3 module.
>
> The output of the failed build follows:
>
>    Making all in tests
>    test -L libgimarshallingtests.dylib || ln -s .libs/libgimarshallingtests.dylib libgimarshallingtests.dylib
>    test -L libregress.dylib || ln -s .libs/libregress.dylib libregress.dylib
>      GEN      testhelper.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[2]: *** [testhelper.la] Error 1
>    make[1]: *** [all-recursive] Error 1
>    make: *** [all] Error 2
>    *** Error during phase build of pygobject3: ########## Error running make -j 3  *** [33/35]
>
>
> Does anybody know what could cause this?

Yes, it's an error in libs/python3.4/_sysconfigdata.py
'LINKFORSHARED': '-Wl,stack_size=100000 -framework CoreFoundation',
should be
'LINKFORSHARED': '-framework CoreFoundation',

Just edit it to remove the stack_size option.

Regards,
John Ralls

_______________________________________________
Gtk-osx-devel-list mailing list
Gtk-osx-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-osx-devel-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]