Error in building rv32imac BSP

Mritunjay Sharma mritunjaysharma394 at gmail.com
Thu Feb 20 16:24:00 UTC 2020


Hi Eshan,

I think the error here is "no acceptable cc found in $PATH" which means GCC compiler might be missing

Please try to fix it with :

sudo apt install gcc

Or

sudo apt install build-essential

If GCC compiler is already installed, there are chances that symbolic link is missing. In that case you can do

make CC=gcc

Thanks
Mritunjay

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: devel <devel-bounces at rtems.org> on behalf of Eshan Dhawan <eshandhawan51 at gmail.com>
Sent: Thursday, February 20, 2020 9:33:08 PM
To: devel at rtems.org <devel at rtems.org>
Subject: Error in building rv32imac BSP

/home/eshan/development/rtems/kernel/rtems/configure --prefix=/home/eshan/development/rtems/5 --enable-maintainer-mode --target=riscv-rtems5 --enable-rtemsbsp=rv32imac --enable-tests --enable-posix --disable-networking --enable-cxx

I ran this command and it returns the output
hecking for gmake... no
checking for make... make
checking for RTEMS Version... 5.0.0
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... riscv-unknown-rtems5
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
configure: configuring in riscv-rtems5/c
configure: running /bin/bash '/home/eshan/development/rtems/kernel/rtems/c/configure' '--prefix=/home/eshan/development/rtems/5' '--host=riscv-rtems5' '--build=x86_64-pc-linux-gnu' '--target=riscv-rtems5'  '--enable-maintainer-mode' '--enable-rtemsbsp=rv32imac' '--enable-tests' '--enable-posix' '--disable-networking' '--enable-cxx' '--with-target-subdir=riscv-rtems5' '--exec-prefix=/home/eshan/development/rtems/5/riscv-rtems5' '--includedir=/home/eshan/development/rtems/5/riscv-rtems5/include'  '--cache-file=/dev/null' '--srcdir=/home/eshan/development/rtems/kernel/rtems/c'
checking for gmake... no
checking for make... make
checking for RTEMS Version... 5.0.0
checking build system type... x86_64-pc-linux-gnu
checking host system type... riscv-unknown-rtems5
checking target system type... riscv-unknown-rtems5
checking rtems target cpu... riscv
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for riscv-rtems5-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile

target architecture: riscv.
available BSPs: rv32imac.
'make all' will build the following BSPs: rv32imac.
other BSPs can be built with 'make RTEMS_BSP="bsp1 bsp2 ..."'

config.status: creating Makefile


But as I run the make command it shows error :

Making all in riscv-rtems5/c
make[1]: Entering directory '/home/eshan/development/rtems/kernel/rtems/rv32imac/riscv-rtems5/c'
Making all in .
make[2]: Entering directory '/home/eshan/development/rtems/kernel/rtems/rv32imac/riscv-rtems5/c'
Configuring RTEMS_BSP=rv32imac
checking for gmake... no
checking for make... make
checking build system type... x86_64-pc-linux-gnu
checking host system type... riscv-unknown-rtems5
checking rtems target cpu... riscv
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for riscv-rtems5-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for RTEMS_BSP... rv32imac
checking whether CPU supports libposix... yes
configure: setting up make/custom
configure: creating make/rv32imac.cache
make[3]: Entering directory '/home/eshan/development/rtems/kernel/rtems/rv32imac/riscv-rtems5/c/rv32imac'
make[3]: Leaving directory '/home/eshan/development/rtems/kernel/rtems/rv32imac/riscv-rtems5/c/rv32imac'
checking for RTEMS_CPU_MODEL...
checking for RTEMS_BSP_FAMILY... riscv
checking for CPU_CFLAGS... (cached) -march=rv32imac -mabi=ilp32
checking for CFLAGS_OPTIMIZE_V... (cached) -O2 -g -ffunction-sections -fdata-sections
checking for style of include used by make... GNU
checking for riscv-rtems5-gcc... no
configure: error: no acceptable cc found in $PATH
Makefile:780: recipe for target 'rv32imac' failed
make[2]: *** [rv32imac] Error 1
make[2]: Leaving directory '/home/eshan/development/rtems/kernel/rtems/rv32imac/riscv-rtems5/c'
Makefile:362: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/eshan/development/rtems/kernel/rtems/rv32imac/riscv-rtems5/c'
Makefile:482: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

help needed


--Eshan Dhawan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200220/1008d708/attachment.html>


More information about the devel mailing list