<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just to wind this thread up, here's the status of RTEMS-4.10 toolchain on OS X.<div>The source files from <a href="http://www.rtems.com/ftp/pub/rtems/SOURCES/4.10/">http://www.rtems.com/ftp/pub/rtems/SOURCES/4.10/</a><br><div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><div>GCC=4.4.6</div></div></div></div><div><div><div><div>BINUTILS=2.20.1</div></div></div></div><div><div><div><div>NEWLIB=1.18.0</div></div></div></div><div><div><div><div>GDB=7.2</div></div></div></div><div><div><div><div>BINUTILSDIFF=binutils-2.20.1-rtems4.10-20100826.diff</div></div></div></div><div><div><div><div>GCCDIFF=gcc-core-4.4.6-rtems4.10-20110420.diff</div></div></div></div><div><div><div><div>NEWLIBDIFF=newlib-1.18.0-rtems4.10-20110518.diff</div></div></div></div><div><div><div><div>GDBDIFF=gdb-7.2-rtems4.10-20100903.diff</div></div></div></div><div><br></div><div><br></div></blockquote><div>1 -- OS X 10.6.8 (Snow Leopard) Host compiler -- i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>* Toolchains for m68k, i386, powerpc all build fine</div><div><div>
<div><br></div><div><br></div><div><br></div><div>2 -- OS X 10.7.1 (Lion) Host compiler i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>* The GMP and MPFR library tests lock up or seg-fault in various spots so I tried to continue by installing without running the tests.</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>* Cross-compiler hits an abort().  Here's the salient output from m68k-rtems4.10/libgcc/config.log</div></div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><div><div><div>configure:2393: /usr/local/rtems/BuildTools/build/./gcc/xgcc -B/usr/local/rtems/BuildTools/build/./gcc/ -nostdinc -B/usr/local/rtems/BuildTools/build/</div></div></div></div></div></div><div><div><div><div><div><div>m68k-rtems4.10/newlib/ -isystem /usr/local/rtems/BuildTools/build/m68k-rtems4.10/newlib/targ-include -isystem /usr/local/rtems/BuildTools/gcc-4.4.6/ne</div></div></div></div></div></div><div><div><div><div><div><div>wlib/libc/include -B/usr/local/rtems/rtems-4.10/m68k-rtems4.10/bin/ -B/usr/local/rtems/rtems-4.10/m68k-rtems4.10/lib/ -isystem /usr/local/rtems/rtems-</div></div></div></div></div></div><div><div><div><div><div><div>4.10/m68k-rtems4.10/include -isystem /usr/local/rtems/rtems-4.10/m68k-rtems4.10/sys-include -V </dev/null >&5</div></div></div></div></div></div><div><div><div><div><div><div>xgcc: '-V' must come at the start of the command line</div></div></div></div></div></div><div><div><div><div><div><div>configure:2396: $? = 1</div></div></div></div></div></div><div><div><div><div><div><div>configure:2415: /usr/local/rtems/BuildTools/build/./gcc/xgcc -B/usr/local/rtems/BuildTools/build/./gcc/ -nostdinc -B/usr/local/rtems/BuildTools/build/</div></div></div></div></div></div><div><div><div><div><div><div>m68k-rtems4.10/newlib/ -isystem /usr/local/rtems/BuildTools/build/m68k-rtems4.10/newlib/targ-include -isystem /usr/local/rtems/BuildTools/gcc-4.4.6/ne</div></div></div></div></div></div><div><div><div><div><div><div>wlib/libc/include -B/usr/local/rtems/rtems-4.10/m68k-rtems4.10/bin/ -B/usr/local/rtems/rtems-4.10/m68k-rtems4.10/lib/ -isystem /usr/local/rtems/rtems-</div></div></div></div></div></div><div><div><div><div><div><div>4.10/m68k-rtems4.10/include -isystem /usr/local/rtems/rtems-4.10/m68k-rtems4.10/sys-include -o conftest -g -O2     conftest.c  >&5</div></div></div></div></div></div><div><div><div><div><div><div>conftest.c:16: internal compiler error: in execute_ipa_pass_list, at passes.c:1342</div></div></div></div></div></div><div><div><div><div><div><div>Please submit a full bug report,</div></div></div></div></div></div><div><div><div><div><div><div>with preprocessed source if appropriate.</div></div></div></div></div></div><div><div><div><div><div><div>See <<a href="http://gcc.gnu.org/bugs.html">http://gcc.gnu.org/bugs.html</a>> for instructions.</div></div></div></div></div></div><div><div><div><div><div><div>configure:2418: $? = 1</div></div></div></div></div></div><div><div><div><div><div><div>configure:2590: checking for suffix of object files</div></div></div></div></div></div><div><div><div><div><div><div>configure:2611: /usr/local/rtems/BuildTools/build/./gcc/xgcc -B/usr/local/rtems/BuildTools/build/./gcc/ -nostdinc -B/usr/local/rtems/BuildTools/build/</div></div></div></div></div></div><div><div><div><div><div><div>m68k-rtems4.10/newlib/ -isystem /usr/local/rtems/BuildTools/build/m68k-rtems4.10/newlib/targ-include -isystem /usr/local/rtems/BuildTools/gcc-4.4.6/ne</div></div></div></div></div></div><div><div><div><div><div><div>wlib/libc/include -B/usr/local/rtems/rtems-4.10/m68k-rtems4.10/bin/ -B/usr/local/rtems/rtems-4.10/m68k-rtems4.10/lib/ -isystem /usr/local/rtems/rtems-</div></div></div></div></div></div><div><div><div><div><div><div>4.10/m68k-rtems4.10/include -isystem /usr/local/rtems/rtems-4.10/m68k-rtems4.10/sys-include -c -g -O2    conftest.c >&5</div></div></div></div></div></div><div><div><div><div><div><div>conftest.c:16: internal compiler error: in execute_ipa_pass_list, at passes.c:1342</div></div></div></div></div></div><div><div><div><div><div><div>Please submit a full bug report,</div></div></div></div></div></div><div><div><div><div><div><div>with preprocessed source if appropriate.</div></div></div></div></div></div><div><div><div><div><div><div>See <<a href="http://gcc.gnu.org/bugs.html">http://gcc.gnu.org/bugs.html</a>> for instructions.</div></div></div></div></div></div><div><div><div><div><div><div>configure:2614: $? = 1</div></div></div></div></div></div><div><div><div><div><div><div>configure: failed program was:</div></div></div></div></div></div><div><div><div><div><div><div>| /* confdefs.h.  */</div></div></div></div></div></div><div><div><div><div><div><div>| </div></div></div></div></div></div><div><div><div><div><div><div>| #define PACKAGE_NAME "GNU C Runtime Library"</div></div></div></div></div></div><div><div><div><div><div><div>| #define PACKAGE_TARNAME "libgcc"</div></div></div></div></div></div><div><div><div><div><div><div>| #define PACKAGE_VERSION "1.0"</div></div></div></div></div></div><div><div><div><div><div><div>| #define PACKAGE_STRING "GNU C Runtime Library 1.0"</div></div></div></div></div></div><div><div><div><div><div><div>| #define PACKAGE_BUGREPORT ""</div></div></div></div></div></div><div><div><div><div><div><div>| /* end confdefs.h.  */</div></div></div></div></div></div><div><div><div><div><div><div>| </div></div></div></div></div></div><div><div><div><div><div><div>| int</div></div></div></div></div></div><div><div><div><div><div><div>| main ()</div></div></div></div></div></div><div><div><div><div><div><div>| {</div></div></div></div></div></div><div><div><div><div><div><div>| </div></div></div></div></div></div><div><div><div><div><div><div>|   ;</div></div></div></div></div></div><div><div><div><div><div><div>|   return 0;</div></div></div></div></div></div><div><div><div><div><div><div>| }</div></div></div></div></div></div><div><div><div><div><div><div>configure:2627: error: in `/usr/local/rtems/BuildTools/build/m68k-rtems4.10/libgcc':</div></div></div></div></div></div><div><div><div><div><div><div>configure:2630: error: cannot compute suffix of object files: cannot compile</div></div></div></div></div></div></blockquote><div><div><div><div><div><div><br></div><div><br></div><div><br></div><div><br></div><div>3 -- OS X 10.7.1 (Lion) Host compilerApple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.1.0 Thread model: posix</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>* This time the GMP and MPFR libraries build and test fine.</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>* But the compile  fails:</div></div></div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><div><div><div><div>../../gcc-4.4.6/gcc/toplev.c:536:1: error: redefinition of a 'extern inline' function 'floor_log2' is not supported in C99 mode</div></div></div></div></div></div></div><div><div><div><div><div><div><div>floor_log2 (unsigned HOST_WIDE_INT x)</div></div></div></div></div></div></div><div><div><div><div><div><div><div>^</div></div></div></div></div></div></div><div><div><div><div><div><div><div>../../gcc-4.4.6/gcc/toplev.h:190:1: note: previous definition is here</div></div></div></div></div></div></div><div><div><div><div><div><div><div>floor_log2 (unsigned HOST_WIDE_INT x)</div></div></div></div></div></div></div><div><div><div><div><div><div><div>^</div></div></div></div></div></div></div><div><div><div><div><div><div><div>../../gcc-4.4.6/gcc/toplev.c:571:1: error: redefinition of a 'extern inline' function 'exact_log2' is not supported in C99 mode</div></div></div></div></div></div></div><div><div><div><div><div><div><div>exact_log2 (unsigned HOST_WIDE_INT x)</div></div></div></div></div></div></div><div><div><div><div><div><div><div>^</div></div></div></div></div></div></div><div><div><div><div><div><div><div>../../gcc-4.4.6/gcc/toplev.h:196:1: note: previous definition is here</div></div></div></div></div></div></div><div><div><div><div><div><div><div>exact_log2 (unsigned HOST_WIDE_INT x)</div></div></div></div></div></div></div><div><br></div></blockquote><div><div><div><div><div><div><span class="Apple-tab-span" style="white-space:pre">       </span>* Try commenting out the inline function source in gcc-4.4.6/gcc/toplev.h -- but things still won't build.  This time the problem is an undefined symbol:</div></div></div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><div><div><div><div>clang  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H  -o cc1plus-dummy \</div></div></div></div></div></div></div><div><div><div><div><div><div><div><span class="Apple-tab-span" style="white-space:pre">    </span></div></div></div></div></div></div>      cp/cp-lang.o stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o  c-pretty-print.o c-opts.o c-pch.o incpath.o c-ppoutput.o c-cppbuiltin.o prefix.o c-gimplify.o c-omp.o dummy-checksum.o main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a  -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -L/usr/local/rtems/rtems-4.10/lib -L/usr/local/rtems/rtems-4.10/lib -lmpfr -lgmp</div><div><div><div><div><div><div><div>Undefined symbols for architecture x86_64:</div></div></div></div></div></div></div><div><div><div><div><div><div><div>  "_libc_name_p", referenced from:</div></div></div></div></div></div></div><div><div><div><div><div><div><div>      _nothrow_libfn_p in except.o</div></div></div></div></div></div></div><div><div><div><div><div><div><div>ld: symbol(s) not found for architecture x86_64</div></div></div></div></div></div></div><div><div><div><div><div><div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div></div></div></div></div></div></div></blockquote><div><div><div><div><div><div><br></div><div><br></div><div><br></div><div><br></div><div>So the takeaway message is, "Don't use this version of OS X Lion if you want to use RTEMS-4.10".</div><div>-- </div>Eric Norum<br><a href="mailto:wenorum@lbl.gov">wenorum@lbl.gov</a></div>
</div>
<br></div></div></div></body></html>