* 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
* Re: 2.4.27+stdarg+gcc-3.4.1
2004-07-24 0:14 2.4.27+stdarg+gcc-3.4.1 J.A. Magallon
@ 2004-07-24 1:56 ` Keith Owens
0 siblings, 0 replies; 9+ messages in thread
From: Keith Owens @ 2004-07-24 1:56 UTC (permalink / raw)
To: J.A. Magallon; +Cc: Lista Linux-Kernel
On Sat, 24 Jul 2004 02:14:21 +0200,
"J.A. Magallon" <jamagallon@able.es> 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-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
^ permalink raw reply [flat|nested] 9+ messages in thread
* 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
* Re: 2.4.27+stdarg+gcc-3.4.1
2004-07-24 2:03 2.4.27+stdarg+gcc-3.4.1 Mikael Pettersson
@ 2004-07-24 13:19 ` Richard B. Johnson
2004-07-24 14:59 ` 2.4.27+stdarg+gcc-3.4.1 Keith Owens
0 siblings, 1 reply; 9+ messages in thread
From: Richard B. Johnson @ 2004-07-24 13:19 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: jamagallon, linux-kernel
On Sat, 24 Jul 2004, Mikael Pettersson wrote:
> 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
> >gcc -D__KERNEL__ -nostdinc -iwithprefix include
^^^^^^^_______
This will prevent it from using its private copy of stdarg.h.
There needs to be one in the -I<include-path>
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.27+stdarg+gcc-3.4.1
2004-07-24 13:19 ` 2.4.27+stdarg+gcc-3.4.1 Richard B. Johnson
@ 2004-07-24 14:59 ` Keith Owens
2004-07-25 0:03 ` 2.4.27+stdarg+gcc-3.4.1 Richard B. Johnson
2004-07-25 22:58 ` 2.4.27+stdarg+gcc-3.4.1 J.A. Magallon
0 siblings, 2 replies; 9+ messages in thread
From: Keith Owens @ 2004-07-24 14:59 UTC (permalink / raw)
To: root; +Cc: Mikael Pettersson, jamagallon, linux-kernel
On Sat, 24 Jul 2004 09:19:04 -0400 (EDT),
"Richard B. Johnson" <root@chaos.analogic.com> wrote:
>> >gcc -D__KERNEL__ -nostdinc -iwithprefix include
> ^^^^^^^_______
>
>This will prevent it from using its private copy of stdarg.h.
>
>There needs to be one in the -I<include-path>
No. -iwithprefix include picks up the private path. It is probably a
misconfigured gcc, but I am waiting on detailed diagnostics to be sure.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.27+stdarg+gcc-3.4.1
2004-07-24 14:59 ` 2.4.27+stdarg+gcc-3.4.1 Keith Owens
@ 2004-07-25 0:03 ` 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
1 sibling, 1 reply; 9+ messages in thread
From: Richard B. Johnson @ 2004-07-25 0:03 UTC (permalink / raw)
To: Keith Owens; +Cc: Mikael Pettersson, jamagallon, linux-kernel
On Sun, 25 Jul 2004, Keith Owens wrote:
> On Sat, 24 Jul 2004 09:19:04 -0400 (EDT),
> "Richard B. Johnson" <root@chaos.analogic.com> wrote:
> >> >gcc -D__KERNEL__ -nostdinc -iwithprefix include
> > ^^^^^^^_______
> >
> >This will prevent it from using its private copy of stdarg.h.
> >
> >There needs to be one in the -I<include-path>
>
> No. -iwithprefix include picks up the private path. It is probably a
> misconfigured gcc, but I am waiting on detailed diagnostics to be sure.
>
Well you just might know everything, but with some versions of
gcc, I have found it necessary to use -I`gcc --print-file-name=include`
on the command line. On this system it is:
Script started on Sat Jul 24 19:58:12 2004
# gcc --print-file-name=include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.66/include
# exit
Script done on Sat Jul 24 19:58:35 2004
And it isn't a mis-configured gcc although some versions of gcc
don't always do what you are expecting.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.27+stdarg+gcc-3.4.1
[not found] <200407250127.55782.vda@port.imtp.ilyichevsk.odessa.ua>
@ 2004-07-25 1:31 ` Keith Owens
0 siblings, 0 replies; 9+ messages in thread
From: Keith Owens @ 2004-07-25 1:31 UTC (permalink / raw)
To: Denis Vlasenko; +Cc: root, Mikael Pettersson, jamagallon, linux-kernel
On Sun, 25 Jul 2004 01:27:55 +0300,
Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> wrote:
>On Saturday 24 July 2004 17:59, Keith Owens wrote:
>> On Sat, 24 Jul 2004 09:19:04 -0400 (EDT),
>>
>> "Richard B. Johnson" <root@chaos.analogic.com> wrote:
>> >> >gcc -D__KERNEL__ -nostdinc -iwithprefix include
>> >
>> > ^^^^^^^_______
>> >
>> >This will prevent it from using its private copy of stdarg.h.
>> >
>> >There needs to be one in the -I<include-path>
>>
>> No. -iwithprefix include picks up the private path. It is probably a
>> misconfigured gcc, but I am waiting on detailed diagnostics to be sure.
>
>I have such 'misconfigured' gcc for a very long time.
>I compiled a lot of stuff with it.
>
>Nothing complains except the kernel.
Only the kernel adds '-nostdinc -withprefix include'.
>GCC_EXEC_PREFIX=/usr/app/gcc-3.3.3/lib/gcc-lib/
>
>fixes it for me.
Which makes it a local gcc build problem. I run 3.3.3 and it handles
-nostdinc -iwithprefix include correctly. Compile init/do_mounts.c
with gcc -v to get the list of include paths for your version of gcc,
stdarg.h will not be on those paths. Rebuild your version of gcc with
the correct paths.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.27+stdarg+gcc-3.4.1
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-25 22:58 ` J.A. Magallon
1 sibling, 0 replies; 9+ messages in thread
From: J.A. Magallon @ 2004-07-25 22:58 UTC (permalink / raw)
To: Keith Owens; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]
On 2004.07.24, Keith Owens wrote:
> On Sat, 24 Jul 2004 09:19:04 -0400 (EDT),
> "Richard B. Johnson" <root@chaos.analogic.com> wrote:
> >> >gcc -D__KERNEL__ -nostdinc -iwithprefix include
> > ^^^^^^^_______
> >
> >This will prevent it from using its private copy of stdarg.h.
> >
> >There needs to be one in the -I<include-path>
>
> No. -iwithprefix include picks up the private path. It is probably a
> misconfigured gcc, but I am waiting on detailed diagnostics to be sure.
>
Sorry, I won't have time to do more dignostics until wednesday.
I'll be back then...
Just one note. 2.6 builds fine with this gcc...
werewolf:~# gcc -v
Reading specs from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/li
b --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-thr
eads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-
clocale=gnu --disable-libunwind-exceptions --enable-languages=c,c++,ada,f77,objc
,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.4.1 (Mandrakelinux (Alpha 3.4.1-2mdk)
--
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-jam2 (gcc 3.4.1 (Mandrakelinux (Alpha 3.4.1-2mdk)) #1
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.4.27+stdarg+gcc-3.4.1
2004-07-25 0:03 ` 2.4.27+stdarg+gcc-3.4.1 Richard B. Johnson
@ 2004-07-26 18:49 ` Alexandre Oliva
0 siblings, 0 replies; 9+ messages in thread
From: Alexandre Oliva @ 2004-07-26 18:49 UTC (permalink / raw)
To: root; +Cc: Keith Owens, Mikael Pettersson, jamagallon, linux-kernel
On Jul 24, 2004, "Richard B. Johnson" <root@chaos.analogic.com> wrote:
> I have found it necessary to use -I`gcc --print-file-name=include`
Never ever do that. Use -isystem instead of -I, if you have to, but
having system headers handled as non-system headers may get you in
trouble.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}
^ 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