Hi, I am trying to compile the 5.16.10 kernel and make menuconfig throws this error below: aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ make menuconfig HOSTLD scripts/kconfig/mconf /usr/bin/ld: scripts/kconfig/confdata.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: scripts/kconfig/expr.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: scripts/kconfig/lexer.lex.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: scripts/kconfig/menu.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: scripts/kconfig/parser.tab.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: scripts/kconfig/preprocess.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: scripts/kconfig/symbol.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: scripts/kconfig/util.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: scripts/kconfig/util.o: warning: relocation against `free@@GLIBC_2.2.5' in read-only section `.text' collect2: error: ld returned 1 exit status make[1]: *** [scripts/Makefile.host:104: scripts/kconfig/mconf] Error 1 make: *** [Makefile:619: menuconfig] Error 2 And I tried to build without make menuconfig and make is telling me I need 'bison' ? Why do I need bison ? Since when did we need bison ? See below for details. aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ make -j$(nproc) DESCEND objtool HOSTCC scripts/asn1_compiler YACC scripts/genksyms/parse.tab.[ch] /bin/sh: 1: bison: not found make[2]: *** [scripts/genksyms/Makefile:21: scripts/genksyms/parse.tab.c] Error 127 make[1]: *** [scripts/Makefile.build:549: scripts/genksyms] Error 2 make[1]: *** Waiting for unfinished jobs.... <stdin>:1:10: fatal error: libelf.h: No such file or directory compilation terminated. CC /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/arch/x86/special.o CC /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/weak.o CC /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/check.o In file included from /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/objtool.h:13, from /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/arch.h:11, from /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/check.h:11, from /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/special.h:10, from arch/x86/special.c:4: /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory 10 | #include <gelf.h> | ^~~~~~~~ compilation terminated. make[4]: *** [/media/aruna/linux-next/home/linux-5.16.10/tools/build/Makefile.build:97: /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/arch/x86/special.o] Error 1 make[3]: *** [/media/aruna/linux-next/home/linux-5.16.10/tools/build/Makefile.build:139: arch/x86] Error 2 make[3]: *** Waiting for unfinished jobs.... In file included from /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/objtool.h:13, from weak.c:10: /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory 10 | #include <gelf.h> | ^~~~~~~~ compilation terminated. make[3]: *** [/media/aruna/linux-next/home/linux-5.16.10/tools/build/Makefile.build:97: /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/weak.o] Error 1 In file included from /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/objtool.h:13, from /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/arch.h:11, from check.c:13: /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory 10 | #include <gelf.h> | ^~~~~~~~ compilation terminated. make[3]: *** [/media/aruna/linux-next/home/linux-5.16.10/tools/build/Makefile.build:97: /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/check.o] Error 1 make[2]: *** [Makefile:56: /media/aruna/linux-next/home/linux-5.16.10/tools/objtool/objtool-in.o] Error 2 make[1]: *** [Makefile:69: objtool] Error 2 make: *** [Makefile:1349: tools/objtool] Error 2 make: *** Waiting for unfinished jobs.... make: *** [Makefile:1181: scripts] Error 2 HELP! aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.2.1 20210110 (Debian 10.2.1-6) aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ make -v GNU Make 4.3 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies