Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351821 - /lib/ld-linux.so.1 causes program to fail with "virtual memory exhausted" error
Summary: /lib/ld-linux.so.1 causes program to fail with "virtual memory exhausted" error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-16 05:59 UTC by Richard
Modified: 2011-01-17 06:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2011-01-16 05:59:46 UTC
The absence of /lib/ld-linux.so.1 causes bash to output "bash: ../../mips-x86.linux-xgcc/gcc: No such file or directory" when I try executing an old cross compiler binary. Doing a symbolic link to /lib/ld-linux.so.2 fixes it.

That is a very nasty error message that is hard to diagnose unless you know what you are doing. Would it be possible to have sys-libs/glibc install /lib/ld-linux.so.1 as a symbolic link to /lib/ld-linux.so.2 for compatibility purposes?
Comment 1 Richard 2011-01-16 06:21:24 UTC
I just discovered that lib-compat provides this file. Unfortunately, I get "gcc: virtual memory exhausted" when I try running "../../mips-x86.linux-xgcc/gcc -v".

Doing the following fixes it:

rm /lib/ld-linux.so.1
ln -s /lib/ld-linux.so.2 /lib/ld-linux.so.1

I will update the summary to reflect this. Is there any reason why /lib/ld-linux.so.1 should not be a symbolic link to /lib/ld-linux.so.2?
Comment 2 Rafał Mużyło 2011-01-16 13:22:57 UTC
Given there was an major version library bump, there probably was a good reason not to do it.

But you're free to break your system as much as you like.
Comment 3 Richard 2011-01-16 16:31:27 UTC
(In reply to comment #2)
> Given there was an major version library bump, there probably was a good reason
> not to do it.
> 
> But you're free to break your system as much as you like.
> 

I am still getting virtual memory exhausted errors with ld-linux.so.2, except they do not occur on small problem sizes.

My latest thinking on this is that something changed in a recent kernel version to break things. I am going to test that theory some time today by going back to an older kernel.
Comment 4 Richard 2011-01-17 06:49:53 UTC
The combination of Linux 2.6.35.8 and a few other things made things work again. I think that this program was compiled under CentOS, which is why it requires a very exotic configuration to run properly.

Another version of the binaries is available for FreeBSD, so I am in the process of setting up a FreeBSD virtual machine to avoid having to do weird things to my laptop to keep this software running. If it doesn't work, I will move to CentOS and hopefully be able to run them.