Hello Tan Ming,
Still no luck I tried installing the other required packages too
/usr/include/gelf.h:234:6: error: unknown type name \u2018Elf32_Word\u2019
Elf32_Word __xshndx);
^
CC
/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/sigchain.o
arch/x86/decode.c: In function \u2018is_x86_64\u2019:
arch/x86/decode.c:43:19: error: request for member \u2018e_machine\u2019 in something not
a structure or union
switch (elf->ehdr.e_machine) {
^
arch/x86/decode.c:44:7: error: \u2018EM_X86_64\u2019 undeclared (first use in this
function)
case EM_X86_64:
^
arch/x86/decode.c:44:7: note: each undeclared identifier is reported only once for each
function it appears in
arch/x86/decode.c:46:7: error: \u2018EM_386\u2019 undeclared (first use in this function)
case EM_386:
^
In file included from arch/x86/decode.c:28:0:
arch/x86/decode.c:49:51: error: request for member \u2018e_machine\u2019 in something not
a structure or union
WARN("unexpected ELF machine type %d", elf->ehdr.e_machine);
^
arch/x86/../../warn.h:58:14: note: in definition of macro \u2018WARN\u2019
objname, ##__VA_ARGS__)
^
arch/x86/decode.c:52:1: error: control reaches end of non-void function
[-Werror=return-type]
}
^
cc1: all warnings being treated as errors
mv: cannot stat
'/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/.builtin-check.o.tmp':
No such file or directory
/home/sristi/work/celadon_23_nov_2018/kernel/project-celadon/tools/build/Makefile.build:96:
recipe for target
'/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/builtin-check.o'
failed
make[4]: ***
[/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/builtin-check.o]
Error 1
make[4]: *** Waiting for unfinished jobs....
mv: cannot stat
'/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/arch/x86/.decode.o.tmp':
No such file or directory
/home/sristi/work/celadon_23_nov_2018/kernel/project-celadon/tools/build/Makefile.build:96:
recipe for target
'/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/arch/x86/decode.o'
failed
make[5]: ***
[/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/arch/x86/decode.o]
Error 1
/home/sristi/work/celadon_23_nov_2018/kernel/project-celadon/tools/build/Makefile.build:139:
recipe for target 'arch/x86' failed
make[4]: *** [arch/x86] Error 2
Makefile:46: recipe for target
'/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/objtool-in.o'
failed
make[3]: ***
[/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/objtool-in.o]
Error 2
make[3]: *** Waiting for unfinished jobs....
CC
/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/subcmd-config.o
LD
/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/libsubcmd-in.o
AR
/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/tools/objtool/libsubcmd.a
Makefile:64: recipe for target 'objtool' failed
make[2]: *** [objtool] Error 2
/home/sristi/work/celadon_23_nov_2018/kernel/project-celadon/Makefile:1675: recipe for
target 'tools/objtool' failed
make[1]: *** [tools/objtool] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes. Stop.
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory
'/home/sristi/work/celadon_23_nov_2018/kernel/project-celadon'
[ 0% 787/80030] host C: libssl-static2 <= vendor/intel/external/openssl/ssl/ssl_lib.c
ninja: build stopped: subcommand failed.
04:45:42 ninja failed with: exit status 1
Thanks
Sristi
From: Tan, Ming
Sent: Saturday, November 24, 2018 3:01 PM
To: Sristi, Vns Murthy <vns.murthy.sristi(a)intel.com>; celadon(a)lists.01.org
Subject: RE: build Error with latest code sync
Sriste:
Can you install the efitools and try again.
In Ubuntu, you can use the command 'apt-get install efitools ' to do it.
BR/Tan Ming.
From: Celadon [mailto:celadon-bounces@lists.01.org] On Behalf Of Sristi, Vns Murthy
Sent: Saturday, November 24, 2018 10:07 AM
To: celadon@lists.01.org<mailto:celadon@lists.01.org>
Subject: [
01.org Celadon] build Error with latest code sync
Hello
I did the repo sync of the code to the latest, But the build is failing with below error,
I am using the lunch target as celadon-userdebug
And error log is below, please help me with fix for below error
[NOT IN VENDOR][celadon] module:power.project-celadon installed
in:out/target/product/celadon/system/lib64/hw/power.project-celadon.so
by:vendor/intel/external/project-celadon/powerhal/Android.mk should be installed either in
/system/vendor or /vendor
[NOT IN VENDOR][celadon] module:power.project-celadon installed
in:out/target/product/celadon/system/lib/hw/power.project-celadon.so
by:vendor/intel/external/project-celadon/powerhal/Android.mk should be installed either in
/system/vendor or /vendor
[NOT IN VENDOR][celadon] module:amtl_cfg installed
in:out/target/product/celadon/fake_packages/amtl_cfg-timestamp
by:vendor/intel/tools/log_capture/amtl/src/com/intel/amtl/config_catalog/Android.mk should
be installed either in /system/vendor or /vendor
[NOT IN VENDOR][celadon] module:crash_package installed
in:out/target/product/celadon/fake_packages/crash_package-timestamp
by:vendor/intel/tools/log_infra/Android.mk should be installed either in /system/vendor or
/vendor
[NOT IN VENDOR][celadon] module:crashinfo installed
in:out/target/product/celadon/system/framework/crashinfo.jar
by:vendor/intel/tools/log_infra/crashinfo/Android.mk should be installed either in
/system/vendor or /vendor
[NOT IN VENDOR][celadon] module:crashinfo-cmd installed
in:out/target/product/celadon/system/bin/crashinfo
by:vendor/intel/tools/log_infra/crashinfo/Android.mk should be installed either in
/system/vendor or /vendor
[NOT IN VENDOR][celadon] module:CrashReport installed
in:out/target/product/celadon/system/app/CrashReport/CrashReport.apk
by:vendor/intel/tools/log_infra/crashreport/Android.mk should be installed either in
/system/vendor or /vendor
[ 0% 10/79425] build out/target/product/celadon/bootloader_policy-oemvars.txt
FAILED: out/target/product/celadon/bootloader_policy-oemvars.txt
/bin/bash -c "device/intel/build/generate_blpolicy_oemvars -K
device/intel/build/testkeys/odm -O device/intel/build/testkeys/OAK.x509.pem
-B 0x0 out/target/product/celadon/bootloader_policy-oemvars.txt"
Traceback (most recent call last):
File "device/intel/build/generate_blpolicy_oemvars", line 261, in
<module>
main(sys.argv[1:])
File "device/intel/build/generate_blpolicy_oemvars", line 229, in main
password, guid, "OAK", m.digest())
File "device/intel/build/generate_blpolicy_oemvars", line 144, in
get_auth_data
name, payload_fname, auth_fname], None)
File "device/intel/build/generate_blpolicy_oemvars", line 73, in run
p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[ 0% 14/79425] build out/target/product/celadon/kernel
FAILED: out/target/product/celadon/kernel
/bin/bash -c "(make -j4 -C kernel/project-celadon
O=/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel ARCH=x86_64
CROSS_COMPILE=\"x86_64-linux-android-\" KCFLAGS=\"\"
KAFLAGS=\"\"
INSTALL_MOD_PATH=/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/vendor
bzImage modules ) && (prebuilts/build-tools/linux-x86/bin/acp -fp
/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel/arch/x86_64/boot/bzImage
out/target/product/celadon/kernel )"
make: Entering directory
'/home/sristi/work/celadon_23_nov_2018/kernel/project-celadon'
make[1]: Entering directory
'/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel'
/home/sristi/work/celadon_23_nov_2018/kernel/project-celadon/Makefile:984: ***
"Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev,
libelf-devel or elfutils-libelf-devel". Stop.
make[1]: Leaving directory
'/home/sristi/work/celadon_23_nov_2018/out/target/product/celadon/obj/kernel'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory
'/home/sristi/work/celadon_23_nov_2018/kernel/project-celadon'
ninja: build stopped: subcommand failed.
15:28:33 ninja failed with: exit status 1
Thanks
Sristi