Error compiling modules

Net Llama! netllama
Mon May 17 11:46:28 PDT 2004


On 04/12/03 08:26, Joel Hammer wrote:
> Using linodows and trying to compile kernel 2.4.20.
> 
> I installed the kernel sources and headers, tk, bison and flex and ran:
> make xconfig
>      All the modules appeared to be selected,so I didn't make
>      any changes to the .config file.
> make dep
> make clean
> make bzImage
> make modules
> 
> After a long time spent compiling modules, this last command crashes with:
> 
> yacc -d -b aicasm_macro_gram -p mm aicasm_macro_gram.y
> mv aicasm_macro_gram.tab.c aicasm_macro_gram.c
> mv aicasm_macro_gram.tab.h aicasm_macro_gram.h
> lex  -oaicasm_scan.c aicasm_scan.l
> lex  -Pmm -oaicasm_macro_scan.c aicasm_macro_scan.l
> gcc -I/usr/include -I. -ldb aicasm.c aicasm_symbol.c aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c -o aicasm
> aicasm_symbol.c:47: aicdb.h: No such file or directory
> aicasm_gram.y:1846: warning: type mismatch with previous implicit declaration
> /usr/share/bison/bison.simple:924: warning: previous implicit declaration of `yyerror'
> aicasm_gram.y:1846: warning: `yyerror' was previously implicitly declared to return `int'
> aicasm_macro_gram.y:162: warning: type mismatch with previous implicit declaration
> /usr/share/bison/bison.simple:924: warning: previous implicit declaration of `mmerror'
> aicasm_macro_gram.y:162: warning: `mmerror' was previously implicitly declared to return `int'
> make[4]: *** [aicasm] Error 1
> make[4]: Leaving directory
> `/usr/src/linux-2.4.20/drivers/scsi/aic7xxx/aicasm'
> make[3]: *** [aicasm/aicasm] Error 2
> make[3]: Leaving directory `/usr/src/linux-2.4.20/drivers/scsi/aic7xxx'
> make[2]: *** [_modsubdir_aic7xxx] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.4.20/drivers/scsi'
> make[1]: *** [_modsubdir_scsi] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.20/drivers'
> make: *** [_mod_drivers] Error 2

did you run 'make mrproper' before 'make xconfig'?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                       	       netllama at linux-sxs.org
Linux Step-by-step & TyGeMo: 		    http://netllama.ipfox.com

   8:55am  up 34 days,  8:23,  3 users,  load average: 0.30, 0.20, 0.11



More information about the Linux-users mailing list