Skip to contentSkip to conversation

2.4.27+stdarg+gcc-3.4.1

DISCUSSION J.A. Magallon 2 participants 2 messages Jul 24, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

With gcc-3.4.1 I get the following error when building 2.4.27-rc3. Any suggestion ?

gcc -D__KERNEL__ -nostdinc -iwithprefix include -I/usr/src/linux-2.4.27-rc3-jam1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -mpreferred-stack-boundary=2 -msoft-float -march=pentium3 -fno-unit-at-a-time -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
init/do_mounts.c: In function `change_floppy':
init/do_mounts.c:424: error: `va_list' undeclared (first use in this function) init/do_mounts.c:424: error: (Each undeclared identifier is reported only once init/do_mounts.c:424: error: for each function it appears in.) init/do_mounts.c:424: error: syntax error before "args" init/do_mounts.c:425: warning: implicit declaration of function va_start' init/do_mounts.c:425: error: args' undeclared (first use in this function) init/do_mounts.c:426: warning: implicit declaration of function vsprintf' init/do_mounts.c:427: warning: implicit declaration of function va_end'
make: *** [init/do_mounts.o] Error 1

As a side note:

./include/acpi/platform/aclinux.h:

#define ACPI_USE_SYSTEM_CLIBRARY

??

--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
Mandrakelinux release 10.1 (Alpha 1) for i586
Linux 2.6.8-rc1-jam1 (gcc 3.4.1 (Mandrakelinux (Cooker) 3.4.1-1mdk)) #1

#1 lore raw
Quoted 6 lines · J.A. Magallon

With gcc-3.4.1 I get the following error when building 2.4.27-rc3. Any suggestion ?

gcc -D__KERNEL__ -nostdinc -iwithprefix include -I/usr/src/linux-2.4.27-rc3-jam1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -mpreferred-stack-boundary=2 -msoft-float -march=pentium3 -fno-unit-at-a-time -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
init/do_mounts.c: In function `change_floppy':
init/do_mounts.c:424: error: `va_list' undeclared (first use in this function)

Looks like you applied some additional patches over 2.4.27-rc3, that command line is non-standard. Run

gcc -D__KERNEL__ -nostdinc -iwithprefix include \
    -I/usr/src/linux-2.4.27-rc3-jam1/include -Wall \
    -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common \
    -fomit-frame-pointer -mpreferred-stack-boundary=2 -msoft-float \
    -march=pentium3 -fno-unit-at-a-time   -DKBUILD_BASENAME=do_mounts -c \
    -o init/do_mounts.s init/do_mounts.c -E

Mail the results from

egrep -B20 -A5 'va_list|stdarg\.h' init/do_mounts.i