[RTEMS Project] #3425: examples-v2: PowerPC fails to build fat_ramdisk
RTEMS trac
trac at rtems.org
Mon May 7 20:07:13 UTC 2018
#3425: examples-v2: PowerPC fails to build fat_ramdisk
---------------------------+---------------------
Reporter: Joel Sherrill | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 5.1
Component: unspecified | Version: 5
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
---------------------------+---------------------
Comment (by Joel Sherrill):
The underlying problem is that the rtems_waf application support eats a
few gcc arguments that are needed to build applications. In this case it
is -Dxxx where xxx is a macro indicating PowerPC type.
The proper solution to this is to ban use of -D in the required BSP
CFLAGS. We should not require a -D to be specified on the application
command line to either compiler correctly or at all.
This impacts some PowerPC BSPs and defining the expected symbol in bsp.h
will work based on this traceback.
In file included from /home/joel/rtems-work/bsp-install//powerpc-
rtems5/mpc5566evb/lib/include/libcpu/powerpc-utility.h:40:0,
from /home/joel/rtems-work/bsp-install//powerpc-
rtems5/mpc5566evb/lib/include/bsp.h:39,
from ../../gdb/overwrite/rtems_init.c:7:
/home/joel/rtems-work/bsp-install//powerpc-
rtems5/mpc5566evb/lib/include/rtems/powerpc/powerpc.h:283:2: error: #error
"Unsupported CPU Model"
#error "Unsupported CPU Model"
^~~~~
My solution is to move the -D in impacted PowerPC BSPs from CFLAGS (or
CPU_CFLAGS) to bsp.h
--
Ticket URL: <http://devel.rtems.org/ticket/3425#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list