Skip to content
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

[Bug]: linker Warning spams console when programm is running inside proot #201

Closed
anamyk opened this issue Mar 3, 2022 · 2 comments
Closed

Comments

@anamyk
Copy link

anamyk commented Mar 3, 2022

Problem description

The issue of the following warning under Android 12 has been already acknowledged in proots README.
However, there it is talk about this warning only appearing during proot install.

WARNING: linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt"

I use git-annex, which runs inside proot.
When I execute a git-annex command in Termux, I get up to 80+ of these warnings, and it just spams my console. See Screenshot.
Screenshot_20220303-175553_Termux

I there any possibility of hiding this Warning or to resolute the bug/issue, that is causing it?

There is already a raised issue over on the git-annex forum.

What steps will reproduce the bug?

Install termux on Android 12.
Install git-annex.
Setup a repo with gitannex.
Run a git-annex command, e.g. git annex sync origin.

What is the expected behavior?

The Warning

WARNING: linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt"

is not shown or only shown once, not spamming the console.

Edit: edited to add screenshot

@ghost
Copy link

ghost commented Mar 4, 2022

You could try running proot-distro in isolated mode (--isolated). it may unmount the /linkerconfig volume

@anamyk
Copy link
Author

anamyk commented Mar 8, 2022

Thank you for the tip. I dont see how I could do that while using git annex, because I never actually use the command proot-distro while using the program.

There has also been some invesigation over on the git-annex forum.

In the meantime (and since termux-proot-distro-devs say the warning is harmless), I managed to filter out only the aforementioned "WARNING: linker:"... from the cli output:
$ git annex <command> 2> >(grep -v "WARNING: linker:" >&2)
or as an alias in shellrc
alias ga = 'git annex $1 2> >(grep -n "WARNING: linker:" >&2)'

@ghost ghost closed this as completed Apr 25, 2022
@ghost ghost closed this as completed Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant