Error while building gcc for toolset for RTEMS
Gedare Bloom
gedare at rtems.org
Thu Feb 7 14:52:13 UTC 2013
Aside from the (relatively useful) advice that you may want to try the
prepackaged solutions, if you continue with building your own tools
you may want to check that mpc/gmp/mpfr are being found. If you
built/installed them separately from GCC then you need to add the
install point to your library path, e.g. export
LD_LIBRARY_PATH=${PREFIX}/lib:${LD_LIBRARY_PATH} for PREFIX equal to
where you installed those libraries. If you are using a single-tree
build where you link the source for those libraries, then gcc should
find them itself. The error you sent is indicative of a missing
library.
A quick google search yielded this page which also explains what I
just said: http://gcc.gnu.org/wiki/FAQ#Configuration_fails_with_.27.27configure:_error:_cannot_compute_suffix_of_object_files:_cannot_compile.27.27._What_is_the_problem.3F
An alternate solution is to link gmp, mpc, and mpfr in the gcc
directory, just like you do with newlib, and then configure --with-gmp
--with-mpfr --with-mpc in the gcc configuration.
I tried out the Source Builder yesterday and it seems to work well
enough for producing RTEMS toolchains. You still need to create your
own host tools however. I see Source Builder as the best way forward
for building the necessary toolchains from source, and hope we can get
some better documentation, user feedback, and improvements for it.
In your situation, using the packaged tools seems the best option to
get things going.
-Gedare
On Thu, Feb 7, 2013 at 6:22 AM, manish jain <manish8886 at gmail.com> wrote:
> Hi,
> I just started working on RTEMS development adn trying to build it. Before
> building the RTEMS I am first building the required toolset. My host is
> ubuntu so I am building everything from source code. I have been able to
> build autoconf,automake,binutils,mps,gmp,mpfr successfully. But when I am
> building the gcc for target as sparc I am getting the following error:
>
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[1]: *** [configure-target-libgcc] Error 1
> make[1]: Leaving directory `/home/manish/tools/b-gcc'
>
> Can anybody tell me the source of this problem? I am using gcc-4.7.2 and
> attaching the "config.log" with this mail.
>
> Thanks
> Manish
>
>
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
More information about the users
mailing list