Error with source-builder for Rapsberry Pi on MacOS

Chris Johns chrisj at rtems.org
Mon Sep 9 01:23:41 UTC 2013


Antoine wrote:
> Hi Chris and all,
>
> I'm trying to set up an RTEMS ARM environment for my Rapsberry Pi on my iMac MacOS 10.6.8 (Snow Leopard).
> I get this error from source builder:
>
> [...]
> building: arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1
> Build Set: Time 0:19:03.570418
> error: shell cmd failed: /bin/sh -ex  /Users/Antoine/Documents/development/rtems/src/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1/doit
> Build FAILED
>
> According to my log file it seems to be due to a mpfr function not found during the build process:
>
> [...]
> /usr/bin/g++ -O2 -pipe -I/Users/Antoine/Documents/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-Antoine/4.11/rtems-arm/Users/Antoine/development/rtems/4.11/include -L/Users/Antoine/Documents/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-Antoine/4.11/rtems-arm/Users/Antoine/development/rtems/4.11/lib    -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H  -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-s
emantics.o c-family/c-ada-spec.o tree-mudflap.o arm-c.o default-c.o \
> 	  cc1-checksum.o libbackend.a main.o  libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -L/Users/Antoine/Documents/development/rtems/src/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1/arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1-4.8.1/build/./gmp/.libs -L/Users/Antoine/Documents/development/rtems/src/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1/arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1-4.8.1/build/./mpfr/.libs -L/Users/Antoine/Documents/development/rtems/src/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1/arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1-4.8.1/build/./mpc/src/.libs -lmpc -lmpfr -lgmp   -lz
> Undefined symbols:
>    "_mpfr_get_z_2exp", referenced from:
>        _mpc_pow in libmpc.a(pow.o)
>        _mpc_pow in libmpc.a(pow.o)
>        _mpc_pow in libmpc.a(pow.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> Undefined symbols:
>    "_mpfr_get_z_2exp", referenced from:
>        _mpc_pow in libmpc.a(pow.o)
>        _mpc_pow in libmpc.a(pow.o)
>        _mpc_pow in libmpc.a(pow.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [cc1plus] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [cc1] Error 1
> rm gcc.pod
> make[1]: *** [all-gcc] Error 2
> make: *** [all] Error 2
> Build Set: Time 0:19:03.570418
> error: shell cmd failed: /bin/sh -ex  /Users/Antoine/Documents/development/rtems/src/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.1-newlib-14-Jul-2013-1/doit
>
> I tried to change the order of libraries on the link command line (in Makefile of gcc here) but I did not work. Also checked mpfr directory and I see that there is a get_z_exp.o here but no get_z_2exp.o.
>
> Could you tell me how I should handle this error?
>

Do you have another MPC library installed on the machine ?

I just did a build of 4.11/rtems-arm on Mountain Lion and it finished 
without error.

FYI I avoid any macports or any other pseudo packaging system on MacOS.

> Chris, if it can help, I can send you the entire log file.

No need at the moment.

>
> Regards,
> Antoine



More information about the users mailing list