Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Error building kernel Suse 11.1

  1. #1

    Default Error building kernel Suse 11.1

    I am trying to build a new kernel (2.6.27.29-0.1-default) to exclude generic processor support. I get the following error in make:

    CC [M] drivers/ata/sata_sil.o
    drivers/ata/sata_sil.c: In function :
    drivers/ata/sata_sil.c:608: error: array type has incomplete element type
    drivers/ata/sata_sil.c:610: error: field name not in record or union initializer
    drivers/ata/sata_sil.c:610: error: (near initialization for )
    drivers/ata/sata_sil.c:611: error: field name not in record or union initializer
    drivers/ata/sata_sil.c:611: error: (near initialization for )
    drivers/ata/sata_sil.c:612: error: implicit declaration of function
    drivers/ata/sata_sil.c:612: error: undeclared (first use in this function)
    drivers/ata/sata_sil.c:612: error: (Each undeclared identifier is reported only once
    drivers/ata/sata_sil.c:612: error: for each function it appears in.)
    drivers/ata/sata_sil.c:613: error: undeclared (first use in this function)
    drivers/ata/sata_sil.c:616: error: field name not in record or union initializer
    drivers/ata/sata_sil.c:616: error: (near initialization for )
    drivers/ata/sata_sil.c:621: error: implicit declaration of function
    drivers/ata/sata_sil.c:621: warning: initialization makes pointer from integer without a cast
    drivers/ata/sata_sil.c:624: error: dereferencing pointer to incomplete type
    drivers/ata/sata_sil.c:608: warning: unused variable
    make[2]: *** [drivers/ata/sata_sil.o] Error 1
    make[1]: *** [drivers/ata] Error 2
    make: *** [drivers] Error 2

    Can anyone help please? Is it possible to exclude this driver in make xconfig?

    Thanks for any help

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,316
    Blog Entries
    15

    Default Re: Error building kernel Suse 11.1

    Quote Originally Posted by angelambayley
    I am trying to build a new kernel (2.6.27.29-0.1-default) to exclude
    generic processor support. I get the following error in make:

    CC [M] drivers/ata/sata_sil.o
    drivers/ata/sata_sil.c: In function :
    drivers/ata/sata_sil.c:608: error: array type has incomplete element
    type
    drivers/ata/sata_sil.c:610: error: field name not in record or union
    initializer
    drivers/ata/sata_sil.c:610: error: (near initialization for )
    drivers/ata/sata_sil.c:611: error: field name not in record or union
    initializer
    drivers/ata/sata_sil.c:611: error: (near initialization for )
    drivers/ata/sata_sil.c:612: error: implicit declaration of function
    drivers/ata/sata_sil.c:612: error: undeclared (first use in this
    function)
    drivers/ata/sata_sil.c:612: error: (Each undeclared identifier is
    reported only once
    drivers/ata/sata_sil.c:612: error: for each function it appears in.)
    drivers/ata/sata_sil.c:613: error: undeclared (first use in this
    function)
    drivers/ata/sata_sil.c:616: error: field name not in record or union
    initializer
    drivers/ata/sata_sil.c:616: error: (near initialization for )
    drivers/ata/sata_sil.c:621: error: implicit declaration of function
    drivers/ata/sata_sil.c:621: warning: initialization makes pointer from
    integer without a cast
    drivers/ata/sata_sil.c:624: error: dereferencing pointer to incomplete
    type
    drivers/ata/sata_sil.c:608: warning: unused variable
    make[2]: *** [drivers/ata/sata_sil.o] Error 1
    make[1]: *** [drivers/ata] Error 2
    make: *** [drivers] Error 2

    Can anyone help please? Is it possible to exclude this driver in make
    xconfig?

    Thanks for any help
    Hi
    Follow user lwfinger's tip in this thread about compiling the kernel.
    It works a treat
    http://forums.opensuse.org/pre-relea...-2-6-31-a.html

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
    up 5 days 2:02, 5 users, load average: 0.20, 0.09, 0.04
    GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18


  3. #3
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: Error building kernel Suse 11.1

    Malcolm wrote:
    >
    Quote Originally Posted by angelambayley
    > Can anyone help please? Is it possible to exclude this driver in make
    > xconfig?
    >
    > Thanks for any help
    >
    > Hi
    > Follow user lwfinger's tip in this thread about compiling the kernel.
    > It works a treat
    > http://forums.opensuse.org/pre-relea...-2-6-31-a.html


    To answer your question, you may exclude _ANY_ driver that you do not
    _NEED_. Knowing what you actually need is the question.

    I'm not quite sure how you got to this point. If you are using the
    source obtained through YaST, and the configuration from
    /proc/config.gz, then the kernel should just plain build.


  4. #4

    Default Re: Error building kernel Suse 11.1

    Yes I did get the source using yast. I then executed make xconfig then make. It should just plain build, but it doesn't.

  5. #5
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: Error building kernel Suse 11.1

    On 10/08/2009 11:06 AM, angelambayley wrote:
    >
    > Yes I did get the source using yast. I then executed make xconfig then
    > make. It should just plain build, but it doesn't.


    The downloaded source does not have a configuration. When you did the
    'make xconfig' step, you got the default configuration for your
    architecture. That is not quite right. I would expect it to build but
    not run.

    In the article that Malcolm referenced, I give the correct set of
    steps. Please read it now.



  6. #6

    Default Re: Error building kernel Suse 11.1

    Quote Originally Posted by lwfinger View Post
    Malcolm wrote:
    >
    > Hi
    > Follow user lwfinger's tip in this thread about compiling the kernel.
    > It works a treat
    > Questions/help regarding kernel 2.6.31 - openSUSE Forums


    To answer your question, you may exclude _ANY_ driver that you do not
    _NEED_. Knowing what you actually need is the question.

    I'm not quite sure how you got to this point. If you are using the
    source obtained through YaST, and the configuration from
    /proc/config.gz, then the kernel should just plain build.
    Ooops! Didn't know about /proc/config.gz

    Now builds OK.

    Thanks for the tips!

  7. #7
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: Error building kernel Suse 11.1

    On 10/08/2009 11:26 AM, angelambayley wrote:
    >
    > lwfinger;2048608 Wrote:
    >> Malcolm wrote:
    >>>
    >>> Hi
    >>> Follow user lwfinger's tip in this thread about compiling the

    >> kernel.
    >>> It works a treat
    >>> 'Questions/help regarding kernel 2.6.31 - openSUSE Forums'

    >> (http://tinyurl.com/yewmy73)
    >>
    >> To answer your question, you may exclude _ANY_ driver that you do not
    >> _NEED_. Knowing what you actually need is the question.
    >>
    >> I'm not quite sure how you got to this point. If you are using the
    >> source obtained through YaST, and the configuration from
    >> /proc/config.gz, then the kernel should just plain build.

    >
    > Ooops! Didn't know about /proc/config.gz
    >
    > Now builds OK.
    >
    > Thanks for the tips!


    I hope you also saw and followed the admonition on not building as root.

  8. #8

    Thumbs up Re: Error building kernel Suse 11.1

    Quote Originally Posted by lwfinger View Post
    I hope you also saw and followed the admonition on not building as root.
    Right!

    Many thanks again for your help. The tips in your info are invaluable.

  9. #9

    Default Re: Error building kernel Suse 11.1

    Actually as a postscript (hope someone is reading this...)

    The original problem - as follows:

    CC [M] drivers/ata/sata_sil.o
    drivers/ata/sata_sil.c: In function :
    drivers/ata/sata_sil.c:608: error: array type has incomplete element
    type
    drivers/ata/sata_sil.c:610: error: field name not in record or union
    initializer
    drivers/ata/sata_sil.c:610: error: (near initialization for )
    drivers/ata/sata_sil.c:611: error: field name not in record or union
    initializer
    drivers/ata/sata_sil.c:612: error: implicit declaration of function
    drivers/ata/sata_sil.c:612: error: undeclared (first use in this
    function)
    drivers/ata/sata_sil.c:612: error: (Each undeclared identifier is
    reported only once
    drivers/ata/sata_sil.c:612: error: for each function it appears in.)
    drivers/ata/sata_sil.c:613: error: undeclared (first use in this
    function)
    drivers/ata/sata_sil.c:616: error: field name not in record or union
    initializer
    drivers/ata/sata_sil.c:616: error: (near initialization for )
    drivers/ata/sata_sil.c:621: error: implicit declaration of function
    drivers/ata/sata_sil.c:621: warning: initialization makes pointer from
    integer without a cast
    drivers/ata/sata_sil.c:624: error: dereferencing pointer to incomplete
    type
    drivers/ata/sata_sil.c:608: warning: unused variable
    make[2]: *** [drivers/ata/sata_sil.o] Error 1
    make[1]: *** [drivers/ata] Error 2
    make: *** [drivers] Error 2

    occurs even after following lwfinger's instructions, re /proc/config.gz.

    It seems to happen when I exclude ACPI in menu xconfig, this obviously conflicts with the sata_sil driver.

    Can anyone help again?

    Many thanks

  10. #10

    Default Re: Error building kernel Suse 11.1

    Why would you want to exclude ACPI??

    If you don't need that sata_sil then just exclude it from building
    How does a linux geek make love??

    - rtfm; unzip; strip; touch; finger; mount; fsck; more; yes; umount; zip; sleep;

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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