This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v3 1/3] or1k: libgcc: initial support for openrisc
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: Stafford Horne <shorne at gmail dot com>, Joel Sherrill <joel at rtems dot org>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Wed, 14 Nov 2018 07:06:27 +0100
- Subject: Re: [PATCH v3 1/3] or1k: libgcc: initial support for openrisc
- References: <20181027043702.18414-1-shorne@gmail.com> <20181027043702.18414-2-shorne@gmail.com> <d1eee90d-ff42-1a3c-6dcf-fa3a5397b889@embedded-brains.de> <CAF9ehCUnLOhLXO+gbOvu5YaEWzG6n0no-aPcyc_Xd44iG8YFFg@mail.gmail.com> <CAAfxs75DZVEg5b=cikwiXao8Kan0OAAU+kqYEyfDs0Yg-tHoPA@mail.gmail.com> <6de8357b-6bb3-32fb-2c28-d8c500191f87@embedded-brains.de> <CAF9ehCVZ6J-YZRzzpOWuCjhC1vU1LYKRPb=nQ4m5d_5XrWPz+A@mail.gmail.com> <CAF9ehCU8PStAg+k6Q+j0Dtqz-eMFQ4-BEmoN9dCN==miy37euA@mail.gmail.com> <20181113202024.GB2718@lianli.shorne-pla.net>
On 13/11/2018 21:20, Stafford Horne wrote:
On Tue, Nov 13, 2018 at 11:57:13AM -0600, Joel Sherrill wrote:
Sebastian confirmed he couldn't get a complete RTEMS build either.
I looked into this enough to spot that old or1k port's libgcc/config.host
has an extra_parts line for or1k-*-* that the gcc master does not:
The gcc master repo is missing the "extra_parts" line that was in the other
repository.
or1k-*-*)
tmake_file="$tmake_file or1k/t-or1k"
tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl t-softfp"
extra_parts="$extra_parts crti.o crtn.o"
;;
OK for Sebastian or I to add that line?
Hi Joel,
Did adding that fix the issue? We removed crti.o and crtn.o because we switched
to exclusive libc_init/fini_array. It should not help to add those back, see
the commit here:
https://github.com/stffrdhrn/gcc/commit/46131027c9775ebcddc48bd0ae64ceec5b1f801f
What is the error you are seeing?
It was an error in our GCC specs file. I fixed it like this:
https://git.rtems.org/rtems/commit/?id=28bf4cae7878f4e47cc24c114fc9c5567247ecc1
I was able to build the RTEMS BSP and link the tests with the upstream
GCC 9.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.