Hello Andrea,<div><br></div><div>Thanks a lot, indeed I succeeded with jhbuild build meta-gtk-osx-bootstrap after I added the following to my ~/.jhbuildrc-custom:</div><div><div>os.environ["CC"] = "/usr/bin/llvm-gcc-4.2"</div>
<div>os.environ["CXX"] = "/usr/bin/llvm-g++-4.2"</div><div><br></div><div>Somehow I thought that llvm-gcc and llvm-g++ are already the only compilers present on Macs, but apparently that's not the case.</div>
<div><br></div><div>I'm now building meta-gtk-osx-core, let's see how it goes.</div><br><div class="gmail_quote">On Tue, Jan 10, 2012 at 2:53 AM, Andrea Canciani <span dir="ltr"><<a href="mailto:ranma42@gmail.com">ranma42@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Jan 9, 2012 at 8:27 PM, Eugene Kirpichov <<a href="mailto:ekirpichov@gmail.com">ekirpichov@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm following the instructions at <a href="http://live.gnome.org/GTK%2B/OSX/Building" target="_blank">http://live.gnome.org/GTK%2B/OSX/Building</a><br>
> on a Mac OS X Lion 10.7.2, gcc 4.2.<br>
><br>
> After customizing my ~/.jhbuildrc-custom with the following<br>
><br>
> # setup_sdk(target=_target, sdk_version="native",<br>
> architectures=[_default_arch])<br>
> ...<br>
> moduleset =<br>
> "<a href="http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules" target="_blank">http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules</a>"<br>
> setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"])<br>
><br>
> So - after that, I got jhbuild bootstrap to succeed, but jhbuild build<br>
> meta-gtk-osx-bootstrap fails with the following transcript [1] (just the end<br>
> of it).<br>
><br>
> I was able to reproduce the same thing with a program that just says<br>
> "#include <stdarg.h>" (and nothing more) - two invocations of g++, one<br>
> successful [2] and one unsuccessful [3], included.<br>
><br>
> Looks like the issue is that there's no usr/lib/gcc/... folder with a<br>
> platform-specific stdarg.h under the -isysroot set by configure.<br>
><br>
> How can I fix this error? I'm assuming that either jhbuild shouldn't have<br>
> set -isysroot to the value it has set it to, or perhaps this is an actual<br>
> incompatibility with gcc 4.2, but looks like with my level of knowledge<br>
> about this build system and general peculiarities of building on Mac (which<br>
> I've got only recently), asking for help from the community is the best<br>
> thing I can do.<br>
<br>
</div></div>I think you might want to try your test commands using the default<br>
compiler (i.e. g++, aka llvm-g++ aka llvm-g++-4.2).<br>
If they manage to compile your test (and/or libtiff), then you're<br>
probably missing some "true-gcc"-specific headers.<br>
FWIW, I managed to reproduce the issue on my laptop (XCode 4.2.1)<br>
using g++-4.2, but the compilation was fine with llvm-g++:<br>
<br>
$ /usr/bin/g++-4.2 conftest.cxx -isysroot /Developer/SDKs/MacOSX10.6.sdk/<br>
In file included from conftest.cxx:1:<br>
/Developer/SDKs/MacOSX10.6.sdk//usr/include/stdarg.h:4:25: error:<br>
<div class="im">stdarg.h: No such file or directory<br>
</div>$ /usr/bin/g++ conftest.cxx -isysroot /Developer/SDKs/MacOSX10.6.sdk/<br>
$<br>
<br>
It's possible that those headers were available in older XCode versions.<br>
"On 10.7 (Lion), use XCode 4.1, which is a free download from the App Store."<br>
This might mean that XCode 4.2.x has not been tested and/or that this<br>
is not a known issue.<br>
<br>
You might want to report this problem (and any progress you managed to<br>
do, example: maybe it just works with llvm-g++) to a GTK+ development<br>
mailing list.<br>
<br>
AFAICT the solutions might be to:<br>
- avoid -isysroot if "true gcc" is to be used<br>
- use llvm-gcc<br>
<br>
Andrea<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
><br>
> == TRANSCRIPT 1 ==<br>
><br>
> *** Building libtiff *** [12/15]<br>
> make<br>
> Making all in port<br>
> make[1]: Nothing to be done for `all'.<br>
> Making all in libtiff<br>
> make all-am<br>
> /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-4.2<br>
> -DHAVE_CONFIG_H -I. -I/Users/jkff/gtk/inst/include<br>
> -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -I/Users/jkff/gtk/inst/include<br>
> -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch i386<br>
> -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch i386<br>
> -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot<br>
> /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -isysroot<br>
> /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -MT tif_stream.lo<br>
> -MD -MP -MF .deps/tif_stream.Tpo -c -o tif_stream.lo tif_stream.cxx<br>
> libtool: compile: /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I.<br>
> -I/Users/jkff/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include<br>
> -I/Users/jkff/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include<br>
> -arch i386 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch i386<br>
> -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot<br>
> /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -isysroot<br>
> /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -MT tif_stream.lo<br>
> -MD -MP -MF .deps/tif_stream.Tpo -c tif_stream.cxx -fno-common -DPIC -o<br>
> .libs/tif_stream.o<br>
> In file included from tiffio.h:247,<br>
> from tiffiop.h:70,<br>
> from tif_stream.cxx:30:<br>
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:<br>
> No such file or directory<br>
> In file included from<br>
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/iosfwd:45,<br>
> from<br>
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ios:43,<br>
> from<br>
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ostream:45,<br>
> from<br>
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/iostream:45,<br>
> from tif_stream.cxx:31:<br>
><br>
> == TRANSCRIPT 2 ==<br>
> jkff@jkff-laptop ~ $ /usr/bin/g++-4.2 tmp.cxx -o tmp.o -v<br>
> Using built-in specs.<br>
> Target: i686-apple-darwin11<br>
> Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure<br>
> --disable-checking --enable-werror --prefix=/usr --mandir=/share/man<br>
> --enable-languages=c,objc,c++,obj-c++<br>
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib<br>
> --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11-<br>
> --host=x86_64-apple-darwin11 --target=i686-apple-darwin11<br>
> --with-gxx-include-dir=/include/c++/4.2.1<br>
> Thread model: posix<br>
> gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)<br>
> /usr/libexec/gcc/i686-apple-darwin11/4.2.1/cc1plus -quiet -v -imultilib<br>
> x86_64 -D__DYNAMIC__ tmp.cxx -fPIC -quiet -dumpbase tmp.cxx<br>
> -mmacosx-version-min=10.6 -m64 -mtune=core2 -auxbase tmp -version<br>
> -D__private_extern__=extern -o<br>
> /var/folders/jt/r80dbv9d45187qzh0yg853r80000gn/T//ccVJEdap.s<br>
> ignoring nonexistent directory<br>
> "/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64"<br>
> ignoring nonexistent directory<br>
> "/usr/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"<br>
> #include "..." search starts here:<br>
> #include <...> search starts here:<br>
> /Users/jkff/gtk/inst/include<br>
> /usr/include/c++/4.2.1<br>
> /usr/include/c++/4.2.1/backward<br>
> /usr/local/include<br>
> /usr/lib/gcc/i686-apple-darwin11/4.2.1/include<br>
> /usr/include<br>
> /System/Library/Frameworks (framework directory)<br>
> /Library/Frameworks (framework directory)<br>
> End of search list.<br>
> GNU C++ version 4.2.1 (Apple Inc. build 5666) (dot 3) (i686-apple-darwin11)<br>
> compiled by GNU C version 4.2.1 (Apple Inc. build 5666) (dot 3).<br>
> GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=65536<br>
> Compiler executable checksum: 1c5d175013b2657e11ab1c9aa1767c94<br>
> /usr/libexec/gcc/i686-apple-darwin11/4.2.1/as -arch x86_64<br>
> -force_cpusubtype_ALL -o<br>
> /var/folders/jt/r80dbv9d45187qzh0yg853r80000gn/T//ccgQqR0Y.o<br>
> /var/folders/jt/r80dbv9d45187qzh0yg853r80000gn/T//ccVJEdap.s<br>
> (etc.)<br>
><br>
> == TRANSCRIPT 3 ==<br>
> jkff@jkff-laptop ~ $ /usr/bin/g++-4.2 -isysroot<br>
> /Developer/SDKs/MACOSX10.6.sdk tmp.cxx -o tmp.o -v<br>
> Using built-in specs.<br>
> Target: i686-apple-darwin11<br>
> Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure<br>
> --disable-checking --enable-werror --prefix=/usr --mandir=/share/man<br>
> --enable-languages=c,objc,c++,obj-c++<br>
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib<br>
> --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11-<br>
> --host=x86_64-apple-darwin11 --target=i686-apple-darwin11<br>
> --with-gxx-include-dir=/include/c++/4.2.1<br>
> Thread model: posix<br>
> gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)<br>
> /usr/libexec/gcc/i686-apple-darwin11/4.2.1/cc1plus -quiet -v -imultilib<br>
> x86_64 -D__DYNAMIC__ -isysroot /Developer/SDKs/MACOSX10.6.sdk tmp.cxx -fPIC<br>
> -quiet -dumpbase tmp.cxx -mmacosx-version-min=10.6 -m64 -mtune=core2<br>
> -auxbase tmp -version -D__private_extern__=extern -o<br>
> /var/folders/jt/r80dbv9d45187qzh0yg853r80000gn/T//cckFctdM.s<br>
> ignoring nonexistent directory<br>
> "/Developer/SDKs/MACOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin11/4.2.1/include"<br>
> ignoring nonexistent directory<br>
> "/Developer/SDKs/MACOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"<br>
> #include "..." search starts here:<br>
> #include <...> search starts here:<br>
> /Users/jkff/gtk/inst/include<br>
> /Developer/SDKs/MACOSX10.6.sdk/usr/include/c++/4.2.1<br>
> /Developer/SDKs/MACOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64<br>
> /Developer/SDKs/MACOSX10.6.sdk/usr/include/c++/4.2.1/backward<br>
> /Developer/SDKs/MACOSX10.6.sdk/usr/local/include<br>
> /Developer/SDKs/MACOSX10.6.sdk/usr/include<br>
> /Developer/SDKs/MACOSX10.6.sdk/System/Library/Frameworks (framework<br>
> directory)<br>
> /Developer/SDKs/MACOSX10.6.sdk/Library/Frameworks (framework directory)<br>
> End of search list.<br>
> GNU C++ version 4.2.1 (Apple Inc. build 5666) (dot 3) (i686-apple-darwin11)<br>
> compiled by GNU C version 4.2.1 (Apple Inc. build 5666) (dot 3).<br>
> GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=65536<br>
> Compiler executable checksum: 1c5d175013b2657e11ab1c9aa1767c94<br>
> In file included from tmp.cxx:1:<br>
> /Developer/SDKs/MACOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:<br>
> No such file or directory<br>
><br>
><br>
> --<br>
> Eugene Kirpichov<br>
> Principal Engineer, Mirantis Inc. <a href="http://www.mirantis.com/" target="_blank">http://www.mirantis.com/</a><br>
> Editor, <a href="http://fprog.ru/" target="_blank">http://fprog.ru/</a><br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> cairo mailing list<br>
> <a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
> <a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Eugene Kirpichov<br>Principal Engineer, Mirantis Inc. <a href="http://www.mirantis.com/" target="_blank">http://www.mirantis.com/</a><br>Editor, <a href="http://fprog.ru/" target="_blank">http://fprog.ru/</a><br>
</div>