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[&quot;CC&quot;] = &quot;/usr/bin/llvm-gcc-4.2&quot;</div>
<div>os.environ[&quot;CXX&quot;] = &quot;/usr/bin/llvm-g++-4.2&quot;</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&#39;s not the case.</div>
<div><br></div><div>I&#39;m now building meta-gtk-osx-core, let&#39;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">&lt;<a href="mailto:ranma42@gmail.com">ranma42@gmail.com</a>&gt;</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 &lt;<a href="mailto:ekirpichov@gmail.com">ekirpichov@gmail.com</a>&gt; wrote:<br>

&gt; Hi,<br>
&gt;<br>
&gt; I&#39;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>
&gt; on a Mac OS X Lion 10.7.2, gcc 4.2.<br>
&gt;<br>
&gt; After customizing my ~/.jhbuildrc-custom with the following<br>
&gt;<br>
&gt; # setup_sdk(target=_target, sdk_version=&quot;native&quot;,<br>
&gt; architectures=[_default_arch])<br>
&gt; ...<br>
&gt; moduleset =<br>
&gt; &quot;<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>&quot;<br>
&gt; setup_sdk(target=&quot;10.6&quot;, sdk_version=&quot;10.6&quot;, architectures=[&quot;i386&quot;])<br>
&gt;<br>
&gt; So - after that, I got jhbuild bootstrap to succeed, but jhbuild build<br>
&gt; meta-gtk-osx-bootstrap fails with the following transcript [1] (just the end<br>
&gt; of it).<br>
&gt;<br>
&gt; I was able to reproduce the same thing with a program that just says<br>
&gt; &quot;#include &lt;stdarg.h&gt;&quot; (and nothing more) - two invocations of g++, one<br>
&gt; successful [2] and one unsuccessful [3], included.<br>
&gt;<br>
&gt; Looks like the issue is that there&#39;s no usr/lib/gcc/... folder with a<br>
&gt; platform-specific stdarg.h under the -isysroot set by configure.<br>
&gt;<br>
&gt; How can I fix this error? I&#39;m assuming that either jhbuild shouldn&#39;t have<br>
&gt; set -isysroot to the value it has set it to, or perhaps this is an actual<br>
&gt; incompatibility with gcc 4.2, but looks like with my level of knowledge<br>
&gt; about this build system and general peculiarities of building on Mac (which<br>
&gt; I&#39;ve got only recently), asking for help from the community is the best<br>
&gt; 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&#39;re<br>
probably missing some &quot;true-gcc&quot;-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&#39;s possible that those headers were available in older XCode versions.<br>
&quot;On 10.7 (Lion), use XCode 4.1, which is a free download from the App Store.&quot;<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 &quot;true gcc&quot; is to be used<br>
 - use llvm-gcc<br>
<br>
Andrea<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
&gt;<br>
&gt; == TRANSCRIPT 1 ==<br>
&gt;<br>
&gt; *** Building libtiff *** [12/15]<br>
&gt; make<br>
&gt; Making all in port<br>
&gt; make[1]: Nothing to be done for `all&#39;.<br>
&gt; Making all in libtiff<br>
&gt; make  all-am<br>
&gt; /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2<br>
&gt; -DHAVE_CONFIG_H -I.   -I/Users/jkff/gtk/inst/include<br>
&gt; -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -I/Users/jkff/gtk/inst/include<br>
&gt; -I/Developer/SDKs/MacOSX10.6.sdk/usr/include  -arch i386<br>
&gt; -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch i386<br>
&gt; -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -isysroot<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -MT tif_stream.lo<br>
&gt; -MD -MP -MF .deps/tif_stream.Tpo -c -o tif_stream.lo tif_stream.cxx<br>
&gt; libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I.<br>
&gt; -I/Users/jkff/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include<br>
&gt; -I/Users/jkff/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include<br>
&gt; -arch i386 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -arch i386<br>
&gt; -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -isysroot<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -MT tif_stream.lo<br>
&gt; -MD -MP -MF .deps/tif_stream.Tpo -c tif_stream.cxx  -fno-common -DPIC -o<br>
&gt; .libs/tif_stream.o<br>
&gt; In file included from tiffio.h:247,<br>
&gt;                  from tiffiop.h:70,<br>
&gt;                  from tif_stream.cxx:30:<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:<br>
&gt; No such file or directory<br>
&gt; In file included from<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/iosfwd:45,<br>
&gt;                  from<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ios:43,<br>
&gt;                  from<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ostream:45,<br>
&gt;                  from<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/iostream:45,<br>
&gt;                  from tif_stream.cxx:31:<br>
&gt;<br>
&gt; == TRANSCRIPT 2 ==<br>
&gt; jkff@jkff-laptop ~ $ /usr/bin/g++-4.2 tmp.cxx -o tmp.o -v<br>
&gt; Using built-in specs.<br>
&gt; Target: i686-apple-darwin11<br>
&gt; Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure<br>
&gt; --disable-checking --enable-werror --prefix=/usr --mandir=/share/man<br>
&gt; --enable-languages=c,objc,c++,obj-c++<br>
&gt; --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib<br>
&gt; --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11-<br>
&gt; --host=x86_64-apple-darwin11 --target=i686-apple-darwin11<br>
&gt; --with-gxx-include-dir=/include/c++/4.2.1<br>
&gt; Thread model: posix<br>
&gt; gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)<br>
&gt;  /usr/libexec/gcc/i686-apple-darwin11/4.2.1/cc1plus -quiet -v -imultilib<br>
&gt; x86_64 -D__DYNAMIC__ tmp.cxx -fPIC -quiet -dumpbase tmp.cxx<br>
&gt; -mmacosx-version-min=10.6 -m64 -mtune=core2 -auxbase tmp -version<br>
&gt; -D__private_extern__=extern -o<br>
&gt; /var/folders/jt/r80dbv9d45187qzh0yg853r80000gn/T//ccVJEdap.s<br>
&gt; ignoring nonexistent directory<br>
&gt; &quot;/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64&quot;<br>
&gt; ignoring nonexistent directory<br>
&gt; &quot;/usr/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include&quot;<br>
&gt; #include &quot;...&quot; search starts here:<br>
&gt; #include &lt;...&gt; search starts here:<br>
&gt;  /Users/jkff/gtk/inst/include<br>
&gt;  /usr/include/c++/4.2.1<br>
&gt;  /usr/include/c++/4.2.1/backward<br>
&gt;  /usr/local/include<br>
&gt;  /usr/lib/gcc/i686-apple-darwin11/4.2.1/include<br>
&gt;  /usr/include<br>
&gt;  /System/Library/Frameworks (framework directory)<br>
&gt;  /Library/Frameworks (framework directory)<br>
&gt; End of search list.<br>
&gt; GNU C++ version 4.2.1 (Apple Inc. build 5666) (dot 3) (i686-apple-darwin11)<br>
&gt; compiled by GNU C version 4.2.1 (Apple Inc. build 5666) (dot 3).<br>
&gt; GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=65536<br>
&gt; Compiler executable checksum: 1c5d175013b2657e11ab1c9aa1767c94<br>
&gt;  /usr/libexec/gcc/i686-apple-darwin11/4.2.1/as -arch x86_64<br>
&gt; -force_cpusubtype_ALL -o<br>
&gt; /var/folders/jt/r80dbv9d45187qzh0yg853r80000gn/T//ccgQqR0Y.o<br>
&gt; /var/folders/jt/r80dbv9d45187qzh0yg853r80000gn/T//ccVJEdap.s<br>
&gt; (etc.)<br>
&gt;<br>
&gt; == TRANSCRIPT 3 ==<br>
&gt; jkff@jkff-laptop ~ $ /usr/bin/g++-4.2 -isysroot<br>
&gt; /Developer/SDKs/MACOSX10.6.sdk tmp.cxx -o tmp.o -v<br>
&gt; Using built-in specs.<br>
&gt; Target: i686-apple-darwin11<br>
&gt; Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure<br>
&gt; --disable-checking --enable-werror --prefix=/usr --mandir=/share/man<br>
&gt; --enable-languages=c,objc,c++,obj-c++<br>
&gt; --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib<br>
&gt; --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11-<br>
&gt; --host=x86_64-apple-darwin11 --target=i686-apple-darwin11<br>
&gt; --with-gxx-include-dir=/include/c++/4.2.1<br>
&gt; Thread model: posix<br>
&gt; gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)<br>
&gt;  /usr/libexec/gcc/i686-apple-darwin11/4.2.1/cc1plus -quiet -v -imultilib<br>
&gt; x86_64 -D__DYNAMIC__ -isysroot /Developer/SDKs/MACOSX10.6.sdk tmp.cxx -fPIC<br>
&gt; -quiet -dumpbase tmp.cxx -mmacosx-version-min=10.6 -m64 -mtune=core2<br>
&gt; -auxbase tmp -version -D__private_extern__=extern -o<br>
&gt; /var/folders/jt/r80dbv9d45187qzh0yg853r80000gn/T//cckFctdM.s<br>
&gt; ignoring nonexistent directory<br>
&gt; &quot;/Developer/SDKs/MACOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin11/4.2.1/include&quot;<br>
&gt; ignoring nonexistent directory<br>
&gt; &quot;/Developer/SDKs/MACOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include&quot;<br>
&gt; #include &quot;...&quot; search starts here:<br>
&gt; #include &lt;...&gt; search starts here:<br>
&gt;  /Users/jkff/gtk/inst/include<br>
&gt;  /Developer/SDKs/MACOSX10.6.sdk/usr/include/c++/4.2.1<br>
&gt;  /Developer/SDKs/MACOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64<br>
&gt;  /Developer/SDKs/MACOSX10.6.sdk/usr/include/c++/4.2.1/backward<br>
&gt;  /Developer/SDKs/MACOSX10.6.sdk/usr/local/include<br>
&gt;  /Developer/SDKs/MACOSX10.6.sdk/usr/include<br>
&gt;  /Developer/SDKs/MACOSX10.6.sdk/System/Library/Frameworks (framework<br>
&gt; directory)<br>
&gt;  /Developer/SDKs/MACOSX10.6.sdk/Library/Frameworks (framework directory)<br>
&gt; End of search list.<br>
&gt; GNU C++ version 4.2.1 (Apple Inc. build 5666) (dot 3) (i686-apple-darwin11)<br>
&gt; compiled by GNU C version 4.2.1 (Apple Inc. build 5666) (dot 3).<br>
&gt; GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=65536<br>
&gt; Compiler executable checksum: 1c5d175013b2657e11ab1c9aa1767c94<br>
&gt; In file included from tmp.cxx:1:<br>
&gt; /Developer/SDKs/MACOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h:<br>
&gt; No such file or directory<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Eugene Kirpichov<br>
&gt; Principal Engineer, Mirantis Inc. <a href="http://www.mirantis.com/" target="_blank">http://www.mirantis.com/</a><br>
&gt; Editor, <a href="http://fprog.ru/" target="_blank">http://fprog.ru/</a><br>
&gt;<br>
</div></div><span class="HOEnZb"><font color="#888888">&gt; --<br>
&gt; cairo mailing list<br>
&gt; <a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
&gt; <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>