linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Failure to Compile AIC7xxx Driver
@ 2001-08-17  0:15 leroyljr
  2001-08-17  1:04 ` Justin T. Gibbs
  2001-08-17 17:31 ` thobi
  0 siblings, 2 replies; 7+ messages in thread
From: leroyljr @ 2001-08-17  0:15 UTC (permalink / raw)
  To: linux-kernel

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.

If this has already been brought up, sorry for being redudant.  Send flames 
and letter bombs to my address.

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

* Re: Failure to Compile AIC7xxx Driver
  2001-08-17  0:15 Failure to Compile AIC7xxx Driver leroyljr
@ 2001-08-17  1:04 ` Justin T. Gibbs
  2001-08-17  2:36   ` Pete Toscano
  2001-08-21  2:21   ` Keith Owens
  2001-08-17 17:31 ` thobi
  1 sibling, 2 replies; 7+ messages in thread
From: Justin T. Gibbs @ 2001-08-17  1:04 UTC (permalink / raw)
  To: leroyljr; +Cc: linux-kernel

>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

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

* Re: Failure to Compile AIC7xxx Driver
  2001-08-17  1:04 ` Justin T. Gibbs
@ 2001-08-17  2:36   ` Pete Toscano
  2001-08-21  2:21   ` Keith Owens
  1 sibling, 0 replies; 7+ messages in thread
From: Pete Toscano @ 2001-08-17  2:36 UTC (permalink / raw)
  To: linux-kernel


On Thu, 16 Aug 2001, Justin T. Gibbs wrote:

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

I concur.  I did exactly this and everything (well, WRT the aic7xxx
driver) was fine.

pete

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

* Re: Failure to Compile AIC7xxx Driver
  2001-08-17  0:15 Failure to Compile AIC7xxx Driver leroyljr
  2001-08-17  1:04 ` Justin T. Gibbs
@ 2001-08-17 17:31 ` thobi
  2001-08-17 17:39   ` Justin T. Gibbs
  1 sibling, 1 reply; 7+ messages in thread
From: thobi @ 2001-08-17 17:31 UTC (permalink / raw)
  To: leroyljr; +Cc: linux-kernel

leroyljr wrote:
> 
> 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)

If I remember correctly I got this one when I used bison -y instead of
yacc -
although they are supposed to do the same. 

It's just a guess - correct me if I'm telling crap

 Tobias

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

* Re: Failure to Compile AIC7xxx Driver
  2001-08-17 17:31 ` thobi
@ 2001-08-17 17:39   ` Justin T. Gibbs
  0 siblings, 0 replies; 7+ messages in thread
From: Justin T. Gibbs @ 2001-08-17 17:39 UTC (permalink / raw)
  To: thobi; +Cc: leroyljr, linux-kernel

>leroyljr wrote:
>> 
>> 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)
>
>If I remember correctly I got this one when I used bison -y instead of
>yacc -
>although they are supposed to do the same. 
>
>It's just a guess - correct me if I'm telling crap

There's a missing dependency somewhere, so the y.tab.h file is stale.
If you go into drivers/scsi/aic7xxx/aicasm and do a make clean, the
build will work for you.

I'm still trying to figure out exactly what I need to put in the Makefile
to force make to run yacc/bison prior to compiling the scan file.

--
Justin

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

* Re: Failure to Compile AIC7xxx Driver
  2001-08-17  1:04 ` Justin T. Gibbs
  2001-08-17  2:36   ` Pete Toscano
@ 2001-08-21  2:21   ` Keith Owens
  2001-08-21  2:53     ` Justin T. Gibbs
  1 sibling, 1 reply; 7+ messages in thread
From: Keith Owens @ 2001-08-21  2:21 UTC (permalink / raw)
  To: Justin T. Gibbs; +Cc: leroyljr, linux-kernel

On Thu, 16 Aug 2001 19:04:12 -0600, 
"Justin T. Gibbs" <gibbs@scsiguy.com> wrote:
>>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
>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?

I have repeatedly offered to fix the aic7xxx and aicasm makefiles but
you have refused to let me.  See the thread that ended in
http://marc.theaimsgroup.com/?l=linux-kernel&m=99353014629653&w=2

You have hit the precise problem that I raised in that thread, you
cannot rely on timestamps for files that are both generated and
shipped.  aic7xxx is not the only system that has this problems but
other maintainers accept that I know the kbuild system better than they
do.  I have fixed the problem in kbuild 2.5 for all generated files
_except_ for aic7xxx.  Until you accept that your makefiles are
incorrect and do not fit the Linux kernel build model, I have no
intention of doing any more work on aic7xxx.

Keith Owens, Linux kernel build maintainer.


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

* Re: Failure to Compile AIC7xxx Driver
  2001-08-21  2:21   ` Keith Owens
@ 2001-08-21  2:53     ` Justin T. Gibbs
  0 siblings, 0 replies; 7+ messages in thread
From: Justin T. Gibbs @ 2001-08-21  2:53 UTC (permalink / raw)
  To: Keith Owens; +Cc: leroyljr, linux-kernel

>You have hit the precise problem that I raised in that thread, you
>cannot rely on timestamps for files that are both generated and
>shipped.

This is a completely different problem having to do with the build for
the aicasm utility missing an explicit dependency regarding the generated,
but certainly not shipped, y.tab.h file.  The grammer recently changed
(a new token was added), so those with stale y.tab.h files were bitten.
Its on my list of things to fix.

--
Justin

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

end of thread, other threads:[~2001-08-21  2:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-17  0:15 Failure to Compile AIC7xxx Driver leroyljr
2001-08-17  1:04 ` Justin T. Gibbs
2001-08-17  2:36   ` Pete Toscano
2001-08-21  2:21   ` Keith Owens
2001-08-21  2:53     ` Justin T. Gibbs
2001-08-17 17:31 ` thobi
2001-08-17 17:39   ` Justin T. Gibbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).