I have tried it with make clean.
I have tried it without make clean
I have tried repo sync.
I have tried repo sync --force-sync.
I have tried different versions of the repo script.
I have tried reverting some commits that appeared in the past few days. (Remember, I was able to build twrp from your sources about a week ago; it started failing more recently.)
I have tried lunch with lineage_amami-eng.
I have tried lunch with lineage_amami-userdebug.
I have tried with ccache.
I have tried without ccache.
I have tried with Ubuntu 16.04.5.
I have tried with Ubuntu 18.04.1.
Most recently, I installed a completely new Ubuntu installation (18.04.1 amd64) and new repo init / repo sync (which takes quite a few hours with my internet connection). Here are the commands I ran after installing the OS and tools:
Code:
mkdir lineage-oreo
cd lineage-oreo
repo init -u https://github.com/LineageOS/android.git -b lineage-15.1
git clone https://github.com/115ek/manifest.git .repo/local_manifests
mv .repo/local_manifests/amami.xml .repo/local_manifests/amami.xml.disable
repo sync
lunch
lineage_amami-eng
mka recoveryimage
The build still fails with the same error:
Code:
[ 2% 250/10713] target thumb C++: lib...ootable/recovery-twrp/minui/events.cpp
FAILED: /mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/obj/STATIC_LIBRARIES/libminui_intermediates/events.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I device/sony/msm8974-common/include -I device/sony/rhine-common/include -I device/sony/amami/include -I external/libcxx/include -I external/libpng -I /mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/obj/KERNEL_OBJ/usr/include -I bootable/recovery-twrp/minui/include -I bootable/recovery-twrp/minui -I /mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/obj/STATIC_LIBRARIES/libminui_intermediates -I /mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/gen/STATIC_LIBRARIES/libminui_intermediates -I libnativehelper/include_deprecated \$(cat /mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/obj/STATIC_LIBRARIES/libminui_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=krait -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -DMSM_BSP -DHAS_LIBSYNC -Werror -std=c++14 -DRECOVERY_RGBX -DOVERSCAN_PERCENT=0 -DTW_BRIGHTNESS_PATH=\\\"/sys/class/leds/wled:backlight/brightness\\\" -DTW_MAX_BRIGHTNESS=255 -DBOARD_USE_CUSTOM_RECOVERY_FONT=\\\"roboto_23x41.h\\\" -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/obj/STATIC_LIBRARIES/libminui_intermediates/events.d -o /mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/obj/STATIC_LIBRARIES/libminui_intermediates/events.o bootable/recovery-twrp/minui/events.cpp"
In file included from bootable/recovery-twrp/minui/events.cpp:23:
bionic/libc/include/sys/epoll.h:67:8: error: redefinition of 'epoll_event'
struct epoll_event {
^
/mnt/buildboxext/project/android/lineage-oreo/out/target/product/amami/obj/KERNEL_OBJ/usr/include/linux/eventpoll.h:47:8: note: previous definition is here
struct epoll_event {
^
bootable/recovery-twrp/minui/events.cpp:105:14: error: member reference base type '__u64' (aka 'unsigned long long') is not a structure or union
ev.data.ptr = &ev_fdinfo[ev_count];
~~~~~~~^~~~
bootable/recovery-twrp/minui/events.cpp:149:10: error: member reference base type '__u64' (aka 'unsigned long long') is not a structure or union
ev.data.ptr = static_cast<void*>(&ev_fdinfo[ev_count]);
~~~~~~~^~~~
bootable/recovery-twrp/minui/events.cpp:183:62: error: member reference base type '__u64' (aka 'unsigned long long') is not a structure or union
fd_info* fdi = static_cast<fd_info*>(polledevents[n].data.ptr);
~~~~~~~~~~~~~~~~~~~~^~~~
4 errors generated.
ninja: build stopped: subcommand failed.
20:58:29 ninja failed with: exit status 1
#### failed to build some targets (58 seconds) ####
Is it possible that you have some old or extra files that I do not have?
I'm building on a 64-bit system. Are you?
What in the world could be the problem here?
---------- Post added at 21:23 ---------- Previous post was at 21:12 ----------
It looks like the conflicting header file that causes the failure is out/target/product/amami/obj/KERNEL_OBJ/usr/include/linux/eventpoll.h, which is included by bootable/recovery-twrp/minui/Android.mk selectively, depending on the values of TW_TARGET_USES_QCOM_BSP and TARGET_PREBUILT_KERNEL. Do those variables mean anything to you?
Last edited: