failed to build kernel for 7.0 - BSD

This is a discussion on failed to build kernel for 7.0 - BSD ; Hi, I installed 7.0 Beta3 and downloaded source with cvs. The UPDATE file of this download is shown as below: The AT keyboard emulation of sunkbd(4) has been turned on by default. In order to make the special symbols of ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: failed to build kernel for 7.0

  1. failed to build kernel for 7.0

    Hi, I installed 7.0 Beta3 and downloaded source with cvs.
    The UPDATE file of this download is shown as below:
    The AT keyboard emulation of sunkbd(4) has been turned on
    by default. In order to make the special symbols of the Sun
    keyboards driven by sunkbd(4) work under X these now have
    to be configured the same way as Sun USB keyboards driven
    by ukbd(4) (which also does AT keyboard emulation), f.e.:

    Option "XkbLayout" "us"
    Option "XkbRules" "xorg"
    Option "XkbSymbols" "pc(pc105)+sun_vndr/usb(sun_usb)+us"

    20071028:
    It has been decided that it is desirable to provide ABI
    backwards compatibility to the FreeBSD 4/5/6 versions of the
    PCIOCGETCONF, PCIOCREAD and PCIOCWRITE IOCTLs, which was
    broken with the introduction of PCI domain support (see the
    20070930 entry). Unfortunately, this required the ABI of
    PCIOCGETCONF to be broken again in order to be able to
    provide backwards compatibility to the old version of that
    IOCTL. Thus consumers of PCIOCGETCONF have to be recompiled
    again. As for prominent ports this affects neither pciutils
    nor xorg-server this time, the hal port needs to be rebuilt
    however.

    20071010:
    RELENG_7 branched.

    ....

    When I compile the kernel using *make flash* in freesbie, I got the
    following error:
    ....

    ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-generic.h
    unwind.h
    make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile
    MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile
    GCCDIR=/usr/src/gnu/lib/libgcc/../../../contr
    ib/gcc gthr-default.h
    ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr-posix.h gthr-
    default.h
    cc -c -O2 -fno-strict-aliasing -pipe -DIN_GCC -DIN_LIBGCC2 -
    D__GCC_FLOAT_NOT_NEEDED -DHAVE_GTHR_DEFAULT -I/usr/src/gnu/lib/
    libgcc/../../../contrib/gcclibs/include -I/usr/src
    /gnu/lib/libgcc/../../../contrib/gcc/config -I/usr/src/gnu/lib/
    libgcc/../../../contrib/gcc -I. -I/usr/src/gnu/lib/libgcc/../../
    usr.bin/cc/cc_tools -fvisibility=hidden -DHIDE_E
    XPORTS -fPIC -fexceptions -D__GLIBC__=3 -DElfW=__ElfN -o unwind-dw2.o /
    usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c
    In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/
    unwind-dw2.c:32:
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:47:20: error:
    stddef.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:48:19: error:
    float.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:87:20: error:
    stdarg.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:90:19: error:
    stdio.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:96:19: error:
    errno.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:103:20: error:
    string.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:104:20: error:
    stdlib.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:105:20: error:
    unistd.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:108:20: error:
    limits.h: No such file or directory
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:111:18: error:
    time.h: No such file or directory
    In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/
    unwind-dw2.c:40:
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function
    'size_of_encoded_value':
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:90: warning:
    incompatible implicit declaration of built-in function 'abort'
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function
    'base_of_encoded_value':
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:122: warning:
    incompatible implicit declaration of built-in function 'abort'
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function
    'read_encoded_value_with_base':
    /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:259: warning:
    incompatible implicit declaration of built-in function 'abort'
    In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/
    gthr.h:114,
    :

    What s wrong with it, and how to fix that?

    Thanks

  2. Re: failed to build kernel for 7.0

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    swun2010@gmail.com wrote:
    > Hi, I installed 7.0 Beta3 and downloaded source with cvs.
    > The UPDATE file of this download is shown as below:
    > The AT keyboard emulation of sunkbd(4) has been turned on
    > by default. In order to make the special symbols of the Sun
    > keyboards driven by sunkbd(4) work under X these now have
    > to be configured the same way as Sun USB keyboards driven
    > by ukbd(4) (which also does AT keyboard emulation), f.e.:
    >
    > Option "XkbLayout" "us"
    > Option "XkbRules" "xorg"
    > Option "XkbSymbols" "pc(pc105)+sun_vndr/usb(sun_usb)+us"
    >
    > 20071028:
    > It has been decided that it is desirable to provide ABI
    > backwards compatibility to the FreeBSD 4/5/6 versions of the
    > PCIOCGETCONF, PCIOCREAD and PCIOCWRITE IOCTLs, which was
    > broken with the introduction of PCI domain support (see the
    > 20070930 entry). Unfortunately, this required the ABI of
    > PCIOCGETCONF to be broken again in order to be able to
    > provide backwards compatibility to the old version of that
    > IOCTL. Thus consumers of PCIOCGETCONF have to be recompiled
    > again. As for prominent ports this affects neither pciutils
    > nor xorg-server this time, the hal port needs to be rebuilt
    > however.
    >
    > 20071010:
    > RELENG_7 branched.
    >
    > ...
    >
    > When I compile the kernel using *make flash* in freesbie, I got the
    > following error:
    > ...
    >
    > ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-generic.h
    > unwind.h
    > make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile
    > MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile
    > GCCDIR=/usr/src/gnu/lib/libgcc/../../../contr
    > ib/gcc gthr-default.h
    > ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr-posix.h gthr-
    > default.h
    > cc -c -O2 -fno-strict-aliasing -pipe -DIN_GCC -DIN_LIBGCC2 -
    > D__GCC_FLOAT_NOT_NEEDED -DHAVE_GTHR_DEFAULT -I/usr/src/gnu/lib/
    > libgcc/../../../contrib/gcclibs/include -I/usr/src
    > /gnu/lib/libgcc/../../../contrib/gcc/config -I/usr/src/gnu/lib/
    > libgcc/../../../contrib/gcc -I. -I/usr/src/gnu/lib/libgcc/../../
    > usr.bin/cc/cc_tools -fvisibility=hidden -DHIDE_E
    > XPORTS -fPIC -fexceptions -D__GLIBC__=3 -DElfW=__ElfN -o unwind-dw2.o /
    > usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c
    > In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/
    > unwind-dw2.c:32:
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:47:20: error:
    > stddef.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:48:19: error:
    > float.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:87:20: error:
    > stdarg.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:90:19: error:
    > stdio.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:96:19: error:
    > errno.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:103:20: error:
    > string.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:104:20: error:
    > stdlib.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:105:20: error:
    > unistd.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:108:20: error:
    > limits.h: No such file or directory
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:111:18: error:
    > time.h: No such file or directory
    > In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/
    > unwind-dw2.c:40:
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function
    > 'size_of_encoded_value':
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:90: warning:
    > incompatible implicit declaration of built-in function 'abort'
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function
    > 'base_of_encoded_value':
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:122: warning:
    > incompatible implicit declaration of built-in function 'abort'
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function
    > 'read_encoded_value_with_base':
    > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:259: warning:
    > incompatible implicit declaration of built-in function 'abort'
    > In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/
    > gthr.h:114,
    > :
    >
    > What s wrong with it, and how to fix that?
    >
    > Thanks

    Hello,
    So this is a FreeBSD 7 install and your wanting to compile the kernel
    for freesbie? Or are you trying compile the kernel on your 7 install?
    If this is the case try doing a make includes in /usr/src to install the
    header files needed to compile things and see if that fixes the issue.
    If not send an email to the freesbie list

    FreeSbie is not associated with FreeBSD nor is it included in the
    release. If you want a simple floppy based version of freebsd try
    picobsd which is part of the release.

    Hope this helps some.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.4-svn0 (GNU/Linux)
    Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

    iD8DBQFHXWQFyMQ6IBehNNMRAlndAJ0fDnTkepbPYyU6jq6yEG oQVo5gjwCfYLlR
    ceSuTaGjrEQzSKP8JtJURW8=
    =ZWlc
    -----END PGP SIGNATURE-----

  3. Re: failed to build kernel for 7.0

    swun2010@gmail.com wrote:

    > When I compile the kernel using *make flash* in freesbie, I got the
    > following error:
    > [...]
    > What s wrong with it,


    You are still asking in the wrong group.
    Wasn't my answer from earlier today good enough for you?

    > and how to fix that?


    By asking the right people, as you were already told.


    --
    "For the Snark's a peculiar creature, that won't
    Be caught in a commonplace way.
    Do all that you know, and try all that you don't;
    Not a chance must be wasted to-day!"

  4. Re: failed to build kernel for 7.0

    Martin Etteldorf wrote:

    > swun2010@gmail.com wrote:
    >
    >> When I compile the kernel using *make flash* in freesbie, I got the
    >> following error:

    [snip]
    >> and how to fix that?

    >
    > By asking the right people, as you were already told.
    >
    >


    Well I get the "feeling" he is probably very young and inexperienced.

    I just ran across a problem report in the -STABLE list which is what he has
    experienced, so it seems it is not unique to him. In that particular
    situation the poster was experiencing what the OP described with the AMD64
    ISO version of the Beta4. There is also a failure to build the IA32
    compatibility libraries, so the problem affects more than just the build of
    tcsh.

    Since it has now shown up in a form that is useful to the developers they
    can now take a look resolving it. I strongly suspect this issue will taken
    care of for the actual 7.0 Release.

    To the OP: since you never submitted a proper accounting of your particular
    scenario I am going to assume you don't know how. I am also making the
    assumption you have been attempting to use the /ports/sysutils/freesbie to
    create your own freesbie LiveCD.

    If my crystal ball hasn't lied to me I would recommend that you forget about
    struggling with this until the developers get it worked out. If it gets
    fixed in the 7.0 Release you can then revisit this and be successful.

    If you cannot wait and you require a Freesbie cd "now", download the
    Freesbie ISO from the Freesbie site and use that for now. Since you are
    unable to submit proper assistance you are not in a position to keep
    fighting with this, so forget about it for now and make a more productive
    use of your time.

    I keep a Freesbie CD handy because it can be a very useful tool for disaster
    recovery. If you want to roll your own, wait a few weeks for the problem to
    get worked out. Use the ISO from Freesbie in the interum.

    -Jason




+ Reply to Thread