mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* compilation failure
@ 2002-12-11 22:22 abindus
  2002-12-15 11:24 ` Keith Owens
  0 siblings, 1 reply; 2+ messages in thread
From: abindus @ 2002-12-11 22:22 UTC (permalink / raw)
  To: linux-kernel

I'm sorry for the disturbance as I feel that it's a very simple 
configuration problem but I'm completely stuc with the compilation of 
the kernel. I used to do this without problem but after installing 
RedHat 8.0 nothing is possible. However I'm still able to compile other 
programs in c/c++/gtk+

It seems to complain of not founding some libraries
After the make dep, make bzImage gives (I'm sorry but it's in french) :

make -r -f tmp_include_depends all
make[1]: Entre dans le répertoire `/usr/src/linux-2.4.18-18.8.0'
make[1]: Rien à faire pour `all'.
make[1]: Quitte le répertoire `/usr/src/linux-2.4.18-18.8.0'
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-18.8.0/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 
-malign-functions=4   -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version 
-c -o init/version.o init/version.c
cc1: AVERTISSEMENT: -malign-functions est obsolète, utiliser -falign-loops
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.18-18.8.0/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 
-malign-functions=4  " -C  kernel
make[1]: Entre dans le répertoire `/usr/src/linux-2.4.18-18.8.0/kernel'
make all_targets
make[2]: Entre dans le répertoire `/usr/src/linux-2.4.18-18.8.0/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-18.8.0/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 
-malign-functions=4    -nostdinc  -DKBUILD_BASENAME=sched  
-fno-omit-frame-pointer -O2 -c -o sched.o sched.c
cc1: AVERTISSEMENT: -malign-functions est obsolète, utiliser -falign-loops
Dans le fichier inclus à partir de 
/usr/src/linux-2.4.18-18.8.0/include/linux/wait.h:13,
          à partir de /usr/src/linux-2.4.18-18.8.0/include/linux/fs.h:12,
          à partir de 
/usr/src/linux-2.4.18-18.8.0/include/linux/capability.h:17,
          à partir de 
/usr/src/linux-2.4.18-18.8.0/include/linux/binfmts.h:5,
          à partir de /usr/src/linux-2.4.18-18.8.0/include/linux/sched.h:9,
          à partir de /usr/src/linux-2.4.18-18.8.0/include/linux/mm.h:4,
          à partir de sched.c:19:
/usr/src/linux-2.4.18-18.8.0/include/linux/kernel.h:10:20: stdarg.h: 
Aucun fichier ou répertoire de ce type
Dans le fichier inclus à partir de 
/usr/src/linux-2.4.18-18.8.0/include/linux/wait.h:13,
          à partir de /usr/src/linux-2.4.18-18.8.0/include/linux/fs.h:12,
          à partir de 
/usr/src/linux-2.4.18-18.8.0/include/linux/capability.h:17,
          à partir de 
/usr/src/linux-2.4.18-18.8.0/include/linux/binfmts.h:5,
          à partir de /usr/src/linux-2.4.18-18.8.0/include/linux/sched.h:9,
          à partir de /usr/src/linux-2.4.18-18.8.0/include/linux/mm.h:4,
          à partir de sched.c:19:
/usr/src/linux-2.4.18-18.8.0/include/linux/kernel.h:73: erreur d'analyse 
syntaxique avant « va_list »
/usr/src/linux-2.4.18-18.8.0/include/linux/kernel.h:73: AVERTISSEMENT: 
déclaration de fonction n'est pas un prototype
/usr/src/linux-2.4.18-18.8.0/include/linux/kernel.h:76: erreur d'analyse 
syntaxique avant « va_list »
/usr/src/linux-2.4.18-18.8.0/include/linux/kernel.h:76: AVERTISSEMENT: 
déclaration de fonction n'est pas un prototype
/usr/src/linux-2.4.18-18.8.0/include/linux/kernel.h:80: erreur d'analyse 
syntaxique avant « va_list »
/usr/src/linux-2.4.18-18.8.0/include/linux/kernel.h:80: AVERTISSEMENT: 
déclaration de fonction n'est pas un prototype
sched.c: Dans la fonction « sys_sched_yield »:
sched.c:1374: AVERTISSEMENT: variable inutilisée « rq »
make[2]: *** [sched.o] Erreur 1
make[2]: Quitte le répertoire `/usr/src/linux-2.4.18-18.8.0/kernel'
make[1]: *** [first_rule] Erreur 2
make[1]: Quitte le répertoire `/usr/src/linux-2.4.18-18.8.0/kernel'
make: *** [_dir_kernel] Erreur 2

Many thanks in advance.

Pascal Bonfils / abindus@wanadoo.fr


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: compilation failure
  2002-12-11 22:22 compilation failure abindus
@ 2002-12-15 11:24 ` Keith Owens
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2002-12-15 11:24 UTC (permalink / raw)
  To: abindus; +Cc: linux-kernel

On Wed, 11 Dec 2002 23:22:55 +0100, 
abindus@wanadoo.fr wrote:
>It seems to complain of not founding some libraries
>After the make dep, make bzImage gives (I'm sorry but it's in french) :
>/usr/src/linux-2.4.18-18.8.0/include/linux/kernel.h:10:20: stdarg.h: 
>Aucun fichier ou répertoire de ce type
>Dans le fichier inclus à partir de 

Look in Makefile, find a line like this

kbuild_2_4_nostdinc    := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')

Change '$(CC)' to 'LANG=C $(CC)'.

The standard 2.4.18 kernel does not use -nostdinc but RH have
backported the patch from 2.4.19.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-15 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-11 22:22 compilation failure abindus
2002-12-15 11:24 ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome