Dang, frap! You're a machine!
It's almost like everytime I'm on XDA you've come up with something new & awesome haha.
It's almost like everytime I'm on XDA you've come up with something new & awesome haha.
oneplus2 ,,
benschhold using dtc too on cm temasek and orion mm op2
A few things.Hy @frap129 , i found something that may help against the compiling errors , the google ndroideabi toolchain toolchain cyanogenmod uses doesn't support the -O3 flag you used on dragontc.mk and they create compilation errors even if you include the file in the DISABLE_DTC_arm , so in my point of view the options are 1 we use custom androideabi toolchain with -O3 support like hypertoolchain ( i'm using a older sabermod 4.9 tc for my i9300 compilation because the newer ones crash the camera opening ) or 2 changeing the -O3 flag in dragontc to -O2 til google decide to add -O3 support to theyr toolchain
I may be wrong but this is how my test gone
Cheers :highfive:
P.S. When you have the time could you update the prebuilt toolchains? i whould deeply apriciate it
A few things.
1) DragonTC and dragontc.mk don't affect arm-linux-androideabi or any other GCC based toolchain. DragonTC is LLVM/Clang ONLY.
2) Polly is only enabled at the -O3 level, so by removing -O3 from dragontc.mk you disable Polly, so there's no point in using DragonTC
target arm C++: libGLESv2_32 <= frameworks/native/opengl/libs/GLES2/gl2.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/Input.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/InputDevice.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/Keyboard.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/KeyCharacterMap.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/KeyLayoutMap.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/VirtualKeyMap.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/IInputFlinger.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/InputTransport.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/VelocityControl.cpp
target thumb C++: libinput_32 <= frameworks/native/libs/input/VelocityTracker.cpp
target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/EventHub.cpp
target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputApplication.cpp
target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputDispatcher.cpp
target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputListener.cpp
target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputManager.cpp
target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputReader.cpp
target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputWindow.cpp
target asm: libcrypto_32 <= external/boringssl/linux-arm/crypto/aes/aes-armv4.S
target asm: libcrypto_32 <= external/boringssl/linux-arm/crypto/aes/aesv8-armx.S
clang: error: the clang compiler does not support '-march=armv8-a+crypto'
build/core/binary.mk:886: recipe for target '/home/samadhi/cm13/out/target/product/oneplus3/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/linux-arm/crypto/aes/aes-armv4.o' failed
make: *** [/home/samadhi/cm13/out/target/product/oneplus3/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/linux-arm/crypto/aes/aes-armv4.o] Error 1
make: *** Waiting for unfinished jobs....
clang: error: the clang compiler does not support '-march=armv8-a+crypto'
build/core/binary.mk:886: recipe for target '/home/samadhi/cm13/out/target/product/oneplus3/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/linux-arm/crypto/aes/aesv8-armx.o' failed
make: *** [/home/samadhi/cm13/out/target/product/oneplus3/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/linux-arm/crypto/aes/aesv8-armx.o] Error 1
make: *** wait: No child processes. Stop.
#### make failed to build some targets (18:04 (mm:ss)) ####
Did you read the Android.mk file in external/openssl or external/boringssl? I haven't made the switch to clang yet but just from reading the Android.mk in the crypto dirs and from reading the build/core/combo Android.mk file for clang and what flags need to be set etc I'm going to guess it's only one a few things compiler flags withstandinghey guys, running into the following error compiling CM-13.0 for OP3 on LinuxMint-18-sarah kde...
using Clang ver. 3.7....
any help would be greatly appreciated!!!
Code:target arm C++: libGLESv2_32 <= frameworks/native/opengl/libs/GLES2/gl2.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/Input.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/InputDevice.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/Keyboard.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/KeyCharacterMap.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/KeyLayoutMap.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/VirtualKeyMap.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/IInputFlinger.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/InputTransport.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/VelocityControl.cpp target thumb C++: libinput_32 <= frameworks/native/libs/input/VelocityTracker.cpp target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/EventHub.cpp target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputApplication.cpp target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputDispatcher.cpp target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputListener.cpp target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputManager.cpp target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputReader.cpp target thumb C++: libinputflinger_32 <= frameworks/native/services/inputflinger/InputWindow.cpp target asm: libcrypto_32 <= external/boringssl/linux-arm/crypto/aes/aes-armv4.S target asm: libcrypto_32 <= external/boringssl/linux-arm/crypto/aes/aesv8-armx.S clang: error: the clang compiler does not support '-march=armv8-a+crypto' build/core/binary.mk:886: recipe for target '/home/samadhi/cm13/out/target/product/oneplus3/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/linux-arm/crypto/aes/aes-armv4.o' failed make: *** [/home/samadhi/cm13/out/target/product/oneplus3/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/linux-arm/crypto/aes/aes-armv4.o] Error 1 make: *** Waiting for unfinished jobs.... clang: error: the clang compiler does not support '-march=armv8-a+crypto' build/core/binary.mk:886: recipe for target '/home/samadhi/cm13/out/target/product/oneplus3/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/linux-arm/crypto/aes/aesv8-armx.o' failed make: *** [/home/samadhi/cm13/out/target/product/oneplus3/obj_arm/SHARED_LIBRARIES/libcrypto_intermediates/linux-arm/crypto/aes/aesv8-armx.o] Error 1 make: *** wait: No child processes. Stop. #### make failed to build some targets (18:04 (mm:ss)) ####
Did you read the Android.mk file in external/openssl or external/boringssl? I haven't made the switch to clang yet but just from reading the Android.mk in the crypto dirs and from reading the build/core/combo Android.mk file for clang and what flags need to be set etc I'm going to guess it's only one a few things compiler flags withstanding
Might be able to help, but first, What have you tried so far?
Sent from my Nexus 6P using XDA-Developers mobile app
Prebuilts are arch independent. Clang uses one prebuilt for all architectures
That sounds reasonable but the aosp build keeps looking for a lib64 folder which is missing in the prebuilts but is there in the stock clangPrebuilts are arch independent. Clang uses one prebuilt for all architectures
Plus there's also the matter of a different sanitizerPrebuilts are arch independent. Clang uses one prebuilt for all architectures
$ mkdir dtc
$ cd dtc
$ repo init -u https://github.com/dragon-tc/DragonTC -b master
$ repo sync -j(# of cores) -c -f
sudo aptitude install build-essential git git-svn bc binfmt-support libllvm-3.6-ocaml-dev llvm-3.6 llvm-3.6-dev llvm-3.6-runtime cmake automake autogen autoconf autotools-dev libtool shtool python m4 gcc libtool zlib1g-dev
$ cd build
$ ./version
$ ./3.7 opt
This sounds interesting. Thanks for sharing your work. I might try it, but as a bloody beginner, can you maybe give a bit more detail on how it affects building / the result?