-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[twrp-9.0] Error compiling with symlinks libservices.so #30
Comments
Will remove the downloaded source code and redownload it again (this time as shallow clone) and use your OnePlus 6T fajita device tree. |
Ok, i will wait for your news |
Which build environment do you use, @mauronofrio ? |
I'm using linux mint 19, but i have not this problem with full source, so i don't think is a build environment problem |
I am using Linux Mint 19, too without having this problem with the full omni 9.0 sources. Right after finished downloading the source code, I will
|
mmm, i'm building also adbd, so you need of |
This is what i have on the readme |
Thank you, will try it this way. I never used adbd. And yes |
Jackpot! [ 99% 567/568] glob vendor/omni/overlay/common/**/*
ninja: error: '/home/developer/android/platform_manifest_twrp_omni_android_9.0/out/target/product/fajita/system/lib64/libservices.so', needed by '/home/developer/android/platform_manifest_twrp_omni_android_9.0/out/target/product/fajita/obj_arm/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin', missing and no known rule to make it
14:56:23 ninja failed with: exit status 1 with Now I can work on this bug. |
OK, actually i'm working on the fajita twrp to fix some little issue, so i can't help you, maybe tomorrow i will check better it. |
@MartinX3 You didn't have the error using the device trees I linked for you yesterday? I don't do anything more than mka recoveryimage, so it should have nothing to do with adbd, as you can see by the error that it's related to TWRP. I just tested on my build box (which runs Debian Jessie) and on my Ubuntu 18.04 LTS laptop, and they both fail at the same libservices error. I look forward to seeing a fix for this issue. |
Yes it helps |
I can confirm, what @codeworkx said. So I assume there is a problem following this symlink. Maybe someone saw a similar but in the past? |
I can confirm. I first tried an absolute symlink versus a relative symlink, but the file/folder still wasn't found. Only when copying the folder to the expected location did compilation continue (and then subsequently fail due to an issue in partition.cpp). Can the manifest xml be updated to copy the folder rather than link it? |
i can confirm it too. In this case just restore the framework/base, it in all cases will be downloaded so you can also include it |
@CaptainThrowback And I will look how to copy the stuff instead of symlink it. @mauronofrio Edit: |
Got another error building: [ 17% 2344/13454] //system/security/keystore:keystore link keystore |
@mauronofrio there are three
|
yes, should be them, restarting the build |
Using "copyfile" instead of "linkfile" results in Interesting... I assume it wants to copy a file and not a directory. using "cp" in linux results into "cp: -r not specified; omitting directory" |
Argh https://gerrit.googlesource.com/git-repo/+/master/project.py#260 Accepts only a file, not a directory. |
I'm seeing, bad news |
@CaptainThrowback |
I want to say that in all cases it is downloaded to relink that folders, so it's just a path relink |
You mean the 1GB big "TeamWin" folder which get's downloaded anyway? |
Yes, it is already there, so it is already downloaded |
Using the entire base folder sadly results in build errors.
|
Does this bug still happen with the switch to 9.0_r30? (Sadly no time at the moment to test it myself, due to exams. |
Yes, this bug is still present. |
I can confirm it too, seems it's not a symlink problem, the symlinks are working, maybe the folder symlink are not accepted from the compilation process |
@CaptainThrowback @mauronofrio Readding In the complete omni tree this git exists without symlinks.
Which introduces symlinks. I can only assume if this is the cause. PS: Counting the size of the "project-objects" folder in the ".repo" folder I measure after my fix Full Omni 9.0 Minimal Omni PS0: PS1: |
Yes, that was a workaround so that we wouldn't have to download the whole frameworks base folder. The fact that it works fine in the 8.1 tree means that there's a change somewhere that broke it. Until we figure out what that change is, this will remain broken. I've started just doing a repo sync, removing the symlinks, and then copying those 3 folders from the TeamWin/.repo folder to the locations where the symlinks were. That gets everything working fine, but it has to be undone and re-done every time the Android tag is updated or frameworks/base is otherwise changed. I thought it might be possible to include some code in vendorsetup.sh to do it automatically, something like this:
But I must have done that wrong too as it did absolutely nothing. If we can get a script like that to run automatically, we can get rid of the symlinks, and just copy the data that way, without needing to sync the whole folder. |
@CaptainThrowback Do you mean this? But sadly there is only a "pre-upload" hook which doesn't work in our case. |
I was trying to use vendorsetup.sh to handle this automatically when lunching for a device. But it didn't work. I have no idea if there's a way to do this via repo. |
@CaptainThrowback But in the end, even if we use the entire |
How much is it without the full frameworks base (i.e. now)? |
@CaptainThrowback |
You can do whatever you want. |
Thank you very much! |
@CaptainThrowback @mauronofrio @ShevT |
I will check it tomorrow |
Seems it is working, but i need to make some more tests |
@mauronofrio the testing was successful? |
After 9.0.0_r34, we got now 9.0.0_r35 |
Is this working now? Can it be closed? |
@mauronofrio |
I still get this error when building for hlte (samsung galaxy note 3 - havent tested anything else) and this is my first try to build anything with
I have also tried adding That's also the same error that one would get with busybox fetched correctly, e.g., via this additional manifest:
So maybe the |
Dear @stefanct My error is
(Did a normal The error isn't about libservices.so, too. |
[ 99% 567/568] glob vendor/omni/overlay/common/**/*
ninja: error: '/home/mauronofrio/minimal-omni-9.0/out/target/product/fajita/system/lib64/libservices.so', needed by '/home/mauronofrio/minimal-omni-9.0/out/target/product/fajita/obj_arm/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin', missing and no known rule to make it
13:55:19 ninja failed with: exit status 1
Got this error at the beginning
The text was updated successfully, but these errors were encountered: