[Android] Tainruk:
Hey all

I'm trying to build LineageOS 16.0 for the note 3 (HLTE) on ubuntu 18.10, but I get some errors about O_TMPFILE.

FAILED: /home/lars/android/lineage/out/target/product/hlte/obj/SHARED_LIBRARIES/audio.primary.msm8974_intermediates/voice.o

/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang	-I device/samsung/hlte-common/include -I external/tinyalsa/include -I external/tinycompress/include -I external/expat/lib -I system/media/audio_route/include -I system/media/audio_effects/include -I hardware/qcom/audio-caf/msm8974/hal/msm8974 -I hardware/qcom/audio-caf/msm8974/hal/audio_extn -I hardware/qcom/audio-caf/msm8974/hal/voice_extn -I hardware/qcom/audio-caf/msm8974/hal -I /home/lars/android/lineage/out/target/product/hlte/obj/SHARED_LIBRARIES/audio.primary.msm8974_intermediates -I /home/lars/android/lineage/out/target/product/hlte/gen/SHARED_LIBRARIES/audio.primary.msm8974_intermediates -I libnativehelper/include_jni \$(cat /home/lars/android/lineage/out/target/product/hlte/obj/SHARED_LIBRARIES/audio.primary.msm8974_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 /home/lars/android/lineage/out/target/product/hlte/obj/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 -fomit-frame-pointer -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 -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 -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/= -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=date-time -Werror=format-security -nostdlibinc -msoft-float -march=armv7-a -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 -std=gnu99 -fstrict-aliasing -DPLATFORM_MSM8974 -DUSE_VENDOR_EXTN -Wno-error -DFLUENCE_ENABLED -DAFE_PROXY_ENABLED -DHFP_ENABLED -DCOMPRESS_VOIP_ENABLED -DAUDIO_EXTN_FORMATS_ENABLED -DHW_VARIANTS_ENABLED -DLOW_LATENCY_PRIMARY -DMP2_OFFLOAD_ENABLED -DLOW_LATENCY_CAPTURE_USE_CASE=1 -DHWDEP_CAL_ENABLED -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/lars/android/lineage/out/target/product/hlte/obj/SHARED_LIBRARIES/audio.primary.msm8974_intermediates/voice.d -o /home/lars/android/lineage/out/target/product/hlte/obj/SHARED_LIBRARIES/audio.primary.msm8974_intermediates/voice.o hardware/qcom/audio-caf/msm8974/hal/voice.c"

In file included from hardware/qcom/audio-caf/msm8974/hal/voice.c:26:

In file included from system/core/libcutils/include/cutils/log.h:1:

In file included from system/core/liblog/include/log/log.h:34:

In file included from system/core/liblog/include/log/log_read.h:26:

In file included from bionic/libc/include/fcntl.h:95:

bionic/libc/include/bits/fortify/fcntl.h:63:26: error: use of undeclared identifier 'O_TMPFILE'

__clang_error_if(__open_modes_useful(flags), "'open' " __open_too_few_args_error) {

^

bionic/libc/include/bits/fortify/fcntl.h:46:71: note: expanded from macro '__open_modes_useful'

#define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)

^

bionic/libc/include/bits/fortify/fcntl.h:63:26: error: use of undeclared identifier 'O_TMPFILE'

bionic/libc/include/bits/fortify/fcntl.h:46:85: note: expanded from macro '__open_modes_useful'

#define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)

^

bionic/libc/include/bits/fortify/fcntl.h:70:29: error: use of undeclared identifier 'O_TMPFILE'

__clang_warning_if(!__open_modes_useful(flags) && modes,

^

bionic/libc/include/bits/fortify/fcntl.h:46:71: note: expanded from macro '__open_modes_useful'

#define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)

^

bionic/libc/include/bits/fortify/fcntl.h:70:29: error: use of undeclared identifier 'O_TMPFILE'

bionic/libc/include/bits/fortify/fcntl.h:46:85: note: expanded from macro '__open_modes_useful'

#define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)

^

bionic/libc/include/bits/fortify/fcntl.h:83:26: error: use of undeclared identifier 'O_TMPFILE'

__clang_error_if(__open_modes_useful(flags), "'openat' " __open_too_few_args_error) {

^

bionic/libc/include/bits/fortify/fcntl.h:46:71: note: expanded from macro '__open_modes_useful'

#define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)

^

bionic/libc/include/bits/fortify/fcntl.h:83:26: error: use of undeclared identifier 'O_TMPFILE'

bionic/libc/include/bits/fortify/fcntl.h:46:85: note: expanded from macro '__open_modes_useful'

#define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)

^

bionic/libc/include/bits/fortify/fcntl.h:90:29: error: use of undeclared identifier 'O_TMPFILE'

__clang_warning_if(!__open_modes_useful(flags) && modes,

^

Any seen this before and have an idea of what is wrong?

Found out that I should:

repopick -t pie-mode-bits

https://review.lineageos.org/#/q/bra...:pie-mode-bits

from this

Regards, Lars