1 |
Ehlo. |
2 |
|
3 |
I have problem with installing selinux. Im doing it like usually step by step |
4 |
from gentoo manual. Downloaded stage1-x86-selinux-20041123.tar.bz2 unpacking |
5 |
etc etc. |
6 |
Now i run bootstrap and after while i got gcc error. I read some conferentions |
7 |
where are trying explain this problem but nothing help me. Thanks for any |
8 |
help any idea. (BTW: same error i got when i was trying install from new |
9 |
beta9 hardened livecd with 2005 profile). I already tryed edit make.conf and |
10 |
remove some flags. |
11 |
|
12 |
After bootstrap emerged glibc: |
13 |
|
14 |
>>> Unpacking Python-2.3.5.tar.bz2 to /var/tmp/portage/python-2.3.5/work |
15 |
* Applying python-2.3-readline.patch ... |
16 |
[ ok ] |
17 |
* Applying python-2.3-add_portage_search_path_take_2.patch ... |
18 |
[ ok ] |
19 |
* Applying python-2.3-gentoo_py_dontcompile.patch ... |
20 |
[ ok ] |
21 |
* Applying python-2.3.2-disable_modules_and_ssl.patch ... |
22 |
[ ok ] |
23 |
* Applying python-2.3-mimetypes_apache.patch ... |
24 |
[ ok ] |
25 |
* Applying python-2.3-db4.2.patch ... |
26 |
[ ok ] |
27 |
>>> Source unpacked. |
28 |
build |
29 |
bootstrap |
30 |
build |
31 |
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man |
32 |
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc |
33 |
--localstatedir=/var/lib --with-fpectl --enable-shared --disable-ipv6 |
34 |
--infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-threads |
35 |
--with-libc= --enable-unicode=ucs4 |
36 |
configure: WARNING: If you wanted to set the --build type, don't use --host. |
37 |
If a cross compiler is detected then cross compile mode will be used. |
38 |
checking MACHDEP... linux2 |
39 |
checking EXTRAPLATDIR... |
40 |
checking for --without-gcc... no |
41 |
checking for --with-cxx=<compiler>... no |
42 |
checking for c++... g++ |
43 |
checking for C++ compiler default output file name... configure: error: C++ |
44 |
compiler cannot create executables |
45 |
See `config.log' for more details. |
46 |
|
47 |
!!! ERROR: dev-lang/python-2.3.5 failed. |
48 |
!!! Function econf, Line 449, Exitcode 77 |
49 |
!!! econf failed |
50 |
!!! If you need support, post the topmost build error, NOT this status |
51 |
message. |
52 |
|
53 |
livecd portage # |
54 |
|
55 |
livecd portage # env |
56 |
MANPATH=/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i386-pc-linux-gnu/3.3/man |
57 |
INFODIR=/usr/share/info |
58 |
HOSTNAME=livecd |
59 |
TERM=xterm |
60 |
SHELL=/bin/bash |
61 |
SSH_CLIENT=192.168.0.136 40866 22 |
62 |
OLDPWD=/ |
63 |
SSH_TTY=/dev/pts/0 |
64 |
USER=root |
65 |
GUILE_LOAD_PATH=/usr/share/guile/1.6 |
66 |
CONFIG_PROTECT_MASK=/etc/terminfo |
67 |
PAGER=/usr/bin/less |
68 |
MAIL=/var/mail/root |
69 |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i386-pc-linux-gnu/gcc-bin/3.3 |
70 |
GLIBC_SSP_CHECKED=1 |
71 |
INPUTRC=/etc/inputrc |
72 |
PWD=/usr/portage |
73 |
EDITOR=/bin/nano |
74 |
PS1=\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\] |
75 |
CXX=g++ |
76 |
SHLVL=3 |
77 |
HOME=/root |
78 |
LESS=-R |
79 |
LOGNAME=root |
80 |
CVS_RSH=ssh |
81 |
SSH_CONNECTION=192.168.0.136 40866 192.168.0.202 22 |
82 |
LESSOPEN=|lesspipe.sh %s |
83 |
INFOPATH=/usr/share/info:/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info |
84 |
CC=gcc |
85 |
_=/bin/env |
86 |
|
87 |
|
88 |
|
89 |
livecd portage # gcc-config -l |
90 |
[1] i386-pc-linux-gnu-3.3.4 * |
91 |
[2] i686-pc-linux-gnu-3.3.4 |
92 |
livecd portage # |
93 |
|
94 |
|
95 |
livecd portage # gcc -v |
96 |
Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/specs |
97 |
Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure |
98 |
--prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.3 |
99 |
--includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include |
100 |
--datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3 |
101 |
--mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/man |
102 |
--infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info --enable-shared |
103 |
--host=i386-pc-linux-gnu --target=i386-pc-linux-gnu --with-system-zlib |
104 |
--enable-languages=c --enable-threads=posix --enable-long-long |
105 |
--disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio |
106 |
--enable-version-specific-runtime-libs |
107 |
--with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include/g++-v3 |
108 |
--with-local-prefix=/usr/local --disable-nls --disable-multilib |
109 |
--enable-__cxa_atexit --enable-clocale=generic |
110 |
Thread model: posix |
111 |
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) |
112 |
livecd portage # |
113 |
|
114 |
livecd portage # ls -la /etc/make.profile |
115 |
lrwxr-xr-x 1 root root 40 Jun 18 14:00 /etc/make.profile |
116 |
-> /usr/portage/profiles/selinux/2004.1/x86 |
117 |
livecd portage # |
118 |
|
119 |
livecd portage # cat /etc/make.conf |
120 |
CPU="3dnow gcj gcc mmx mmx2 nptl nptlonly pic sse threads x86" |
121 |
PM="acpi -apm" |
122 |
NET="ipv6" |
123 |
USE="-X -gtk -gnome -alsa -qt -kde ${NET} ${CPU} ${PM}" |
124 |
CHOST="i686-pc-linux-gnu" |
125 |
CFLAGS="-march=i686 -mcpu=athlon-xp -O2 -pipe -falign-functions=4 |
126 |
-fomit-frame-pointer" #-mtunr=athlon-xp |
127 |
CXXFLAGS="${CFLAGS}" |
128 |
#ACCEPT_KEYWORDS="~x86" |
129 |
#PORTAGE_TMPDIR=/var/tmp |
130 |
#PORTDIR=/usr/portage |
131 |
#DISTDIR=${PORTDIR}/distfiles |
132 |
#PKGDIR=${PORTDIR}/packages |
133 |
#PORT_LOGDIR=/var/log/portage |
134 |
#PORTDIR_OVERLAY=/usr/local/portage |
135 |
#FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp \${URI} -P \${DISTDIR}" |
136 |
#RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp \${URI} -P \${DISTDIR}" |
137 |
#FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp --limit-rate=200k \${URI} -P |
138 |
\${DISTDIR}" |
139 |
#RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp --limit-rate=200k \${URI} |
140 |
-P \${DISTDIR}" |
141 |
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo" |
142 |
#PORTAGE_BINHOST="http://grp.mirror.site/gentoo/grp/1.4/i686/athlon-xp/" |
143 |
SYNC="rsync://ftp.sh.cvut.cz/gentoo-portage" |
144 |
#RSYNC_RETRIES="3" |
145 |
#RSYNC_TIMEOUT=180 |
146 |
MAKEOPTS="-j1" |
147 |
#PORTAGE_NICENESS=3 |
148 |
#AUTOCLEAN="yes" |
149 |
#FEATURES="sandbox buildpkg ccache distcc userpriv usersandbox notitles |
150 |
noclean noauto cvs keeptemp keepwork autoaddcvs" |
151 |
#FEATURES="sandbox ccache distcc distlocks autoaddcvs" |
152 |
#CCACHE_SIZE="512M" |
153 |
#DISTCC_DIR="${PORTAGE_TMPDIR}/.distcc" |
154 |
#RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes |
155 |
livecd portage # |
156 |
|
157 |
|
158 |
-- |
159 |
:-) |