[RTEMS Project] #3425: examples-v2: PowerPC fails to build fat_ramdisk
RTEMS trac
trac at rtems.org
Wed May 2 17:09:51 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):
From waf -v
{{{
[1/7] Compiling hello/hello_world_c/test.c
12:04:58 runner ['/home/joel/rtems-work/tools/5/bin/powerpc-rtems5-gcc',
'-qrtems', '-B/home/joel/rtems-work/bsp-install//powerpc-rtems5/lib/',
'-B/home/joel/rtems-work/bsp-install//powerpc-rtems5/mpc5566evb/lib/', '--
specs', 'bsp_specs', '-mcpu=8540', '-mcpu=8540', '-meabi', '-meabi',
'-msdata=sysv', '-msdata=sysv', '-fno-common', '-fno-common', '-msoft-
float', '-msoft-float', '-mno-spe', '-mno-spe', '-mstrict-align',
'-mstrict-align', '-fno-keep-inline-functions', '-fno-keep-inline-
functions', '-ffunction-sections', '-ffunction-sections', '-fdata-
sections', '-fdata-sections', '-O2', '-g',
'-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
'../../hello/hello_world_c/test.c', '-c', '-o/data/home/joel/rtems-
work/examples-v2/build/powerpc-
rtems5-mpc5566evb/hello/hello_world_c/test.c.1.o']
[2/7] Compiling gdb/overwrite/rtems_init.c
12:04:58 runner ['/home/joel/rtems-work/tools/5/bin/powerpc-rtems5-gcc',
'-qrtems', '-B/home/joel/rtems-work/bsp-install//powerpc-rtems5/lib/',
'-B/home/joel/rtems-work/bsp-install//powerpc-rtems5/mpc5566evb/lib/', '--
specs', 'bsp_specs', '-mcpu=8540', '-mcpu=8540', '-meabi', '-meabi',
'-msdata=sysv', '-msdata=sysv', '-fno-common', '-fno-common', '-msoft-
float', '-msoft-float', '-mno-spe', '-mno-spe', '-mstrict-align',
'-mstrict-align', '-fno-keep-inline-functions', '-fno-keep-inline-
functions', '-ffunction-sections', '-ffunction-sections', '-fdata-
sections', '-fdata-sections', '-O2', '-g',
'-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
'../../gdb/overwrite/rtems_init.c', '-c', '-o/data/home/joel/rtems-
work/examples-v2/build/powerpc-
rtems5-mpc5566evb/gdb/overwrite/rtems_init.c.1.o']
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 ../../hello/hello_world_c/test.c:21:
/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"
^~~~~
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"
^~~~~
Waf: Leaving directory `/data/home/joel/rtems-work/examples-v2/build
/powerpc-rtems5-mpc5566evb'
Build failed
-> task in 'hello.exe' failed with exit status 1:
{task 21579488: c test.c -> test.c.1.o}
['/home/joel/rtems-work/tools/5/bin/powerpc-rtems5-gcc', '-qrtems',
'-B/home/joel/rtems-work/bsp-install//powerpc-rtems5/lib/', '-B/home/joel
/rtems-work/bsp-install//powerpc-rtems5/mpc5566evb/lib/', '--specs',
'bsp_specs', '-mcpu=8540', '-mcpu=8540', '-meabi', '-meabi',
'-msdata=sysv', '-msdata=sysv', '-fno-common', '-fno-common', '-msoft-
float', '-msoft-float', '-mno-spe', '-mno-spe', '-mstrict-align',
'-mstrict-align', '-fno-keep-inline-functions', '-fno-keep-inline-
functions', '-ffunction-sections', '-ffunction-sections', '-fdata-
sections', '-fdata-sections', '-O2', '-g',
'-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
'../../hello/hello_world_c/test.c', '-c', '-o/data/home/joel/rtems-
work/examples-v2/build/powerpc-
rtems5-mpc5566evb/hello/hello_world_c/test.c.1.o']
-> task in 'overwrite.exe' failed with exit status 1:
{task 21579848: c rtems_init.c -> rtems_init.c.1.o}
['/home/joel/rtems-work/tools/5/bin/powerpc-rtems5-gcc', '-qrtems',
'-B/home/joel/rtems-work/bsp-install//powerpc-rtems5/lib/', '-B/home/joel
/rtems-work/bsp-install//powerpc-rtems5/mpc5566evb/lib/', '--specs',
'bsp_specs', '-mcpu=8540', '-mcpu=8540', '-meabi', '-meabi',
'-msdata=sysv', '-msdata=sysv', '-fno-common', '-fno-common', '-msoft-
float', '-msoft-float', '-mno-spe', '-mno-spe', '-mstrict-align',
'-mstrict-align', '-fno-keep-inline-functions', '-fno-keep-inline-
functions', '-ffunction-sections', '-ffunction-sections', '-fdata-
sections', '-fdata-sections', '-O2', '-g',
'-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
'../../gdb/overwrite/rtems_init.c', '-c', '-o/data/home/joel/rtems-
work/examples-v2/build/powerpc-
rtems5-mpc5566evb/gdb/overwrite/rtems_init.c.1.o']
}}}
Looks like the -D option from the CPU_CFLAGS is missing and many of the
options are duplicated.
{{
CPU_CFLAGS = -mcpu=8540 -meabi -msdata=sysv -fno-common
$(CPU_CFLAGS_FLOAT) \
-D__ppc_generic -mstrict-align
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/3425#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list