PROBLEM: make bzImage fails when LANG set

PROBLEM: make bzImage fails when LANG set

Post by Maxim » Mon, 17 Mar 2003 19:00:16



2
I'm on a lfs 4.0 system.  I installed the kernel witouth any problem.
 But then I eventually needed to recompile, and it failed during the
make bzImage.  Outputing this :

Dans le fichier inclus partir de
/usr/src/linux-2.4.19/include/linux/wait.h:13,
          partir de /usr/src/linux-2.4.19/include/linux/fs.h:12,
          partir de /usr/src/linux-2.4.19/include/linux/capability.h:17,
          partir de /usr/src/linux-2.4.19/include/linux/binfmts.h:5,
          partir de /usr/src/linux-2.4.19/include/linux/sched.h:9,
          partir de /usr/src/linux-2.4.19/include/linux/mm.h:4,
          partir de sched.c:23:
/usr/src/linux-2.4.19/include/linux/kernel.h:10:20: stdarg.h: Aucun
fichier ou rpertoire de ce type
Dans le fichier inclus partir de
/usr/src/linux-2.4.19/include/linux/wait.h:13,

          partir de /usr/src/linux-2.4.19/include/linux/fs.h:12,
          partir de /usr/src/linux-2.4.19/include/linux/capability.h:17,
          partir de /usr/src/linux-2.4.19/include/linux/binfmts.h:5,
          partir de /usr/src/linux-2.4.19/include/linux/sched.h:9,
          partir de /usr/src/linux-2.4.19/include/linux/mm.h:4,
          partir de sched.c:23:
/usr/src/linux-2.4.19/include/linux/kernel.h:73: erreur d'analyse
syntaxique avant ? va_list ?
/usr/src/linux-2.4.19/include/linux/kernel.h:73: AVERTIS*T:
dclaration de fonction n'est pas un prototype
/usr/src/linux-2.4.19/include/linux/kernel.h:76: erreur d'analyse
syntaxique avant ? va_list ?
/usr/src/linux-2.4.19/include/linux/kernel.h:76: AVERTIS*T:
dclaration de fonction n'est pas un prototype
/usr/src/linux-2.4.19/include/linux/kernel.h:80: erreur d'analyse
syntaxique avant ? va_list ?
/usr/src/linux-2.4.19/include/linux/kernel.h:80: AVERTIS*T:
dclaration de fonction n'est pas un prototype
make[2]: *** [sched.o] Erreur 1
make[2]: Quitte le rpertoire `/usr/src/linux-2.4.19/kernel'
make[1]: *** [first_rule] Erreur 2
make[1]: Quitte le rpertoire `/usr/src/linux-2.4.19/kernel'
make: *** [_dir_kernel] Erreur 2

Notice it is in french.  I search on the web for similar problem, and
find a few examples, all in foreing language.  Nobody seemed to know how
to solve this.  I then remembered I added these lines to my /etc/profile:

export LANG=fr
export LC_ALL=fr_CA

By removing them, the kernel compiled just fine.  Stange bug!

Hope this helps

Maxime

3
make bzImage LANG

4

Mar 11 13:43:06 EST 200

5
not applicable

6
?

7.1
Gnu make               3.79.1
util-linux             2.11u
mount                  2.11u
modutils               2.4.19
e2fsprogs              1.27
PPP                    2.4.1
Linux C Library        2.2.5
Dynamic linker (ldd)   2.2.5
Linux C++ Library      5.0.0
Procps                 2.0.7
Net-tools              1.60
Kbd                    1.06
Sh-utils               2.0

7.2
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 1
model name      : AMD-K7(tm) Processor
stepping        : 2
cpu MHz         : 500.032
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat mmx syscall mmxext 3dnowext 3dnow
bogomips        : 996.14

7.3
empty

7.4
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial(auto)
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
b400-b43f : Ensoniq ES1371 [AudioPCI-97]
  b400-b43f : es1371
b800-b81f : Realtek Semiconductor Co., Ltd. RTL-8029(AS)
d000-d01f : VIA Technologies, Inc. UHCI USB (#2)
  d000-d01f : usb-uhci
d400-d41f : VIA Technologies, Inc. UHCI USB
  d400-d41f : usb-uhci

00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000f0000-000fffff : System ROM
00100000-0bffbfff : System RAM
  00100000-00311f4e : Kernel code
  00311f4f-003b5a9f : Kernel data
0bffc000-0bffefff : ACPI Tables
0bfff000-0bffffff : ACPI Non-volatile Storage
e0000000-e1efffff : PCI Bus #01
  e0000000-e0ffffff : nVidia Corporation Riva TnT2 [NV5]
e1f00000-e3ffffff : PCI Bus #01
  e2000000-e3ffffff : nVidia Corporation Riva TnT2 [NV5]
e4000000-e7ffffff : VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x]
ffff0000-ffffffff : reserved

7.5
command not installed

7.6
Attached devices: none

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://www.veryComputer.com/
Please read the FAQ at  http://www.veryComputer.com/

 
 
 

PROBLEM: make bzImage fails when LANG set

Post by Helge Haftin » Mon, 17 Mar 2003 19:20:11



> Notice it is in french.  I search on the web for similar problem, and
> find a few examples, all in foreing language.  Nobody seemed to know how
> to solve this.  I then remembered I added these lines to my /etc/profile:

> export LANG=fr
> export LC_ALL=fr_CA

> By removing them, the kernel compiled just fine.  Stange bug!

Strange indeed. I never had any problems compiling with LANG=no_NO
I don't set LC_ALL though.

Helge Hafting

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

PROBLEM: make bzImage fails when LANG set

Post by Arado » Mon, 17 Mar 2003 20:10:15


On Sun, 16 Mar 2003 11:53:48 -0500


> export LANG=fr
> export LC_ALL=fr_CA

> By removing them, the kernel compiled just fine.  Stange bug!


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

PROBLEM: make bzImage fails when LANG set

Post by James Watkins-Harve » Mon, 17 Mar 2003 20:40:14


Hi,

Quote:> /usr/src/linux-2.4.19/include/linux/kernel.h:10:20: stdarg.h: Aucun fichier ou rpertoire de ce type
> /usr/src/linux-2.4.19/include/linux/kernel.h:73: erreur d'analyse syntaxique avant ? va_list ?
> /usr/src/linux-2.4.19/include/linux/kernel.h:73: AVERTIS*T:  dclaration de fonction n'est pas un prototype
> /usr/src/linux-2.4.19/include/linux/kernel.h:76: erreur d'analyse syntaxique avant ? va_list ?
> /usr/src/linux-2.4.19/include/linux/kernel.h:76: AVERTIS*T: dclaration de fonction n'est pas un prototype
> /usr/src/linux-2.4.19/include/linux/kernel.h:80: erreur d'analyse syntaxique avant ? va_list ?
> /usr/src/linux-2.4.19/include/linux/kernel.h:80: AVERTIS*T: dclaration de fonction n'est pas un prototype

The first line just means that the stdarg.h file cannot be found; following lines are consequence of the va_list macro not being included.  Well stdarg.h is provided by GCC, so it seems to me like this is rather a GCC problem...  Let's continue, in case a defective makefile would be in cause...

Quote:> Notice it is in french.  I search on the web for similar problem, and
> find a few examples, all in foreing language.  Nobody seemed to know how
> to solve this.  I then remembered I added these lines to my /etc/profile:

> export LANG=fr
> export LC_ALL=fr_CA

> By removing them, the kernel compiled just fine.  Stange bug!

I don't know very well about the LC_ALL consequence, but it seems that GCC use it (and also LANG) for some reason...

Guess it could help including the GCC version (gcc -v) and the location of any stdarg.h file on your drive (locate stdarg.h  or  find /usr -name stdarg.h, the second may be long).  If you have some spare time, also try using only the LANG, then only the LC_ALL.

James Watkins-Harvey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://www.veryComputer.com/
Please read the FAQ at  http://www.veryComputer.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://www.veryComputer.com/
Please read the FAQ at  http://www.veryComputer.com/

 
 
 

PROBLEM: make bzImage fails when LANG set

Post by Sam Ravnbor » Mon, 17 Mar 2003 20:50:12



> 2

> Notice it is in french.  I search on the web for similar problem, and
> find a few examples, all in foreing language.  Nobody seemed to know how
> to solve this.  I then remembered I added these lines to my /etc/profile:

Keith Owens once posted this snippet:
-nostdinc $(shell LANG=C $(CC) -print-search-dirs | sed -ne 's/install:+\(.*\)/-I \1include/gp')

Try searching for "How to do -nostdinc?".

        Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

PROBLEM: make bzImage fails when LANG set

Post by Keith Owen » Wed, 19 Mar 2003 02:40:14


On Sun, 16 Mar 2003 11:53:48 -0500,


>I'm on a lfs 4.0 system.  I installed the kernel witouth any problem.
> But then I eventually needed to recompile, and it failed during the
>make bzImage.  Outputing this :

>Dans le fichier inclus partir de
>/usr/src/linux-2.4.19/include/linux/wait.h:13,
>           partir de /usr/src/linux-2.4.19/include/linux/fs.h:12,

Index: 19.1/Makefile
--- 19.1/Makefile Sat, 03 Aug 2002 11:13:10 +1000 kaos (linux-2.4/T/c/50_Makefile 1.1.2.15.1.2.2.25.2.2.1.17.1.4.1.29.1.40.1.30 644)

 # 'kbuild_2_4_nostdinc :=' or -I/usr/include for kernel code and you are not UML
 # then your code is broken!  KAO.

-kbuild_2_4_nostdinc    := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
+kbuild_2_4_nostdinc    := -nostdinc $(shell LANG=C $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
 export kbuild_2_4_nostdinc

 export CPPFLAGS CFLAGS CFLAGS_KERNEL AFLAGS AFLAGS_KERNEL

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Linux Kernel 2.4.7 does not create bzImage (with make bzImage)

    [Please keep CC] I'm having real weird problem: 2.4.7 kernel does
    not create bzImage with

        make bzImage

    The filename is "bzImage", but it is not what it says. See full
    listing below.

    1. Whom should I contact about the kernel make scripts?
    2. Has anyone else seen this error?
    3. Can the bzImage's bit make it say it's "bzImage" ?

    Jari

///////////////////////////////////////////////////////////////////////

    - Downloaded 2.4.7 full package from kernel.org
    - compiled it with

    make clean && make dep && make bzImage && make modules
    && make modules_install

    - All went ok
    - Copied arch/i386/boot/bzImage to /boot/vmlinuz-2.4.7
    - configured /etc/lilo.conf

image=/boot/vmlinuz-2.4.7
        label=2.4
        read-only

    - ran lilo ... ERROR!

Fatal: Kernel /vmlinuz is too big

    - The LILO developer tells, that the problem is not in LILO,
    - Hm, but this error happens only if it's zImage, but I did
      make bzImage

bzImage that is created in arch/i386/boot:

    -rw-r--r--    1 root     root       962241 Jul 28 22:48 bzImage

but It isn't an bzImage!! (ran "file bzImage")

    arch/i386/boot/bzImage:     Linux kernel x86 boot executable RO-rootFS, root_dev=0x1605, Normal VGA

But the old /boot/vmlinuz is bzImage


2. Media Vision + Sanyo H94A 2x CDROM

3. Error while making 2.4.5 bzImage with CONFIG_MPENTIUMIII=y

4. sgml2html, where to get?

5. making bzImage of 2.2.5 on SuSE 6

6. Who knows ? PGCC vs Intel MMX ?

7. 2.4.15-pre7 bzImage fails

8. Texas Persistent Store

9. Building bzImage with 2.3.99-pre3 fails

10. make bzImage fails on ram disk code in 2.5.5

11. docsearch and Lang!=en_US (Lang=fr_CA)

12. make bzImage fails on 2.5.37 2.5.38 (linking) APIC

13. make bzImage fails