<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I removed the flag and it is ok. Cmake went to the end of the configuration step, and I was able to compile gccxml.<br><div><div><br></div><div>The tests are all failing, here is the first one (the others are failing with the same error):</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1: Test command: /Users/michkapopoff/repo/builds/gccxml/bin/gccxml "-I/Users/michkapopoff/repo/builds/gccxml/GCC_XML/GXFront" "-I/Users/michkapopoff/repo/builds/gccxml/GCC_XML" "-I/Users/michkapopoff/repo/builds/gccxml/GCC_XML/GXFront" "-I/Users/michkapopoff/repo/gccxml/GCC_XML/GXFront" "/Users/michkapopoff/repo/gccxml/GCC_XML/GXFront/gxConfiguration.cxx" "-fxml=gxConfiguration.cxx.gcc.xml"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1: Test timeout computed to be: 1500</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/wchar.h:90,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1:                  from /usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.4.0/4.9.1/include/c++/cwchar:44,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1:                  from /usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.4.0/4.9.1/include/c++/bits/postypes.h:40,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1:                  from /usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.4.0/4.9.1/include/c++/iosfwd:40,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1:                  from /Users/michkapopoff/repo/builds/gccxml/GCC_XML/gxsys/ios/iosfwd:23,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1:                  from /Users/michkapopoff/repo/builds/gccxml/GCC_XML/gxsys/SystemTools.hxx:15,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1:                  from /Users/michkapopoff/repo/gccxml/GCC_XML/GXFront/gxSystemTools.h:22,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1:                  from /Users/michkapopoff/repo/gccxml/GCC_XML/GXFront/gxConfiguration.h:20,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1:                  from /Users/michkapopoff/repo/gccxml/GCC_XML/GXFront/gxConfiguration.cxx:17:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/stdio.h:274: error: wrong number of arguments specified for 'deprecated' attribute</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/stdio.h:389: error: wrong number of arguments specified for 'deprecated' attribute</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> 1/11 Test  #1: gxConfiguration.cxx ..............***Failed    0.67 sec</div></div><div><br></div><div>I added a <font face="Menlo"><span style="font-size: 11px;">-DCMAKE_OSX_SYSROOT=“” </span></font>flag when running cmake, to make sure it does not try to find the OS X SDK folder, but that did not help (because even if I ask cmake to use gcc49, it will look for the OS X SDK):</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">ccmake -DCMAKE_CXX_COMPILER=/usr/local/Cellar/gcc/4.9.1/bin/g++-4.9 -DCMAKE_C_COMPILER=/usr/local/Cellar/gcc/4.9.1/bin/gcc-4.9 -DCMAKE_OSX_SYSROOT=""</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px;">Here are the locations of the stdio.h files:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><div style="margin: 0px;">/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1/tr1/stdio.h</div><div style="margin: 0px;">/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/stdio.h</div><div style="margin: 0px;">/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/stdio.h</div><div style="margin: 0px;">/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/c++/4.2.1/tr1/stdio.h</div><div style="margin: 0px;">/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/stdio.h</div><div style="margin: 0px;">/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sys/stdio.h</div><div style="margin: 0px;">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1/tr1/stdio.h</div><div style="margin: 0px;">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/stdio.h</div><div style="margin: 0px;">/usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.4.0/4.9.1/include/c++/tr1/stdio.h</div><div style="margin: 0px;">/usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.4.0/4.9.1/include/ssp/stdio.h</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div>Michka</div><div><br><div><div>On 20 Oct 2014, at 15:20, Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On 10/18/2014 04:56 PM, <a href="mailto:michkapopoff@gmail.com">michkapopoff@gmail.com</a> wrote:<br><blockquote type="cite">I think the error is coming from: gcc-4.9: error: unrecognized command<br>line option '-no-cpp-precomp’<br></blockquote><br>That is in gccxml in GCC/CMakeLists.txt:<br><br> IF(APPLE AND CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang)$")<br>   SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -no-cpp-precomp")<br> ENDIF()<br><br>It looks like the addition of that flag dates back to 2003 so<br>I suspect it is no longer necessary.  Try dropping that block.<br><br>-Brad<br><br></blockquote></div><br></div></div></body></html>