yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Startrek852:
OK, I've still got this error, but there's more this time:

collect2: error: ld returned 1 exit status
INFO: Compaction : 0 bytes
INFO: Too few relocations to pack after alignment
build/core/executable_internal.mk:79: recipe for target '/home/andrew/android/system/out/target/product/NXA8QC116/obj/EXECUTABLES/toolbox_recovery_intermediates/LINKED/toolbox' failed
make: *** [/home/andrew/android/system/out/target/product/NXA8QC116/obj/EXECUTABLES/toolbox_recovery_intermediates/LINKED/toolbox] Error 1
make: *** Waiting for unfinished jobs....
Install: /home/andrew/android/system/out/target/product/NXA8QC116/recovery/root/sbin/mkexfatfs
target SharedLib: libext4_utils (/home/andrew/android/system/out/target/product/NXA8QC116/obj/SHARED_LIBRARIES/libext4_utils_intermediates/LINKED/libext4_utils.so)

#### make failed to build some targets (11:03 (mm:ss)) ####

Please help.
[Android Software Development] pug1:
Hi all I'm having trouble applying the pixelflinger patch. I have followed the build android from source guide and it says to go to /system/core, open terminal, I copied the git fetch from gerrit and paste it in, it looks like it applies/downloads the patch, but when I build again its still laggy.

I have though managed to mount all my partitions. Sweet.

One other question, when I go to backup it is giving me /system/twrp as default backup point. How do I change this please so its default is /sdcard/twrp. Thanks again
[Android Software Development] Startrek852:
Anyone?? I'm using the CM13 tree.
[Android Software Development] pug1:
I just done a google search on this line from your terminal error:-

INFO: Too few relocations to pack after alignment

A user on XDA said that they needed to update there tools. My try repo syn to see if it fixes them.

Or delete the tools folder in .repo/projects (i think it is that)

I did had to do this with one of the folders in my cm12.1 folder and it did fix my build error
[Android Software Development] kodein:
Cz language

Here is cz language
[Android Software Development] spkprs:
Greek Lang

Here is Gr-EL language (UPDATED)
[Android Software Development] Startrek852:
OK, I'll try that. Any idea about the rest of the error?

EDIT: OK, I deleted the build tools and repo synced, and that fixed the relocation part, but the rest is still happening. Please help.
[Android Software Development] pug1:
Can you post the new error. May have more info. You have posted in that many forums that when I google search all that comes up are your errors lol
[Android Software Development] Startrek852:
Here's the new error, It's almost exactly the same:

build/core/executable_internal.mk:79: recipe for target '/home/andrew/android/system/out/target/product/NXA8QC116/obj/EXECUTABLES/toolbox_recovery_intermediates/LINKED/toolbox' failed
make: *** [/home/andrew/android/system/out/target/product/NXA8QC116/obj/EXECUTABLES/toolbox_recovery_intermediates/LINKED/toolbox] Error 1
make: *** Waiting for unfinished jobs....
INFO: Compaction : 0 bytes
INFO: Too few relocations to pack after alignment
Install: /home/andrew/android/system/out/target/product/NXA8QC116/recovery/root/sbin/mkexfatfs
target SharedLib: libext4_utils (/home/andrew/android/system/out/target/product/NXA8QC116/obj/SHARED_LIBRARIES/libext4_utils_intermediates/LINKED/libext4_utils.so)

#### make failed to build some targets (15:12 (mm:ss)) ####
[Android Software Development] pug1:
Try and delete the /build folder in source root and delete /.repo/pfojects/build.git and repo sync, see if that helps. i looked at my build/core/executable_internal.mk file and mine doesn't have a line 79 (i think thats what it is referring to)
[Android Software Development] Startrek852:
OK, I did that, now what?
[Android Software Development] pug1:
Now what??

If you have deleted the said folder and repo synced... try and compile??
[Android Software Development] Startrek852:
OK, I will. Sorry for being a noob.
[Android Software Development] bigsupersquid:
one of the odder tricks building android from source is to remove the whole repo except for the .repo directory itself and sync again.

that can fix multiple odd issues.

it's a dangerous nasty command to remove it all, and if it's mistyped it can potentially frag your user settings and data, or possibly even your whole Linux installation.

so before I say more, I want to emphasize to be very careful with rm -rf

cd to your source folder (where you'd lunch and make)

and then

rm -rf ./*

that'll remove everything but hidden files and hidden directories from the directory you're currently in.

which is why it's really dangerous.

repo stores all those ridiculous Gb of data it downloads in .repo so when you resync after deleting everything but .repo, it only takes a few minutes after downloading deltas to finish 'syncing work tree' from the hidden folder.

and it's all clean and tidy again to cover any odd little changes that might otherwise contaminate your build.

for your error you could maybe just remove external/toybox before syncing,

but it's your call.

after you sync, make clean and (if you use it) ccache -C

then brunch or whatever again to see if the error went away.

another possibility is

sometimes I accidentally sync during big upstream pushes, and it can take a while for them to finish so a sync will yield a clean build without errors again.
[Android Software Development] Startrek852:
OK, if pug's method doesn't work, I'll try yours.
[Android Software Development] cognitive:
I've built twrp 3.0.0 and it worked. But it do not have flash system.img. Any help?
[Android Software Development] Startrek852:
[MENTION=4692493]pug1[/MENTION] When I repo sync i get this error at the beginning:

fatal: Couldn't find remote ref refs/heads/cm-13.0

The rest of the sync goes fine, but I don't know what this error are or how bad it is.
[Android Software Development] pug1:
Think you need to look at your fstab file and check the system line. Its not correct as it isn't mounting system. This happened to me. After I corrected the errors in fstab it mounted all partitions, system, data, misc etc

---------- Post added at 08:59 AM ---------- Previous post was at 08:22 AM ----------

Have you added/edited anything in you local_manifests. Googled the error and its referring to that file a lot.
[Android Software Development] coolmasoom007@gmail.com:
How to solve while partition sd card via twrp it show "unable to locate partation"
[Android Software Development] cognitive:
It still mount system no error, and I replaced an another fstab but it not change
[Android Software Development] tonicairoli:
hi guys

Could someone of you help me with twrp compile of my device?

You would make me very happy, i'm unable to compile and i can't anyway root my cube t6.

I work on him since 6 mounth with no result.

Ty
[Android Software Development] pug1:
Mine looks the same after checking... Think we need to add a line to the boardconfig.mk file for that. Mine has lines for recovery I think. I'll check when hone from work later tonight
[Android Software Development] Startrek852:
I added a line then removed it.

---------- Post added at 10:11 AM ---------- Previous post was at 10:07 AM ----------

YES!!! IT COMPILED SUCCESSFULLY!!! I followed [MENTION=2980661]bigsupersquid[/MENTION] advice and the instructions from this post: http://xdaforums.com/showthread.php?p=59158821 (except I replaced git clone with downloading a zip because using git clone gives you the 5.1 branch and I wanted the 6.0 branch and i replaced -j3 with -j5 ) and it worked!!!!! Now to test it.
[Android Software Development] pug1:
My mistake. I am no dev and I'm still learning a lot. I have just flashed a twrp.img built by another user and that also doesn't show 'system' to flash an image to. There must be a line missing to add that to the recovery. Flashing the recovery.img worked fine for me in my build. I'm just trying to apply pixelflinger patch with no success I might add :confused:
[Android Software Development] muhash:
Hi a noob here, i have completed all the files :init.rc ,recovery.fstab and the boardconfig.mk. i have also installed the required files like python, jdk 7, adb etc

But i dont know how to compile, this is my first time some help would highly appriceated

does my boardconfig look good?:http://tinyurl.com/jh5t9sa
[Android Software Development] MSF Jarvis:
For a ROM, perfect. But there are no TWRP flags, read the OP post on what all you need to add.
[Android Software Development] muhash:
Yeah I removed the twrp flags because I'm going to use that for an aosp rom

Here is the new one: http://tinyurl.com/zzwyryk

Thanks for checking it ;)
[Android Software Development] MSF Jarvis:
Looks okay to me. Have a go!
[Android Software Development] muhash:
Thanks, but how do I compile it?
[Android Software Development] MSF Jarvis:
Dude the WHOLE thread is on that topic. Have a read of the first and second posts.
[Android Software Development] T-Macgnolia:
Use this command to just make recovery. Replace "devicename" with your device name.

. build/envsetup.sh && lunch cm_devicename-userdebug && make recoveryimage if your are building with cm.

. build/envsetup.sh && lunch omni_devicename-userdebug && make recoveryimage if you are building with omni.
[Android Software Development] MSF Jarvis:
Wrong. This a standard TouchWiz device, make bootimage is the right command as mentioned in the OP.
[Android Software Development] T-Macgnolia:
How so I know developers that have samsung devices and the make recoveryimage command works fine for them.
[Android Software Development] MSF Jarvis:
Samsung also makes Qualcomm powered devices along side Exynos ones. The first one works with make recoveryimage and second with make bootimage as far as I have gathered reading this Tutorial.
[Android Software Development] pug1:
YES.... i love XDA. [MENTION=6507159]overlordofdoom1[/MENTION] i compiled your twrp source on github no probs with the above commands

propper buzzin lol :good: :D :laugh:
[Android Software Development] muhash:
Hahaha nice :laugh:, can you send me the file? i want to debug it, thanks

---------- Post added at 12:02 PM ---------- Previous post was at 11:58 AM ----------

apparently i need to download the android source image, I only want to make this a flashable zip so do i need the source image?
[Android Software Development] MSF Jarvis:
You want to make a flashable recovery zip?? One that installs the recovery itself??
[Android Software Development] muhash:
yeah, all i need is an image then i need to create a meta-inf folder
[Android Software Development] pug1:
Got a link to 3.0.0?
[Android Software Development] pug1:
I followed the guide and init the repo and had to --force-sync

i assume that it is relpacing all the cm12.1 stuff right?
[Android Software Development] MSF Jarvis:
Yes, many of it will get replaced
[Android Software Development] TheMeddlingMonk:
Hi all,

So I'm trying to build TWRP based on the OmniROM 4.4.4 branch for my device (a Toshiba AT100 Thrive, which uses a non-neon Tegra 2 processor). I am able to get the build to complete successfully, but it doesn't actually work on the tablet.

I have tried two different ways to build it - one with a prebuilt kernel (from a known working ICS-based recovery) and one using the kernel source provided by Toshiba (with the CONFIG_EXT4_FS_SECURITY=y config option set).

When I use the known working kernel and try to boot to TWRP from the boot options, I get the normal loading recovery message for my tablet (prior to TWRP actually appearing on the screen), then the tablet reboots after approximately 5-10 seconds. If I have it plugged into the PC, it detects the device (but ADB apparently doesn't come up) during those few seconds.

When I use the kernel that is built along with TWRP, the system just freezes after I select the recovery option from the boot menu and the PC never detects it.

Can anyone suggest what I might be missing or recommend a way to debug this? The first post in this thread seemed to suggest I should be able to get TWRP to work using an ICS kernel (it just wouldn't be able to flash KitKat or later due to the lack of SELinux support). Alternatively, if I'm posting in the wrong place, please let me know.

Thanks.
[Android Software Development] pug1:
edited
[Android Software Development] pug1:
Here is 3.0.0-0 recovery.img. Unzip before flash. Flashed it with twrp, install image no probs
[Android Software Development] dohasaizo:
if u add system image it the same like boot and recovery...

use mount point "emmc" in recovery.fstab;)
[Android Software Development] muhash:
how did you compile it with that manifest? and also thanks, you work is appriciated
[Android Software Development] pug1:
I have emmc on one line but the other is ext4?

Pic attached.
[Android Software Development] pug1:
I couldnt. I synced the repo and tried but kept coming up with the same errors. Probs me not knowing what to do :confused:

Repo synced cm12.1 again and built straight away. Mind you it took 7 mins longer to build than 2.8.7.0. Looks good though :D

Trying to build rom now, but getting errors like:

Notice file: packages/providers/UserDictionaryProvider/NOTICE -- /home/rob/cm/cm12.1/out/target/product/kccat6/obj/NOTICE_FILES/src//system/app/UserDictionaryProvider/UserDictionaryProvider.apk.txt

make: *** No rule to make target 'vendor/samsung/kccat6/proprietary/app/com.qualcomm.location.apk', needed by '/home/rob/cm/cm12.1/out/target/product/kccat6/obj/APPS/com.qualcomm.location_intermediates/package.apk'. Stop.

make: *** Waiting for unfinished jobs....

Notice file: frameworks/base/packages/WAPPushManager/NOTICE -- /home/rob/cm/cm12.1/out/target/product/kccat6/obj/NOTICE_FILES/src//system/app/WAPPushManager/WAPPushManager.apk.txt

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

make: Leaving directory '/home/rob/cm/cm12.1'

#### make failed to build some targets (02:38 (mm:ss)) ####

Done the extract-files.sh and there were quite a few missing!!

So am in middle of a google mashing section :silly::eek::silly:
[Android Software Development] muhash:
did you use omni to build the twrp, if so can i have the link please i cant seem to find it
[Android Software Development] pug1:
No, synced cm12.1 source, git cloned my fork of your twrp, git cloned linked twrp3.0.0 and built it. That's it
[Android Software Development] muhash:
ah, i see thanks ill try that
[Android Software Development] dohasaizo:
same , but if you want to be able to flash .img file you must use "emmc" as moun points.

if the size of your system partition ex : 1gb result of the backup is 1gb , not the size of the contents of the system but the size of the partitions your system.

sorry i am use google translate..;)
[Android Software Development] MSF Jarvis:
That does not matter much. eMMC is the hardware and ext4 is the file system.
[Android Software Development] pug1:
That explains why the backed was 4gig then lol. Can we do anything to make it smaller?
[Android Software Development] MSF Jarvis:
Enable compression during backup
[Android Software Development] TheMeddlingMonk:
Anyone?
[Android Software Development] Blackball:
Hello,

i tried to build TWRP for my Huawei p8 and its building fine.

But i got only a black screen after flashing. Adb is not working: device unauthorized

ro.debuggable is 1 in my default.prop in the device folder.

anyone can help me ?
[Android Software Development] bigsupersquid:
if you lunch/brunch device-eng instead of user or userdebug it'll set all the props correctly for adb on boot.
[Android Software Development] Blackball:
I will try. Thank you

Gesendet von meinem HUAWEI GRA-L09 mit Tapatalk
[Android Software Development] tonicairoli:
need twrp

Noone could help me? :(
[Android Software Development] pug1:
in your post you quoted its says 'you cant root'

What is the point of a custom recovery then?

And why cant you compile?
[Android Software Development] vampirefo:
From reading his other posts, he never even tried, he is looking for someone to root and build a recovery for him.
[Android Software Development] Hacker432:
guys i haven't understand how to use the new TW_THEME flag

I have to delete the DEVICE_RESOLUTION flag?

I have to replace numbers to "portrait_hdpi"?

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] dohasaizo:
no button fix context

i am building twrp 3.0.0 to my device acer v370(mt6589),

twrp 3.0.0 replace fix permission to fix context, but in my device fix context button not show/miss.

[IMG="button fix context no show"]http://s18.postimg.org/obqzeibgp/Screenshot_2016_02_26_16_33_40.png[/IMG]

how to fix?

any clue?
[Android Software Development] TheMeddlingMonk:
My understanding, from what Dees Troy has posted, is that TW_THEME replaces DEVICE_RESOLUTION in newer versions of TWRP. I don't think there is a problem if you have both DEVICE_RESOLUTION and TW_THEME specified in your BoardConfig.mk.

You'll need to specify one of the possible strings for TW_THEME. If you have a relatively new device, then "portrait_hdpi" is probably appropriate. Otherwise, perhaps try "portrait_mdpi"?

Hope that helps.
[Android Software Development] MSF Jarvis:
Who told you there's a restore context button?? I am maintainer and my OFFICIAL builds never had one
[Android Software Development] Hacker432:
Thanks

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] Hacker432:
I have a problem compiling twrp

Here is my error

pastebin.com/rp3qbG3b

Help please

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] magdeoz:
Device tree??
[Android Software Development] Hacker432:
Sorry i had to upload it because it was a local device tree

Here is my github

https://github.com/Hacker432-Y550

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] rINanDO:
I had this error recently. It is missing the miniui-library which exists in recovery-twrp. I made a typo in the foldername bootable/recovery-twrp which caused in my case the missing library. -twrp must match the variable RECOVERY_VARIANT := twrp in your boardconfig.mk
[Android Software Development] Hacker432:
RECOVERY_VARIANT is present in my boardconfig

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] tonicairoli:
cube t6

like vampire said... thanks for your answers first of all. i can't root my device and i know that if could compile a recovery then i can root the t6. Is true? But i can't compile, i'm very newbie and i don't know where to start not even.

Thank you so much if you decide to help me and sorry for my english..
[Android Software Development] shoey63:
Edit: Your device doesn't even have a forum on xda, let alone a device tree on github. You need to find another solution.
[Android Software Development] Buglol:
cat: external/busybox/busybox-full.links: No such file or directory

build/core/binary.mk:826: target '/home/mbk/cm13/out/target/product/xt881/obj/EXECUTABLES/toolbox_recovery_intermediates/ls.o' given more than once in the same rule

make: *** No rule to make target '/home/mbk/cm13/out/target/product/xt881/system/xbin/busybox', needed by '/home/mbk/cm13/out/target/product/xt881/obj/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin'. Stop.

make: *** Waiting for unfinished jobs....

Export includes file: external/pigz/Android.mk -- /home/mbk/cm13/out/target/product/xt881/obj/EXECUTABLES/pigz_intermediates/export_includes

#### make failed to build some targets (01:55 (mm:ss)) ####

Please help, I am getting this error
[Android Software Development] Startrek852:
Extract the contents of this zip file into the external folder in your build directory then make clean and compile again.
[Android Software Development] tonicairoli:
ok thanks. If you were in my side how would you do? Can you give me an advice?
[Android Software Development] MSF Jarvis:
Sell the device and buy another one
[Android Software Development] vampirefo:
I agree if you aren't willing to put in a day or so learning, researching don't bother, it will just be wasted time.

Ah well enjoy your beach.
[Android Software Development] MSF Jarvis:
Gradle will NEVER be able to compile TWRP in its present form. Gradle can only assemble Java, and TWRP contains plenty of native C++ as well.

Edit: And, oh no one who's a pro has ever been puzzled by those super easy build instructions. Hell, [MENTION=3418703]Tasssadar[/MENTION] even went ahead and made a separate TWRP fork for himself!

True enough.

Honestly speaking, it takes only 30 minutes for someone to get his device officially supported by TeamWin. But that's probably because I had a OmniROM tree for my device already. But still, that took some effort. You can check my gerrit log through my sig. That's all I have done after getting it supported.
[Android Software Development] Hacker432:
make: *** No rule to make target `/home/thunderblockit/cm12.1/out/target/product/y550/obj/STATIC_LIBRARIES/libminui_intermediates/export_includes', needed by `/home/thunderblockit/cm12.1/out/target/product/y550/obj/EXECUTABLES/healthd_intermediates/import_includes'. Stop.

#### make failed to build some targets (07:33 (mm:ss)) ####

Same error everytime

someone can help me please?
[Android Software Development] DigiAngel69:
Hey all,

I've NEVER compiled anything for android, but I'm well versed with compiling for linux. I'm really wanting encryption for my VS985 so I wanted to try this out. I have the command line tools android-sdk-linux, and I've git cloned the TeamWin repo. Is there a spot where I can get more information on how to compile this? Thanks.
[Android Software Development] vampirefo:
What does that mean? Are you wanting to encrypt your phone's data? Encryption is done on the phone, has nothing to due with twrp.
[Android Software Development] DigiAngel69:
Ah..yes very true. It's not the phone encryption that's at issue, it's TWRP's ability to read the encrypted /data partition after encrypting the phone per:

https://github.com/TeamWin/Team-Win-Recovery-Project/issues/358

Decrypting does work on my Samsung Galaxy Tab 2, but not on my LG G3, which is what I'd like to encrypted. The core issue is it looks like crypto isn't compiled into TWRP for my LG G3, so I was thinking I'd recompile it. Thank you.
[Android Software Development] vampirefo:
You need to set your Linux up to compile Android then download source used to compile twrp, I use cm11, cm12.1 and working on cm13.

You don't have to use cm source you can use omni source if you want.

Then you replace the stock recovery folder with twrp, add your device tree make changes that want in twrp then build.

I have a mini guide to build for mtk devices, don't know anything about LG devices though.
[Android Software Development] DigiAngel69:
Thanks....been following https://wiki.cyanogenmod.org/w/Build_for_vs985...fingers crossed it will work.
[Android Software Development] vampirefo:
Yes that will work, takes several hours to download cm12, once everything is setup takes about 10 minutes or less to build TWRP.
[Android Software Development] DigiAngel69:
Thanks...my last snag is finding the kernel config for CONFIG_HW_DISK_ENCRYPTION, and that's where I'm at right now...going to just see how a build goes without it.
[Android Software Development] Android-Andi:
Thanks for your contribution. I uploaded it on gerrit for you https://gerrit.omnirom.org/#/c/17267/

(seems like [MENTION=912474]Dees_Troy[/MENTION] didn't noticed it here)
[Android Software Development] DeeXii:
[MENTION=912474]Dees_Troy[/MENTION] I notice that the TWRP site has several supported devices so to speak..

How can we request one? I do not have the experience to compile and the development for the device in question is very limited.

Now with that said the device isnt some no name device. Its the Galaxy Tab S2 8.0 (T710)

I notice that you have the Galaxy Tab S 8.4 (T700) listed on the TWRP site so I was hoping that we could get some T710 love.

Or if anyone here could properly port this that would be great too. :)
[Android Software Development] Startrek852:
You do know that there's already a TWRP 2.8.7.1 for this device, right?