xerid
04-12-2001, 09:11 PM
Whenever I compile the kernel, I always seem to get warnings like the following
file.c: Warning: pasting would not give a valid token.
this usually happens with cdrom.c or floppy.c
why, and how can I avoid it.
Craig McPherson
04-13-2001, 04:14 AM
If the kernel actually finishes compiling, and you wind up with a working kernel, then you don't have to worry about it.
Often, when you see warnings, the compile will bomb out with a real error sooner or later, but if it does finish building, you're fine.
The kernel source is absolutely bloody huge, and with several hundred thousand possible kernel configuration combinations, and hundreds of thousands of combinations of other factors, there's no guarantee that a kernel compile will actually work in a given way on a given system. If it does bomb out on you, try changing your configuration up some. If it bombs out on APM support, try removing APM support and trying again. If it still doesn't compile, try a different version of the kernel source: I like to wait until the next version comes out, but a few times I've had to hop down to the previous version because the current version wouldn't compile right on my machine. It just happens. But as long as you're just getting warnings, you don't have to worry about anything.