Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a piece of software that only runs on 32 bit linux (Xilinx webPack 10.1, apperently it 'has' to be the old version because that's the latest one compatible with their boards), anyway, this version is only compatible with 32 bit linux. So, I head off to this page to see what I can do: https://help.ubuntu.com/community/32bit_and_64bit

Of the 4 options (listed at the bottom):

  1. I already installed ia32-libs, and it's still not working

  2. I could do that one if needed (which I ended up doing).

  3. No, I don't want to be working from a vm all of next semester, that would be painful and I'd rather just reinstall my whole computer to a 32 bit os (which I don't want to do).

  4. It didn't sound like it was the best option based on what I've seen.

So I went off to do #2, and set up a chroot for 32 bit ubuntu. It linked to this tutorial: https://help.ubuntu.com/community/DebootstrapChroot

As I'm running ubuntu 10.10 I made the lucid and newer version changes. Which is to say I wrote:

[hardy-i386]
description=Ubuntu 8.04 Hardy for i386
directory=/srv/chroot/hardy-i386
personality=linux32
root-users=leif
type=directory
users=leif

to

/etc/schroot/chroot.d/hardy-i386

(Note though that I did save it once before I had the file properly formatted, I saved the correct version moments later though).

I then ran:

$ sudo mkdir -p /srv/chroot/hardy_i386
$ sudo debootstrap --variant=buildd --arch i386 hardy /srv/chroot/hardy_i386 http://archive.ubuntu.com/ubuntu/

Then I ran:

$ schroot -l

And it showed the proper chroot, but then when I ran:

$ schroot -c hardy-i386 -u root

I got the following error:

E: 10mount: error: Directory '/srv/chroot/hardy-i386' does not exist
E: 10mount: warning: Mount location /var/lib/schroot/mount/hardy-i386-80359697-2164-4b10-a05a-89b0f497c4f1 no longer exists; skipping unmount
E: hardy-i386-80359697-2164-4b10-a05a-89b0f497c4f1: Chroot setup failed: stage=setup-start

Can anyone help me figure out what the problem is? Oh, by the way:

/srv/chroot/hardy-i386

most certainly exists. I've also tried it replacing all references with hardy to lucid, to no avail. Oh, one more thing, I did set up the chrome os environment a month back or so: http://www.chromium.org/chromium-os/developer-guide and it had me use something with chmod.

So, can anyone figure out what the problem is?

Thank you.

share|improve this question
    
I'd back up a little. What error are you getting when you try to run the application? Most cross-arch software issues I've seen can be solved with getlibs –  Oli Jan 8 '11 at 2:12
    
Here is what I get:leif@leif-VPCEB11FM:~/Downloads/webpack$ ./setup Product is not supported on "Linux x86_64" platform. –  Leif Andersen Jan 8 '11 at 2:28
add comment

2 Answers 2

up vote 3 down vote accepted

you may try

linux32 ./setup

this helps for 32Bit teamspeak on 64bit servers.

from man: (linux32 is an setarch alias)

   setarch  -  change reported architecture in new program environment and
   set personality flags
share|improve this answer
    
This worked perfectly, thank you. –  Leif Andersen Jan 8 '11 at 22:49
add comment

There is a typo on your instructions, on /etc/schroot/chroot.d/hardy-i386 you are using /srv/chroot/hardy-i386 , while for the mkdir/debootstrap you are using hardy_i386 for the directory. That explains the error.

I have just fixed the path at /etc/schroot/chroot.d/hardy-i386, tested, it worked as expected.

share|improve this answer
    
Thank you for catching that. Fixing that, everything worked fine. I need to look into updating the documentation now. –  Leif Andersen Jan 8 '11 at 22:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.