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