Professional Web Applications Themes

Problem in compiling Linux-2.4.18 with gcc3 - Linux Setup, Configuration & Administration

Hi! I am trying to compile linux-2.4.18 with gcc-3.2.3. Running make bzImage creates a file bzImage of size 19152 bytes only. This is the output of ls -l in arch/i386/boot directory: -rw-r--r-- 1 vrihad users 2833 Aug 6 2001 Makefile -rwxr-xr-x 1 vrihad users 512 Jul 31 16:17 bbootsect -rw-r--r-- 1 vrihad users 2332 Jul 31 16:17 bbootsect.o -rw-r--r-- 1 vrihad users 8718 Jul 31 16:17 bbootsect.s -rw-r--r-- 1 vrihad users 10623 Nov 10 2001 bootsect.S -rwxr-xr-x 1 vrihad users 4759 Jul 31 16:52 bsetup -rw-r--r-- 1 vrihad users 12596 Jul 31 16:52 bsetup.o -rw-r--r-- 1 vrihad users 48263 Jul ...

  1. #1

    Default Problem in compiling Linux-2.4.18 with gcc3

    Hi!

    I am trying to compile linux-2.4.18 with gcc-3.2.3. Running make
    bzImage creates a file bzImage of size 19152 bytes only. This is the
    output of ls -l in arch/i386/boot directory:

    -rw-r--r-- 1 vrihad users 2833 Aug 6 2001 Makefile
    -rwxr-xr-x 1 vrihad users 512 Jul 31 16:17 bbootsect
    -rw-r--r-- 1 vrihad users 2332 Jul 31 16:17 bbootsect.o
    -rw-r--r-- 1 vrihad users 8718 Jul 31 16:17 bbootsect.s
    -rw-r--r-- 1 vrihad users 10623 Nov 10 2001 bootsect.S
    -rwxr-xr-x 1 vrihad users 4759 Jul 31 16:52 bsetup
    -rw-r--r-- 1 vrihad users 12596 Jul 31 16:52 bsetup.o
    -rw-r--r-- 1 vrihad users 48263 Jul 31 16:52 bsetup.s
    -rw-r--r-- 1 vrihad users 19152 Jul 31 16:52 bzImage
    drwxr-xr-x 2 vrihad users 4096 Jul 31 16:52 compressed
    -rw-r--r-- 1 vrihad users 974 Sep 15 2001 install.sh
    -rw-r--r-- 1 vrihad users 26229 Feb 26 2002 setup.S
    drwxr-xr-x 2 vrihad users 4096 Jul 31 16:18 tools
    -rw-r--r-- 1 vrihad users 38962 Jul 5 2001 video.S

    The size of vmlinux is over 2.5Mb: ls -l vmlinux

    -rwxr-xr-x 1 vrihad users 2595279 Jul 31 16:52 vmlinux

    Following is the output of make bzImage from the point where vmlinux
    is built:

    make[1]: Leaving directory `/usr/local/src/linux-2.4.18/arch/i386/lib'
    ld -m elf_i386 -T /usr/local/src/linux-2.4.18/arch/i386/vmlinux.lds -e
    stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
    init/version.o \
    --start-group \
    arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
    mm/mm.o fs/fs.o ipc/ipc.o \
    drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
    drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o
    drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o
    drivers/pci/driver.o drivers/pnp/pnp.o drivers/video/video.o
    drivers/usb/usbdrv.o \
    net/network.o \
    /usr/local/src/linux-2.4.18/arch/i386/lib/lib.a
    /usr/local/src/linux-2.4.18/lib/lib.a
    /usr/local/src/linux-2.4.18/arch/i386/lib/lib.a \
    --end-group \
    -o vmlinux
    nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw]
    \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
    make[1]: Entering directory
    `/usr/local/src/linux-2.4.18/arch/i386/boot'
    gcc -E -D__KERNEL__ -I/usr/local/src/linux-2.4.18/include
    -D__BIG_KERNEL__ -D__ASSEMBLY__ -traditional -DSVGA_MODE=NORMAL_VGA
    setup.S -o bsetup.s
    as -o bsetup.o bsetup.s
    bsetup.s: Assembler messages:
    bsetup.s:1596: Warning: indirect lcall without `*'
    ld -m elf_i386 -Ttext 0x0 -s --oformat binary -e begtext -o bsetup
    bsetup.o
    make[2]: Entering directory
    `/usr/local/src/linux-2.4.18/arch/i386/boot/compressed'
    tmppiggy=_tmp_$$piggy; \
    rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
    objcopy -O binary -R .note -R .comment -S
    /usr/local/src/linux-2.4.18/vmlinux $tmppiggy; \
    gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
    echo "SECTIONS { .data : { input_len = .; LONG(input_data_end -
    input_data) input_data = .; *(.data) input_data_end = .; }}" >
    $tmppiggy.lnk; \
    ld -m elf_i386 -r -o piggy.o -b binary $tmppiggy.gz -b elf32-i386 -T
    $tmppiggy.lnk; \
    rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
    ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o
    piggy.o
    make[2]: Leaving directory
    `/usr/local/src/linux-2.4.18/arch/i386/boot/compressed'
    objcopy -O binary -R .note -R .comment -S compressed/bvmlinux
    compressed/bvmlinux.out
    tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT >
    bzImage
    Root device is (3, 8)
    Boot sector 512 bytes.
    Setup is 4759 bytes.
    System is 13 kB

    Only one warning is issued by the assembler; i.e.
    bsetup.s:1596: Warning: indirect lcall without `*'

    What could be the problem?

    Thanks in advance
    vrihad
    vrihad@myway.com Guest

  2. #2

    Default Re: Problem in compiling Linux-2.4.18 with gcc3

    [email]vrihadmyway.com[/email] wrote:
    > Hi!
    > I am trying to compile linux-2.4.18 with gcc-3.2.3. Running make
    > bzImage creates a file bzImage of size 19152 bytes only. This is the
    > output of ls -l in arch/i386/boot directory:
    ....
    > What could be the problem?
    Your gcc version? Try /usr/src/linux-*/Doentation/Changes,
    which version is recommended.

    --
    Michael Heiming

    Remove +SIGNS and www. if you expect an answer, sorry for
    inconvenience, but I get tons of SPAM
    Michael Heiming Guest

  3. #3

    Default Re: Problem in compiling Linux-2.4.18 with gcc3

    On 31 Jul 2003 05:36:22 -0700, [email]vrihadmyway.com[/email] <vrihadmyway.com> wrote:
    >
    >
    > Hi!
    >
    > I am trying to compile linux-2.4.18 with gcc-3.2.3. Running make
    > bzImage creates a file bzImage of size 19152 bytes only. This is the
    > output of ls -l in arch/i386/boot directory:
    >
    > -rw-r--r-- 1 vrihad users 2833 Aug 6 2001 Makefile
    > -rwxr-xr-x 1 vrihad users 512 Jul 31 16:17 bbootsect
    > -rw-r--r-- 1 vrihad users 2332 Jul 31 16:17 bbootsect.o
    > -rw-r--r-- 1 vrihad users 8718 Jul 31 16:17 bbootsect.s
    > -rw-r--r-- 1 vrihad users 10623 Nov 10 2001 bootsect.S
    > -rwxr-xr-x 1 vrihad users 4759 Jul 31 16:52 bsetup
    > -rw-r--r-- 1 vrihad users 12596 Jul 31 16:52 bsetup.o
    > -rw-r--r-- 1 vrihad users 48263 Jul 31 16:52 bsetup.s
    > -rw-r--r-- 1 vrihad users 19152 Jul 31 16:52 bzImage
    > drwxr-xr-x 2 vrihad users 4096 Jul 31 16:52 compressed
    > -rw-r--r-- 1 vrihad users 974 Sep 15 2001 install.sh
    > -rw-r--r-- 1 vrihad users 26229 Feb 26 2002 setup.S
    > drwxr-xr-x 2 vrihad users 4096 Jul 31 16:18 tools
    > -rw-r--r-- 1 vrihad users 38962 Jul 5 2001 video.S
    >
    > The size of vmlinux is over 2.5Mb: ls -l vmlinux
    >
    > -rwxr-xr-x 1 vrihad users 2595279 Jul 31 16:52 vmlinux
    >

    You sure built a lot of stuff into the kernel....


    <snip>

    >
    > What could be the problem?
    >
    > Thanks in advance
    > vrihad

    What problem? Error messages are often mistaken and often irrelevant.


    Have you TRIED to boot this kernel?


    Alan



    --

    For Linux/Bash users: Eliminate spam with
    the Mailbox-Sentry-Program. See the thread
    MSP (v2) on comp.mail.misc for the scripts and docs.

    Alan Connor Guest

  4. #4

    Default Re: Problem in compiling Linux-2.4.18 with gcc3

    Hi!
    > > The size of vmlinux is over 2.5Mb: ls -l vmlinux
    > >
    > > -rwxr-xr-x 1 vrihad users 2595279 Jul 31 16:52 vmlinux
    > You sure built a lot of stuff into the kernel....
    Yes, because this kernel is built for a specific hardware only. I don't
    want to keep modules.
    > > What could be the problem?
    > What problem? Error messages are often mistaken and often irrelevant.
    > Have you TRIED to boot this kernel?
    It does not boot at all. By the way is it possible to compress a 2.5Mb
    kernel to a size of 19Kb; i.e. over 99% compression? I don't think so.

    cheers
    vrihad
    vrihad@myway.com Guest

  5. #5

    Default Re: Problem in compiling Linux-2.4.18 with gcc3

    Hi!

    > Your gcc version? Try /usr/src/linux-*/Doentation/Changes,
    > which version is recommended.
    Got it. Thanks. They do not recommend gcc 3. So I am reverting back to
    gcc 2.95.

    cheers
    vrihad
    vrihad@myway.com Guest

Similar Threads

  1. Problem compiling Tk-804.027
    By lupey in forum PERL Modules
    Replies: 4
    Last Post: August 15th, 11:56 PM
  2. Compiling PHP 5.0.0b2 On Linux
    By Keith Bowes in forum PHP Development
    Replies: 0
    Last Post: November 1st, 03:25 AM
  3. Replies: 0
    Last Post: September 5th, 08:42 AM
  4. Problem compiling gcc 3.3.
    By Larry Lindstrom in forum Sun Solaris
    Replies: 9
    Last Post: July 27th, 08:28 AM
  5. DB2 V.8.1 FP2 problem with compiling SP on AIX
    By Adam Kucharski in forum IBM DB2
    Replies: 5
    Last Post: July 23rd, 07:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139