maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   scratchbox on x64 (https://talk.maemo.org/showthread.php?t=22934)

Delphipgmr 2008-08-17 23:29

scratchbox on x64
 
I am using fedora x64.

has anyone been able to setup the development environment (scratchbox / SDK) on a 64 bit machine?

apparently scratchbox only supports 32bit?


you know, if i knew x64 was going to be such a problem, i wouldnt have installed 64 bit.

Jaffa 2008-08-18 21:30

Re: scratchbox on x64
 
If you run the standard installer, with the 32-bit libraries installed (not a full chroot), prefixed with setarch i386 it Just Works[TM].

Delphipgmr 2008-08-18 21:32

Re: scratchbox on x64
 
im not sure what you mean (i am new to this, i am a windows programmer!)

Jaffa 2008-08-18 21:38

Re: scratchbox on x64
 
Quote:

Originally Posted by Delphipgmr (Post 215052)
im not sure what you mean (i am new to this, i am a windows programmer!)

Assuming you're running Ubuntu, Debian or similar system:
  1. Open the installation instructions
  2. Download the installer script as described in section 1.1.
  3. Ensure ia32-libs is installed.
  4. Run the installation script, prefixing the installer execution with setarch (man page)
  5. Follow the rest of the instructions as written.

This may look something like:

Code:

$ wget http://repository.maemo.org/stable/diablo/maemo-scratchbox-install_4.1.sh
$ chmod a+x maemo-scratchbox-install_4.1.sh
$ sudo apt-get install ia32-libs util-linux
$ sudo setarch i386 ./maemo-scratchbox-install_4.1.sh
...

Hope that helps,

Andrew

Delphipgmr 2008-08-18 21:49

Re: scratchbox on x64
 
ok thanks
seems to be working!

(although i am on fedora9 and ia32 is different)

Delphipgmr 2008-08-18 22:25

Re: scratchbox on x64
 
ok another problem... not sure..

1st, i installed scratchbox.. appears to work, i created an ID and everything, but when i log into it i get:

Session setup problem, abort.

so i went on to the next step, installinbg the SDK, and i get this (running the script like you sugested, setarch i386 script_name, but i also tried it normally)

see below

Delphipgmr 2008-08-18 22:34

Re: scratchbox on x64
 
[karl@seadevil ~]$ ./maemo-sdk-install_4.1.sh -s /home/karl/scratchbox


This script will install maemo SDK 4.1 diablo release to your computer.

Install options
Do not download or install Nokia EUSA binaries (no)
Force remove of existing targets (no)
Alternative sources.list ('')

Target configuration for armel (DIABLO_ARMEL)
compiler=cs2005q3.2-glibc2.5-arm
devkits=perl:debian-etch:maemo3-tools:cputransp
cputransp=qemu-arm-0.8.2-sb2

Target configuration for i386 (DIABLO_X86)
compiler=cs2005q3.2-glibc2.5-i386
devkits=perl:debian-etch:maemo3-tools

Checking for prerequisites
--------------------------

wget tool in path... /usr/bin/wget
Checking for dpkg tool in path... which: no dpkg in (/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/home/karl/bin)
not found.
Running outside of scratchbox... yes
Script not run as user root... yes
Scratchbox installation found... yes
Scratchbox home directory... yes
Scratchbox sb-conf tool... yes
Scratchbox user's bind mount... yes
Scratchbox user's /dev set up... yes
Scratchbox home directory... yes
Scratchbox login... yes
Scratchbox login executable... yes
Scratchbox sb-conf tool works... yes
Scratchbox version requirement met... ./maemo-sdk-install_4.1.sh: line 221: --compare-versions: command not found
./maemo-sdk-install_4.1.sh: line 225: --compare-versions: command not found
./maemo-sdk-install_4.1.sh: line 229: --compare-versions: command not found
yes
Scratchbox CPU transparency method for ARMEL is present... yes
Scratchbox toolchains... yes
Scratchbox required devkits... yes
Host kernel VDSO support... yes
Check for scratchbox sessions running...
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
E: You must close your other scratchbox sessions first
E: Specify an alternative installation path using '-s PATH' option.

Bundyo 2008-08-19 05:47

Re: scratchbox on x64
 
Just for the heads up - I've got it running here on a 64bit openSUSE 11.0 before, so it is possible. Dunno about this particular error though.

Pretoriano 2008-08-19 08:51

Re: scratchbox on x64
 
I can't get it running on Debian x86_64:
http://scratchbox.org/debian/dists/m...64/Packages.gz 404 Not Found

I have all installed and run it with setarch. Bye!

Graham Cobb 2008-09-03 14:29

Re: scratchbox on x64
 
Quote:

Originally Posted by Delphipgmr (Post 215068)
nconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

This is the "well-known" scratchbox VDSO problem: VDSO must be disabled. See http://www.scratchbox.org/wiki/DisablingVdso

On Debian 64-bit kernels (I do not know whether it is the same on Fedora kernels), the only way to disable VDSO support for 32-bit applications (like scratchbox) is to specify the following option on the kernel boot command line:

vdso32=0

So, I recommend rebooting your 64-bit system with that option to see if it fixes the problem.

Graham

tz1 2008-09-30 15:15

Re: scratchbox on x64
 
Same problem as above - even with setarch i386, apt-get update insists on looking for arm64 binaries instead of i386 binaries.

allnameswereout 2008-10-04 20:27

Re: scratchbox on x64
 
Quote:

Originally Posted by tz1 (Post 228863)
Same problem as above - even with setarch i386, apt-get update insists on looking for arm64 binaries instead of i386 binaries.

It must be an APT related problem.

Type this: $ setarch i386 uname -m

It should return i686.

There are 2 solutions:

1) Download the packages manually instead of using APT, then use setarch.

2) Build a 32 bit chroot. Guide.

lma 2008-10-04 23:00

Re: scratchbox on x64
 
Or 3) Install from tarballs instead of debs (-s option to installer script)

BrentDC 2009-02-23 22:39

Re: scratchbox on x64
 
Reviving thread alert!!!

I'm trying to install scratchbox on 64-bit kubuntu and I've got stuck. This is what happens when I run the ./maemo-sdk-install_4.1.2.sh script:

Code:

brent@ubuntu:~/Desktop$ ./maemo-sdk-install_4.1.2.sh
This script will install maemo SDK 4.1.2 diablo release to your computer.

Install options
Do not download or install Nokia EUSA binaries (no)
Force remove of existing targets (no)             
Alternative sources.list ('')                     

Target configuration for armel (DIABLO_ARMEL)
compiler=cs2005q3.2-glibc2.5-arm           
devkits=perl:debian-etch:maemo3-tools:cputransp
cputransp=qemu-arm-0.8.2-sb2                 

Target configuration for i386 (DIABLO_X86)
compiler=cs2005q3.2-glibc2.5-i386       
devkits=perl:debian-etch:maemo3-tools   

Checking for prerequisites
--------------------------

wget tool in path... /usr/bin/wget
Checking for dpkg tool in path... /usr/bin/dpkg
Running outside of scratchbox... yes         
Script not run as user root... yes
Scratchbox installation found... yes
Scratchbox home directory... yes
Scratchbox sb-conf tool... yes
Scratchbox user's bind mount... yes
Scratchbox user's /dev set up... yes
Scratchbox home directory... yes
Scratchbox login... yes
Scratchbox login executable... yes
Scratchbox sb-conf tool works... yes
Scratchbox version requirement met... yes
Scratchbox CPU transparency method for ARMEL is present... yes
Scratchbox toolchains... yes
Scratchbox required devkits... yes
Host kernel VDSO support... yes
Check for scratchbox sessions running...
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
E: You must close your other scratchbox sessions first
E: Specify an alternative installation path using '-s PATH' option.

brent@ubuntu:~/Desktop$

This is after manually installing scratchbox with dpkg.

TIA.

allnameswereout 2009-02-24 11:03

Re: scratchbox on x64
 
use search to learn how to disable vdso32

BrentDC 2009-02-24 18:41

Re: scratchbox on x64
 
Quote:

Originally Posted by allnameswereout (Post 266753)
use search to learn how to disable vdso32

I searched and I learned, but nothing works.

If I add "vm.vdso_enabled = 0" to /etc/sysctl.conf, running sysctl -p gives this:

Code:

error: "vm.vdso_enabled" is an unknown key
If I try "echo 0 > /proc/sys/vm/vdso_enabled" I get:

Code:

bash: /proc/sys/vm/vdso_enabled: No such file or directory
And if I try the Python sb_fix program, I get:

Code:

Traceback (most recent call last):
  File "sb_fix.py", line 117, in <module>
    sb_fix('all')
  File "sb_fix.py", line 26, in sb_fix
    if chkcfg('sb_fix'):
NameError: global name 'chkcfg' is not defined

I'm out of ideas...

lma 2009-02-25 02:06

Re: scratchbox on x64
 
From http://repository.maemo.org/stable/4.1.2/INSTALL.txt:
Quote:

64 bit Linux kernels starting from version 2.6.25 enable VDSO by default and
do not offer a /proc filesystem option to turn it off. Notably Debian Lenny
and Fedora9 are using such kernels. However, a kernel boot parameter has been
verified to work on a 64 bit system. If you run into this problem, please
add 'vdso32=0' to your kernel boot parameters.

gopalakr 2010-03-26 02:46

Re: scratchbox on x64
 
Quote:

Originally Posted by BrentDC (Post 266838)
I searched and I learned, but nothing works.

If I add "vm.vdso_enabled = 0" to /etc/sysctl.conf, running sysctl -p gives this:

Code:

error: "vm.vdso_enabled" is an unknown key
If I try "echo 0 > /proc/sys/vm/vdso_enabled" I get:

Code:

bash: /proc/sys/vm/vdso_enabled: No such file or directory
And if I try the Python sb_fix program, I get:

Code:

Traceback (most recent call last):
  File "sb_fix.py", line 117, in <module>
    sb_fix('all')
  File "sb_fix.py", line 26, in sb_fix
    if chkcfg('sb_fix'):
NameError: global name 'chkcfg' is not defined

I'm out of ideas...

So what worked finally ?

slobodsky 2010-03-26 17:52

Re: scratchbox on x64
 
Hmm, I'm using scratchbox on Ubuntu 9.10 x64 for a long time without problems (my "timeshop" is just in 4 thumbs from extras). AFAIR all I've done is "vdso32=0" "kernel" line parameter in grub config.

sixwheeledbeast 2012-04-02 18:59

Re: scratchbox on x64
 
Could anybody be of assisstance with getting scratchbox to work on Ubuntu (Oneiric) 64 bit. Tried following instructions from the wiki's and here to no avail.
Any help would be great, thanks.

Code:

(lenny)paul@crash:/etc/apt$ sh maemo-sdk-install_5.0.sh
This script will install maemo SDK 5.0 fremantle release to your computer.

Install options
Force remove of existing targets (no)
Alternative sources.list ('')

Target configuration for armel (FREMANTLE_ARMEL)
compiler=cs2007q3-glibc2.5-arm7
devkits=perl:debian-etch:qemu:doctools:autotools-legacy:python-legacy:svn:git
cputransp=qemu-arm-sb

Target configuration for i386 (FREMANTLE_X86)
compiler=cs2007q3-glibc2.5-i486
devkits=perl:debian-etch:doctools:autotools-legacy:python-legacy:svn:git

Checking for prerequisites
--------------------------

wget tool in path... /usr/bin/wget
Checking for dpkg tool in path... /usr/bin/dpkg
Running outside of scratchbox... yes
Script not run as user root... yes
Scratchbox installation found... yes
Scratchbox home directory... yes
Scratchbox sb-conf tool... yes
Scratchbox user's bind mount... yes
Scratchbox user's /dev set up... no
E: Scratchbox user's /dev is not properly set up. Couldn't read /dev/null.
E: Start scratchbox service with 'sudo /scratchbox/sbin/sbox_ctl start'.
E: Specify an alternative installation path using '-s PATH' option.
(lenny)paul@crash:/etc/apt$


sixwheeledbeast 2012-04-02 22:00

Re: scratchbox on x64
 
Got it working, finally.
First Post here and this

Code:

setarch i386 ./maemo-sdk-install_5.0.sh -s /scratchbox


All times are GMT. The time now is 19:42.

vBulletin® Version 3.8.8