Kodi Community Forum

Full Version: Trying to compile - /lib/ld-linux.so.2: could not read symbols: Memory exhausted
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,

I've got an apple tv running ubuntu 8.04, and I'm trying to compile xbmc svn on it. I've gotten through every step from the readme file, but when I run make, it does it's thing for quite some time until I get this error:

Code:
/lib/ld-linux.so.2: could not read symbols: Memory exhausted
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1

I've tried searching the forums, but I don't see this error.

Any ideas what I may be doing wrong?
sounds like you don't have a large swap file. for dev, 1GB or better.
davilla Wrote:sounds like you don't have a large swap file. for dev, 1GB or better.

Huh... I did make it a gig. When I partitioned the drive, I made the main and swap partitions a bit smaller and have about a gig at the end of the drive. If I expand the size of the swap partition, do you think that'll fix the problem?
jodeman Wrote:Huh... I did make it a gig. When I partitioned the drive, I made the main and swap partitions a bit smaller and have about a gig at the end of the drive. If I expand the size of the swap partition, do you think that'll fix the problem?

first thing is to check with "top" and see if you are actually running a swap file. My swap line from top;

Swap: 1145416k total, 219508k used, 925908k free, 32056k cached


you can also use a file based swap so if the swap partition is not large enough, you don't have to play partition games.
I thought linux killed whatever used the most memory when all is used.
bobo1on1 Wrote:I thought linux killed whatever used the most memory when all is used.

That might depends on kernel version too. This would be under Hardy Smile
davilla Wrote:first thing is to check with "top" and see if you are actually running a swap file. My swap line from top;

Swap: 1145416k total, 219508k used, 925908k free, 32056k cached


you can also use a file based swap so if the swap partition is not large enough, you don't have to play partition games.

Odd... if I run top, it says this:

Swap: 0k total, 0k used, 0k free, 54448k cached

But, if I look at parted, there's a 1gb partition for it:

Disk /dev/sda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 236MB 26.1MB hfs+ Recovery
3 236MB 38.0GB 37.8GB ext3 primary
4 38.0GB 39.0GB 1000MB linux-swap

Is there something I may have missed in order to make that swap partition 'active'?
jodeman Wrote:Odd... if I run top, it says this:

Swap: 0k total, 0k used, 0k free, 54448k cached

But, if I look at parted, there's a 1gb partition for it:

Disk /dev/sda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 236MB 26.1MB hfs+ Recovery
3 236MB 38.0GB 37.8GB ext3 primary
4 38.0GB 39.0GB 1000MB linux-swap

Is there something I may have missed in order to make that swap partition 'active'?

davilla@atv-doser:~$ swapon -s
Filename Type Size Used Priority
/dev/sdb5 partition 1145416 277392 -1

davilla@atv-doser:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb4
UUID=c2176453-1bcd-4de4-a563-e0a35cfd4e29 / ext3 relatime,errors=remount-ro 0 1
# /dev/sdb5
UUID=7a4412c3-40fe-43c4-ad8f-9a62d0f5b3ee none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0


your UUID will be of course different than mine and be sdb4 where mine is sbd5
davilla Wrote:davilla@atv-doser:~$ swapon -s
Filename Type Size Used Priority
/dev/sdb5 partition 1145416 277392 -1

davilla@atv-doser:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb4
UUID=c2176453-1bcd-4de4-a563-e0a35cfd4e29 / ext3 relatime,errors=remount-ro 0 1
# /dev/sdb5
UUID=7a4412c3-40fe-43c4-ad8f-9a62d0f5b3ee none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0


your UUID will be of course different than mine and be sdb4 where mine is sbd5

This is what I get:

swapon -s
Filename Type Size Used Priority

xbmc@AppleTV:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda3
UUID=c50fbc74-3297-456b-bbc4-68f2a85c3f43 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda4
UUID=3ecb3176-9deb-46a4-9565-0acc0c13fdd2 none swap sw 0 0

fstab looks similar to yours, but swapon not so much...
jodeman Wrote:This is what I get:

swapon -s
Filename Type Size Used Priority

xbmc@AppleTV:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda3
UUID=c50fbc74-3297-456b-bbc4-68f2a85c3f43 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda4
UUID=3ecb3176-9deb-46a4-9565-0acc0c13fdd2 none swap sw 0 0

fstab looks similar to yours, but swapon not so much...

Ok, I think I've got it now...

xbmc@AppleTV:~$ sudo mkswap /dev/sda4
[sudo] password for xbmc:
Setting up swapspace version 1, size = 999993 kB
no label, UUID=fe403b74-86b4-403e-a11d-04fc0c3304d7
xbmc@AppleTV:~$ sudo swapon /dev/sda4
xbmc@AppleTV:~$ swapon -s
Filename Type Size Used Priority
/dev/sda4 partition 976552 0 -1

Is there anything I need to do to make sure that 'sticks' with a reboot? Or, should that be good now?
jodeman Wrote:Ok, I think I've got it now...

xbmc@AppleTV:~$ sudo mkswap /dev/sda4
[sudo] password for xbmc:
Setting up swapspace version 1, size = 999993 kB
no label, UUID=fe403b74-86b4-403e-a11d-04fc0c3304d7
xbmc@AppleTV:~$ sudo swapon /dev/sda4
xbmc@AppleTV:~$ swapon -s
Filename Type Size Used Priority
/dev/sda4 partition 976552 0 -1

Is there anything I need to do to make sure that 'sticks' with a reboot? Or, should that be good now?

check /etc/fstab
With that error fixed, and the compiling of xbmc going ok, now that that's done... When I try to run xbmc I get this error:

xbmc@AppleTV:~/xbmc$ xbmc
Error: unable to open display
XBMC needs hardware accelerated OpenGL rendering.
Install an appropriate graphics driver.

When I did configure, I just ran ./configure

Were there some options I needed to put in there, or is there something else I missed?
jodeman Wrote:With that error fixed, and the compiling of xbmc going ok, now that that's done... When I try to run xbmc I get this error:

xbmc@AppleTV:~/xbmc$ xbmc
Error: unable to open display
XBMC needs hardware accelerated OpenGL rendering.
Install an appropriate graphics driver.

When I did configure, I just ran ./configure

Were there some options I needed to put in there, or is there something else I missed?

Is X11 running?
Is this from a ssh session? need to export DISPLAY.
davilla Wrote:Is X11 running?
Is this from a ssh session? need to export DISPLAY.

I thought it was, but I guess not:

xbmc@AppleTV:~/xbmc$ X11
The program 'X11' is currently not installed. To run 'X11' please ask your administrator to install the package 'x11-common'
-bash: X11: command not found
xbmc@AppleTV:~/xbmc$ sudo apt-get install x11-common
[sudo] password for xbmc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
x11-common is already the newest version.
x11-common set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.

Is there a different package that needs to be installed? I was doing this from ssh, but I also get the same error when trying to run xbmc with a keyboard attached to the appletv.

I don't know if this helps or not, but I was using pin's crystal xbmc image and restored it to the internal drive of the appletv. After that, I'm now trying to compile xbmc myself on it.
Several points of confusion here.

X11 is the x windowing system. It's not an app.

pin's crystal xbmc image launches xbmc into it's own x11 session when it boots. You are not running under a window manager.

if you do $xbmc from a ssh session, you see to set the DISPLAY variable.

export DISPLAY=:0.0

but you also need to make sure that xbmc is not already running as it autoruns at boot.


ps aux | grep xbmc.bin
Pages: 1 2