[RTEMS Project] #3262: GCC-4 Build failure with GCC-4.3+

RTEMS trac trac at rtems.org
Tue Dec 19 13:55:53 UTC 2017


#3262: GCC-4 Build failure with GCC-4.3+
----------------------+--------------------
 Reporter:  Gedare    |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:  4.10.3
Component:  tool/rsb  |    Version:  4.10
 Severity:  normal    |   Keywords:
----------------------+--------------------
 While building 4.10 tools (gcc-4.4.7) with gcc 5.4, I stumbled on the
 issue discussed at https://bugzilla.redhat.com/show_bug.cgi?id=476370

 The gcc build apparently needs -fgnu89-inline

 I hacked the following fix locally in my 4.10 RSB branch, but am not sure
 of the appropriate long-term solution:
 diff --git a/source-builder/config/gcc-common-1.cfg b/source-
 builder/config/gcc-common-1.cfg
 index 941e15c..d2608ec 100644
 --- a/source-builder/config/gcc-common-1.cfg
 +++ b/source-builder/config/gcc-common-1.cfg
 @@ -167,7 +167,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
      cp ../${source_dir_gcc}/gcc/gsyslimits.h gcc/include/syslimits.h
    fi

 -  %{__make} %{?_smp_mflags} all
 +  %{__make} %{?_smp_mflags} CFLAGS="-fgnu89-inline" all

    cd ${build_top}

--
Ticket URL: <http://devel.rtems.org/ticket/3262>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list