[Galaxy S6 / S6 Edge Unified Development] fwiep:
Hello,

I'm trying to build this Lineage-18.1 ROM myself. Using the info from post #1 and my past experience building for y550, x605f, ali and others, I get several C++ level errors of the same kind. I have no C++ experience to actually fix them as such.

They're in the included hardware/samsung_slsi/exynos and hardware/samsung_slsi/exynos5 folders. The relevant output showing the errors looks like this:

FAILED: out/target/product/zerofltexx/obj/SHARED_LIBRARIES/gralloc.exynos5_intermediates/format_chooser.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -I device/samsung/universal7420-common/include -I device/samsung/zerofltexx/include -I hardware/samsung_slsi/exynos/include -I hardware/samsung_slsi/exynos/include -I hardware/samsung_slsi/exynos5/include -I hardware/samsung_slsi/exynos/gralloc -I out/target/product/zerofltexx/obj/SHARED_LIBRARIES/gralloc.exynos5_intermediates -I out/target/product/zerofltexx/gen/SHARED_LIBRARIES/gralloc.exynos5_intermediates -I libnativehelper/include_jni -Isystem/core/liblog/include -Isystem/core/libcutils/include -Isystem/core/libprocessgroup/include -Isystem/memory/libion/include -Isystem/memory/libion/kernel-headers -Isystem/memory/libion/include -Isystem/memory/libion/kernel-headers -Isystem/core/libutils/include -Isystem/core/libbacktrace/include -Isystem/core/liblog/include -Isystem/core/libsystem/include -Isystem/core/libcutils/include -Isystem/core/libprocessgroup/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -D__LIBC_API__=10000 -Ibionic/libc/include -D__LIBM_API__=10000 -D__LIBM_API__=10000 -D__LIBDL_API__=10000 -Iexternal/libcxxabi/include -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/zerofltexx/obj/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -march=armv8-a -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wsign-promo -Wimplicit-fallthrough -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -fvisibility-inlines-hidden -std=gnu++17 -fno-rtti -Wall -Werror -DUSES_EXYNOS_COMMON_GRALLOC -DLOG_TAG=\\\"gralloc\\\" -Wno-missing-field-initializers -DMALI_AFBC_GRALLOC=1 -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES -fPIC -DANDROID_STRICT -target aarch64-linux-android10000 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -MD -MF out/target/product/zerofltexx/obj/SHARED_LIBRARIES/gralloc.exynos5_intermediates/format_chooser.d -o out/target/product/zerofltexx/obj/SHARED_LIBRARIES/gralloc.exynos5_intermediates/format_chooser.o hardware/samsung_slsi/exynos/gralloc/format_chooser.cpp"
hardware/samsung_slsi/exynos/gralloc/format_chooser.cpp:96:44: error: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Werror,-Wformat]
ALOGD("Returned iterated format: 0x%llX", new_format);
~~~~ ^~~~~~~~~~
%lX
system/core/liblog/include/log/log_main.h:227:52: note: expanded from macro 'ALOGD'
#define ALOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__))
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:336: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 error generated.

This is my roomservice.xml:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<!-- repo init -u https://github.com/LineageOS/android.git -b lineage-18.1 -->

<!-- device tree -->
<project path="device/samsung/universal7420-common" name="Exynos7420/android_device_samsung_universal7420-common" remote="github" revision="lineage-18.1" />
<project path="device/samsung/zerofltexx" name="Exynos7420/android_device_samsung_zerofltexx" remote="github" revision="lineage-18.1" />

<!-- kernel tree -->
<!-- <project path="kernel/samsung/exynos7420" name="Exynos7420/android_kernel_samsung_exynos7420" remote="github" revision="lineage-18.1" /> -->
<project path="kernel/samsung/universal7420" name="Exynos7420/android_kernel_samsung_universal7420" remote="github" revision="lineage-18.1" />

<!-- vendor tree -->
<project path="vendor/samsung" name="Exynos7420/proprietary_vendor_samsung" remote="github" revision="lineage-18.1" />

<!-- hardware tree -->
<project path="hardware/samsung" name="LineageOS/android_hardware_samsung" remote="github" revision="lineage-18.1" />
<project path="hardware/samsung_slsi/exynos5" name="LineageOS/android_hardware_samsung_slsi_exynos5" remote="github" revision="lineage-18.1" />
<project path="hardware/samsung_slsi/exynos7420" name="Exynos7420/android_hardware_samsung_slsi_exynos7420" remote="github" revision="lineage-18.1" />
<project path="hardware/samsung_slsi/exynos" name="LineageOS/android_hardware_samsung_slsi_exynos" remote="github" revision="lineage-18.1" />
<project path="hardware/samsung_slsi/openmax" name="LineageOS/android_hardware_samsung_slsi_openmax" remote="github" revision="lineage-18.1" />

</manifest>

Are there any updated Lineage-18.1 repos available, be it from LineageOS or Exynos7420?

Is it possible to build a current Lineage 18.1 for the SM-G920F?

Thanks,

FWieP