[RTEMS Project] #4128: all griscv variants fail to build on master

RTEMS trac trac at rtems.org
Wed Oct 7 15:38:09 UTC 2020


#4128: all griscv variants fail to build on master
---------------------------+---------------------
 Reporter:  Joel Sherrill  |       Owner:  (none)
     Type:  defect         |      Status:  new
 Priority:  normal         |   Milestone:  6.1
Component:  bsps           |     Version:  6
 Severity:  normal         |  Resolution:
 Keywords:  wafblocker     |  Blocked By:
 Blocking:                 |
---------------------------+---------------------

Comment (by Joel Sherrill):

 With the attached patch, it builds further but fails with this which
 appears to be triggered because SMP is enabled (configure command below):

 {{{
 riscv-rtems6-gcc  -march=rv32imafd -mabi=ilp32d -O2 -g -ffunction-sections
 -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration
 -Wstrict-prototypes -Wnested-externs -B./../../lib/libbsp/riscv/griscv
 -B/home/joel/rtems-cron-6/rtems/bsps/riscv/griscv/start -specs bsp_specs
 -qrtems -L./../../cpukit -L/home/joel/rtems-
 cron-6/rtems/bsps/riscv/shared/start -Wl,--wrap=printf -Wl,--wrap=puts
 -Wl,--wrap=putchar -Wl,--gc-sections -o base_sp.exe base_sp/base_sp-init.o
 base_sp/base_sp-apptask.o ./../../lib/libbsp/riscv/griscv/librtemsbsp.a
 ./../../cpukit/librtemscpu.a ./../../cpukit/librtemstest.a
 /home/joel/rtems-cron-6/tools/6/lib/gcc/riscv-rtems6/10.2.1
 /../../../../riscv-rtems6/bin/ld:
 ./../../lib/libbsp/riscv/griscv/librtemsbsp.a(clockdrv.o): in function
 `grlib_clock_initialize':
 /home/joel/rtems-cron-6/b-griscv/riscv-
 rtems6/c/griscv/lib/libbsp/riscv/griscv/../../../../../../../../rtems/c/src/lib/libbsp/riscv/griscv/../../../../../../bsps/riscv/griscv/clock/clockdrv.c:167:
 undefined reference to `grlib_irqmp_has_timestamp'
 collect2: error: ld returned 1 exit status
 gmake[5]: *** [base_sp.exe] Error 1
 }}}

 The configuration is:

 {{{
 ../rtems/configure --target=riscv-rtems6 --enable-rtemsbsp=griscv
 --prefix=/home/joel/rtems-cron-6/tools/6/bsp-install --disable-networking
 --enable-posix --enable-smp --disable-multiprocessing --enable-rtems-debug
 --enable-profiling --enable-tests --enable-cxx --enable-maintainer-mode
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4128#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list