[gtk-osx-users] Cannot build for 10.6 after upgrading to XCode 4.4.1



During bootstrap, the first module fails during configure.
The config.log says this:

configure:2895: checking build system type
configure:2909: result: x86_64-apple-darwin11.4.0
configure:2929: checking host system type
configure:2942: result: x86_64-apple-darwin11.4.0
configure:2996: checking if debugging code should be compiled
configure:3012: result: no
configure:3052: checking which encoders to build
configure:3139: result: lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
configure:3143: checking which decoders to build
configure:3235: result: lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
configure:3574: checking which match finders to build
configure:3625: result: hc3 hc4 bt2 bt3 bt4
configure:3649: checking which integrity checks to build
configure:3691: result: crc32 crc64 sha256
configure:3728: checking if assembler optimizations should be used
configure:3752: result: no
configure:3783: checking if small size is preferred over speed
configure:3801: result: no
configure:3817: checking if threading support is wanted
configure:3831: result: yes
configure:3844: checking how much RAM to assume if the real amount is unknown
configure:3859: result: 128 MiB
configure:3975: checking for a shell that conforms to POSIX
configure:4016: result: /bin/sh
configure:4052: checking for a BSD-compatible install
configure:4120: result: /Users/user/.local/bin/install-check
configure:4131: checking whether build environment is sane
configure:4181: result: yes
configure:4322: checking for a thread-safe mkdir -p
configure:4361: result: build-aux/install-sh -c -d
configure:4374: checking for gawk
configure:4404: result: no
configure:4374: checking for mawk
configure:4404: result: no
configure:4374: checking for nawk
configure:4404: result: no
configure:4374: checking for awk
configure:4390: found /usr/bin/awk
configure:4401: result: awk
configure:4412: checking whether make -j3 sets $(MAKE)
configure:4434: result: yes
configure:4514: checking whether ln -s works
configure:4518: result: yes
configure:4538: checking for style of include used by make -j3
configure:4566: result: GNU
configure:4636: checking for gcc
configure:4663: result: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2
configure:4892: checking for C compiler version
configure:4901: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4912: $? = 0
configure:4901: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
configure:4912: $? = 0
configure:4901: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:4912: $? = 1
configure:4901: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -qversion >&5
i686-apple-darwin11-llvm-gcc-4.2: no input files
configure:4912: $? = 1
configure:4932: checking whether the C compiler works
configure:4954: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -arch x86_64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch x86_64 -arch x86_64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch x86_64 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -I/Users/user/gimp/10.6/inst/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -I/Users/user/gimp/10.6/inst/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -L/Users/user/gimp/10.6/inst/lib -L/Users/user/gimp/10.6/inst/lib -arch x86_64 -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib -arch x86_64 -L/Users/user/gimp/10.6/inst/lib -L/Users/user/gimp/10.6/inst/lib -arch x86_64 -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib -arch x86_64 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wl,-headerpad_max_install_names conftest.c  >&5
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib'
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib'
configure:4958: $? = 0
configure:5006: result: yes
configure:5009: checking for C compiler default output file name
configure:5011: result: a.out
configure:5017: checking for suffix of executables
configure:5024: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -o conftest -arch x86_64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch x86_64 -arch x86_64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch x86_64 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -I/Users/user/gimp/10.6/inst/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -I/Users/user/gimp/10.6/inst/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -L/Users/user/gimp/10.6/inst/lib -L/Users/user/gimp/10.6/inst/lib -arch x86_64 -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib -arch x86_64 -L/Users/user/gimp/10.6/inst/lib -L/Users/user/gimp/10.6/inst/lib -arch x86_64 -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib -arch x86_64 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wl,-headerpad_max_install_names conftest.c  >&5
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib'
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib'
configure:5028: $? = 0
configure:5050: result: 
configure:5072: checking whether we are cross compiling
configure:5080: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -o conftest -arch x86_64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch x86_64 -arch x86_64 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch x86_64 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -I/Users/user/gimp/10.6/inst/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -I/Users/user/gimp/10.6/inst/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include -L/Users/user/gimp/10.6/inst/lib -L/Users/user/gimp/10.6/inst/lib -arch x86_64 -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib -arch x86_64 -L/Users/user/gimp/10.6/inst/lib -L/Users/user/gimp/10.6/inst/lib -arch x86_64 -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/lib -arch x86_64 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wl,-headerpad_max_install_names conftest.c  >&5
conftest.c:39:19: error: stdio.h: No such file or directory
conftest.c: In function 'main':
conftest.c:43: error: 'FILE' undeclared (first use in this function)
conftest.c:43: error: (Each undeclared identifier is reported only once
conftest.c:43: error: for each function it appears in.)
conftest.c:43: error: 'f' undeclared (first use in this function)
configure:5084: $? = 1
configure:5091: ./conftest
./configure: line 5093: ./conftest: No such file or directory
configure:5095: $? = 127
configure:5102: error: in `/Users/user/gimp/10.6/source/xz-5.0.1':
configure:5104: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

The thing to note is the missing MacOSX10.6.sdk dir.

I entered the XCode.app, and found my way to the sdk folder. In there, I found 2 folders.

MacOSX10.7.sdk
MacOSX10.8.sdk

My question is, during the upgrade to 4.4.1, did anybody else lose their MacOSX10.6.sdk folder, or was there ever even a MacOSX10.6.sdk folder in the first place? Am I just configuring everything incorrectly?

This is my custom jhbuildrc file:

# -*- mode: python -*-

import sys

_gsdk = os.environ.get('GIMP_SDK', None)

if not _gsdk:
    sys.stderr.write("No GIMP_SDK environment given. Please provide 10.x\n")
    sys.exit(1)

_sdkversion = "_gsdk"
_architecture = _default_arch

if _gsdk == '10.4':
    _sdkversion = "10.4u"
    os.environ["OBJC"] = "/usr/bin/gcc-4.0"
    _architecture = "i386"
    append_autogenargs('glib-gtk3', '--with-libiconv=gnu')
else:
    _architecture = "x86_64"
    append_autogenargs('glib-gtk3', '--with-libiconv=native')

checkoutroot = os.path.expanduser("~/gimp/" + _gsdk + "/source")
prefix = os.path.expanduser("~/gimp/" + _gsdk + "/inst")
tarballdir = os.path.expanduser("~/gimp/pkgs")

# Main setup
setup_sdk(target=_gsdk, sdk_version=_sdkversion, architectures=[_architecture])

# Set OBJCFLAGS
_sdkdir = get_sdkdir(make_sdk_name(_sdkversion))

environ_prepend("OBJCFLAGS", "-I" + _sdkdir + "/usr/include")
environ_append("OBJCFLAGS", "-isysroot " + _sdkdir)
environ_prepend("OBJCFLAGS", "-arch " + _architecture)
environ_append("OBJCFLAGS", "-mmacosx-version-min=" + _gsdk)

# Build with more than one core. Use # of cores +1.
os.environ['MAKE'] = 'make -j3'

skip.append("libiconv")

# Main module set
moduleset = "/Users/user/gimp/directory/gimp.modules"

I then attempt to build with:

$ JHB=gimp GIMP_SDK=10.6 jhbuild bootstrap

--
Please note that this signature is licensed under the General Public License. By embedding the signature, or parts of it, into your brain other than by mere aggregation, your brain becomes a combined, and therefore derived, work and thus must be licensed under the GPL too.



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