This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/66032] RTEMS MIPS build fails on FreeBSD
- From: "chrisj at rtems dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 May 2017 04:53:26 +0000
- Subject: [Bug libgcc/66032] RTEMS MIPS build fails on FreeBSD
- Auto-submitted: auto-generated
- References: <bug-66032-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66032
--- Comment #5 from Chris Johns <chrisj at rtems dot org> ---
I have decided to revisit this bug and see what the issue is. I cannot see how
to reopen the issue?
Using GNU sed on FreeBSD is not straight forward. It requires either building
by hand to a custom prefix with special paths or adding links to the packaged
GNU sed executable called `gsed` and that could effect other parts of the
system. The GCC Makefiles use `sed` directly so it cannot be specified to
configure or make.
I tracked the issue down to `libgcc/config/t-hardfd` and the make call `
hardfp_defines_for`. For reasons I could not figure out the FreeBSD sed does
not like `|` in the branch `(sf|df)`. I have no idea why. Maybe someone who
understands this part of sed better than me can spot the problem.
As a result I implemented the functionality in awk. I attach a patch I have
tested on FreeBSD 11.0 and debian 8.7 with the mips-rtems4.12 target with no
errors.