Gentoo Archives: gentoo-user-es

From: Marcos Garcia <marcos_gm@××.com>
To: angel@××××××××.com
Cc: GentooUserEs <gentoo-user-es@l.g.o>
Subject: Re: [gentoo-user-es] Problemas gcc 3.3.2-r5 y gentoo-dev-sources 2.6.2-r1
Date: Wed, 18 Feb 2004 23:54:29
Message-Id: 40340B0C.30706@ya.com
In Reply to: [gentoo-user-es] Problemas gcc 3.3.2-r5 y gentoo-dev-sources 2.6.2-r1 by Angel Cervera Claudio
1 joer angel llevas tiempo con esto eh xD
2
3 vamos a ver una cosa:
4
5 +++++++++++++++++++++++++++++++
6
7 gcc -c -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/ linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" apmsleep.c
8 En el fichero incluído de /usr/src/linux/include/linux/spinlock.h:10,
9 de apmsleep.c:51:
10 /usr/src/linux/include/linux/linkage.h:5:25: asm/linkage.h: No existe el fichero o el directorio
11
12 ++++++++++++++++++++++++++++++++++++++++++
13 una cosa, para empezar, usas -march=athlon-tbird. En gentoo solemos decir (me incluyo eh) que si el uso de -march "nuevas" (como athlon-xp, pentium4, etc) puede ser algo "Inestable", pues intenta hacerlo con "i686", como hacen otros (redhat,suse,etc)
14
15 bueno, a lo que vamos. Aquí hay algo muy evidente, i es esto "-I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/ linux-2.0/include".
16 El error que da algo más abajo ("asm/linkage.h: No existe el fichero o el directorio") te debería hacer pensar en que un fichero que debería estar en la carpeta especificada en los includes (-I) no se puede encontrar. Es decir, si tu tienes en /usr/src/linux/include/asm un fichero llamado linkage.h, pues perfecto, me callo la boca y te pago una cerveza y una licencia de suse9professional xD. Pero por lo visto ni en una carpeta ni en otra de las especificadas depués del "-I" está el fichero ese (linkage.h)
17
18 Así que empieza por comprobar que tienes en /usr/src/ un puntero llamado "linux" que apunte a tu carpeta del kernel, como "linux-2.6.2-rc1". Eso sí te digo, ese fichero debería estár ahí:
19 +++++++++++++++++++++++++++
20 root(0):~
21 :D l /usr/src/linux/include/asm/linkage.h
22 -rw-r--r-- 1 root root 276 feb 6 15:24 /usr/src/linux/include/asm/linkage.h
23
24 root(0):~
25 ## l /usr/src/linux-2.6.2-gentoo/include
26 total 117K
27 drwxr-xr-x 35 root root 944 feb 7 00:11 ./
28 drwxr-xr-x 19 root root 1,3K feb 13 23:54 ../
29 drwxr-xr-x 3 root root 1,1K feb 6 15:25 acpi/
30 lrwxrwxrwx 1 root root 8 feb 7 00:11 asm -> asm-i386/
31 ++++++++++++++++++++++++++
32 OJO PQ "asm" ES UN ENLACE A "asm-i386", si no lo tienes hazlo con el comando "ln -s" (seguro q lo sabes ya :P)
33
34 A las muy malas, yo en un acto desesperado lo que haría sería emerger linux-headers (que ahora se ve que hay que tener las 2.4.22) y luego emerger glibc. Luego ejecutaría ldconfig, y intentaría emerger algo. Que no va? Reemergería gcc. Ejecutaría LDCONFIG (insisto, pq es lo que a mi me falló), y env-update, y source /etc/profile también lo haría. Y si así sigue sin ir, no te pago una cerveza, sino un barril ;)
35 venga, suerte y al toro!!
36
37
38
39 Angel Cervera Claudio escribió:
40
41 >Algo tiene que estar pasando últimamente.
42 >
43 >Estoy intentado instalar (ahora en otra máquina y desde cero) el gnome
44 >(previamente instalé el kde) y me da el siguiente error al compilar.
45 >Esto no me había pasado hasta que instalé el gentoo-dev-sources 2.6.2-r1
46 >y el gcc 3.3.2-r5.
47 >
48 >En otra máquina me pasan cosas parecidas y fue a raíz de actualizarme
49 >estos dos paquetes y usar estas dos versiones.
50 >
51 >¿Qué demonios puede ser? ¿Qué estoy haciendo mal? Estoy utilizando los
52 >mismo flags en USE que cuando tenía el kernel 2.4 y el gcc 3.2
53 >
54 >:(
55 >
56 >
57 ># emerge gnome
58 >Calculating dependencies ...done!
59 >
60 >
61 >>>>emerge (1 of 40) sys-apps/apmd-3.0.2-r3 to /
62 >>>>md5 src_uri ;-) apmd-3.0.2.tar.gz
63 >>>>Unpacking source...
64 >>>>Unpacking apmd-3.0.2.tar.gz to /var/tmp/portage/apmd-3.0.2-r3/work
65 >>>>
66 >>>>
67 > * Applying apmsleep.c.diff... [ ok ]
68 > * Applying apmd.kernel26x.patch... [ ok ]
69 >
70 >
71 >>>>Source unpacked.
72 >>>>
73 >>>>
74 >gcc -c -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/ linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" apmlib.c
75 >ar rv libapm.a apmlib.o
76 >a - apmlib.o
77 >ranlib libapm.a
78 >gcc -c -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/ linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" apm.c
79 >apm.c: In function `change_state':
80 >apm.c:40: warning: implicit declaration of function `exit'
81 >gcc -o apm apm.o -L. -lapm
82 >gcc -c -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/ linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" apmd.c
83 >apmd.c: In function `apmd_call_proxy':
84 >apmd.c:245: warning: concatenation of string literals with __FUNCTION__ is deprecated
85 >apmd.c:328: warning: concatenation of string literals with __FUNCTION__ is deprecated
86 >apmd.c:332: warning: concatenation of string literals with __FUNCTION__ is deprecated
87 >apmd.c:357: warning: concatenation of string literals with __FUNCTION__ is deprecated
88 >apmd.c:374: warning: concatenation of string literals with __FUNCTION__ is deprecated
89 >apmd.c:382: warning: concatenation of string literals with __FUNCTION__ is deprecated
90 >apmd.c:394: warning: concatenation of string literals with __FUNCTION__ is deprecated
91 >apmd.c:402: warning: concatenation of string literals with __FUNCTION__ is deprecated
92 >apmd.c:408: warning: concatenation of string literals with __FUNCTION__ is deprecated
93 >apmd.c: In function `apmd_power_reset':
94 >apmd.c:426: warning: concatenation of string literals with __FUNCTION__ is deprecated
95 >apmd.c: In function `apmd_suspend':
96 >apmd.c:463: warning: concatenation of string literals with __FUNCTION__ is deprecated
97 >apmd.c: In function `apmd_standby':
98 >apmd.c:497: warning: concatenation of string literals with __FUNCTION__ is deprecated
99 >apmd.c: In function `apmd_resume':
100 >apmd.c:532: warning: concatenation of string literals with __FUNCTION__ is deprecated
101 >apmd.c: In function `apmd_low_battery':
102 >apmd.c:593: warning: concatenation of string literals with __FUNCTION__ is deprecated
103 >apmd.c: In function `apmd_check_power':
104 >apmd.c:612: warning: concatenation of string literals with __FUNCTION__ is deprecated
105 >apmd.c: In function `main':
106 >apmd.c:959: warning: concatenation of string literals with __FUNCTION__ is deprecated
107 >gcc -o apmd apmd.o -L. -lapm
108 >gcc -c -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/ linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" -DNARROWPROTO xapm.c
109 >xapm.c: In function `main':
110 >xapm.c:286: warning: implicit declaration of function `exit'
111 >gcc -o xapm xapm.o -L. -lapm -L/usr/X11R6/lib -lXaw -lXmu -lXt -lXext -lSM -lICE -lX11
112 >gcc -c -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/ linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" apmsleep.c
113 >En el fichero incluído de /usr/src/linux/include/linux/spinlock.h:10,
114 > de apmsleep.c:51:
115 >/usr/src/linux/include/linux/linkage.h:5:25: asm/linkage.h: No existe el fichero o el directorio
116 >En el fichero incluído de /usr/src/linux/include/linux/compiler.h:16,
117 > de /usr/src/linux/include/linux/spinlock.h:11,
118 > de apmsleep.c:51:
119 >/usr/src/linux/include/linux/compiler-gcc3.h:17:1: aviso: se redefinió "__attribute_used__"
120 >En el fichero incluído de /usr/include/features.h:295,
121 > de /usr/include/stdio.h:28,
122 > de apmsleep.c:45:
123 >/usr/include/sys/cdefs.h:192:1: aviso: esta es la ubicación de la definición previa
124 >En el fichero incluído de /usr/src/linux/include/linux/compiler.h:16,
125 > de /usr/src/linux/include/linux/spinlock.h:11,
126 > de apmsleep.c:51:
127 >/usr/src/linux/include/linux/compiler-gcc3.h:22:1: aviso: se redefinió "__attribute_pure__"
128 >En el fichero incluído de /usr/include/features.h:295,
129 > de /usr/include/stdio.h:28,
130 > de apmsleep.c:45:
131 >/usr/include/sys/cdefs.h:183:1: aviso: esta es la ubicación de la definición previa
132 >En el fichero incluído de /usr/src/linux/include/linux/spinlock.h:12,
133 > de apmsleep.c:51:
134 >/usr/src/linux/include/linux/thread_info.h:21:29: asm/thread_info.h: No existe el fichero o el directorio
135 >distcc[2564] ERROR: compile on carmona failed
136 >make: *** [apmsleep.o] Error 1
137 >rm apm.o apmd.o
138 >
139 >!!! ERROR: sys-apps/apmd-3.0.2-r3 failed.
140 >!!! Function src_compile, Line 50, Exitcode 2
141 >!!! compile problem
142 >
143 >
144 >
145 >
146 >
147 >
148 >________________________________________________________________________
149 >Angel Cervera Claudio
150 >Telf. +34 670819234
151 >Mail: angel@××××××××.com / angel@×××××××××××××××.com
152 >Web: http://www.acervera.com / http://www.latiendadechivi.com
153 >Msn Messenger: angelcervera@××××××××××.com
154 >Yahoo Messenger: angelcervera
155 >AOL Messenger: angelcervera
156 >
157 >
158 >--
159 >gentoo-user-es@g.o mailing list
160 >
161 >
162 >
163 >
164
165
166 --
167 gentoo-user-es@g.o mailing list