Please try this patch:
https://github.com/apache/incubator-nuttx/pull/1003
The openamp/libmetal.defs fail to handle arch other than x86-64 and risc-v 
correctly.

Thanks
Xiang

-----Original Message-----
From: stee...@163.com <stee...@163.com> 
Sent: Friday, May 8, 2020 3:25 PM
To: dev <dev@nuttx.apache.org>
Subject: Hi,anybody build nuttx that use openamp on board STM32H747I-disco

Hi
Anybody build nuttx that use openamp on board stm32h747i-disco?
I turn on the openamp opion ,but give errors like 

make[1]: Entering directory '/home/steelen/nuttx/nuttx/openamp'
make[1]: *** No rule to make target 'libmetal/lib/system/nuttx/condition.c', 
needed by '.depend'.  Stop.
make[1]: Leaving directory '/home/steelen/nuttx/nuttx/openamp'
tools/Makefile.unix:504: recipe for target 'pass2dep' failed
make: *** [pass2dep] Error 2

I also download the incubator-nuttx version , when make it download a lot files 
and also erros

make[1]: Entering directory '/home/steelen/nuttx/incubator-nuttx/openamp'
In file included from 
/home/steelen/nuttx/incubator-nuttx/include/metal/io.h:23:0,
                 from 
/home/steelen/nuttx/incubator-nuttx/include/metal/device.h:16,
                 from ./libmetal/lib/system/nuttx/device.c:12:
/home/steelen/nuttx/incubator-nuttx/include/metal/cpu.h:15:35: fatal error: 
metal/processor//cpu.h: No such file or directory  # include 
<metal/processor//cpu.h>
                                   ^
compilation terminated.
ERROR: arm-none-eabi-gcc failed: 1
       command: arm-none-eabi-gcc -M -fno-builtin -Wall -Wstrict-prototypes 
-Wshadow -Wundef -g -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -I. 
-isystem /home/steelen/nuttx/incubator-nuttx/include -D__KERNEL__ -pipe 
-DMETAL_INTERNAL ./libmetal/lib/system/nuttx/device.c
Makefile:72: recipe for target '.depend' failed
make[1]: *** [.depend] Error 1
make[1]: Leaving directory '/home/steelen/nuttx/incubator-nuttx/openamp'
tools/Makefile.unix:498: recipe for target 'pass2dep' failed
make: *** [pass2dep] Error 2

I modify   # include <metal/processor//cpu.h>  to  # include 
<metal/processor/cpu.h>
also  erros 





stee...@163.com
 

Reply via email to