honoriorf
(usa Slackware)
Enviado em 28/07/2019 - 05:38h
Tenho o kernel 4.6.4 e estou tentando atualizar, mas aparece o seguinte erro.
--------
make[1]: Entrando no diretório `/usr/src/kernel5'
GEN Makefile
scripts/kconfig/conf --syncconfig Kconfig
make[1]: Saindo do diretório `/usr/src/kernel5'
Using /usr/src/linux-5.2.2 as source for kernel
GEN Makefile
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
CC scripts/mod/devicetable-offsets.s
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
UPD include/generated/bounds.h
UPD include/generated/timeconst.h
CC arch/x86/kernel/asm-offsets.s
UPD include/generated/asm-offsets.h
CALL /usr/src/linux-5.2.2/scripts/checksyscalls.sh
CALL /usr/src/linux-5.2.2/scripts/atomic/check-atomics.sh
DESCEND objtool
In file included from <stdin>:1:0:
/usr/include/libelf/libelf.h:28:5: error: "__LIBELF_INTERNAL__" is not defined [-Werror=undef]
#if __LIBELF_INTERNAL__
^
cc1: all warnings being treated as errors
HOSTCC /usr/src/kernel5/tools/objtool/fixdep.o
HOSTLD /usr/src/kernel5/tools/objtool/fixdep-in.o
LINK /usr/src/kernel5/tools/objtool/fixdep
CC /usr/src/kernel5/tools/objtool/exec-cmd.o
CC /usr/src/kernel5/tools/objtool/help.o
CC /usr/src/kernel5/tools/objtool/pager.o
CC /usr/src/kernel5/tools/objtool/parse-options.o
CC /usr/src/kernel5/tools/objtool/run-command.o
CC /usr/src/kernel5/tools/objtool/sigchain.o
CC /usr/src/kernel5/tools/objtool/subcmd-config.o
LD /usr/src/kernel5/tools/objtool/libsubcmd-in.o
AR /usr/src/kernel5/tools/objtool/libsubcmd.a
MKDIR /usr/src/kernel5/tools/objtool/arch/x86/lib/
GEN /usr/src/kernel5/tools/objtool/arch/x86/lib/inat-tables.c
CC /usr/src/kernel5/tools/objtool/arch/x86/decode.o
In file included from arch/x86/../../elf.h:10:0,
from arch/x86/decode.c:14:
/usr/include/libelf/gelf.h:25:5: error: "__LIBELF_INTERNAL__" is not defined [-Werror=undef]
#if __LIBELF_INTERNAL__
^
In file included from arch/x86/../../elf.h:10:0,
from arch/x86/decode.c:14:
/usr/include/libelf/gelf.h:31:5: error: "__LIBELF_NEED_LINK_H" is not defined [-Werror=undef]
#if __LIBELF_NEED_LINK_H
^
/usr/include/libelf/gelf.h:33:7: error: "__LIBELF_NEED_SYS_LINK_H" is not defined [-Werror=undef]
#elif __LIBELF_NEED_SYS_LINK_H
^
cc1: all warnings being treated as errors
mv: impossível obter estado de “/usr/src/kernel5/tools/objtool/arch/x86/.decode.o.tmp”: Arquivo ou diretório não encontrado
make[5]: ** [/usr/src/kernel5/tools/objtool/arch/x86/decode.o] Erro 1
make[4]: ** [arch/x86] Erro 2
make[3]: ** [/usr/src/kernel5/tools/objtool/objtool-in.o] Erro 2
make[2]: ** [objtool] Erro 2
make[1]: ** [tools/objtool] Erro 2
make: ** [sub-make] Erro 2
--------
Já desabilitei o CONFIG_RETPOLINE, como comentado anteriormente aqui.
O make já foi tentado com defconfig, oldconfig e zcat /proc/config.gz >.config, mas o erro é o mesmo.
Alguém tbm passou por esse problema?
Agradeço as dicas dos colegas
Slackware 14.2
Intel E2180 @ 2.00GHz