riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
579 stars 306 forks source link

Error during the building #236

Open vulkomilev opened 3 years ago

vulkomilev commented 3 years ago

When I try to build the project I get this ../configure --prefix=$RISCV --host=riscv64-unknown-elf checking build system type... x86_64-pc-linux-gnu checking host system type... riscv64-unknown-elf checking for riscv64-unknown-elf-gcc... riscv64-unknown-elf-gcc checking whether the C compiler works... no configure: error: in/home//RISC-V/riscv-pk/build': configure: error: C compiler cannot create executables See config.log' for more details here is the dump from the log file `This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by RISC-V Proxy Kernel configure 1.0.0, which was generated by GNU Autoconf 2.69. Invocation command line was

$ ../configure --prefix=/home//RISC-V/riscv-gnu-toolchain/ --host=riscv64-unknown-elf

---------

Platform.

---------

hostname = -System-Product-Name uname -m = x86_64 uname -r = 5.8.0-45-generic uname -s = Linux uname -v = #51~20.04.1-Ubuntu SMP Tue Feb 23 13:46:31 UTC 2021

/usr/bin/uname -p = x86_64 /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: /opt/openfoam8/bin PATH: /opt/openfoam8/platforms/linux64GccDPInt32Opt/bin PATH: /home//anaconda3/bin PATH: /home//anaconda3/condabin PATH: /home//.local/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /snap/bin

-----------

Core tests.

-----------

configure:1981: checking build system type configure:1995: result: x86_64-pc-linux-gnu configure:2015: checking host system type configure:2028: result: riscv64-unknown-elf configure:2061: checking for riscv64-unknown-elf-gcc configure:2077: found /usr/bin/riscv64-unknown-elf-gcc configure:2088: result: riscv64-unknown-elf-gcc configure:2357: checking for C compiler version configure:2366: riscv64-unknown-elf-gcc --version >&5 riscv64-unknown-elf-gcc () 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2377: $? = 0 configure:2366: riscv64-unknown-elf-gcc -v >&5 Using built-in specs. COLLECT_GCC=riscv64-unknown-elf-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/riscv64-unknown-elf/9.3.0/lto-wrapper Target: riscv64-unknown-elf Configured with: ../configure --build=x86_64-linux-gnu --prefix=/usr --includedir='/usr/include' --mandir='/usr/share/man' --infodir='/usr/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir='/usr/lib/x86_64-linux-gnu' --libexecdir='/usr/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --target=riscv64-unknown-elf --prefix=/usr --infodir=/usr/share/doc/gcc-riscv64-unknown-elf/info --mandir=/usr/share/man --htmldir=/usr/share/doc/gcc-riscv64-unknown-elf/html --pdfdir=/usr/share/doc/gcc-riscv64-unknown-elf/pdf --bindir=/usr/bin --libexecdir=/usr/lib --libdir=/usr/lib --with-pkgversion= --disable-shared --disable-threads --enable-languages=c,c++ --enable-tls --with-newlib --with-native-system-header-dir=/include --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --with-system-zlib --enable-checking=yes --enable-multilib --with-abi=lp64d --disable-libstdcxx-pch --disable-libstdcxx --disable-fixinc --with-arch=rv64imafdc --with-gnu-as --with-gnu-ld --with-as=/usr/lib/riscv64-unknown-elf/bin/as --with-ld=/usr/lib/riscv64-unknown-elf/bin/ld AR_FOR_TARGET=/usr/lib/riscv64-unknown-elf/bin/ar AS_FOR_TARGET=/usr/lib/riscv64-unknown-elf/bin/as NM_FOR_TARGET=/usr/lib/riscv64-unknown-elf/bin/nm LD_FOR_TARGET=/usr/lib/riscv64-unknown-elf/bin/ld OBJDUMP_FOR_TARGET=/usr/lib/riscv64-unknown-elf/bin/objdump RANLIB_FOR_TARGET=/usr/lib/riscv64-unknown-elf/bin/ranlib READELF_FOR_TARGET=/usr/lib/riscv64-unknown-elf/bin/readelf STRIP_FOR_TARGET=/usr/lib/riscv64-unknown-elf/bin/strip CFLAGS='-g -O2 -fdebug-prefix-map=/build/gcc-riscv64-unknown-elf-3seJsn/gcc-riscv64-unknown-elf-9.3.0=. -fstack-protector-strong' CPPFLAGS='-Wdate-time -D_FORTIFY_SOURCE=2' CXXFLAGS='-g -O2 -fdebug-prefix-map=/build/gcc-riscv64-unknown-elf-3seJsn/gcc-riscv64-unknown-elf-9.3.0=. -fstack-protector-strong' FCFLAGS='-g -O2 -fdebug-prefix-map=/build/gcc-riscv64-unknown-elf-3seJsn/gcc-riscv64-unknown-elf-9.3.0=. -fstack-protector-strong' FFLAGS='-g -O2 -fdebug-prefix-map=/build/gcc-riscv64-unknown-elf-3seJsn/gcc-riscv64-unknown-elf-9.3.0=. -fstack-protector-strong' GCJFLAGS='-g -O2 -fdebug-prefix-map=/build/gcc-riscv64-unknown-elf-3seJsn/gcc-riscv64-unknown-elf-9.3.0=. -fstack-protector-strong' LDFLAGS='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now' OBJCFLAGS='-g -O2 -fdebug-prefix-map=/build/gcc-riscv64-unknown-elf-3seJsn/gcc-riscv64-unknown-elf-9.3.0=. -fstack-protector-strong' OBJCXXFLAGS='-g -O2 -fdebug-prefix-map=/build/gcc-riscv64-unknown-elf-3seJsn/gcc-riscv64-unknown-elf-9.3.0=. -fstack-protector-strong' 'CFLAGS_FOR_TARGET=-Os -mcmodel=medany' 'CXXFLAGS_FOR_TARGET=-Os -mcmodel=medany' Thread model: single gcc version 9.3.0 () configure:2377: $? = 0 configure:2366: riscv64-unknown-elf-gcc -V >&5 riscv64-unknown-elf-gcc: error: unrecognized command line option '-V' riscv64-unknown-elf-gcc: fatal error: no input files compilation terminated. configure:2377: $? = 1 configure:2366: riscv64-unknown-elf-gcc -qversion >&5 riscv64-unknown-elf-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? riscv64-unknown-elf-gcc: fatal error: no input files compilation terminated. configure:2377: $? = 1 configure:2397: checking whether the C compiler works configure:2419: riscv64-unknown-elf-gcc conftest.c >&5 /usr/lib/riscv64-unknown-elf/bin/ld: cannot find crt0.o: No such file or directory /usr/lib/riscv64-unknown-elf/bin/ld: cannot find -lc /usr/lib/riscv64-unknown-elf/bin/ld: cannot find -lgloss collect2: error: ld returned 1 exit status configure:2423: $? = 1 configure:2461: result: no configure: failed program was: / confdefs.h / #define PACKAGE_NAME "RISC-V Proxy Kernel" #define PACKAGE_TARNAME "riscv-pk" #define PACKAGE_VERSION "1.0.0" #define PACKAGE_STRING "RISC-V Proxy Kernel 1.0.0" #define PACKAGE_BUGREPORT "Andrew Waterman" #define PACKAGE_URL "" / end confdefs.h. /
int
main ()
{
;
return 0;
}

configure:2466: error: in /home/<username>/RISC-V/riscv-pk/build': configure:2468: error: C compiler cannot create executables Seeconfig.log' for more details

----------------

Cache variables.

----------------

ac_cv_build=x86_64-pc-linux-gnu ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_RISCV_set=set ac_cv_env_RISCV_value=/home//RISC-V/riscv-gnu-toolchain/ ac_cv_env_STOW_PREFIX_set= ac_cv_env_STOW_PREFIX_value= ac_cv_env_STOW_ROOT_set= ac_cv_env_STOW_ROOT_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_prog_CC=riscv64-unknown-elf-gcc

-----------------

Output variables.

-----------------

AR='' BBL_ENABLE_LOGO='' BBL_LOGO_FILE='' BBL_PAYLOAD='' CC='riscv64-unknown-elf-gcc' CFLAGS='' CPP='' CPPFLAGS='' CUSTOM_DTS='' CXX='' CXXFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' GREP='' INSTALL_DATA='' INSTALL_PROGRAM='' INSTALL_SCRIPT='' LDFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' MEM_START='' OBJCOPY='' OBJEXT='' PACKAGE_BUGREPORT='Andrew Waterman' PACKAGE_NAME='RISC-V Proxy Kernel' PACKAGE_STRING='RISC-V Proxy Kernel 1.0.0' PACKAGE_TARNAME='riscv-pk' PACKAGE_URL='' PACKAGE_VERSION='1.0.0' PATH_SEPARATOR=':' RANLIB='' READELF='' RISCV='/home//RISC-V/riscv-gnu-toolchain/' SHELL='/bin/bash' STOW_PREFIX='' STOW_ROOT='' WITH_ABI='' WITH_ARCH='' ac_ct_CC='' ac_ct_CXX='' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' enable_stow='' 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' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/home//RISC-V/riscv-gnu-toolchain' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' stow='' subprojects='' subprojects_enabled='' sysconfdir='${prefix}/etc' target_alias=''

-----------

confdefs.h.

-----------

/ confdefs.h /

define PACKAGE_NAME "RISC-V Proxy Kernel"

define PACKAGE_TARNAME "riscv-pk"

define PACKAGE_VERSION "1.0.0"

define PACKAGE_STRING "RISC-V Proxy Kernel 1.0.0"

define PACKAGE_BUGREPORT "Andrew Waterman"

define PACKAGE_URL ""

configure: exit 77`

vulkomilev commented 3 years ago

The os is ubuntu 20.04

Wlfc912 commented 1 year ago

Hi @vulkomilev , I'm now having the same problem. Have you found a solution to this?