FPGA開発日記

カテゴリ別記事インデックス https://msyksphinz.github.io/github_pages , English Version https://fpgadevdiary.hatenadiary.com/

riscv-gnu-toolchainでのLinux向けGCCのconfigure調査

Official GCCでも同じことを再現したい。NewLibを使う場合はどうなるか。 まずはriscv-gnu-toolchainでの動作を確認したい。

build-binutils-linux
build-gdb-linux
build-gcc-linux-stage1
build-glibc-linux-headers
build-glibc-linux-rv64imafdc-lp64d
build-gcc-linux-stage2
  $ /tmp/riscv-gnu-toolchain/build_linux/../riscv-binutils/configure --target=riscv64-unknown-linux-gnu --prefix=/home/msyksphinz/riscv64-linux --with-sysroot=/home/msyksphinz/riscv64-linux/sysroot --disable-multilib --disable-werror --disable-nls --with-expat=yes --disable-gdb --disable-sim --disable-libdecnumber --disable-readline --with-isa-spec=2.2
  $ /tmp/riscv-gnu-toolchain/build_linux/../gdb/configure --target=riscv64-unknown-linux-gnu --prefix=/home/msyksphinz/riscv64-linux --with-sysroot=/home/msyksphinz/riscv64-linux/sysroot --disable-multilib --disable-werror --disable-nls --with-expat=yes --enable-gdb --disable-gas --disable-binutils --disable-ld --disable-gold --disable-gprof
  $ /tmp/riscv-gnu-toolchain/build_linux/../riscv-gcc/configure --target=riscv64-unknown-linux-gnu --prefix=/home/msyksphinz/riscv64-linux --with-sysroot=/home/msyksphinz/riscv64-linux/sysroot --with-newlib --without-headers --disable-shared --disable-threads --with-system-zlib --enable-tls --enable-languages=c --disable-libatomic --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --disable-bootstrap --src=../../riscv-gcc --disable-multilib --with-abi=lp64d --with-arch=rv64imafdc --with-tune=rocket --with-isa-spec=2.2 CFLAGS_FOR_TARGET=-O2   -mcmodel=medlow CXXFLAGS_FOR_TARGET=-O2   -mcmodel=medlow
  $ /tmp/riscv-gnu-toolchain/build_linux/../glibc/configure --host=riscv64-unknown-linux-gnu --prefix=/home/msyksphinz/riscv64-linux/sysroot/usr --enable-shared --with-headers=/tmp/riscv-gnu-toolchain/build_linux/../linux-headers/include --disable-multilib --enable-kernel=3.0.0
  $ /tmp/riscv-gnu-toolchain/build_linux/../glibc/configure --host=riscv64-unknown-linux-gnu --prefix=/usr --disable-werror --enable-shared --enable-obsolete-rpc --with-headers=/tmp/riscv-gnu-toolchain/build_linux/../linux-headers/include --disable-multilib --enable-kernel=3.0.0 --libdir=/usr/lib libc_cv_slibdir=/lib libc_cv_rtlddir=/lib
  $ /tmp/riscv-gnu-toolchain/build_linux/../riscv-gcc/configure --target=riscv64-unknown-linux-gnu --prefix=/home/msyksphinz/riscv64-linux --with-sysroot=/home/msyksphinz/riscv64-linux/sysroot --with-pkgversion=g42df3464463 --with-system-zlib --enable-shared --enable-tls --enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap --src=../../riscv-gcc --disable-multilib --with-abi=lp64d --with-arch=rv64imafdc --with-tune=rocket --with-isa-spec=2.2 CFLAGS_FOR_TARGET=-O2   -mcmodel=medlow CXXFLAGS_FOR_TARGET=-O2   -mcmodel=medlow