public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.4.27+stdarg+gcc-3.4.1
@ 2004-07-24  2:03 Mikael Pettersson
  2004-07-24 13:19 ` 2.4.27+stdarg+gcc-3.4.1 Richard B. Johnson
  0 siblings, 1 reply; 9+ messages in thread
From: Mikael Pettersson @ 2004-07-24  2:03 UTC (permalink / raw)
  To: jamagallon, linux-kernel

On Sat, 24 Jul 2004 02:14:21 +0200, J.A. Magallon wrote:
>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-alia=
>sing -fno-common -fomit-frame-pointer -mpreferred-stack-boundary=3D2 -msoft=
>-float -march=3Dpentium3 -fno-unit-at-a-time   -DKBUILD_BASENAME=3Ddo_mount=
>s -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 functi=
>on)
>init/do_mounts.c:424: error: (Each undeclared identifier is reported only o=
>nce
>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

gcc picks stdarg.h from its own private install directory,
which you specified with --prefix=$prefix at configure-time.
$prefix/lib/gcc/i686-pc-linux-gnu/3.4.1/include/stdarg.h in my case.

I suspect you either mis-configured your gcc-3.4.1, or somehow
broke the installation.

/Mikael

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <200407250127.55782.vda@port.imtp.ilyichevsk.odessa.ua>]
* 2.4.27+stdarg+gcc-3.4.1
@ 2004-07-24  0:14 J.A. Magallon
  2004-07-24  1:56 ` 2.4.27+stdarg+gcc-3.4.1 Keith Owens
  0 siblings, 1 reply; 9+ messages in thread
From: J.A. Magallon @ 2004-07-24  0:14 UTC (permalink / raw)
  To: Lista Linux-Kernel; +Cc: Mikael Pettersson

[-- Attachment #1: Type: text/plain, Size: 1490 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2004-07-26 19:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-24  2:03 2.4.27+stdarg+gcc-3.4.1 Mikael Pettersson
2004-07-24 13:19 ` 2.4.27+stdarg+gcc-3.4.1 Richard B. Johnson
2004-07-24 14:59   ` 2.4.27+stdarg+gcc-3.4.1 Keith Owens
2004-07-25  0:03     ` 2.4.27+stdarg+gcc-3.4.1 Richard B. Johnson
2004-07-26 18:49       ` 2.4.27+stdarg+gcc-3.4.1 Alexandre Oliva
2004-07-25 22:58     ` 2.4.27+stdarg+gcc-3.4.1 J.A. Magallon
     [not found] <200407250127.55782.vda@port.imtp.ilyichevsk.odessa.ua>
2004-07-25  1:31 ` 2.4.27+stdarg+gcc-3.4.1 Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2004-07-24  0:14 2.4.27+stdarg+gcc-3.4.1 J.A. Magallon
2004-07-24  1:56 ` 2.4.27+stdarg+gcc-3.4.1 Keith Owens

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