I can't compile android x86 10 "q-x86"

184 views
Skip to first unread message

Ricardo Rojas Rodriguez

unread,
Jan 16, 2024, 9:10:10 PMJan 16
to Android-x86
Hello, I was compiling the source code of the android x86 10 q-x86 but I get a compilation error, I have even already installed the instructions and dependencies to prepare the compilation but the problem is that I cannot compile it, here I leave the error if you can solve the problem

"Error 1"
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200405.005
OUT_DIR=out
============================================
[ 99% 434/435] finishing build rules ...
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'TelecomUnitTests'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherOutOfProcTests'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherDebug'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherTests'
platform_testing/build/tasks/tests/native_test_list.mk: warning: continuous_native_tests: Unknown installed file for module 'nfc_test_utils'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'LauncherRotationStressTest'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'PlatformScenarioTests'
16:09:23 AllowBuildBrokenUsesNetwork: true
16:09:23 BuildBrokenUsesNetwork: true
[  1% 1759/107893] target  C: wacom-input <= device/generic/common/wacom/wacusb.c
In file included from device/generic/common/wacom/wacusb.c:23:
In file included from device/generic/common/wacom/wacusb.h:25:
device/generic/common/wacom/wactablet.h:181:18: warning: declaration does not declare anything [-Wmissing-declarations]
typedef struct { int __unused; } *WACOMENGINE;
                 ^~~
device/generic/common/wacom/wactablet.h:182:18: warning: declaration does not declare anything [-Wmissing-declarations]
typedef struct { int __unused; } *WACOMTABLET;
                 ^~~
2 warnings generated.
[  1% 1761/107893] target  C: tablet-mode <= device/generic/common/tablet-mode/tablet-mode.c
device/generic/common/tablet-mode/tablet-mode.c:116:48: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                        ALOGW("insufficient input data(%d)? fd=%d", res, ifd);
                                                       ~~           ^~~
                                                       %zu
system/core/liblog/include/log/log_main.h:252:51: note: expanded from macro 'ALOGW'
#define ALOGW(...) ((void)ALOG(LOG_WARN, LOG_TAG, __VA_ARGS__))
                                                  ^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:331:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
                                                                  ^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:94:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
                                                                    ^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:85:34: note: expanded from macro 'android_printLog'
  __android_log_print(prio, tag, __VA_ARGS__)
                                 ^~~~~~~~~~~
1 warning generated.
[  1% 1765/107893] target  C: wacom-input <= device/generic/common/wacom/wacom-input.c
In file included from device/generic/common/wacom/wacom-input.c:31:
device/generic/common/wacom/wactablet.h:181:18: warning: declaration does not declare anything [-Wmissing-declarations]
typedef struct { int __unused; } *WACOMENGINE;
                 ^~~
device/generic/common/wacom/wactablet.h:182:18: warning: declaration does not declare anything [-Wmissing-declarations]
typedef struct { int __unused; } *WACOMTABLET;
                 ^~~
device/generic/common/wacom/wacom-input.c:84:21: warning: missing field 'uValid' initializer [-Wmissing-field-initializers]
        WACOMSTATE state = WACOMSTATE_INIT;
                           ^
device/generic/common/wacom/wactablet.h:143:42: note: expanded from macro 'WACOMSTATE_INIT'
#define WACOMSTATE_INIT { WACOMFIELD_MAX }
                                         ^
3 warnings generated.
[  1% 1766/107893] target  C: wacom-input <= device/generic/common/wacom/wactablet.c
In file included from device/generic/common/wacom/wactablet.c:23:
device/generic/common/wacom/wactablet.h:181:18: warning: declaration does not declare anything [-Wmissing-declarations]
typedef struct { int __unused; } *WACOMENGINE;
                 ^~~
device/generic/common/wacom/wactablet.h:182:18: warning: declaration does not declare anything [-Wmissing-declarations]
typedef struct { int __unused; } *WACOMTABLET;
                 ^~~
2 warnings generated.
[  1% 1772/107893] target  C: wacom-input <= device/generic/common/wacom/wacserial.c
In file included from device/generic/common/wacom/wacserial.c:23:
In file included from device/generic/common/wacom/wacserial.h:25:
device/generic/common/wacom/wactablet.h:181:18: warning: declaration does not declare anything [-Wmissing-declarations]
typedef struct { int __unused; } *WACOMENGINE;
                 ^~~
device/generic/common/wacom/wactablet.h:182:18: warning: declaration does not declare anything [-Wmissing-declarations]
typedef struct { int __unused; } *WACOMTABLET;
                 ^~~
device/generic/common/wacom/wacserial.c:235:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:244:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:250:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:256:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:266:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:276:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:289:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:312:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:319:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
device/generic/common/wacom/wacserial.c:326:10: warning: missing field 'pszDesc' initializer [-Wmissing-field-initializers]
                { NULL }
                       ^
12 warnings generated.
[  1% 2099/107893] build out/target/product/x86_64/obj/SHARED_LIBRARIES/libavcodec_intermediates/x86/h264_idct.o
external/ffmpeg/libavcodec/x86/h264_idct.asm:1144: warning: redefining multi-line macro `STORE_DIFFx2'
[  2% 2463/107893] -e Prepare config for busybox binary
FAILED: out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/include/autoconf.h
/bin/bash -c "(rm -rf out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/ \$(find out/target/product/x86_64/obj/EXECUTABLES/busybox_intermediates -name \"*.o\") ) && (mkdir -p out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/include ) && (( cat external/busybox/busybox-full.config && echo \"CONFIG_CROSS_COMPILER_PREFIX=\\\"/home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-\\\"\" ) > out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/.config ) && (PATH=\"/home/ricardo/android-x86/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin:/home/ricardo/android-x86/prebuilts/gcc/linux-x86/host/libexec/gcc/x86_64-linux/4.8.3:\$PATH\" /home/ricardo/android-x86/prebuilts/build-tools/linux-x86/bin/make -C external/busybox prepare O=/home/ricardo/android-x86/out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates CC=/home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc HOSTCC=/home/ricardo/android-x86/prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang PKG_CONFIG=/usr/bin/pkg-config )"
make: Entering directory '/home/ricardo/android-x86/external/busybox'
/home/ricardo/android-x86/external/busybox/scripts/gcc-version.sh: /home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc: /usr/bin/python: intérprete erróneo: No existe el archivo o el directorio
make[1]: /usr/bin/pkg-config: Command not found
make[1]: /usr/bin/pkg-config: Command not found
  Using /home/ricardo/android-x86/external/busybox as source for busybox
  GEN     /home/ricardo/android-x86/out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/Makefile
  GEN     include/applets.h
  GEN     include/usage.h
  GEN     runit/Kbuild
  GEN     runit/Config.in
  GEN     miscutils/Kbuild
  GEN     miscutils/Config.in
  GEN     util-linux/Kbuild
  GEN     util-linux/Config.in
  GEN     util-linux/volume_id/Kbuild
  GEN     util-linux/volume_id/Config.in
  GEN     coreutils/Kbuild
  GEN     coreutils/Config.in
  GEN     coreutils/libcoreutils/Kbuild
  GEN     debianutils/Kbuild
  GEN     debianutils/Config.in
  GEN     init/Kbuild
  GEN     init/Config.in
  GEN     console-tools/Kbuild
  GEN     console-tools/Config.in
  GEN     applets/Kbuild
  GEN     libbb/Kbuild
  GEN     libbb/Config.in
  GEN     editors/Kbuild
  GEN     editors/Config.in
  GEN     mailutils/Kbuild
  GEN     mailutils/Config.in
  GEN     archival/Kbuild
  GEN     archival/Config.in
  GEN     archival/libarchive/Kbuild
  GEN     procps/Kbuild
  GEN     procps/Config.in
  GEN     findutils/Kbuild
  GEN     findutils/Config.in
  GEN     printutils/Kbuild
  GEN     printutils/Config.in
  GEN     loginutils/Kbuild
  GEN     loginutils/Config.in
  GEN     shell/Kbuild
  GEN     shell/Config.in
  GEN     libpwdgrp/Kbuild
  GEN     modutils/Kbuild
  GEN     modutils/Config.in
  GEN     networking/Kbuild
  GEN     networking/Config.in
  GEN     networking/udhcp/Kbuild
  GEN     networking/udhcp/Config.in
  GEN     networking/libiproute/Kbuild
  GEN     scripts/Kbuild
  GEN     e2fsprogs/Kbuild
  GEN     e2fsprogs/Config.in
  GEN     e2fsprogs/old_e2fsprogs/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/Config.in
  GEN     e2fsprogs/old_e2fsprogs/blkid/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/ext2fs/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/uuid/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/e2p/Kbuild
  GEN     sysklogd/Kbuild
  GEN     sysklogd/Config.in
  GEN     selinux/Kbuild
  GEN     selinux/Config.in
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:90:18: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
                        perror("vfork"+1);
                               ~~~~~~~^~
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:90:18: note: use array indexing to silence this warning
                        perror("vfork"+1);
                                      ^
                               &      [ ]
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:155:51: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
void adddep2(char * file, char * line)     { line = line; adddep(file); }
                                             ~~~~ ^ ~~~~
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:156:39: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
void noaction(char * line)                 { line = line; }
                                             ~~~~ ^ ~~~~
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:157:51: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
void noaction2(char * file, char * line)   { file = file; line = line; }
                                             ~~~~ ^ ~~~~
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:157:64: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
void noaction2(char * file, char * line)   { file = file; line = line; }
                                                          ~~~~ ^ ~~~~
5 warnings generated.
  GEN     /home/ricardo/android-x86/out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/Makefile
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:152:
scripts/kconfig/zconf.hash.c:171:3: warning: non-constant static local variable in inline function may be different in different files [-Wstatic-local-in-inline]
  static struct kconf_id wordlist[] =
  ^
scripts/kconfig/zconf.hash.c:157:1: note: use 'static' to give inline function 'kconf_id_lookup' internal linkage
__inline
^
static
scripts/kconfig/zconf.hash.c:222:44: warning: static variable 'kconf_id_strings_contents' is used in an inline function with external linkage [-Wstatic-in-inline]
              register const char *s = o + kconf_id_strings;
                                           ^
scripts/kconfig/zconf.hash.c:155:43: note: expanded from macro 'kconf_id_strings'
#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
                                          ^
scripts/kconfig/zconf.hash.c:157:1: note: use 'static' to give inline function 'kconf_id_lookup' internal linkage
__inline
^
static
scripts/kconfig/zconf.hash.c:122:34: note: 'kconf_id_strings_contents' declared here
static struct kconf_id_strings_t kconf_id_strings_contents =
                                 ^
2 warnings generated.
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
/home/ricardo/android-x86/external/busybox/scripts/gcc-version.sh: /home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc: /usr/bin/python: intérprete erróneo: No existe el archivo o el directorio
make[4]: /usr/bin/pkg-config: Command not found
make[4]: /usr/bin/pkg-config: Command not found
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  HOSTCC  applets/usage
  GEN     include/usage_compressed.h
  HOSTCC  applets/applet_tables
  GEN     include/applet_tables.h
  CC      applets/applets.o
/bin/sh: 1: /home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc: not found
make[2]: *** [/home/ricardo/android-x86/external/busybox/scripts/Makefile.build:198: applets/applets.o] Error 127
make[1]: *** [/home/ricardo/android-x86/external/busybox/Makefile:379: applets_dir] Error 2
make: *** [Makefile:119: prepare] Error 2
make: Leaving directory '/home/ricardo/android-x86/external/busybox'
16:10:33 ninja failed with: exit status 1

#### failed to build some targets (03:13 (mm:ss)) ####

"Error 2"
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200405.005
OUT_DIR=out
============================================
16:25:10 AllowBuildBrokenUsesNetwork: true
16:25:10 BuildBrokenUsesNetwork: true
[  0% 39/105076] -e Prepare config for busybox binary
FAILED: out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/include/autoconf.h
/bin/bash -c "(rm -rf out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/ \$(find out/target/product/x86_64/obj/EXECUTABLES/busybox_intermediates -name \"*.o\") ) && (mkdir -p out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/include ) && (( cat external/busybox/busybox-full.config && echo \"CONFIG_CROSS_COMPILER_PREFIX=\\\"/home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-\\\"\" ) > out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/.config ) && (PATH=\"/home/ricardo/android-x86/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin:/home/ricardo/android-x86/prebuilts/gcc/linux-x86/host/libexec/gcc/x86_64-linux/4.8.3:\$PATH\" /home/ricardo/android-x86/prebuilts/build-tools/linux-x86/bin/make -C external/busybox prepare O=/home/ricardo/android-x86/out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates CC=/home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc HOSTCC=/home/ricardo/android-x86/prebuilts/clang/host/linux-x86/clang-r353983c1/bin/clang PKG_CONFIG=/usr/bin/pkg-config )"
make: Entering directory '/home/ricardo/android-x86/external/busybox'
/home/ricardo/android-x86/external/busybox/scripts/gcc-version.sh: /home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc: /usr/bin/python: intérprete erróneo: No existe el archivo o el directorio
make[1]: /usr/bin/pkg-config: Command not found
make[1]: /usr/bin/pkg-config: Command not found
  Using /home/ricardo/android-x86/external/busybox as source for busybox
  GEN     /home/ricardo/android-x86/out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/Makefile
  GEN     include/applets.h
  GEN     include/usage.h
  GEN     runit/Kbuild
  GEN     runit/Config.in
  GEN     miscutils/Kbuild
  GEN     miscutils/Config.in
  GEN     util-linux/Kbuild
  GEN     util-linux/Config.in
  GEN     util-linux/volume_id/Kbuild
  GEN     util-linux/volume_id/Config.in
  GEN     coreutils/Kbuild
  GEN     coreutils/Config.in
  GEN     coreutils/libcoreutils/Kbuild
  GEN     debianutils/Kbuild
  GEN     debianutils/Config.in
  GEN     init/Kbuild
  GEN     init/Config.in
  GEN     console-tools/Kbuild
  GEN     console-tools/Config.in
  GEN     applets/Kbuild
  GEN     libbb/Kbuild
  GEN     libbb/Config.in
  GEN     editors/Kbuild
  GEN     editors/Config.in
  GEN     mailutils/Kbuild
  GEN     mailutils/Config.in
  GEN     archival/Kbuild
  GEN     archival/Config.in
  GEN     archival/libarchive/Kbuild
  GEN     procps/Kbuild
  GEN     procps/Config.in
  GEN     findutils/Kbuild
  GEN     findutils/Config.in
  GEN     printutils/Kbuild
  GEN     printutils/Config.in
  GEN     loginutils/Kbuild
  GEN     loginutils/Config.in
  GEN     shell/Kbuild
  GEN     shell/Config.in
  GEN     libpwdgrp/Kbuild
  GEN     modutils/Kbuild
  GEN     modutils/Config.in
  GEN     networking/Kbuild
  GEN     networking/Config.in
  GEN     networking/udhcp/Kbuild
  GEN     networking/udhcp/Config.in
  GEN     networking/libiproute/Kbuild
  GEN     scripts/Kbuild
  GEN     e2fsprogs/Kbuild
  GEN     e2fsprogs/Config.in
  GEN     e2fsprogs/old_e2fsprogs/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/Config.in
  GEN     e2fsprogs/old_e2fsprogs/blkid/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/ext2fs/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/uuid/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/e2p/Kbuild
  GEN     sysklogd/Kbuild
  GEN     sysklogd/Config.in
  GEN     selinux/Kbuild
  GEN     selinux/Config.in
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:90:18: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
                        perror("vfork"+1);
                               ~~~~~~~^~
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:90:18: note: use array indexing to silence this warning
                        perror("vfork"+1);
                                      ^
                               &      [ ]
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:155:51: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
void adddep2(char * file, char * line)     { line = line; adddep(file); }
                                             ~~~~ ^ ~~~~
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:156:39: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
void noaction(char * line)                 { line = line; }
                                             ~~~~ ^ ~~~~
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:157:51: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
void noaction2(char * file, char * line)   { file = file; line = line; }
                                             ~~~~ ^ ~~~~
/home/ricardo/android-x86/external/busybox/scripts/basic/docproc.c:157:64: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
void noaction2(char * file, char * line)   { file = file; line = line; }
                                                          ~~~~ ^ ~~~~
5 warnings generated.
  GEN     /home/ricardo/android-x86/out/target/product/x86_64/gen/EXECUTABLES/busybox_intermediates/Makefile
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:152:
scripts/kconfig/zconf.hash.c:171:3: warning: non-constant static local variable in inline function may be different in different files [-Wstatic-local-in-inline]
  static struct kconf_id wordlist[] =
  ^
scripts/kconfig/zconf.hash.c:157:1: note: use 'static' to give inline function 'kconf_id_lookup' internal linkage
__inline
^
static
scripts/kconfig/zconf.hash.c:222:44: warning: static variable 'kconf_id_strings_contents' is used in an inline function with external linkage [-Wstatic-in-inline]
              register const char *s = o + kconf_id_strings;
                                           ^
scripts/kconfig/zconf.hash.c:155:43: note: expanded from macro 'kconf_id_strings'
#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
                                          ^
scripts/kconfig/zconf.hash.c:157:1: note: use 'static' to give inline function 'kconf_id_lookup' internal linkage
__inline
^
static
scripts/kconfig/zconf.hash.c:122:34: note: 'kconf_id_strings_contents' declared here
static struct kconf_id_strings_t kconf_id_strings_contents =
                                 ^
2 warnings generated.
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
/home/ricardo/android-x86/external/busybox/scripts/gcc-version.sh: /home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc: /usr/bin/python: intérprete erróneo: No existe el archivo o el directorio
make[4]: /usr/bin/pkg-config: Command not found
make[4]: /usr/bin/pkg-config: Command not found
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  HOSTCC  applets/usage
  GEN     include/usage_compressed.h
  HOSTCC  applets/applet_tables
  GEN     include/applet_tables.h
  CC      applets/applets.o
/bin/sh: 1: /home/ricardo/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc: not found
make[2]: *** [/home/ricardo/android-x86/external/busybox/scripts/Makefile.build:198: applets/applets.o] Error 127
make[1]: *** [/home/ricardo/android-x86/external/busybox/Makefile:379: applets_dir] Error 2
make: *** [Makefile:119: prepare] Error 2
make: Leaving directory '/home/ricardo/android-x86/external/busybox'
16:25:28 ninja failed with: exit status 1

#### failed to build some targets (20 seconds) ####
"Error 3"
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200405.005
OUT_DIR=out
============================================
16:41:34 AllowBuildBrokenUsesNetwork: true
16:41:34 BuildBrokenUsesNetwork: true
[  0% 1/103693] build out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_uti
FAILED: out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_util_intermediates/xmlpool.pot
/bin/bash -c "/usr/bin/xgettext -L C --from-code utf-8 -o out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_util_intermediates/xmlpool.pot external/mesa/src/util/xmlpool/t_options.h"
/bin/bash: línea 1: /usr/bin/xgettext: No existe el archivo o el directorio
16:41:36 ninja failed with: exit status 1

#### failed to build some targets (4 seconds) ####
"Error 4"
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200405.005
OUT_DIR=out
============================================
16:44:51 AllowBuildBrokenUsesNetwork: true
16:44:51 BuildBrokenUsesNetwork: true
[  0% 4/103560] target shared-glapi: libglapi_32 <= external/mesa/src/mapi/glapi
FAILED: out/target/product/x86_64/gen/SHARED_LIBRARIES/libglapi_intermediates/shared-glapi/glapi_mapi_tmp.h
/bin/bash -c "/usr/bin/python external/mesa/src/mapi/mapi_abi.py --printer shared-glapi external/mesa/src/mapi/glapi/gen/gl_and_es_API.xml > out/target/product/x86_64/gen/SHARED_LIBRARIES/libglapi_intermediates/shared-glapi/glapi_mapi_tmp.h"
Traceback (most recent call last):
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 674, in <module>
    main()
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 667, in main
    entries = abi_parse_xml(filename)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 140, in abi_parse_xml
    api = gl_XML.parse_GL_API(xml, glX_XML.glx_item_factory())
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 44, in parse_GL_API
    api.parse_file( file_name )
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 858, in parse_file
    self.process_element(file_name, doc)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 864, in process_element
    self.process_OpenGLAPI(file_name, element)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 869, in process_OpenGLAPI
    for child in element.getchildren():
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
16:44:53 ninja failed with: exit status 1

#### failed to build some targets (4 seconds) ####
"Error 5" In this part I had to change the "user" branch but I still get the same error
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200405.005
OUT_DIR=out
============================================
Environment variable TARGET_BUILD_VARIANT was modified (user => userdebug), regenerating...
out/soong/Android-android_x86_64.mk was modified, regenerating...
[ 99% 388/389] finishing build rules ...
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'TelecomUnitTests'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherOutOfProcTests'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherDebug'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherTests'
platform_testing/build/tasks/tests/native_test_list.mk: warning: continuous_native_tests: Unknown installed file for module 'nfc_test_utils'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'LauncherRotationStressTest'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'PlatformScenarioTests'
18:01:42 Build configuration changed: "android_x86_64-user" -> "android_x86_64-userdebug", forcing installclean
18:01:42 AllowBuildBrokenUsesNetwork: true
18:01:42 BuildBrokenUsesNetwork: true
[  0% 434/103919] target shared-glapi: libglapi_32 <= external/mesa/src/mapi/gla
FAILED: out/target/product/x86_64/gen/SHARED_LIBRARIES/libglapi_intermediates/shared-glapi/glapi_mapi_tmp.h
/bin/bash -c "/usr/bin/python external/mesa/src/mapi/mapi_abi.py --printer shared-glapi external/mesa/src/mapi/glapi/gen/gl_and_es_API.xml > out/target/product/x86_64/gen/SHARED_LIBRARIES/libglapi_intermediates/shared-glapi/glapi_mapi_tmp.h"
Traceback (most recent call last):
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 674, in <module>
    main()
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 667, in main
    entries = abi_parse_xml(filename)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 140, in abi_parse_xml
    api = gl_XML.parse_GL_API(xml, glX_XML.glx_item_factory())
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 44, in parse_GL_API
    api.parse_file( file_name )
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 858, in parse_file
    self.process_element(file_name, doc)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 864, in process_element
    self.process_OpenGLAPI(file_name, element)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 869, in process_OpenGLAPI
    for child in element.getchildren():
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
[  0% 440/103919] target  C++: libmesa_glsl <= external/mesa/src/compiler/glsl/l
In file included from external/mesa/src/compiler/glsl/lower_buffer_access.cpp:36:
external/mesa/src/mesa/main/macros.h:630:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
   COPY_SZ_4V(dst, sz, src);
   ^
external/mesa/src/mesa/main/macros.h:285:4: note: expanded from macro 'COPY_SZ_4V'
   case 3: (DST)[2] = (SRC)[2];   \
   ^
external/mesa/src/mesa/main/macros.h:630:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
external/mesa/src/mesa/main/macros.h:286:4: note: expanded from macro 'COPY_SZ_4V'
   case 2: (DST)[1] = (SRC)[1];   \
   ^
external/mesa/src/mesa/main/macros.h:630:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
external/mesa/src/mesa/main/macros.h:287:4: note: expanded from macro 'COPY_SZ_4V'
   case 1: (DST)[0] = (SRC)[0];   \
   ^
3 warnings generated.
18:01:48 ninja failed with: exit status 1

#### failed to build some targets (02:08 (mm:ss)) ####

and I also tried to restart the system and compile again but the problem remains the same
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200405.005
OUT_DIR=out
============================================
19:22:40 AllowBuildBrokenUsesNetwork: true
19:22:40 BuildBrokenUsesNetwork: true
[  0% 2/103479] target shared-glapi: libglapi_32 <= external/mesa/src/mapi/glapi
FAILED: out/target/product/x86_64/gen/SHARED_LIBRARIES/libglapi_intermediates/shared-glapi/glapi_mapi_tmp.h
/bin/bash -c "/usr/bin/python external/mesa/src/mapi/mapi_abi.py --printer shared-glapi external/mesa/src/mapi/glapi/gen/gl_and_es_API.xml > out/target/product/x86_64/gen/SHARED_LIBRARIES/libglapi_intermediates/shared-glapi/glapi_mapi_tmp.h"
Traceback (most recent call last):
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 674, in <module>
    main()
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 667, in main
    entries = abi_parse_xml(filename)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/mapi_abi.py", line 140, in abi_parse_xml
    api = gl_XML.parse_GL_API(xml, glX_XML.glx_item_factory())
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 44, in parse_GL_API
    api.parse_file( file_name )
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 858, in parse_file
    self.process_element(file_name, doc)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 864, in process_element
    self.process_OpenGLAPI(file_name, element)
  File "/home/ricardo/android-x86/external/mesa/src/mapi/glapi/gen/gl_XML.py", line 869, in process_OpenGLAPI
    for child in element.getchildren():
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
19:22:45 ninja failed with: exit status 1

#### failed to build some targets (47 seconds) ####

I don't know if there is a solution since they have made Android x86 10 but the problem is that I also want to compile but I can't compile. I am using Ubuntu 22.04 LTS but respectively I followed the instructions to obtain the android x86 source code on this page:https://www.android-x86.org/source.html In this case I chose the "q-x86" branch but the problem is that I can't get it or more to say I can't compile it and in fact I had to use the "repo sync" command but I still have the same problem

PS: I have the system in Spanish but I had to translate it from Spanish to English from Google Translator just in case :)

thank you

Huy Minh Bùi (HMTheBoy154)

unread,
Jan 17, 2024, 6:47:37 AMJan 17
to Android-x86
might need an older distro with Python2 to build this

Vào lúc 09:10:10 UTC+7 ngày Thứ Tư, 17 tháng 1, 2024, rickir...@gmail.com đã viết:

Michael Goffioul

unread,
Jan 17, 2024, 7:19:52 AMJan 17
to andro...@googlegroups.com
An alternative is to make sure /usr/bin/python runs python 2 (usually a symlink to /usr/bin/python2). How this is done is dependent on your Linux distro and you might have to create the symlink manually: e.g. on current Fedora, I uninstall package `python-unversioned-command` and then create the symlink manually. On Ubuntu 22, you might need to remove package `python-is-python3` and also create the symlink manually.


--
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/a979668b-adb2-4f0f-abb0-cfd91e18e38dn%40googlegroups.com.

Ricardo Rojas Rodriguez

unread,
Jan 17, 2024, 1:42:12 PMJan 17
to Android-x86
first. What previous Ubuntu distribution should I use, whether "Ubuntu 18.04" or not. and the second. I already tried but I still have the same problem I tried but I still get the error
"attempt 1"
ricardo-ricardo-desktop:~/android-x86$ make -j4 iso_img

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200405.005
OUT_DIR=out
============================================
12:37:35 AllowBuildBrokenUsesNetwork: true
12:37:35 BuildBrokenUsesNetwork: true
[  0% 5/103238] Gen ES: libmesa_dricore_32 <= format_pack.c
FAILED: out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_pack.c
/bin/bash -c "/usr/bin/python external/mesa/src/mesa/main/format_pack.py  external/mesa/src/mesa/main/formats.csv  > out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_pack.c"

Traceback (most recent call last):
  File "external/mesa/src/mesa/main/format_pack.py", line 3, in <module>
    from mako.template import Template
ImportError: No module named mako.template
[  0% 6/103238] Gen ES: libmesa_dricore_32 <= format_unpack.c
FAILED: out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_unpack.c
/bin/bash -c "/usr/bin/python external/mesa/src/mesa/main/format_unpack.py  external/mesa/src/mesa/main/formats.csv  > out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_unpack.c"

Traceback (most recent call last):
  File "external/mesa/src/mesa/main/format_unpack.py", line 3, in <module>
    from mako.template import Template
ImportError: No module named mako.template
[  0% 7/103238] Gen ES: libmesa_dricore_32 <= format_fallback.c
FAILED: out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_fallback.c
/bin/bash -c "/usr/bin/python external/mesa/src/mesa/main/format_fallback.py  external/mesa/src/mesa/main/formats.csv /dev/stdout  > out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_fallback.c"

Traceback (most recent call last):
  File "external/mesa/src/mesa/main/format_fallback.py", line 30, in <module>
    from mako.template import Template
ImportError: No module named mako.template
12:37:36 ninja failed with: exit status 1


#### failed to build some targets (4 seconds) ####

"attempt 2"
ricardo-ricardo-desktop:~/android-x86$ make -j2 iso_img

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.0-26-generic-x86_64-Ubuntu-22.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200405.005
OUT_DIR=out
============================================
12:37:45 AllowBuildBrokenUsesNetwork: true
12:37:45 BuildBrokenUsesNetwork: true
[  0% 1/103233] Gen ES: libmesa_dricore_32 <= format_pack.c
FAILED: out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_pack.c
/bin/bash -c "/usr/bin/python external/mesa/src/mesa/main/format_pack.py  external/mesa/src/mesa/main/formats.csv  > out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_pack.c"

Traceback (most recent call last):
  File "external/mesa/src/mesa/main/format_pack.py", line 3, in <module>
    from mako.template import Template
ImportError: No module named mako.template
[  0% 2/103233] Gen ES: libmesa_dricore_32 <= format_fallback.c
FAILED: out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_fallback.c
/bin/bash -c "/usr/bin/python external/mesa/src/mesa/main/format_fallback.py  external/mesa/src/mesa/main/formats.csv /dev/stdout  > out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_dricore_intermediates/main/format_fallback.c"

Traceback (most recent call last):
  File "external/mesa/src/mesa/main/format_fallback.py", line 30, in <module>
    from mako.template import Template
ImportError: No module named mako.template
12:37:47 ninja failed with: exit status 1


#### failed to build some targets (4 seconds) ####

I don't know if I'm doing him wrong. or yes or if I would have to use the previous Ubuntu distribution or not?
Message has been deleted

Michael Goffioul

unread,
Jan 18, 2024, 9:30:45 AMJan 18
to andro...@googlegroups.com
You're missing the python-mako module (for python2). However you might run into problem as Ubuntu 22 has fully moved to python3, not sure you'll be able to find that package from Ubuntu repo. Another option, though I've never tried, might be to use a python virtualenv, but I'm not sure whether Android build system will play nice with it. Your best bet is probably to use an older Ubuntu release.


Ricardo Rojas Rodriguez

unread,
Jan 18, 2024, 10:16:55 PMJan 18
to Android-x86
Well, in any case, I couldn't compile it but thank you very much for the solutions since the source code of the android x86 10 is corrupt so I can't compile the source code of the android x86, including the kernel to compile and even the files. .cpp or .h or something like that, but in any case, thank you very much for being able to do everything possible, although one day I can improve the android x86 10 source code since you can get the android x86 10 iso on the internet, but I don't know how they did it so that I could compile it, but anyway I couldn't compile it even though I tried to install Ubuntu 20.04, although it was possible to install the package dependencies, but as I mentioned, it didn't work since the kernel and the The others do not come integrated for compilation since I could not compile it but. Thank you very much for all the solution.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages