[OnePlus 2 Q&A, Help & Troubleshooting] casual_kikoo:
Edit:

IMPORTANT !

Latest version of glibc, the entire C library (2.22-3 on Arch Linux), seems to brakes things for android build: as reported in this other thread by [MENTION=4590490]Poesini[/MENTION] (and many others in same thread), previous version of glibc should be right, but the newest isn't OK on Arch. So please, when you updating your system,

DO NOT UPDATE GLIBC!

. (Downgrading still possible, but isn't the funniest part: -> https://bbs.archlinux.org/viewtopic.php?id=200845). Others Linux Distros (like Ubuntu for example) should be good, as they have not update glibc yet, but PLEASE be aware about this problem!

Thanks [MENTION=6311143]Trafalgar Square[/MENTION] for taking the time to help me !

HI all!

Well, have a little problem over here. I'm trying to compile from sources Temasek (6.0.1) for OnePlus Two, with this repo:

repo init -u https://github.com/temasek/android.git -b cm-13.0

(thanks [MENTION=2332422]temasek[/MENTION])

and this roomservice.xml :

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Trafalgar-Square/android_device_oneplus_oneplus2" path="device/oneplus/oneplus2" remote="github" revision="temasek-mm6.0" />
<project name="benschhold/android_vendor_oneplus" path="vendor/oneplus" remote="github" revision="cm-13.0" />
<project name="benschhold/android_kernel_oneplus_msm8994" path="kernel/oneplus/msm8994" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_external_stlport" path="external/stlport" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_external_sony_boringssl-compat" path="external/sony/boringssl-compat" remote="github" revision="cm-13.0" />
<project name="benschhold/android_device_oppo_common" path="device/oppo/common" remote="github" revision="cm-13.0" />
</manifest>

(Thanks [MENTION=6311143]Trafalgar Square[/MENTION] by the way).

Well, every time I execute "lunch cm_oneplus2-userdebug" followed by "breakfast cm_oneplus2-userdebug", it's end in:

flex-2.5.39: loadlocale.c:131: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
touch /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
build/core/binary.mk:662: recipe for target '/home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp' failed
[COLOR="Red"]make: *** [/home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Aborted (core dumped)[/COLOR]
make: *** Waiting for unfinished jobs....
echo '#ifndef 'policy_parse_h > /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
Lex: libsepol <= external/selinux/libsepol/cil/src/cil_lexer.l
echo '#define 'policy_parse_h >> /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
flex-2.5.39: loadlocale.c:131: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
build/core/binary.mk:662: recipe for target '/home/bertac_t/android/temasek/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp' failed
[COLOR="Red"]make: *** [/home/bertac_t/android/temasek/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp] Aborted (core dumped)[/COLOR]
cat /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
make: Leaving directory '/home/bertac_t/android/temasek'

where sentences highlight in red seems to be the problem.

I found

THIS

on XDA, which seems to be a glibc problem. But, well, I've tried to follow the "fix" gave by [MENTION=2143933]martinoff[/MENTION], but no sign of a build_rom script in my directories...

Thanks to all who will help me :) !