public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.21: kbuild changes broke filenames with commas
@ 2002-06-09 16:58 Russell King
  2002-06-09 17:11 ` Upper limits to number of processes / threads in Linux / ia32?? M. Edward (Ed) Borasky
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Russell King @ 2002-06-09 16:58 UTC (permalink / raw)
  To: linux-kernel

With the latest kbuild version in 2.5.21, we are unable to build the
following files:

linux/drivers/block/smart1,2.h
linux/drivers/scsi/53c7,8xx.c
linux/drivers/scsi/53c7,8xx.h
linux/drivers/scsi/53c7,8xx.scr
linux/arch/arm/mm/proc-arm6,7.S
linux/arch/arm/mm/proc-arm2,3.S

This is because we end up passing gcc the following argument:

	-Wp,-MD,.proc-arm6,7.o.d

which gets passed to cpp0 as:

	-MD .proc-arm6 7.o.d
	              ^ space, not comma

and therefore cpp0 sees "-MD", ".proc-arm6" and "7.o.d" as separate
arguments.

There seems to be two solutions:

1. renaming all the above files to contain '_' instead of ','.
2. see if kbuild can use the DEPENDENCIES_OUTPUT environment variable

Kai pointed out that we've already got one exception in kbuild to fixup
the filename for KBUILD_BASENAME (, -> _ and that's not a weird smilie!)
so (1) is probably going to be better, and we can get rid of the special
"comma" handling.

Either way, I plan to rename the two ARM files.  That leaves the 53c7,8xx
driver and that block header file.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: 2.5.21: kbuild changes broke filenames with commas
@ 2002-06-11 23:55 Keith Owens
  2002-06-12  0:27 ` Kai Germaschewski
  0 siblings, 1 reply; 20+ messages in thread
From: Keith Owens @ 2002-06-11 23:55 UTC (permalink / raw)
  To: linux-kernel

On Tuesday 11 June 2002 18:31, Russell King wrote:
> On Tue, Jun 11, 2002 at 06:08:22PM +0200, Daniel Phillips wrote:
> So now we have two places where the same yucky substing of commas to
> something more palettable happens.

So what?  Users want filenames with ',' in them, the build system
should cope with it.  Restricting what the user is allowed to do to
what the build system can handle is the wrong approach.  The build
system already has to replace '-' with '_', changing comma as well is
not a problem.  Or are you going to say that '-' is not allowed in
filenames either?

>Now, what if we had:
> 
> 	foo,bar.c
> 
> and
> 
> 	foo_bar.c
> 
> in the same directory?  The kbuild system goes wrong, destroying dependency
> information, using the wrong KBUILD_BASENAME.  Oops.  I guess we papered
> over a bug by allowing commas in filenames.

Not in kbuild 2.5.  I handle this case correctly for the -MD dependency
filename.  Try it and see.

KBUILD_BASENAME and KBUILD_OBJECTNAME could suffer from name
collisions.  BASENAME is only used inside objects so duplicate
basenames are not a problem.

OBJECTNAME is externally visible, it is used in Rusty's rationalization
of boot and module parameters.  The only time that OBJECTNAME collision
would be a problem is when there are two modules called foo,bar and
foo_bar.  Having two modules that differ by a single character in the
middle of the name is going to cause more problems than just option
collision.  BTW, the existing build system does not support
KBUILD_OBJECTNAME so Rusty's code cannot go in.

> Both kbuild-2.5 and the existing kernel build make heavy use of the
> "$(*F)" notation.  Should we really be putting semi-obsolete features
> into either of the kernel build system?

That would be worth changing, it is just a textual change with no
effect on the code.


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

end of thread, other threads:[~2002-06-13 20:12 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-09 16:58 2.5.21: kbuild changes broke filenames with commas Russell King
2002-06-09 17:11 ` Upper limits to number of processes / threads in Linux / ia32?? M. Edward (Ed) Borasky
2002-06-09 18:02 ` 2.5.21: kbuild changes broke filenames with commas Kai Germaschewski
2002-06-09 18:34 ` Tom Rini
2002-06-10 23:02 ` Keith Owens
2002-06-11  7:39   ` Russell King
2002-06-11 11:11     ` Thunder from the hill
2002-06-11 11:21       ` Russell King
2002-06-11 12:16         ` Thunder from the hill
2002-06-11 13:01           ` Russell King
2002-06-12 14:36           ` Ingo Oeser
2002-06-12 18:10             ` Thunder from the hill
2002-06-13 20:12         ` Thunder from the hill
2002-06-11 16:08     ` Daniel Phillips
2002-06-11 16:14       ` Alexander Viro
2002-06-11 16:22         ` Daniel Phillips
2002-06-11 16:31       ` Russell King
2002-06-11 16:36         ` Daniel Phillips
  -- strict thread matches above, loose matches on Subject: below --
2002-06-11 23:55 Keith Owens
2002-06-12  0:27 ` Kai Germaschewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox