I am trying to build L4T R28.2 kernel.
Building toolchain according to “Building the Toolchain” in “Development Guide 28.2 Release”, build failed on “Building Glibc stage 1”.
I am using Ubuntu 14.04 x86_64 PC for building kernel.
My operation is follows…
-
Download “GCC Tool Chain Sources for 64-bit BSP” version R28.2 from following url.
Jetson Download Center | NVIDIA Developer -
Extruct archive with following command.
tar xf src_aarch64_gcc-4.8.5.tar.gz
- Run build script.
./make-aarch64-toolchain.sh
The script outputs following result.
Downloading sources
Done
Applying patches
Done
Set environment
set_env
Done
Build binutils
Done
Install Linux headers
Done
Build GCC stage1
Done
Build Glibc stage1
The contents of build_glibc_stage1.log are as follows…
build_glibc_stage1
mkdir build-glibc1
pushd build-glibc1
~/work/L4T_r28_2/toolchain/build-glibc1 ~/work/L4T_r28_2/toolchain
mkdir -p /home/user/work/L4T_r28_2/toolchain/install/aarch64-unknown-linux-gnu/sysroot/usr/lib
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking for aarch64-unknown-linux-gnu-gcc... aarch64-unknown-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether aarch64-unknown-linux-gnu-gcc accepts -g... yes
checking for aarch64-unknown-linux-gnu-gcc option to accept ISO C89... unsupported
checking for gcc... gcc
checking how to run the C preprocessor... /lib/cpp
checking for aarch64-unknown-linux-gnu-g++... aarch64-unknown-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether aarch64-unknown-linux-gnu-g++ accepts -g... yes
checking for aarch64-unknown-linux-gnu-readelf... aarch64-unknown-linux-gnu-readelf
checking for sysdeps preconfigure fragments... x86_64
configure: running configure fragment for add-on nptl
checking add-on /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports for preconfigure fragments... aarch64 alpha am33 arm hppa ia64 m68k mips tile
checking for assembler and linker STT_GNU_IFUNC support... yes
checking whether .text pseudo-op must be used... yes
checking sysdep dirs... /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/unix/sysv/linux/aarch64/nptl /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/unix/sysv/linux/aarch64 /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/unix/sysv/linux/generic sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/unix/sysv sysdeps/unix/sysv nptl/sysdeps/unix /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/unix sysdeps/unix sysdeps/posix /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/aarch64/fpu /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/aarch64/nptl /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/aarch64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-128 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 /home/user/work/L4T_r28_2/toolchain/glibc-2.17/ports/sysdeps/aarch64/soft-fp sysdeps/ieee754 sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether /home/user/work/L4T_r28_2/toolchain/install/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/../../../../aarch64-unknown-linux-gnu/bin/as is GNU as... yes
checking whether /home/user/work/L4T_r28_2/toolchain/install/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/../../../../aarch64-unknown-linux-gnu/bin/ld is GNU ld... yes
checking for /home/user/work/L4T_r28_2/toolchain/install/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/../../../../aarch64-unknown-linux-gnu/bin/as... /home/user/work/L4T_r28_2/toolchain/install/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/../../../../aarch64-unknown-linux-gnu/bin/as
checking version of /home/user/work/L4T_r28_2/toolchain/install/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/../../../../aarch64-unknown-linux-gnu/bin/as... 2.24, ok
checking for /home/user/work/L4T_r28_2/toolchain/install/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/../../../../aarch64-unknown-linux-gnu/bin/ld... /home/user/work/L4T_r28_2/toolchain/install/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/../../../../aarch64-unknown-linux-gnu/bin/ld
checking version of /home/user/work/L4T_r28_2/toolchain/install/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/../../../../aarch64-unknown-linux-gnu/bin/ld... 2.24, ok
checking for aarch64-unknown-linux-gnu-gcc... (cached) aarch64-unknown-linux-gnu-gcc
checking version of aarch64-unknown-linux-gnu-gcc... 4.8.5, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.18.3, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 5.2, ok
checking for sed... sed
checking version of sed... 4.2.2, ok
checking for gawk... gawk
checking version of gawk... 4.0.1, ok
checking for aarch64-unknown-linux-gnu-nm... aarch64-unknown-linux-gnu-nm
checking for autoconf... autoconf
checking whether autoconf works... no
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... contains current directory
configure: error:
*** LD_LIBRARY_PATH shouldn't contain the current directory when
*** building glibc. Please change the environment variable
*** and run configure again.
make install-bootstrap-headers=yes install-headers
make: *** ターゲット `install-headers' を make するルールがありません. 中止.
make install-bootstrap-headers=yes install-headers failed
Is there any solution to build kernel?