Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2008-08-17, 23:29
Delphipgmr Delphipgmr is offline
 
Join Date: May 2007
Posts: 91
Thanks!: 2
Thanked 10 Times in 7 Posts
Default 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.
Reply With Quote
  #2  
Old 2008-08-18, 21:30
Jaffa's Avatar
Jaffa Jaffa is offline
 
Join Date: Mar 2008
Location: UK
Posts: 2,535
Thanks!: 3,635
Thanked 6,681 Times in 1,632 Posts
Send a message via MSN to Jaffa
Default 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].
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Reply With Quote
  #3  
Old 2008-08-18, 21:32
Delphipgmr Delphipgmr is offline
 
Join Date: May 2007
Posts: 91
Thanks!: 2
Thanked 10 Times in 7 Posts
Default Re: scratchbox on x64

im not sure what you mean (i am new to this, i am a windows programmer!)
Reply With Quote
  #4  
Old 2008-08-18, 21:38
Jaffa's Avatar
Jaffa Jaffa is offline
 
Join Date: Mar 2008
Location: UK
Posts: 2,535
Thanks!: 3,635
Thanked 6,681 Times in 1,632 Posts
Send a message via MSN to Jaffa
Default Re: scratchbox on x64

Quote:
Originally Posted by Delphipgmr View Post
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
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Reply With Quote
The Following 2 Users Say Thank You to Jaffa For This Useful Post:
  #5  
Old 2008-08-18, 21:49
Delphipgmr Delphipgmr is offline
 
Join Date: May 2007
Posts: 91
Thanks!: 2
Thanked 10 Times in 7 Posts
Default Re: scratchbox on x64

ok thanks
seems to be working!

(although i am on fedora9 and ia32 is different)
Reply With Quote
  #6  
Old 2008-08-18, 22:25
Delphipgmr Delphipgmr is offline
 
Join Date: May 2007
Posts: 91
Thanks!: 2
Thanked 10 Times in 7 Posts
Default 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

Last edited by Delphipgmr; 2008-08-18 at 22:45.
Reply With Quote
  #7  
Old 2008-08-18, 22:34
Delphipgmr Delphipgmr is offline
 
Join Date: May 2007
Posts: 91
Thanks!: 2
Thanked 10 Times in 7 Posts
Default 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.

Last edited by Delphipgmr; 2008-08-18 at 22:45.
Reply With Quote
  #8  
Old 2008-08-19, 05:47
Bundyo's Avatar
Bundyo Bundyo is offline
 
Join Date: Oct 2007
Location: Bulgaria
Posts: 4,708
Thanks!: 7,443
Thanked 4,649 Times in 1,717 Posts
Default 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.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
Reply With Quote
  #9  
Old 2008-08-19, 08:51
Pretoriano Pretoriano is offline
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 95
Thanks!: 51
Thanked 66 Times in 24 Posts
Default 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!
Reply With Quote
  #10  
Old 2008-09-03, 14:29
Graham Cobb Graham Cobb is offline
 
Join Date: Apr 2006
Location: Cotswolds, UK
Posts: 162
Thanks!: 67
Thanked 351 Times in 90 Posts
Default Re: scratchbox on x64

Quote:
Originally Posted by Delphipgmr View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:41.