Reply
Thread Tools
Posts: 12 | Thanked: 1 time | Joined on Jan 2008
#1
Hi all,

I'm installing scratchbox2 for maemo following the guide at http://www.freedesktop.org/wiki/Software/sbox2/Maemo

Unfortunately I'm a beginner at both Fedora and scratchbox2, so I don't know how to install Debian/etch using debootstrap as they said:

Second important thing is to install a debian/etch system somewhere on your host using debootstrap. It will be used as the build tools. We'll assume you've put it into /etch_root. You need to install into it all those tools that you need for building your software...
One more thing is that I'm using Fedora 8 x86_64, did some searching, but still not very understand, e.g. what's the option instead of i386 to pass to debootstrap command option?

Please help me out, I'm stuck here more then a week...

Thanks in advance very much!

Best regards,

Jakov

Last edited by jakov; 2008-01-02 at 02:59.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#2
debootstrap [OPTION...] SUITE TARGET [MIRROR [SCRIPT]]

Maybe
debootstrap etch arm

?
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#3
ah no, Installing Etch on Fedora.

debootstrap etch

It has to be i386 because I guess you want to have a starting x86 Etch system
 
Posts: 12 | Thanked: 1 time | Joined on Jan 2008
#4
Originally Posted by free View Post
ah no, Installing Etch on Fedora.

debootstrap etch

It has to be i386 because I guess you want to have a starting x86 Etch system
What does it have to be i386?

I did it with amd64, but got no success: debootstrap --arch amd64 etch /etch_root http://ftp.debian.org/debian

The error is: /lib/libc.so.6: version `GLIBC_2.4' not found (require by gcc)

I checked the current GLIBC verion: $ strings /lib/libc.so.6 | grep GLIBC
then there's no version 2.4.

Tried many ways but can't upgrade glibc to 2.4

Could you help me pls? Thanks
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#5
Ok if you are on amd64 then probably yes, you need to put amd64. As you don't have dpkg, you need to manually specify it.. Never run debian core app (debootstrap is a tricky one!) in fedora. I'm also not using 64 arches, but I'll try to help you..

Where/when does the error occur exactly:

sh -x `which debootstrap` --arch amd64 etch /etch_root http://ftp.debian.org/debian &> /tmp/log

And then try to post /tmp/log somewhere (http://debian.pastebin.com/ for example)

Where did you get your debootstrap from?
 
Posts: 12 | Thanked: 1 time | Joined on Jan 2008
#6
Dear free,

Thanks for your quick reply!

Yes, I installed debian etch successfully as it said.

Then I switch to scratchbox, and init it by:
$HOME/scratchbox2/bin/sb2-init -m maemo -t /etch_root maemo $HOME/arm-2007q3/bin/arm-linux-gcc
(following the guide of sb2)

The error exactly is:
gcc: /etch_root/lib/libc.so.6: version `GLIBC_2.4' not found (required by gcc)
perl: /etch_root/lib/libc.so.6: version `GLIBC_2.4' not found (required by perl)
perl: /etch_root/lib/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so)
readlink: /etch_root/lib/libc.so.6: version `GLIBC_2.4' not found (required by readlink)
/bin/bash: /etch_root/lib/libc.so.6: version `GLIBC_2.4' not found (required by /bin/bash)
/bin/bash: /etch_root/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib64/libtinfo.so.5)


And now when I run $ sb2, the same error msg occurs.

---- Here is the log file you require: ----
http://debian.pastebin.com/m10ca0076

Please take a look, thank you so much!
 
Posts: 12 | Thanked: 1 time | Joined on Jan 2008
#7
Oh, I installed debootstrap by yum on fedora!
I downloaded the root strap using
$ wget http://repository.maemo.org/stable/3..._3.1_armel.tgz

and extracted to $HOME/buildroot (as the sb2 guide) . dpkg is in there.

Last edited by jakov; 2008-01-02 at 14:00.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#8
Sorry I have to go for a few hours.

I looked at the requirement of sb2 on packages.debian.org and it requires libc 2.7!!

Which fedora is this?

I'm interested in running this scratchbox2. I'll try as soon as I can, maybe I'll understand more.

You'll have restart every command that fails with the debug option I've given
sh -x blablab &> /tmp/log

Looks like one binary has been compiled for libc2.4.. there's nothing you can do. Or recompile scratchbox2 for your libc.

More info later,
bye
 
Posts: 12 | Thanked: 1 time | Joined on Jan 2008
#9
Fedora's glibc is 2.7 too!

[jakov@jakov-fvm ~]$ strings /lib/libc.so.6 | grep GLIBC
GLIBC_2.0
GLIBC_2.1
GLIBC_2.1.1
GLIBC_2.1.2
GLIBC_2.1.3
GLIBC_2.2
GLIBC_2.2.1
GLIBC_2.2.2
GLIBC_2.2.3
GLIBC_2.2.4
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_PRIVATE



But when I'm debian etch ($ sudo chroot /etch_root):

[jakov@jakov-fvm ~]$ sudo chroot /etch_root
Password:
root@jakov-fvm:/# strings /lib/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_PRIVATE

You see, glibc 2.3.4 only, I couldn't upgrade to at least 2.4

Do you know why?

Someone told me that I'd not use scratchbox-2 unless if I want to use maemo SDK+.

If you're interested, please try it with me ;-)

Thanks, and have a good day!

Looking forward to your reply!
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#10
Yes, etch is a few month old and the stable branch. So they are only shipping stuffs that were without critical bugs at the time.
(or stuffs that do not rely on too broken stuffs)

I thought you were doing the thing out of etch.
If it's inside etch then yes, etch has libc

You'll need testing (lenny) then.
Could be that at the time when this tutorial was written, they pointed out to etch (which was the testing branch, now replaced by lenny) and could be that at the time, etch was running libc > 2.4 but it didn't pass critieria for inclusion in the stable branch during the freeze process.

What's sdk+
?

Gotta read a lot of stuffs because honestly I am a bit lost

Try with lenny?
debootstrap amd64 lenny
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:51.