Re: Linux 2.6.16-rc1

From: Kurt Wall
Date: Wed Jan 18 2006 - 12:24:13 EST


On Wed, Jan 18, 2006 at 10:15:43AM +0100, Sam Ravnborg took 0 lines to write:

> The shell script check-dialog.sh is called which again do:
> echo "main() {}" | gcc -xc - -o /dev/null
>
> And it seems that gcc will trash /dev/null in your setup when doing
> this.
> One fix would be to avoid the two lines during distclean,
> but I may have to resort to a temporary file.
>
> Could you please confirm that the above command is the one that trashes
> /dev/null, then I will try to cook up something better.

Seems to be okay here with both gcc 3.4.4 and gcc 4.0.2:

[~]$ ls -l /dev/null
crw-rw-rw- 1 root sys 1, 3 1994-07-17 19:46 /dev/null
[~]$ echo "main() {}" | gcc -xc - -o /dev/null
[~]$ gcc -v
Reading specs from /usr/lib/gcc/x86_64-slackware-linux/3.4.4/specs
Configured with: ../gcc-3.4.4/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=x86_64-slackware-linux
--host=x86_64-slackware-linux
Thread model: posix
gcc version 3.4.4
[~]$ ls -l /dev/null
crw-rw-rw- 1 root sys 1, 3 1994-07-17 19:46 /dev/null
[~]$ echo "main() {}" | /usr/local/gcc4/bin/gcc -xc - -o /dev/null
[~]$ /usr/local/gcc4/bin/gcc -v
Using built-in specs.
Target: x86_64-slackware-linux
Configured with: ../gcc-4.0.2/configure --prefix=/usr/local/gcc4
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--disable-checking --with-gn-ld --verbose
--target=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 4.0.2
[~]$ ls -l /dev/null
crw-rw-rw- 1 root sys 1, 3 1994-07-17 19:46 /dev/null

Kurt
--
"The National Association of Theater Concessionaires reported that in
1986, 60% of all candy sold in movie theaters was sold to Roger Ebert."
-- D. Letterman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/