Re: [gtk-osx-users] distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.7" but "10.8" during configure



As far as I can see, this is because it's trying to build a py extension module against a 10.7 SDK, but it's trying to link against the system python, which is built against to 10.8 SDK. You can either:

1) Make sure to built your own stuff against 10.8 instead of 10.7
2) Built python using jhbuild and don't use the system python


2014-08-28 18:16 GMT+02:00 David Lowe <doctorjlowe verizon net>:
        After a long while of not using gtk-osx, i try again now.  The system was installed under Lion and upgraded in place to 10.8.5.  Xcode is 5.0.2. Here is the output of 'jhbuild build meta-gtk-osx-core':

> *** Configuring gobject-introspection *** [5/11]
> ./configure --prefix /Users/gtk/gtk/inst --libdir '/Users/gtk/gtk/inst/lib'
> checking for a BSD-compatible install... /Users/gtk/.local/bin/install-check
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether UID '506' is supported by ustar format... yes
> checking whether GID '20' is supported by ustar format... yes
> checking how to create a ustar tar archive... gnutar
> checking whether to enable maintainer-specific portions of Makefiles... yes
> checking whether make supports nested variables... (cached) yes
> checking build system type... x86_64-apple-darwin12.5.0
> checking host system type... x86_64-apple-darwin12.5.0
> checking for gcc... /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/gcc accepts -g... yes
> checking for /Applications/Xcode.app/Contents/Developer/usr/bin/gcc option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of /Applications/Xcode.app/Contents/Developer/usr/bin/gcc... gcc3
> checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/gcc and cc understand -c and -o together... yes
> checking how to print strings... printf
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for fgrep... /usr/bin/grep -F
> checking for ld used by /Applications/Xcode.app/Contents/Developer/usr/bin/gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
> checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
> checking the name lister (/usr/bin/nm) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 196608
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking how to convert x86_64-apple-darwin12.5.0 file names to x86_64-apple-darwin12.5.0 format... func_convert_file_noop
> checking how to convert x86_64-apple-darwin12.5.0 file names to toolchain format... func_convert_file_noop
> checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
> checking for objdump... no
> checking how to recognize dependent libraries... pass_all
> checking for dlltool... no
> checking how to associate runtime and link libraries... printf %s\n
> checking for ar... ar
> checking for archiver @FILE support... no
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm output from /Applications/Xcode.app/Contents/Developer/usr/bin/gcc object... ok
> checking for sysroot... no
> checking for mt... no
> checking if : is a manifest tool... no
> checking for dsymutil... dsymutil
> checking for nmedit... nmedit
> checking for lipo... lipo
> checking for otool... otool
> checking for otool64... no
> checking for -single_module linker flag... yes
> checking for -exported_symbols_list linker flag... yes
> checking for -force_load linker flag... yes
> checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc supports -fno-rtti -fno-exceptions... yes
> checking for /Applications/Xcode.app/Contents/Developer/usr/bin/gcc option to produce PIC... -fno-common -DPIC
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc PIC flag -fno-common -DPIC works... yes
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc static flag -static works... no
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc supports -c -o file.o... yes
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc supports -c -o file.o... (cached) yes
> checking whether the /Applications/Xcode.app/Contents/Developer/usr/bin/gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
> checking dynamic linker characteristics... darwin12.5.0 dyld
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for pkg-config... /Users/gtk/gtk/inst/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for flex... flex
> checking lex output file root... lex.yy
> checking lex library... -ll
> checking whether yytext is a pointer... yes
> checking for bison... bison -y
> checking for dlopen in -ldl... yes
> checking for the suffix of shared libraries... .dylib
> checking for GLIB... yes
> checking for GOBJECT... yes
> checking for GMODULE... yes
> checking for GIO... yes
> checking for GIO_UNIX... yes
> checking for CAIRO... yes
> checking for SCANNER... yes
> checking for FFI... yes
> checking size of char... 1
> checking size of short... 2
> checking size of int... 4
> checking size of long... 8
> checking for GIREPO... yes
> checking for gtkdoc-check... /Users/gtk/gtk/inst/bin/gtkdoc-check
> checking for gtkdoc-rebase... /Users/gtk/gtk/inst/bin/gtkdoc-rebase
> checking for gtkdoc-mkpdf... /Users/gtk/gtk/inst/bin/gtkdoc-mkpdf
> checking whether to build gtk-doc documentation... no
> checking for ANSI C header files... (cached) yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for an ANSI C-conforming const... yes
> checking for working strtod... yes
> checking for memchr... yes
> checking for strchr... yes
> checking for strspn... yes
> checking for strstr... yes
> checking for strtol... yes
> checking for strtoull... yes
> checking for backtrace... yes
> checking for backtrace_symbols... yes
> checking for a Python interpreter with version >= 2.6... python
> checking for python... /usr/bin/python
> checking for python version... 2.7
> checking for python platform... darwin
> checking for python script directory... ${prefix}/lib/python2.7/site-packages
> checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
> checking for headers required to compile python extensions... Traceback (most recent call last):
>   File "/usr/bin/python2.7-config", line 26, in <module>
>     pyver = sysconfig.get_config_var('VERSION')
>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 585, in get_config_var
>     return get_config_vars().get(name)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 498, in get_config_vars
>     func()
>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 407, in _init_posix
>     raise DistutilsPlatformError(my_msg)
> distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.7" but "10.8" during configure
> not found
> configure: error: Python headers not found
> *** Error during phase configure of gobject-introspection: ########## Error running ./configure --prefix /Users/gtk/gtk/inst --libdir '/Users/gtk/gtk/inst/lib'    *** [5/11]

        Explicitly setting $MACOSX_DEPLOYMENT_TARGET in ~/.profile didn't help.  Where is this version pollution coming from, and what else can i do about it?

sent from Mountain Lion

As God is my witness, I'll never be hungry again!
_______________________________________________
Gtk-osx-users-list mailing list
Gtk-osx-users-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list



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