I have downloaded FreedomStudio-2020-06-3-win64 package and used Create a new Freedom E SDK Software Project by SiFive tools to create a welcome-example for my HiFive1 Rev B. I got some errors when building this project. Can anyone help me solve it.
Below are my build log from Console and config.log
file in bsp/build/debug
12:16:35 **** Incremental Build of configuration debug for project sifive_hifive1_revb_sifive_welcome ****
make all CONFIGURATION=debug
which: no freedom-metal_header-generator in (/e/FreedomStudio-2020-06-3-win64/SiFive/sdk-utilities-0.1.0-2020.04.0:/usr/bin:/e/FreedomStudio-2020-06-3-win64/SiFive/riscv64-unknown-elf-gcc-8.3.0-2020.04.1/bin:/e/FreedomStudio-2020-06-3-win64/jre/bin/j9vm:/e/FreedomStudio-2020-06-3-win64/jre/bin:/c/Program Files/Python37/Scripts:/c/Program Files/Python37:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/WINDOWS/System32/OpenSSH:/c/Program Files/Git/cmd:/c/Program Files/Amazon/AWSCLI/bin:/c/ProgramData/chocolatey/bin:/c/Program Files/dotnet:/c/Program Files/TortoiseGit/bin:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Users/HoangSHC/AppData/Local/Programs/Python/Python37/Scripts:/c/Users/HoangSHC/AppData/Local/Programs/Python/Python37:/c/Users/HoangSHC/AppData/Local/Microsoft/WindowsApps:/c/Program Files/Amazon/AWSCLI/bin:/c/Program Files/Amazon/AWSCLI/bincompat:/c/Program Files/Amazon/AWSCLI/runtime/Scripts:/e/esp/.espressif/tools/cmake/3.13.4/bin:/e/PyCharm Community Edition 2020.1.3/bin:/e/FreedomStudio-2020-06-3-win64/SiFive/riscv64-unknown-elf-gcc-8.3.0-2020.04.1:/c/Users/HoangSHC/AppData/Local/Programs/Microsoft VS Code/bin:/e/FreedomStudio-2020-06-3-win64)
cd /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/build/debug/ && \
CFLAGS="-march=rv32imac -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections -I/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install/include --specs=nano.specs -DMTIME_RATE_HZ_DEF=32768 -O0 -g" \
/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/configure \
--host=riscv64-unknown-elf \
--prefix=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install \
--libdir=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install/lib/debug \
--with-builtin-libgloss \
--with-machine-header=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/metal.h \
--with-machine-inline=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/metal-inline.h \
--with-platform-header=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/metal-platform.h
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for riscv64-unknown-elf-strip... riscv64-unknown-elf-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-msys
checking host system type... riscv64-unknown-elf
checking for riscv64-unknown-elf-gcc... E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin
checking whether the C compiler works... no
configure: error: in `/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/build/debug':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [Makefile:431: /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/build/debug/Makefile] Error 77
"make all CONFIGURATION=debug" terminated with exit code 2. Build might be incomplete.
12:16:41 Build Failed. 1 errors, 0 warnings. (took 6s.618ms)
config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by freedom-metal configure v0.1.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/configure --host=riscv64-unknown-elf --prefix=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install --libdir=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install/lib/debug --with-builtin-libgloss --with-machine-header=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/metal.h --with-machine-inline=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/metal-inline.h --with-platform-header=/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/metal-platform.h
## --------- ##
## Platform. ##
## --------- ##
hostname = DESKTOP-Q8MDS7Q
uname -m = x86_64
uname -r = 3.0.7-338.x86_64
uname -s = MSYS_NT-10.0-18363
uname -v = 2019-05-24 10:50 UTC
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /E/FreedomStudio-2020-06-3-win64/SiFive/riscv64-unknown-elf-gcc-8.3.0-2020.04.1/bin
PATH: /e/FreedomStudio-2020-06-3-win64/SiFive/sdk-utilities-0.1.0-2020.04.0
PATH: /usr/bin
PATH: /e/FreedomStudio-2020-06-3-win64/SiFive/riscv64-unknown-elf-gcc-8.3.0-2020.04.1/bin
PATH: /e/FreedomStudio-2020-06-3-win64/jre/bin/j9vm
PATH: /e/FreedomStudio-2020-06-3-win64/jre/bin
PATH: /c/Program Files/Python37/Scripts
PATH: /c/Program Files/Python37
PATH: /c/Program Files (x86)/Common Files/Oracle/Java/javapath
PATH: /c/WINDOWS/system32
PATH: /c/WINDOWS
PATH: /c/WINDOWS/System32/Wbem
PATH: /c/WINDOWS/System32/WindowsPowerShell/v1.0
PATH: /c/WINDOWS/System32/OpenSSH
PATH: /c/Program Files/Git/cmd
PATH: /c/Program Files/Amazon/AWSCLI/bin
PATH: /c/ProgramData/chocolatey/bin
PATH: /c/Program Files/dotnet
PATH: /c/Program Files/TortoiseGit/bin
PATH: /c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit
PATH: /c/Users/HoangSHC/AppData/Local/Programs/Python/Python37/Scripts
PATH: /c/Users/HoangSHC/AppData/Local/Programs/Python/Python37
PATH: /c/Users/HoangSHC/AppData/Local/Microsoft/WindowsApps
PATH: /c/Program Files/Amazon/AWSCLI/bin
PATH: /c/Program Files/Amazon/AWSCLI/bincompat
PATH: /c/Program Files/Amazon/AWSCLI/runtime/Scripts
PATH: /e/esp/.espressif/tools/cmake/3.13.4/bin
PATH: /e/PyCharm Community Edition 2020.1.3/bin
PATH: /e/FreedomStudio-2020-06-3-win64/SiFive/riscv64-unknown-elf-gcc-8.3.0-2020.04.1
PATH: /c/Users/HoangSHC/AppData/Local/Programs/Microsoft VS Code/bin
PATH: /e/FreedomStudio-2020-06-3-win64
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1903: checking for a BSD-compatible install
configure:1971: result: /usr/bin/install -c
configure:1982: checking whether build environment is sane
configure:2037: result: yes
configure:2096: checking for riscv64-unknown-elf-strip
configure:2112: found /E/FreedomStudio-2020-06-3-win64/SiFive/riscv64-unknown-elf-gcc-8.3.0-2020.04.1/bin/riscv64-unknown-elf-strip
configure:2123: result: riscv64-unknown-elf-strip
configure:2188: checking for a thread-safe mkdir -p
configure:2227: result: /usr/bin/mkdir -p
configure:2234: checking for gawk
configure:2250: found /usr/bin/gawk
configure:2261: result: gawk
configure:2272: checking whether make sets $(MAKE)
configure:2294: result: yes
configure:2323: checking whether make supports nested variables
configure:2340: result: yes
configure:2467: checking whether to enable maintainer-specific portions of Makefiles
configure:2476: result: no
configure:2495: checking build system type
configure:2509: result: x86_64-pc-msys
configure:2529: checking host system type
configure:2542: result: riscv64-unknown-elf
configure:2572: checking for riscv64-unknown-elf-gcc
configure:2599: result: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin
configure:2868: checking for C compiler version
configure:2877: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin --version >&5
/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/configure: line 2879: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin: Is a directory
configure:2888: $? = 126
configure:2877: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin -v >&5
/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/configure: line 2879: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin: Is a directory
configure:2888: $? = 126
configure:2877: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin -V >&5
/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/configure: line 2879: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin: Is a directory
configure:2888: $? = 126
configure:2877: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin -qversion >&5
/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/configure: line 2879: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin: Is a directory
configure:2888: $? = 126
configure:2908: checking whether the C compiler works
configure:2930: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin -march=rv32imac -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections -I/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install/include --specs=nano.specs -DMTIME_RATE_HZ_DEF=32768 -O0 -g conftest.c >&5
/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/configure: line 2932: E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin: Is a directory
configure:2934: $? = 126
configure:2972: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "freedom-metal"
| #define PACKAGE_TARNAME "freedom-metal"
| #define PACKAGE_VERSION "v0.1.2"
| #define PACKAGE_STRING "freedom-metal v0.1.2"
| #define PACKAGE_BUGREPORT "https://github.com/sifive/freedom-metal/issues"
| #define PACKAGE_URL "https://github.com/sifive/freedom-metal"
| #define PACKAGE "freedom-metal"
| #define VERSION "v0.1.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2977: error: in `/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/build/debug':
configure:2979: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-msys
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=rv32imac -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections -I/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install/include --specs=nano.specs -DMTIME_RATE_HZ_DEF=32768 -O0 -g'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=riscv64-unknown-elf
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=riscv64-unknown-elf
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin'
ac_cv_prog_STRIP=riscv64-unknown-elf-strip
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/missing aclocal-1.15'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTOCONF='${SHELL} /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/missing autoconf'
AUTOHEADER='${SHELL} /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/missing autoheader'
AUTOMAKE='${SHELL} /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/missing automake-1.15'
AWK='gawk'
CC='E:\FreedomStudio-2020-06-3-win64\SiFive\riscv64-unknown-elf-gcc-8.3.0-2020.04.1\bin'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-march=rv32imac -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections -I/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install/include --specs=nano.specs -DMTIME_RATE_HZ_DEF=32768 -O0 -g'
CPPFLAGS=''
CYGPATH_W='cygpath -w'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MACHINE_HEADER=''
MACHINE_INLINE=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/missing makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
OBJEXT=''
PACKAGE='freedom-metal'
PACKAGE_BUGREPORT='https://github.com/sifive/freedom-metal/issues'
PACKAGE_NAME='freedom-metal'
PACKAGE_STRING='freedom-metal v0.1.2'
PACKAGE_TARNAME='freedom-metal'
PACKAGE_URL='https://github.com/sifive/freedom-metal'
PACKAGE_VERSION='v0.1.2'
PATH_SEPARATOR=':'
PLATFORM_HEADER=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='riscv64-unknown-elf-strip'
VERSION='v0.1.2'
WITH_BUILTIN_LIBGLOSS_FALSE=''
WITH_BUILTIN_LIBGLOSS_TRUE=''
WITH_BUILTIN_LIBMETAL_PICO_FALSE=''
WITH_BUILTIN_LIBMETAL_PICO_TRUE=''
ac_ct_AR=''
ac_ct_CC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-msys'
build_alias=''
build_cpu='x86_64'
build_os='msys'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='riscv64-unknown-elf'
host_alias='riscv64-unknown-elf'
host_cpu='riscv64'
host_os='elf'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/freedom-metal/install-sh'
libdir='/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install/lib/debug'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/e/FreedomWP3/sifive_hifive1_revb_sifive_welcome/bsp/install'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "freedom-metal"
#define PACKAGE_TARNAME "freedom-metal"
#define PACKAGE_VERSION "v0.1.2"
#define PACKAGE_STRING "freedom-metal v0.1.2"
#define PACKAGE_BUGREPORT "https://github.com/sifive/freedom-metal/issues"
#define PACKAGE_URL "https://github.com/sifive/freedom-metal"
#define PACKAGE "freedom-metal"
#define VERSION "v0.1.2"
configure: exit 77