compile error in 2.3.18ac3 and some misc babblings

CaT (cat@zip.com.au)
Tue, 14 Sep 1999 19:52:08 +1000


make[3]: Entering directory `/usr/src/linux.2318/drivers/sound'
/usr/src/linux/Rules.make:263: target `opl3.o' given more than once in the same rule.
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -DCPU=686 -march=i686 -E -D__GENKSYMS__ sb_card.c
| /sbin/genksyms -k 2.3.18 > /usr/src/linux/include/linux/modules/sb_card.ver.tmp
/usr/src/linux/include/linux/modules/sb_card.ver is unchanged
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -DCPU=686 -march=i686 -DCONFIG_SOUND_SBDSP -DCONFIG_SOUND_UART401 -DEXPORT_SYMTAB -c opl3.c
opl3.c: In function `modparmio_setup':
opl3.c:1225: `io' undeclared (first use in this function)
opl3.c:1225: (Each undeclared identifier is reported only once
opl3.c:1225: for each function it appears in.)
make[3]: *** [opl3.o] Error 1
make[3]: Leaving directory `/usr/src/linux.2318/drivers/sound'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux.2318/drivers/sound'
make[1]: *** [_subdir_sound] Error 2
make[1]: Leaving directory `/usr/src/linux.2318/drivers'
make: *** [_dir_drivers] Error 2

This was after recersing ac2 patch, putting in ac3, make mrproper, make
oldconfig, make dep and make bzlilo.

Everything is built into the kernel except for bsd compression which
gives an erronuous error when you try to select it to be built into
the kernel. It says that due to something else being a module it has
to be... which is wrong as nothing else is a module.

In arch/i386/Makefile there is this:

ifdef CONFIG_MK7
CFLAGS := $(CFLAGS) -DCPU=686 -march=pentiumpro -mpentiumpro -malign-functions=4 -fschedule-insns2 -mwide-multiply -fexpensive-optimizations
CFLAGS += $(shell if $(CC) -march=i686 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=i686"; fi)
AFLAGS := $(AFLAGS) -DCPU=686
endif

-march=pentiumpro -mpentiumpro is overkill. -march option includes -mcpu
(which -m alone is an alias of) so this can be written as -march=pentiumpro
and achieve the same effect.

Better still, to keep it inline with the other lines, change it to
-march=i686.

Also,

CFLAGS_NSR := -fno-strength-reduce

Isn't this like for real old compilers where this is buggy? I know that in
gcc 2.7.2.3+? this is automatically turned off. I've had it commented out
in my kernel compiles for months now and never had the kernel screw up
on me wholly. I've always used egcs 1.0.3+.

Wouldn't be an idea to remove it?

-- 
CaT (cat@zip.com.au)                       URL: http://www.zip.com.au/dev/null

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/