* PROBLEM: 2.6.21 - "make modules" with GREP_OPTIONS="-C1" (and other)
@ 2007-05-17 3:26 Martin Christoph
2007-05-17 4:24 ` Kok, Auke
2007-05-17 7:11 ` Sam Ravnborg
0 siblings, 2 replies; 3+ messages in thread
From: Martin Christoph @ 2007-05-17 3:26 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
[1] Summary:
If i have some GREP_OPTIONS set (like -C1 or other) i get several errors
while trying to do "make modules".
[2] Full description:
With some GREP_OPTIONS set "make modules" drops several errors like that:
root@spot /usr/src/linux # GREP_OPTIONS="-C1" make modules
CHK include/linux/version.h
CHK include/linux/utsrelease.h
Building modules, stage 2.
[...]
WARNING: "aes_enc_blk" [arch/i386/crypto/aes.ko] undefined!
WARNING: "aes_dec_blk" [arch/i386/crypto/aes.ko] undefined!
[...]
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
[3] Keywords:
"make modules", "GREP_OPTIONS", "WARNING", "undefined"
[X.] Suggestion to fix:
Unset GREP_OPTIONS within make process.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PROBLEM: 2.6.21 - "make modules" with GREP_OPTIONS="-C1" (and other)
2007-05-17 3:26 PROBLEM: 2.6.21 - "make modules" with GREP_OPTIONS="-C1" (and other) Martin Christoph
@ 2007-05-17 4:24 ` Kok, Auke
2007-05-17 7:11 ` Sam Ravnborg
1 sibling, 0 replies; 3+ messages in thread
From: Kok, Auke @ 2007-05-17 4:24 UTC (permalink / raw)
To: Martin Christoph; +Cc: linux-kernel
Martin Christoph wrote:
> [1] Summary:
> If i have some GREP_OPTIONS set (like -C1 or other) i get several errors
> while trying to do "make modules".
>
> [2] Full description:
> With some GREP_OPTIONS set "make modules" drops several errors like that:
>
> root@spot /usr/src/linux # GREP_OPTIONS="-C1" make modules
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> Building modules, stage 2.
> [...]
> WARNING: "aes_enc_blk" [arch/i386/crypto/aes.ko] undefined!
> WARNING: "aes_dec_blk" [arch/i386/crypto/aes.ko] undefined!
> [...]
> make[1]: *** [__modpost] Error 1
> make: *** [modules] Error 2
>
> [3] Keywords:
> "make modules", "GREP_OPTIONS", "WARNING", "undefined"
>
> [X.] Suggestion to fix:
> Unset GREP_OPTIONS within make process.
While I admit that this will break the build, I think it's safe to say that
there are hundreds of environment variables that will influence the kbuild
system and makefiles. It's going to be an uphill battle if you want to fix each
and every occurrence of a *possible* build breakage due to an environment
variable being set wrongly.
I think it's perfectly fine for the kbuild system to expect a reasonably sane
and clean build system. Those who want to set specific variables to influence
their build should be able to do so as well, without getting settings removed.
In your case, I would suggest not setting this option by default in your shell ;)
Cheers,
Auke
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PROBLEM: 2.6.21 - "make modules" with GREP_OPTIONS="-C1" (and other)
2007-05-17 3:26 PROBLEM: 2.6.21 - "make modules" with GREP_OPTIONS="-C1" (and other) Martin Christoph
2007-05-17 4:24 ` Kok, Auke
@ 2007-05-17 7:11 ` Sam Ravnborg
1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2007-05-17 7:11 UTC (permalink / raw)
To: Martin Christoph; +Cc: linux-kernel
On Thu, May 17, 2007 at 05:26:30AM +0200, Martin Christoph wrote:
> [1] Summary:
> If i have some GREP_OPTIONS set (like -C1 or other) i get several errors
> while trying to do "make modules".
>
> [2] Full description:
> With some GREP_OPTIONS set "make modules" drops several errors like that:
>
> root@spot /usr/src/linux # GREP_OPTIONS="-C1" make modules
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> Building modules, stage 2.
> [...]
> WARNING: "aes_enc_blk" [arch/i386/crypto/aes.ko] undefined!
> WARNING: "aes_dec_blk" [arch/i386/crypto/aes.ko] undefined!
> [...]
> make[1]: *** [__modpost] Error 1
> make: *** [modules] Error 2
>
> [3] Keywords:
> "make modules", "GREP_OPTIONS", "WARNING", "undefined"
>
> [X.] Suggestion to fix:
> Unset GREP_OPTIONS within make process.
Thanks for reporting this - I gues this took some time to
find the root cause of the problem.
Albeit fixing it seems simple I will consider it for a
while. In the kernel we use several tools like:
awk, grep, perl, ls, rm, mv, cmp etc and then
we should audit all of these to check if similar
things could occur.
If someone steps up to do the check (including
all the tools I missed) I would be very grateful.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-05-17 7:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-17 3:26 PROBLEM: 2.6.21 - "make modules" with GREP_OPTIONS="-C1" (and other) Martin Christoph
2007-05-17 4:24 ` Kok, Auke
2007-05-17 7:11 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox