Build failed while compile freedom-e-sdk


#1

freedom-e-sdk i$ make PROGRAM=hello TARGET=sifive-hifive1-revb CONFIGURATION=release software

cd /Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/build/release/ && \

CFLAGS="-march=rv32imac -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections -I/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/install/include --specs=nano.specs -Os" \

/Users/i/Documents/Risc-V/freedom-e-sdk/freedom-metal/configure \

–host=riscv64-unknown-elf \

–prefix=/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/install \

–libdir=/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/install/lib/release \

–disable-maintainer-mode \

–with-preconfigured \

–with-machine-name=sifive-hifive1-revb \

–with-machine-header=/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/metal.h \

–with-machine-inline=/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/metal-inline.h \

–with-platform-header=/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/metal-platform.h \

–with-machine-ldscript=/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/metal.default.lds \

–with-builtin-libgloss

checking for a BSD-compatible install… /usr/bin/install -c

checking whether build environment is sane… yes

: command not foundRisc-V/freedom-e-sdk/freedom-metal/missing: line 3:

: command not foundRisc-V/freedom-e-sdk/freedom-metal/missing: line 5:

: command not foundRisc-V/freedom-e-sdk/freedom-metal/missing: line 8:

: command not foundRisc-V/freedom-e-sdk/freedom-metal/missing: line 13:

: command not foundRisc-V/freedom-e-sdk/freedom-metal/missing: line 18:

: command not foundRisc-V/freedom-e-sdk/freedom-metal/missing: line 21:

: command not foundRisc-V/freedom-e-sdk/freedom-metal/missing: line 26:

'Users/i/Documents/Risc-V/freedom-e-sdk/freedom-metal/missing: line 32: syntax error near unexpected token `in

'Users/i/Documents/Risc-V/freedom-e-sdk/freedom-metal/missing: line 32: `case $1 in

configure: WARNING: ‘missing’ script is too old or missing

checking for riscv64-unknown-elf-strip… riscv64-unknown-elf-strip

checking for a thread-safe mkdir -p… /Users/i/Documents/Risc-V/freedom-e-sdk/freedom-metal/install-sh -c -d

checking for gawk… no

checking for mawk… no

checking for nawk… no

checking for awk… awk

checking whether make sets $(MAKE)… yes

checking whether make supports nested variables… yes

checking whether to enable maintainer-specific portions of Makefiles… no

checking for riscv64-unknown-elf-gcc… riscv64-unknown-elf-gcc

checking whether the C compiler works… yes

checking for C compiler default output file name… a.out

checking for suffix of executables…

checking whether we are cross compiling… yes

checking for suffix of object files… o

checking whether we are using the GNU C compiler… yes

checking whether riscv64-unknown-elf-gcc accepts -g… yes

checking for riscv64-unknown-elf-gcc option to accept ISO C89… none needed

checking whether riscv64-unknown-elf-gcc understands -c and -o together… yes

checking for style of include used by make… GNU

checking dependency style of riscv64-unknown-elf-gcc… none

checking for riscv64-unknown-elf-ranlib… riscv64-unknown-elf-ranlib

checking for riscv64-unknown-elf-ar… riscv64-unknown-elf-ar

checking the archiver (riscv64-unknown-elf-ar) interface… ar

checking dependency style of riscv64-unknown-elf-gcc… none

checking whether C compiler accepts mmachine=… no

checking whether C compiler accepts menv=metal… no

checking that generated files are newer than configure… done

configure: creating ./config.status

config.status: creating Makefile

config.status: executing depfiles commands

touch -c /Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/build/release/Makefile

make -C /Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/build/release install

make[1]: Entering directory ‘/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/build/release’

Makefile:1059: test/.deps/return_pass-return_pass.Po: No such file or directory

make[1]: *** No rule to make target ‘test/.deps/return_pass-return_pass.Po’. Stop.

make[1]: Leaving directory ‘/Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/build/release’

make: *** [scripts/libmetal.mk:38: /Users/i/Documents/Risc-V/freedom-e-sdk/bsp/sifive-hifive1-revb/install/lib/release/stamp] Error 2


#2

anyone can help to look at it ? it confused me for a few days, Thanks !


(Jim Wilson) #3

Are you perhaps building on Windows Subsystem for Linux? We have probably never tested that. Some Linux software doesn’t build on WSL because it uses case-insensitive file systems by default, and linux always has case-sensitive file systems. Some Kakefiles will fail when used on a case-insensitive file system. There may also be versioning issues here, e.g. maybe /bin/sh isn’t the shell that we are expecting, which is bash.


#4

Thanks Jim
I found the cause , because I download the SDK on windows, then unzip it , then copy the directory to Mac , it had the error report . After I download the SDK on Mac OS
, no error found .
Anyway thank you very much