Hi sapirf,
1)
I can't speak for everyone here, but I would suggest not to install
uClibc on your running system. The reason is that it is likely to
overwrite your existing libc. Plus other binaries on your system would
likely have to be recompiled and linked against uClibc instead of glibc.
In short, what you want to do likely spells breakage.
Instead you may want to download a stage filesystem from any one of the
mirrors (likely under experimental/embedded/x86/...<something uclibc>...
) and populate a new root filesystem with it, with all of the programs
you need.
What you could do, if you wanted to populate a filesystem, is download
the stage filesystem (stage3 is probably faster) and do this:
<download stage>
sudo -s or su
mkdir -p /path/to/extracted/stage
tar xpvjf /path/to/downloaded/stage.tar.bz2 \
-C /path/to/extracted/stage
cp /etc/resolv.conf /path/to/extracted/stage/etc
for i in proc sys dev; do
mount -o bind /${i} /path/to/extracted/stage/${i}
done
mkdir -p /path/to/extracted/stage/usr/portage
mount /usr/portage /path/to/extracted/stage/usr/portage
chroot /path/to/extracted/stage/${i} /bin/sh
env-update && source /etc/profile
Then you could simply use emerge to build all of the packages you like
and create a new filesystem from scratch with them (by setting
ROOT=/newroot or something before running emerge). You'll have to create
a few links and populate /newroot/etc/make.conf with all of the
preferences you have.
There are several gentoo documentation resources out there on how to
create a new root filesystem. For example, try "tinygentoo" on google.
2)
set UCLIBC_CPU in either /etc/make.conf or as UCLIBC_CPU="xxx" emerge...
Hopefully this helps you and you haven't already overwritten your libc ;-)
~/Chris
sapirf fersht wrote:
Hello everyone
This is my first post to this list and i hope you will bear with me. I am
trying to install uclibc on gentoo
Linux carin 2.6.19-gentoo-r5 #1 SMP Sat Mar 10 20:56:45 IST 2007 i686
Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux
The problem is that it fails with the following error:
ishift 1 tshift 10 size 20560
ishift 2 tshift 10 size 20556
smallest = 3604
setting ishift 5 tshift 2
make: *** [wctables.h] Segmentation fault
make: *** Waiting for unfinished jobs....
!!! ERROR: sys-libs/uclibc-0.9.28.3 failed.
Call stack:
ebuild.sh, line 1615: Called dyn_compile
ebuild.sh, line 972: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
uclibc-0.9.28.3.ebuild, line 383: Called die
!!! make locales failed
!!! If you need support, post the topmost build error, and the call
stack if
relevant.
!!! A complete build log is located at '/var/log/portage/sys-libs:
uclibc-0.9.28.3:20070526-090253.log'.
In the begining of the installation it says
^[[33;01m*^[[0m QA Notice: USE Flag 'crosscompile_opts_headers-only' not in
IUSE for sys-libs/uclibc-0.9.28.3
Unpacking source...
Unpacking uClibc-0.9.28.3.tar.bz2 to
/var/tmp/portage/portage/sys-libs/uclibc-0.9.28.3/work
Unpacking uClibc-0.9.28.3-patches-1.0.tar.bz2 to
/var/tmp/portage/portage/sys-libs/uclibc-0.9.28.3/work
^[[33;01m*^[[0m You really should consider setting UCLIBC_CPU
^[[33;01m*^[[0m Otherwise, the build will be generic (read: slow).
^[[33;01m*^[[0m Available CPU options:
GENERIC_386 386 486 586 686 586MMX PENTIUMII PENTIUMIII PENTIUM4 K6 K7 ELAN
CRUSOE WINCHIPC6 WINCHIP2 CYRIXIII
My questions are:
1. how can i install the program?
2. how do i set UCLIBC_CPU or more exactly, in which file this parameter
exist?
Thanks in advance
------------------------------------------------------------------------
_______________________________________________
uClibc mailing list
[EMAIL PROTECTED]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc
--
[EMAIL PROTECTED] mailing list