Michael R. Head ([info]suppressingfire) wrote,
@ 2008-03-09 05:20:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:linux, maemo, ubuntu

Trouble running maemo's scratchbox under Ubuntu Hardy?
I’ve been having trouble running scratchbox after upgrading to hardy. I’ve finally found some workarounds for the issues that creep up.

  • For the Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion ‘(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso’ failed! problem, it’s necessary to disable “vdso”:
    echo 0 | sudo tee /proc/sys/vm/vdso_enabled

  • For problems when building packages (mmap: permission denied when building), it’s necessary to reduce the mmap minimum address:
    echo 4096 | sudo tee /proc/sys/vm/mmap_min_addr



Update: (Thanks to [info]colinleroy):

...to make these changes permanent across reboots, one can add these settings to /etc/sysctl.conf:

vm.vdso_enabled = 0
vm.mmap_min_addr = 4096


Then run
sudo sysctl -p



(9 comments) - (Post a new comment)

Zenwalk 5.0
(Anonymous)
2008-03-19 05:41 am UTC (link)
I freaking love you. The first few links I got said recompile, and vdso's entry in proc wasnt in /proc/sys/kernel.

(Reply to this) (Thread)

Re: Zenwalk 5.0
[info]suppressingfire
2008-03-19 10:07 am UTC (link)
Thanks for your support ;-)

Glad to help!

(Reply to this) (Parent)

Re: Zenwalk 5.0
(Anonymous)
2008-04-18 06:12 am UTC (link)
Thank you very much! I really appreciate your help.
-Ravi

(Reply to this) (Parent)(Thread)


[info]zsuzannaguroh
2008-07-17 01:15 pm UTC (link)
Thank you very much again for your help. [Biochemistry] Thank you for the corrections. I think it is good work.

(Reply to this) (Parent)

Snx for you job!
(Anonymous)
2008-03-20 10:22 am UTC (link)
Snx for you job!
It has very much helped me!

(Reply to this)

Making these changes permanent
[info]colinleroy
2008-04-18 09:06 am UTC (link)
Hi,

Thanks for the pointer. It solves the issue. Also, to make these changes permanent across reboots, one can add these settings to /etc/sysctl.conf:

vm.vdso_enabled = 0
vm.mmap_min_addr = 4096

Then run
sudo sysctl -p

(Reply to this)

Thanks!
(Anonymous)
2008-05-18 06:25 pm UTC (link)
Many, many thanks for posting these instructions, you saved my life :) Have you considered contributing these to the maemo community documentation? I would do it myself, but I don't want to take credit :)

BAle

(Reply to this)

sorry, unimplemented: had to relocate PCH
(Anonymous)
2008-07-12 07:01 am UTC (link)
This solution solves the problem partially. I have sent the mmap_min_addr to 4096. Now when I compile my code, I get the following error:

-----
:1: sorry, unimplemented: had to relocate PCH
:1: confused by earlier errors, bailing out
-----
Surprisingly, when I do make clean and run make again, compilation goes fine. But this random in nature. I have done some googling and found the link http://gcc.gnu.org/ml/gcc-bugs/2004-05/msg00559.html which talks about the gcc's optimization for precompiled headers.

Any clues on how this problem can be overcome?
I am using gcc version: gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)

Thanks
Sateesh

(Reply to this) (Thread)

Re: sorry, unimplemented: had to relocate PCH
(Anonymous)
2008-11-07 12:37 pm UTC (link)

In Intrepid Ibex (8.10) you can fix this problem by adding following line to /etc/sysctl.conf:
abi.vsyscall32 = 0

(Reply to this) (Parent)


(9 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…