Re: Failure to Compile AIC7xxx Driver

From: Justin T. Gibbs (gibbs@scsiguy.com)
Date: Thu Aug 16 2001 - 20:04:12 EST


>If nobody has brought this up yet, I want to report this issue.
>
>Here is what happened when I tried to build the aic7xxx driver for 2.4.9:
>
>aicasm/aicasm_scan.l: In function `yylex':
>aicasm/aicasm_scan.l:115: `T_VERSION' undeclared (first use in this function)
>aicasm/aicasm_scan.l:115: (Each undeclared identifier is reported only once
>aicasm/aicasm_scan.l:115: for each function it appears in.)
>aicasm/aicasm_scan.l:132: `T_STRING' undeclared (first use in this function)
>
>This is for the new driver, BTW.

I tried to reproduce this locally, but was never able to do so. My
best guess is that the default rules for building lex/yacc grammers don't
include proper dependencies for the generated y.tab.h file. Of course,
it shouldn't be necessary. Both aicasm_gram.y and aicasm_scan.l should
have newer dates than the y.tab.h file from a previous build (both are
updated for 2.4.9) and aicasm_gram.c is listed first in the dependency
line, so yacc should have already been run prior to the compilation of
aicasm_scan.c.

Perhaps a make guru can lend some insight?

If you manually go into drivers/scsi/aic7xxx/aicasm and do a make clean, the
error should go away.

Of course, you could just disable the build of the firmware in your
kernel config...

--
Justin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:20 EST