Troubles building cross-compiler; target 64-bit RISC-V

64m@tutamail.com 64m@tutamail.com
Sun Aug 4 20:34:00 GMT 2019


Hi,
I have encouraged problems build cross-compiler for OS development. What could cause these errors? Should I report bug? Details below.

Native compiler configure arguments:
--prefix=/home/borys/devel/gcc/ --disable-nls --enable-languages=c,c++ --program-prefix=ntv
Native compiler version: 9.1.0

Before building cross-compiler i executed following command:
./contrib/download_prerequisites
Could it be the cause. As far as I remember I recieved some warning regarding isl.

Should I provide more information?


File riscv64-elf/libgcc/config.log

Reading specs from /home/borys/src/rvgcc/./gcc/specs
COLLECT_GCC=/home/borys/src/rvgcc/./gcc/xgccCOLLECT_LTO_WRAPPER=/home/borys/src/rvgcc/./gcc/lto-wrapper
Target: riscv64-elf
Configured with: ../gcc-9.1.0/configure --target=riscv64-elf --prefix=/home/borys/devel/riscv64 --disable-nls --enable-languages=c --without-headers CC=ntvgcc CXX=ntvg++
Thread model: single
gcc version 9.1.0 (GCC)


/home/borys/src/rvgcc/./gcc/xgcc -B/home/borys/src/rvgcc/./gcc/ -B/home/borys/devel/riscv64/riscv64-elf/bin/ -B/home/borys/devel/riscv64/riscv64-elf/lib/ -isystem /home/borys/devel/riscv64/riscv64-elf/include -isystem /home/borys/devel/riscv64/riscv64-elf/sys-include    -V >&5xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.

/home/borys/src/rvgcc/./gcc/xgcc -B/home/borys/src/rvgcc/./gcc/ -B/home/borys/devel/riscv64/riscv64-elf/bin/ -B/home/borys/devel/riscv64/riscv64-elf/lib/ -isystem /home/borys/devel/riscv64/riscv64-elf/include -isystem /home/borys/devel/riscv64/riscv64-elf/sys-include    -qversion >&5
xgcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
xgcc: fatal error: no input files
compilation terminated.


/home/borys/src/rvgcc/./gcc/xgcc -B/home/borys/src/rvgcc/./gcc/ -B/home/borys/devel/riscv64/riscv64-elf/bin/ -B/home/borys/devel/riscv64/riscv64-elf/lib/ -isystem /home/borys/devel/riscv64/riscv64-elf/include -isystem /home/borys/devel/riscv64/riscv64-elf/sys-include    -o conftest -g -O2   conftest.c  >&5
/home/borys/src/rvgcc/./gcc/as: 106: exec: -march=rv64gc: not found


checking for suffix of object files
configure:3767: /home/borys/src/rvgcc/./gcc/xgcc -B/home/borys/src/rvgcc/./gcc/ -B/home/borys/devel/riscv64/riscv64-elf/bin/ -B/home/borys/devel/riscv64/riscv64-elf/lib/ -isystem /home/borys/devel/riscv64/riscv64-elf/include -isystem /home/borys/devel/riscv64/riscv64-elf/sys-include    -c -g -O2  conftest.c >&5
/home/borys/src/rvgcc/./gcc/as: 106: exec: -march=rv64gc: not found


configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/ <http://www.gnu.org/software/libgcc/>"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3785: error: in `/home/borys/src/rvgcc/riscv64-elf/libgcc':
configure:3787: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details



More information about the Gcc-help mailing list