2.4.23: aic7xxx/aicasm fails to build
Hi!
When I try to build 2.4.23, I get:
.../usr/bin/make -C scsi
make[3]: Entering directory /usr/src/linux-2.4.23/drivers/scsi'/usr/bin/make -C aic7xxx
make[4]: Entering directory /usr/src/linux-2.4.23/drivers/scsi/aic7xxx'/usr/bin/make all_targets
make[5]: Entering directory /usr/src/linux-2.4.23/drivers/scsi/aic7xxx'/usr/bin/make -C aicasm
make[6]: Entering directory /usr/src/linux-2.4.23/drivers/scsi/aic7xxx/aicasm'
yacc -d -b aicasm_gram aicasm_gram.y
mv aicasm_gram.tab.c aicasm_gram.c
mv aicasm_gram.tab.h aicasm_gram.h
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. aicasm.c aicasm_symbol.c aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c -o aicasm -ld aicasm_gram.y:1933: warning: type mismatch with previous implicit declaration
aicasm_gram.tab.c:3055: warning: previous implicit declaration of yyerror'
aicasm_gram.y:1933: warning: yyerror' was previously implicitly declared to return int' aicasm_macro_gram.y:162: warning: type mismatch with previous implicit declaration aicasm_macro_gram.tab.c:1275: warning: previous implicit declaration of mmerror'
aicasm_macro_gram.y:162: warning: mmerror' was previously implicitly declared to return int'
aicasm_scan.l: In function expand_macro':
aicasm_scan.l:522: error: yytext_ptr' undeclared (first use in this function)
aicasm_scan.l:522: error: (Each undeclared identifier is reported only once
aicasm_scan.l:522: error: for each function it appears in.)
make[6]: *** [aicasm] Error 1
make[6]: Leaving directory /usr/src/linux-2.4.23/drivers/scsi/aic7xxx/aicasm'
make[5]: *** [aicasm/aicasm] Error 2
make[5]: Leaving directory /usr/src/linux-2.4.23/drivers/scsi/aic7xxx'
make[4]: *** [first_rule] Error 2
make[4]: Leaving directory /usr/src/linux-2.4.23/drivers/scsi/aic7xxx'
make[3]: *** [_subdir_aic7xxx] Error 2
make[3]: Leaving directory /usr/src/linux-2.4.23/drivers/scsi'
make[2]: *** [_subdir_scsi] Error 2
make[2]: Leaving directory /usr/src/linux-2.4.23/drivers'
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory /usr/src/linux-2.4.23'
make: *** [stamp-build] Error 2
Signature · 4 lines
Ralf Hildebrandt (Im Auftrag des Referat V a) [email protected] Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-916 Referat V a - Kommunikationsnetze - AIM. ralfpostfix
Quoted 37 lines · Ralf Hildebrandt
Hi!
When I try to build 2.4.23, I get:
...
/usr/bin/make-C scsi
make[3]: Entering directory/usr/src/linux-2.4.23/drivers/scsi'/usr/bin/make-C aic7xxx
make[4]: Entering directory/usr/src/linux-2.4.23/drivers/scsi/aic7xxx'/usr/bin/makeall_targets
make[5]: Entering directory/usr/src/linux-2.4.23/drivers/scsi/aic7xxx'/usr/bin/make-C aicasm
make[6]: Entering directory/usr/src/linux-2.4.23/drivers/scsi/aic7xxx/aicasm'
yacc -d -baicasm_gramaicasm_gram.y
mvaicasm_gram.tab.caicasm_gram.c
mvaicasm_gram.tab.haicasm_gram.h
yacc -d -baicasm_macro_gram-p mm aicasm_macro_gram.y
mvaicasm_macro_gram.tab.caicasm_macro_gram.c
mvaicasm_macro_gram.tab.haicasm_macro_gram.h
lex-oaicasm_scan.caicasm_scan.l
lex -Pmm-oaicasm_macro_scan.caicasm_macro_scan.l
gcc -I/usr/include -I.aicasm.caicasm_symbol.caicasm_gram.caicasm_macro_gram.caicasm_scan.caicasm_macro_scan.c-o aicasm -ld aicasm_gram.y:1933: warning: type mismatch with previous implicit declaration
aicasm_gram.tab.c:3055: warning: previous implicit declaration of yyerror'
aicasm_gram.y:1933: warning: yyerror' was previously implicitly declared to return int' aicasm_macro_gram.y:162: warning: type mismatch with previous implicit declaration aicasm_macro_gram.tab.c:1275: warning: previous implicit declaration of mmerror'
aicasm_macro_gram.y:162: warning: mmerror' was previously implicitly declared to return int'
aicasm_scan.l: In functionexpand_macro':
aicasm_scan.l:522: error:yytext_ptr' undeclared (first use in this function)
aicasm_scan.l:522: error: (Each undeclared identifier is reported only once
aicasm_scan.l:522: error: for each function it appears in.)
make[6]: *** [aicasm] Error 1
make[6]: Leaving directory/usr/src/linux-2.4.23/drivers/scsi/aic7xxx/aicasm'
make[5]: *** [aicasm/aicasm] Error 2
make[5]: Leaving directory/usr/src/linux-2.4.23/drivers/scsi/aic7xxx'
make[4]: *** [first_rule] Error 2
Quoted 9 lines
make[4]: Leaving directory
/usr/src/linux-2.4.23/drivers/scsi/aic7xxx' make[3]: *** [_subdir_aic7xxx] Error 2
make[3]: Leaving directory/usr/src/linux-2.4.23/drivers/scsi' make[2]: *** [_subdir_scsi] Error 2
make[2]: Leaving directory/usr/src/linux-2.4.23/drivers' make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory/usr/src/linux-2.4.23'
make: *** [stamp-build] Error 2
Ralf,
I believe if you turn off CONFIG_AIC7XXX_BUILD_FIRMWARE in your config, it should build.
Ethan
* Ethan Weinstein <[email protected]>:
Quoted 2 lines
I believe if you turn off
CONFIG_AIC7XXX_BUILD_FIRMWAREin your config, it should build.
Yes, of course. But that was not really the question :)
Signature · 4 lines
Ralf Hildebrandt (Im Auftrag des Referat V a) [email protected] Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-916 Referat V a - Kommunikationsnetze - AIM. ralfpostfix