1 |
Hi sapirf, |
2 |
|
3 |
1) |
4 |
|
5 |
I can't speak for everyone here, but I would suggest not to install |
6 |
uClibc on your running system. The reason is that it is likely to |
7 |
overwrite your existing libc. Plus other binaries on your system would |
8 |
likely have to be recompiled and linked against uClibc instead of glibc. |
9 |
|
10 |
In short, what you want to do likely spells breakage. |
11 |
|
12 |
Instead you may want to download a stage filesystem from any one of the |
13 |
mirrors (likely under experimental/embedded/x86/...<something uclibc>... |
14 |
) and populate a new root filesystem with it, with all of the programs |
15 |
you need. |
16 |
|
17 |
What you could do, if you wanted to populate a filesystem, is download |
18 |
the stage filesystem (stage3 is probably faster) and do this: |
19 |
|
20 |
<download stage> |
21 |
|
22 |
sudo -s or su |
23 |
|
24 |
mkdir -p /path/to/extracted/stage |
25 |
tar xpvjf /path/to/downloaded/stage.tar.bz2 \ |
26 |
-C /path/to/extracted/stage |
27 |
|
28 |
cp /etc/resolv.conf /path/to/extracted/stage/etc |
29 |
for i in proc sys dev; do |
30 |
mount -o bind /${i} /path/to/extracted/stage/${i} |
31 |
done |
32 |
mkdir -p /path/to/extracted/stage/usr/portage |
33 |
mount /usr/portage /path/to/extracted/stage/usr/portage |
34 |
chroot /path/to/extracted/stage/${i} /bin/sh |
35 |
|
36 |
env-update && source /etc/profile |
37 |
|
38 |
Then you could simply use emerge to build all of the packages you like |
39 |
and create a new filesystem from scratch with them (by setting |
40 |
ROOT=/newroot or something before running emerge). You'll have to create |
41 |
a few links and populate /newroot/etc/make.conf with all of the |
42 |
preferences you have. |
43 |
|
44 |
There are several gentoo documentation resources out there on how to |
45 |
create a new root filesystem. For example, try "tinygentoo" on google. |
46 |
|
47 |
2) |
48 |
|
49 |
set UCLIBC_CPU in either /etc/make.conf or as UCLIBC_CPU="xxx" emerge... |
50 |
|
51 |
|
52 |
Hopefully this helps you and you haven't already overwritten your libc ;-) |
53 |
|
54 |
~/Chris |
55 |
|
56 |
sapirf fersht wrote: |
57 |
> Hello everyone |
58 |
> |
59 |
> This is my first post to this list and i hope you will bear with me. I am |
60 |
> trying to install uclibc on gentoo |
61 |
> Linux carin 2.6.19-gentoo-r5 #1 SMP Sat Mar 10 20:56:45 IST 2007 i686 |
62 |
> Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux |
63 |
> |
64 |
> The problem is that it fails with the following error: |
65 |
> ishift 1 tshift 10 size 20560 |
66 |
> ishift 2 tshift 10 size 20556 |
67 |
> smallest = 3604 |
68 |
> setting ishift 5 tshift 2 |
69 |
> make: *** [wctables.h] Segmentation fault |
70 |
> make: *** Waiting for unfinished jobs.... |
71 |
> |
72 |
> !!! ERROR: sys-libs/uclibc-0.9.28.3 failed. |
73 |
> Call stack: |
74 |
> ebuild.sh, line 1615: Called dyn_compile |
75 |
> ebuild.sh, line 972: Called qa_call 'src_compile' |
76 |
> ebuild.sh, line 44: Called src_compile |
77 |
> uclibc-0.9.28.3.ebuild, line 383: Called die |
78 |
> |
79 |
> !!! make locales failed |
80 |
> !!! If you need support, post the topmost build error, and the call |
81 |
> stack if |
82 |
> relevant. |
83 |
> !!! A complete build log is located at '/var/log/portage/sys-libs: |
84 |
> uclibc-0.9.28.3:20070526-090253.log'. |
85 |
> |
86 |
> |
87 |
> In the begining of the installation it says |
88 |
> |
89 |
> ^[[33;01m*^[[0m QA Notice: USE Flag 'crosscompile_opts_headers-only' not in |
90 |
> IUSE for sys-libs/uclibc-0.9.28.3 |
91 |
>>>> Unpacking source... |
92 |
>>>> Unpacking uClibc-0.9.28.3.tar.bz2 to |
93 |
> /var/tmp/portage/portage/sys-libs/uclibc-0.9.28.3/work |
94 |
>>>> Unpacking uClibc-0.9.28.3-patches-1.0.tar.bz2 to |
95 |
> /var/tmp/portage/portage/sys-libs/uclibc-0.9.28.3/work |
96 |
> ^[[33;01m*^[[0m You really should consider setting UCLIBC_CPU |
97 |
> ^[[33;01m*^[[0m Otherwise, the build will be generic (read: slow). |
98 |
> ^[[33;01m*^[[0m Available CPU options: |
99 |
> GENERIC_386 386 486 586 686 586MMX PENTIUMII PENTIUMIII PENTIUM4 K6 K7 ELAN |
100 |
> CRUSOE WINCHIPC6 WINCHIP2 CYRIXIII |
101 |
> |
102 |
> My questions are: |
103 |
> 1. how can i install the program? |
104 |
> 2. how do i set UCLIBC_CPU or more exactly, in which file this parameter |
105 |
> exist? |
106 |
> |
107 |
> Thanks in advance |
108 |
> |
109 |
> |
110 |
> ------------------------------------------------------------------------ |
111 |
> |
112 |
> _______________________________________________ |
113 |
> uClibc mailing list |
114 |
> uClibc@××××××.org |
115 |
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc |
116 |
-- |
117 |
gentoo-embedded@g.o mailing list |