[RTEMS Project] #3262: GCC-4 Build failure with GCC-4.3+
RTEMS trac
trac at rtems.org
Tue Jan 16 07:02:43 UTC 2018
#3262: GCC-4 Build failure with GCC-4.3+
----------------------+--------------------------
Reporter: Gedare | Owner: Chris Johns
Type: defect | Status: assigned
Priority: normal | Milestone: 4.10.3
Component: tool/rsb | Version: 4.10
Severity: normal | Resolution:
Keywords: |
----------------------+--------------------------
Comment (by Chris Johns):
The change posted in the description is not suitable. The flags cannot be
set on `make`'s command line this way as it overrides any RSB derived flag
updates. A better solution is to use:
{{{
#
%global _gcclibdir %{_prefix}/lib
+#
+# Update the build flags need to build the older gcc with newer
compilers.
+#
+%define build_cflags %{build_cflags} -fgnu89-inline
}}}
The `-fgnu89-inline` is not needed on FreeBSD, adding it does not harm the
build.
The FreeBSD builds all fail with the same problem reported in #3027 on the
4.11 branch, building `makeinfo`. Adding the patch from that ticket lets
the ARM architecture build but it then fails with a number of these error
messages:
{{{
../../../../gcc-4.4.7/libgcc/../gcc/config/arm/ieee754-sf.S: Assembler
messages:
../../../../gcc-4.4.7/libgcc/../gcc/config/arm/ieee754-sf.S:452: Error:
invalid constant (ff) after fixup
../../../../gcc-4.4.7/libgcc/../gcc/config/arm/ieee754-sf.S:518: Error:
invalid constant (7f) after fixup
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/3262#comment:6>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list