Error while triyng to compile android X86 -- You are building kernel with non-retpoline compiler.

760 views
Skip to first unread message

Franco Palombo

unread,
Jun 16, 2020, 9:50:56 PM6/16/20
to Android-x86
Hi, I'm trying to compile android x86 with a custom deconfig and im getting this error:

FAILED: /media/ffpp/ArchFranc/android-x86/source1/out/target/product/x86_64/obj/kernel/arch/x86_64/boot/bzImage
/bin/bash -c "make -j2 -j\$(nproc) -l\$((\$(nproc)+2)) -C kernel O=/media/ffpp/ArchFranc/android-x86/source1/out/target/product/x86_64/obj/kernel ARCH=x86_64 CROSS_COMPILE=\" /media/ffpp/ArchFranc/android-x86/source1/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux-\"  YACC=/media/ffpp/ArchFranc/android-x86/source1/prebuilts/build-tools/linux-x86/bin/bison LEX=/media/ffpp/ArchFranc/android-x86/source1/prebuilts/misc/linux-x86/flex/flex-2.5.39  bzImage modules"
make: se entra en el directorio '/media/ffpp/ArchFranc/android-x86/source1/kernel'
make[1]: se entra en el directorio '/media/ffpp/ArchFranc/android-x86/source1/out/target/product/x86_64/obj/kernel'
You are building kernel with non-retpoline compiler.
Please update your compiler.
make[1]: *** [arch/x86/Makefile:318: checkbin] Error 1
make[1]: se sale del directorio '/media/ffpp/ArchFranc/android-x86/source1/out/target/product/x86_64/obj/kernel'
make: *** [Makefile:146: sub-make] Error 2
make: se sale del directorio '/media/ffpp/ArchFranc/android-x86/source1/kernel'
ninja: build stopped: subcommand failed.
22:44:35 ninja failed with: exit status 1
make: *** [build/make/core/main.mk:21: run_soong_ui] Error 1


what can i do to fix this

utzcoz

unread,
Jun 16, 2020, 9:56:04 PM6/16/20
to andro...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/ddb7afcb-99b2-4ccc-9088-18c9b1edd2c2o%40googlegroups.com.
Message has been deleted

Franco Palombo

unread,
Jun 16, 2020, 11:06:31 PM6/16/20
to Android-x86
i was on version 9.3.0, so i tried to update to version 10.0.1. It didn't change anything. (i've already checked that i was using gcc 10 by executing gcc --version)
it gives me the same error:
FAILED: /media/ffpp/ArchFranc/android-x86/source1/out/target/product/x86_64/obj/kernel/arch/x86_64/boot/bzImage
/bin/bash -c "make -j2 -j\$(nproc) -l\$((\$(nproc)+2)) -C kernel O=/media/ffpp/ArchFranc/android-x86/source1/out/target/product/x86_64/obj/kernel ARCH=x86_64 CROSS_COMPILE=\" /media/ffpp/ArchFranc/android-x86/source1/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux-\"  YACC=/media/ffpp/ArchFranc/android-x86/source1/prebuilts/build-tools/linux-x86/bin/bison LEX=/media/ffpp/ArchFranc/android-x86/source1/prebuilts/misc/linux-x86/flex/flex-2.5.39  bzImage modules"
make: se entra en el directorio '/media/ffpp/ArchFranc/android-x86/source1/kernel'
make[1]: se entra en el directorio '/media/ffpp/ArchFranc/android-x86/source1/out/target/product/x86_64/obj/kernel'
You are building kernel with non-retpoline compiler.
Please update your compiler.
make[1]: *** [arch/x86/Makefile:318: checkbin] Error 1
make[1]: se sale del directorio '/media/ffpp/ArchFranc/android-x86/source1/out/target/product/x86_64/obj/kernel'
make: *** [Makefile:146: sub-make] Error 2
make: se sale del directorio '/media/ffpp/ArchFranc/android-x86/source1/kernel'
ninja: build stopped: subcommand failed.
23:38:49 ninja failed with: exit status 1

make: *** [build/make/core/main.mk:21: run_soong_ui] Error 1

the strange thing is that i compiled a iso_img hours ago with my "custom config"(it seems that i didnt save that one, but now i did the canges and saved them)
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.

Huy Minh Bui

unread,
Jun 17, 2020, 1:04:59 AM6/17/20
to Android-x86
Are you trying to build kernel with Retpoline to patch Spectre and Meltdown ? Then go to devce/generic/common/build/task/kernel.mk or build/core/tasks/kernel.mk (nougat-x86)
Edit this part 
> CROSS_COMPILE ?= $(abspath prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin)/x86_64-linux-
to 
> CROSS_COMPILE ?=

Vào 08:50:56 UTC+7 Thứ Tư, ngày 17 tháng 6 năm 2020, Franco Palombo đã viết:

Franco Palombo

unread,
Jun 17, 2020, 8:24:35 AM6/17/20
to Android-x86
Seems to have worked. it didn't show me that error anymore. I wasn't triyng to build a kernel with retopline. i don't even know what is that, but now is compiling. Thanks!

Huy Minh Bui

unread,
Jun 17, 2020, 8:32:33 AM6/17/20
to Android-x86
Then you might want to turn it off to save up some performance

Michael Goffioul

unread,
Jun 17, 2020, 8:36:08 AM6/17/20
to Android-x86
According to this reference [1], you may also want to check and/or change the value of CONFIG_RETPOLINE in your kernel config.


--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/c491b757-5afd-4520-840f-ac24b1b8adeeo%40googlegroups.com.

Franco Palombo

unread,
Jun 17, 2020, 8:39:07 AM6/17/20
to Android-x86
But, disabling retpoline decreases my kernel security, isn't it? Or on Android that does not have effect?

Franco Palombo

unread,
Jun 17, 2020, 9:01:17 AM6/17/20
to Android-x86
does that image that i adjunted means that retpoline is disabled?
Captura de pantalla de 2020-06-17 09-59-37.png
Reply all
Reply to author
Forward
0 new messages