[gl-como] Problemaccio compilazione

~RedShadoW~ redshadowhack@gmail.com
Mar 1 Maggio 2007 18:50:11 CEST


..giÓ tempo addietro ebbi problemi con gcc & co.. tutto sembrava risolto
finchŔ successe questo:



  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:145,

from /usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/limits.h:122,

from /usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/syslimits.h:7,

from /usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/limits.h:11,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file
or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:117:
/usr/include/bits/socket.h:310:24: error: asm/socket.h: No such file or
directory
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:206: error: ‘PATH_MAX’ undeclared (first use in
this function)
scripts/basic/fixdep.c:206: error: (Each undeclared identifier is
reported only once
scripts/basic/fixdep.c:206: error: for each function it appears in.)
scripts/basic/fixdep.c:206: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:304: error: ‘PATH_MAX’ undeclared (first use in
this function)
scripts/basic/fixdep.c:304: warning: unused variable ‘s’
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2



l'esempio proviene dall'output di un make menuconfig nella dir del
kernel vanilla 2.6.20 ma identica roba viene fuori cercando di
ricompilare un kernel scaricato con apt (e quindi anche il kernel
corrente 2.6.20 o 2.6.18-4)...

mentre ./config da una roba simile a:

configure: configuring moodbar for release
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


(esempio sui sorgenti di moodbar che avevo sotto mano, vale per tutti i
sorgenti)

mentre la compilazione di un helloworld o simili va a buon fine..

quindi, mi chiedo se Ŕ un problema del compilatore (ho provato a
reinstallarlo, a installare varie versioni, ecc.. nada.) o di make o giu
di li..
il linux/limits.h not found mi da tanto l'idea di un path di ricerca
malconfigurato.. tipo la tipica variabile ambientale da impostare..

qualcuno ha idea?


-- 
~RedShadoW~



Maggiori informazioni sulla lista gl-como