[BACK]Return to UPDATING CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src

Annotation of src/UPDATING, Revision 1.114.2.2

1.114.2.2! jmc         1: $NetBSD: UPDATING,v 1.114.2.1 2004/07/23 08:45:42 tron Exp $
1.1       abs         2:
                      3: This file is intended to be a brief introduction to the build
                      4: process and a reference on what to do if something doesn't work.
                      5:
                      6: For a more detailed description see Makefile.
                      7:
                      8: Recent changes:
                      9: ^^^^^^^^^^^^^^^
1.99      mrg        10:
1.114.2.1  tron       11: 20040715:
                     12:        The rc.d/sendmail script now uses a heuristic to determine
                     13:        if sendmail should be started at boot time.  It checks the
                     14:        contents of /etc/mailer.conf, /etc/mail/submit.cf, and the
                     15:        owner and mode of the sendmail binary to see if any changes
                     16:        to the mail infrastructure have been made.  If no changes
                     17:        are detected, it will start an SMTP listener.
                     18:
                     19:        Setting sendmail=NO in /etc/rc.conf will override this.
                     20:
                     21:        If you are only using sendmail by default and only for
                     22:        local delivery, it is important that you also update your
                     23:        sendmail.cf so that the SMTP listener only listens on the
                     24:        loopback interface.
                     25:
                     26: 20040715:
                     27:        The method by which athhal-elf.o gets pulled into i386
                     28:        kernel builds has been changed again.  The latest version
                     29:        of bsd.files.mk is no longer required.
                     30:
1.114.2.2! jmc        31: 20040426:
        !            32:        Support for the original dynamic sysctl node structure has
        !            33:        been removed in favor of the newer layout.  This affects
        !            34:        consumers of the create and delete interface, as well as
        !            35:        the dynamic discovery mechanism.  This is believed only to
        !            36:        be the sysctl(8) binary itself, at this point in time, so
        !            37:        the only effect of this should be that a sysctl binary
        !            38:        built from sources dated between 2003/12/04 and 2004/03/24
        !            39:        will not work on a kernel built from sources dated after
        !            40:        2004/04/25.  If you need a new sysctl binary but build.sh
        !            41:        does not work, make sure that your revision of
        !            42:        src/sys/sys/sysctl.h is 1.112 (or later), and then the
        !            43:        do the following:
        !            44:
        !            45:        cd /usr/src (or wherever your source tree is)
        !            46:        make USETOOLS=no includes
        !            47:        cd lib/libc
        !            48:        make USETOOLS=no dependall install
        !            49:        cd ../../sbin/sysctl
        !            50:        make USETOOLS=no dependall install
        !            51:
        !            52:        If you are using older sysctl binary, GNU autoconf would fail to
        !            53:        identify your machine architecture, and tries to build binary for
        !            54:        "unknown-unknown-netbsd20F" or something like that.  if that happens,
        !            55:        make sure to follow the above steps.
        !            56:
1.114     jmc        57: 20040326:
                     58:
                     59:        The method by which athhal-elf.o gets pulled into i386 kernel builds
                     60:        has been changed. The file is now stored as a uuencode file in CVS
                     61:        and the generated Makefile will use the new .uue rules from bsd.file.mk
                     62:        to build it.
                     63:
                     64:        This means you must have the latest bsd.files.mk installed when
                     65:        building a kernel without USETOOLS=yes.
                     66:
1.113     dan        67: 20040318:
                     68:        A bug in the cgd(4) blowfish code was corrected, without
                     69:        provision of backwards compatibility, after several public
                     70:        notices over several months. Users of cgd with blowfish cipher
                     71:        ONLY must dump their data before updating their kernels, and
                     72:        recreate cgd's and restore data using the new kernel. See
                     73:        (recent message to current-users, URL when mail-index has updated)
                     74:
1.108     bjh21      75: 20040313:
                     76:        On acorn32, the opms and qms drivers have been withdrawn, and
                     77:        the old wsqms driver is now called qms.  Kernel config files
                     78:        will need updating.  See the ones in sys/arch/acorn32/conf
                     79:        for examples.
                     80:
1.106     bjh21      81: 20040125:
                     82:        On acorn32, the beep and sysbeep devices are no longer
                     83:        needed, and will need to be deleted from kernel configuration
                     84:        files.
1.105     bjh21      85:
1.102     dbj        86: 20040109:
                     87:        Compatibility for old ffs superblock layouts has been
                     88:        added, and the restrictive fsck checks have been reenabled
                     89:        when using those layouts.  If you have been using -current
                     90:        since 20030402, you may find that fsck again signals fatal
1.110     dbj        91:        superblock mismatches.  To repair, make sure you have
1.111     simonb     92:        an updated fsck_ffs and then you can use fsck_ffs -b 16 -c 4
1.109     dbj        93:        to complete the filesystem upgrade.  A message has
1.111     simonb     94:        been added to the kernel which should detect this problem.
                     95:        See the following discussion for more information:
1.112     keihan     96:        http://mail-index.NetBSD.org/current-users/2004/01/11/0022.html
1.102     dbj        97:
1.99      mrg        98: 20031203:
1.100     keihan     99:        New binutils builds may fail due to old dependencies.
1.99      mrg       100:        It's necessary to "make cleandir" to ensure that
                    101:        the dependencies will be rebuilt correctly.
1.98      wiz       102:
                    103: 20031111:
                    104:        A newer mkdep is needed.  Error noting that is
                    105:                cc: Ambiguous abbreviation --
1.97      lukem     106:
                    107: 20031008:
                    108:        /usr/include/sys/disklabel_mbr.h was removed.
                    109:        It's necessary to "make cleandir" to ensure that
                    110:        the dependencies will be rebuilt correctly.
1.96      christos  111:
1.109     dbj       112: 20031007:
1.111     simonb    113:        A sign exension bug was fixed which set all the high bits
                    114:        of our newly expanded ffs fs_flags.  This should only
                    115:        affect users who installed or upgraded in September of 2003.
1.109     dbj       116:        A small utility program was posted to tech-kern which
1.111     simonb    117:        should fix this problem, and a warning message was added
                    118:        to the kernel which should discover and warn about it.  See
                    119:        http://mail-index.NetBSD.org/tech-kern/2003/10/07/0005.html
1.109     dbj       120:
1.96      christos  121: 20030906:
                    122:        With the addition of siginfo support the old signal trampoline
                    123:        code has been deprecated to COMPAT_16. Make sure that your running
                    124:        kernel has COMPAT_16 enabled before building userland.
1.94      christos  125:
                    126: 20030801:
1.95      wiz       127:        With the new openssl, there is some header and library shuffling.
1.94      christos  128:        rm -f /usr/include/des.h /usr/include/kerberosIV/* /lib/libdes* \
1.95      wiz       129:        /usr/lib/libdes* before building.
1.92      wiz       130:
                    131: 20030703:
                    132:        Texinfo was updated to 4.6.  To avoid failures when trying to
                    133:        build the included texinfo files, do:
                    134:
                    135:        cd src/gnu/usr.bin/texinfo
                    136:        make MKINFO=no dependall install
1.90      wiz       137:
                    138: 20030630:
1.101     junyoung  139:        Groff was updated to 1.19; it's probably necessary to do
1.91      wiz       140:                cd share/mk && make install
1.90      wiz       141:                cd src/gnu/usr.bin/groff
                    142:                make MKMAN=no dependall install
                    143:        (untested).
1.89      christos  144:
                    145: 20030516:
                    146:        Due to bugs in the export handling code, invalid export lines
                    147:        were accepted before and caused the kernel to panic when
                    148:        mountd got restarted because it freed memory that had already
                    149:        been freed. This has been fixed and the kernel checks
                    150:        export addresses very strictly. If you upgrade your kernel,
                    151:        make sure you also upgrade mountd, because if your export
                    152:        file contains lines with an old inet4 address syntax (i.e.
                    153:        a.b.c or a.b or a), they will get rejected by the new kernel.
1.87      bjh21     154:
                    155: 20030402:
                    156:        The superblock layout for FFS was changed.  If you have 1.6
                    157:        fsck binaries, they will signal a fatal superblock mismatch
                    158:        with the first alternate, because they compare too many
                    159:        fields (even ones that aren't useful).  If possible, upgrade
                    160:        your fsck_ffs binary before using a new kernel.
                    161:        None of this signals actual filesystem damage.
1.85      atatat    162:
                    163: 20030324:
                    164:        sendmail version 8.12.8 was imported.  Since sendmail is
                    165:        now setgid to the smmsp group, and runs in "collection"
                    166:        mode for most common activities, there is a new config
                    167:        file called submit.cf that needs to live in /etc/mail.
                    168:        The generic submit.cf sample in /usr/share/sendmail/cf
                    169:        is named netbsd-msp.cf.  Upgrading your regular sendmail
                    170:        configuration file is also strongly advised.
                    171:
                    172:        See the section named "MESSAGE SUBMISSION PROGRAM" in
                    173:        the updated /usr/share/sendmail/README file for more
                    174:        information.
1.82      wiz       175:
                    176: 20030117:
                    177:        Texinfo was updated to 4.3.  To avoid failures when trying to
                    178:        build the included texinfo files, do:
                    179:
                    180:        cd src/gnu/usr.bin/texinfo
                    181:        make MKINFO=no dependall install
1.81      lukem     182:
                    183: 20021223:
                    184:        The METALOG format changed slightly, to remove the leading
                    185:        "${DESTDIR}" from path names.
                    186:        This only affects people building with UNPRIVED.
                    187:        For complete safety, remove the DESTDIR entirely and
                    188:        update tools/mtree, before running make build.
1.88      itojun    189:
                    190: 20021219:
                    191:        CVS repository layout was changed.  See the following for details
                    192:        if you are using (anonymous) cvs to update your tree.
                    193:
1.93      salo      194:        http://mail-index.NetBSD.org/netbsd-announce/2002/12/19/0000.html
1.80      lukem     195:
                    196: 20021219:
                    197:        install(1) had a '-N dbdir' option added, to specify an
                    198:        alternate location to look up users & groups (instead
                    199:        of the host system passwd(5) and group(5) databases).
                    200:
                    201:        The build system was modified to take advantage of
                    202:        this option (using ${NETBSDSRCDIR}/etc), so if you
1.83      kei       203:        use USETOOLS==no, you may have to rebuild and
1.80      lukem     204:        reinstall usr.bin/xinstall first.
1.78      lukem     205:
                    206: 20021130:
                    207:        fparseln(3) moved from libutil to libc.
                    208:        If building to DESTDIR=/, reinstall the includes
                    209:        and rebuild libc:
                    210:                make includes
                    211:                make do-lib-libc
                    212:        If using build.sh, "cd tools/compat && make clean"
                    213:        before rebuilding the tools.
1.77      lukem     214:
                    215: 20021126:
                    216:        The mk.conf(5) variable SYS_INCLUDE has been deprecated,
                    217:        including the optional "SYS_INCLUDE=symlinks" support.
                    218:        All header files, including <sys/*.h> are copied into
                    219:        /usr/include.
1.76      thorpej   220:
                    221: 20021121:
                    222:        The C run-time support files crtbegin.o and crtend.o
                    223:        (and their companions crtbeginS.o and crtendS.o) were
                    224:        split up, with new crti.o and crtn.o files resulting.
                    225:        This means that libtool needs to be rebuilt once the
                    226:        new libraries are installed.  The process of rebuilding
                    227:        libtool will cause it to automatically notice the new
                    228:        required files, but it *must* be rebuilt in order to
                    229:        do this.
                    230:
                    231:        An out-of-date libtool will result in shared libraries
                    232:        which lack _init() and _fini() routines, which means that
                    233:        their global contructors/destructors will not be invoked.
1.75      thorpej   234:
                    235: 20021121:
                    236:        A bug related to how ARM ELF objects were tagged has been
                    237:        corrected.
                    238:
                    239:        NetBSD ARM ELF uses the soft-VFP floating point model by
                    240:        default.  However, the assembler lacked support for marking
                    241:        objects as using the VFP floating point format, and the
1.79      wiz       242:        compiler was not properly passing the flag indicating "soft-VFP"
1.75      thorpej   243:        to the assembler.
                    244:
                    245:        Unfortunately, this means that the linker will now consider
                    246:        old (i.e. not marked "softvfp") NetBSD ARM ELF objects to be
                    247:        incompatible with new (properly marked) objects.
                    248:
                    249:        The problem will only manifest itself if you attempt to compile
                    250:        a new program using the fixed toolchain, and link that program
                    251:        against old libraries which do not have the proper "softvfp"
                    252:        markings.  ALL OF YOUR EXISTING BINARIES AND SHARED LIBRARIES
                    253:        WILL CONTINUE TO WORK PROPERLY.
                    254:
                    255:        The only work-around for the problem is to recompile all of
                    256:        the libraries on the system.  The easiest way to do this for
1.79      wiz       257:        system libraries is to install a binary snapshot; they are
1.93      salo      258:        generally available on releng.NetBSD.org.  Any packages you
1.75      thorpej   259:        have installed which supply libraries will have to be recompiled
                    260:        if you wish to link new programs against those libraries.
                    261:
                    262:        If you have questions about this matter, please contact
1.93      salo      263:        port-arm@NetBSD.org.
1.73      provos    264:
                    265: 20021011:
                    266:        Systrace has been improved to support privilege elevation.
                    267:        Updating the kernel requires the userland part of systrace
1.79      wiz       268:        to be rebuilt.
1.72      thorpej   269:
                    270: 20021010:
                    271:        The config(8) grammar was changed to allow options to register
                    272:        dependencies on attributes, as well as other options.  Users
                    273:        must update and reinstall usr.sbin/config before building a new
                    274:        kernel.
1.70      thorpej   275:
                    276: 20021009:
                    277:        A new attribute dependency syntax was introduced to config(8),
                    278:        which is now used by the SCSI configuration description.  Users
1.71      wiz       279:        must update and reinstall usr.sbin/config before building a new
1.70      thorpej   280:        kernel.
1.69      thorpej   281:
                    282: 20021003:
                    283:        Several changes have been made to the autoconfiguration
                    284:        framework.  Users must update and reinstall usr.sbin/config
                    285:        before building a new kernel.
1.74      jschauma  286:
                    287: 20021001:
                    288:        The i386mp branch has been merged.  To compile a kernel, users
                    289:        will need to add the option 'cpu* at mainbus?' to their configuration
                    290:        file.  Multiprocessor kernels will need
                    291:        ioapic*         at mainbus? apid ?
                    292:        options         MULTIPROCESSOR
                    293:        options         COM_MPLOCK
1.68      lukem     294:
                    295: 20020922:
                    296:        MKDYNAMICROOT=yes enabled by default, which means that
                    297:        certain shared libraries are installed into /lib, the shared
                    298:        linker is installed into /libexec, and all programs in /bin
                    299:        and /sbin are dynamically linked.
                    300:        If you do not use "make build", you should ensure that
                    301:        you have the libraries and shared linker in the new locations,
                    302:        with:
                    303:                make do-lib-csu do-lib-libc do-lib do-gnu-lib do-ld.elf_so
1.67      lukem     304:
                    305: 20020917:
                    306:        USE_NEW_TOOLCHAIN has been replaced with:
                    307:            -   TOOLCHAIN_MISSING -- set to "yes" on platforms for which
                    308:                there is no working in-tree toolchain (hppa, ns32k, sh5,
                    309:                x86_64).
                    310:            -   EXTERNAL_TOOLCHAIN -- if defined by the user, points to the
1.79      wiz       311:                root of an external toolchain (e.g. /usr/local/gnu).  This
1.67      lukem     312:                enables the cross-build framework even for TOOLCHAIN_MISSING
                    313:                platforms.
1.66      gehenna   314:
                    315: 20020906:
                    316:        gehenna-devsw has been merged into the trunk. Need to update and
1.79      wiz       317:        reinstall usr.sbin/config before building the kernel.
1.65      lukem     318:
                    319: 20020822:
                    320:        Crunched rescue tools (contents of /bin and /sbin, plus others)
                    321:        are now provided in /rescue.
                    322:
                    323:        To ensure that these are built statically linked (no matter
                    324:        what the setting of LDSTATIC is), use a crunchgen(1) built
                    325:        from sources newer than 20020820 (see the next entry).
                    326:
                    327: 20020820:
                    328:        crunchgen(1) changed to ensure that the generated program
                    329:        is statically linked.
                    330:
                    331:        Solution: update and reinstall usr.bin/crunch
1.84      grant     332:
                    333: 20020605:
                    334:        smmsp user/group has been added for sendmail.
                    335:
                    336:        Add the following into /etc/group:
                    337:
                    338:        smmsp:*:17:
                    339:
                    340:        and the following to /etc/master.passwd (via vipw):
                    341:
                    342:        smmsp:*:17:17::0:0:Sendmail Message Submission Program:/nonexistent:/sbin/nologin
1.61      itojun    343:
                    344: 20020515:
                    345:        sshd user/group has been added.  Need to hand add this in, or sshd
                    346:        will not let you log in (with default, or UsePrivlegeSeparation=yes)
                    347:
                    348:        Add the following into /etc/group:
                    349:
                    350:        sshd:*:16:
                    351:
                    352:        and the following to /etc/master.passwd (via vipw):
                    353:
1.63      enami     354:        sshd:*:16:16::0:0:& pseudo-user:/var/chroot/sshd:/sbin/nologin
1.61      itojun    355:
1.79      wiz       356:        Also /var/chroot/sshd directory needs to be present (digged as part of
                    357:        the build process).
1.60      sommerfe  358:
                    359: 20020426:
                    360:        NBUILDJOBS obsoleted in favor of just using -j.
1.59      lukem     361:
                    362: 20020426:
                    363:        etc/postinstall added, which performs various checks for
                    364:        configuration file updates and changes, and can fix most of
                    365:        the problems identified.
                    366:        This should make it much easier to upgrade a system's
                    367:        configuration from earlier systems (as far back as NetBSD 1.5).
1.56      lukem     368:
                    369: 20020320:
1.79      wiz       370:        <bsd.lib.mk> needs a new install(1) for its "-a cmd" support.
                    371:        Build and install at usr.bin/xinstall before the build.
1.56      lukem     372:
1.55      itojun    373: 20020319:
1.79      wiz       374:        Raw IPv6 socket now makes strict checking for sa_family and sa_len
                    375:        on send(2) operation.  Be sure to have sbin/rtsol and usr.sbin/rtsold
1.55      itojun    376:        newer than November 2001 when you upgrade the kernel.
                    377:
1.54      itojun    378: 20020311:
                    379:        ssh configuration files were moved from /etc to /etc/ssh.  Beware
                    380:        if you restart your machine from remote.  Note that sshd.conf needs
                    381:        to be changed (due to the use of "/etc" inside).
                    382:
                    383: 20020223:
1.53      matt      384:        Users of the VAX port will need to rebuild and install gas
                    385:        so it deal with the now present register prefix used in all
                    386:        the VAX assembly files.
                    387:
1.50      itojun    388: 20020118:
                    389:        ntpd user/group has been added.  Need to hand add this in or builds
                    390:        will break as mtree aborts early.
                    391:
                    392:        Add the following into /etc/group:
                    393:
                    394:        ntpd:*:15:
                    395:
                    396:        and the following to /etc/master.passwd (via vipw):
                    397:
                    398:        ntpd:*:15:15::0:0:Ntpd pseudo-user:/var/chroot/ntpd:/sbin/nologin
                    399:
1.49      jmc       400: 20011207:
                    401:        If you're attempting to build a snapshot on sparc64 and are getting
                    402:        reloc errors from the toolchain groff binary this means your native
                    403:        toolchain has some broken C++ bits.
                    404:
                    405:        To fix:
                    406:
                    407:        Build a new toolchain (i.e. build.sh -t)
                    408:        Use the new toolchain to build and install natively (i.e. /usr/lib)
                    409:
                    410:        gnu/lib/libgcc
1.51      pooka     411:        gnu/lib/libstdc++
1.49      jmc       412:
                    413:        After this a snapshot will be able to be built.
                    414:
1.47      jmc       415: 20011201:
                    416:        In order for a sparc64 build to work you must have a working awk. If
                    417:        you've built and installed a system with the new toolchain up to this
1.52      wiz       418:        point you do not have a working awk as its ability to do floating
1.47      jmc       419:        point is broken.
                    420:
                    421:        To build:
                    422:
                    423:        remake and install gnu/lib/libgcc
                    424:        remake and install gnu/usr.bin/gawk into /usr/bin (make sure it links
1.48      jmc       425:        against the new libgcc.a)
1.47      jmc       426:
1.46      thorpej   427: 20011128:
                    428:        Kernel config information was changed to use defflag in
                    429:        the various "files" files.  Bug fixes to config(8) are
                    430:        required in order for this to work properly.  Make sure
                    431:        to build and install in usr.sbin/config before attempting
                    432:        to build a new kernel.
                    433:
1.45      yamt      434: 20011030:
                    435:        libc/locale/wcstod.c now needs new lint(1). Update lint(1)
                    436:        before building libc.
1.43      mason     437:
1.44      tv        438: 20011029:
                    439:        The new document BUILDING.mdoc (view with nroff | more, or
                    440:        see pre-generated .txt and .html versions) describes the build
                    441:        procedure in great detail.  BUILDING, and the USE_NEW_TOOLCHAIN
                    442:        build process, are intended in the long run to replace this
                    443:        manual update log.
                    444:
                    445:        Users building a USE_NEW_TOOLCHAIN system should read the
                    446:        BUILDING document for caveats.  Generally, BUILDING supersedes
                    447:        UPDATING for these systems, as tool updating is taken care of
                    448:        by the new build system.
1.42      perry     449:
                    450: 20011028:
                    451:        src/etc/Makefile now needs install to be able to handle
                    452:        symlinks that point to nowhere. A bug in install that
                    453:        prevented this was corrected.
                    454:
                    455:        Solution: update and reinstall usr.bin/xinstall
                    456:        Better Solution: Use the new toolchain and it will just work
                    457:        for you.
1.40      lukem     458:
                    459: 20011006:
                    460:        /etc/mtree/NetBSD.dist has been updated to take advantage of
                    461:        absolute path support added to mtree(8). Older mtree(8)s don't
                    462:        understand the format.
                    463:
                    464:        Solution: update and reinstall usr.sbin/mtree
1.39      jmc       465:
                    466: 20011004:
                    467:        Crunchgen has been updated to work via reach-over makefiles. Updating
                    468:        is suggested before running a snapshot build
1.36      tv        469:
1.35      thorpej   470: 20010915:
                    471:        The new "ubcperf" code committed by Chuck Silvers removed
                    472:        a header file, uvm/uvm_vnode.h.  There may be stale .depend
                    473:        files that still reference this file.
                    474:
                    475:        Solution: "make cleandir && make dependall" in affected
                    476:        directories.
1.31      enami     477:
                    478: 20010803:
                    479:        grep.info is now built from grep.texi using makeinfo.  Since it
                    480:        requires makeinfo v4.0, you need to install new texinfo before
                    481:        building gnu/usr.bin/grep.  To install new texinfo, please follow
                    482:        the instruction described in 20010726 entry.
1.30      enami     483:
1.64      sommerfe  484: 20010803:
1.41      wiz       485:        (i386 only): i386 kernel now uses new instructions like
1.111     simonb    486:        `fxsave' which old gas doesn't understand.  To build the
1.64      sommerfe  487:        kernel successfully, you need to build and install a new toolchain,
                    488:        (i.e., build.sh -t) or  (temporarily) comment out "options I686_CPU"
                    489:        from your kernel configuration until you rebuild your userland.
                    490:        See 20011029 above and BUILDING file in this directory for more information.
                    491:        [updated 20020630 since i386 gas moved when USE_NEW_TOOLCHAIN enabled]
1.29      bjh21     492:
                    493: 20010731:
                    494:        Bootloader update on ELF platforms.  DDB in kernels from before
                    495:        this will be unable to read symbol tables provided by newer
                    496:        bootloaders.
1.27      assar     497:
                    498: 20010726:
                    499:        Texinfo was updated to 4.0.  To avoid failures when trying to
1.28      assar     500:        build the included texinfo files, do:
                    501:
                    502:        cd src/gnu/usr.bin/texinfo
                    503:        make MKINFO=no dependall install
1.25      thorpej   504:
                    505: 20010718:
                    506:        Enabled correct .init/.fini processing in crt0.  The way this
                    507:        was done was to change a -I directive to cc(1), which means
                    508:        make(1) will have a stale dependency (it will be checking the
                    509:        timestamp on the wrong "dot_init.h").
                    510:
                    511:        The symptom you will see is that new programs die with SIGSEGV
                    512:        if you have a stale dependency.
                    513:
                    514:        Solution: "make cleandir" in both lib/csu and libexec/ld.elf_so
                    515:        before starting your build.
1.26      thorpej   516:
                    517: 20010628:
                    518:        A construct was added to uvm_page.h that uncovered a bug
                    519:        in lint(1).  If you get a warning/error about a non-portable
                    520:        bitfield, update your lint(1) before proceeding.
1.21      jmc       521:
                    522: 20010226:
1.22      jmc       523:        Added named user/group to system. Need to hand add this in or builds
1.21      jmc       524:        will break as mtree aborts early.
                    525:
                    526:        To work around add by hand:
                    527:
                    528:        named:*:14:
                    529:
1.22      jmc       530:        to /etc/group and add:
                    531:
                    532:        named:*:14:14::0:0:Named pseudo-user:/var/named:/sbin/nologin
                    533:
                    534:        to master.passwd (use vipw for instance if doing by hand).
                    535:
                    536:        Now a make build should progress.
1.18      jmc       537:
                    538: 20010219:
1.52      wiz       539:        get/setprogname() added. Any hostprogs that may use this will need
1.111     simonb    540:        to be bootstrapped manually until the host system is current.
1.18      jmc       541:
1.111     simonb    542:        Known problems: sys/arch/macppc/stand/fixcoff
1.19      cgd       543:                        usr.sbin/config (adding -DMAKE_BOOTSTRAP to
                    544:                          CFLAGS and rebuilding should work)
1.20      jmc       545:                        usr.sbin/mdsetimage - Build a static copy if
1.111     simonb    546:                          building a snapshot before fully bootstrapped.
1.15      christos  547:
                    548: 20010204:
                    549:        prepare the code to compile with stricter gcc flags. in
                    550:        particular start eliminating redundant declarations. Yacc
                    551:        needs to be installed before make build.
1.10      christos  552:
                    553: 20010114:
                    554:        introduce .if commands(target) in make(1). You need to
                    555:        bring everything up-to-date first, then without installing
1.23      tron      556:        anything make and install in usr.bin/make, then proceed
1.10      christos  557:        with make build.
1.9       sommerfe  558:
                    559: 20010101:
                    560:        bsd.subdir.mk committed 20001230 had a bug which caused
                    561:        afterinstall targets to run too soon; update again.
1.8       sommerfe  562:
                    563: 20001230:
                    564:        New share/mk files needed to support .WAIT in SUBDIR variables.
                    565:        If you get make errors,
                    566:                (cd share/mk; make install)
                    567:        Also, PRINTOBJDIR has changed and is now used more heavily.
1.6       ad        568:
                    569: 20001019:
1.7       ad        570:        The `ca' device driver has been replaced by `ld'; although the
1.6       ad        571:        major and minor numbers haven't changed, you should update your /dev
                    572:        directory.
1.1       abs       573:
1.4       itojun    574: 20000929:
                    575:        The following make directives are obsoleted.
                    576:        MKCRYPTO_RSA NOCRYPTO_RSA NOCRYPTO_RC5 NOCRYPTO_IDEA
                    577:        By default, RSA is built into libcrypto.  IDEA and RC5 will not be
1.16      wiz       578:        built into libcrypto.  By using MKCRYPTO_{RC5,IDEA}, you can build
1.4       itojun    579:        additional library libcrypto_{idea,rc5}.
1.1       abs       580:
                    581:
                    582: Hints for a more successful build:
                    583: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.2       mrg       584:     Build a new kernel first:
                    585:        This makes sure that any new system calls or features
                    586:           expected by the new userland will be present.  This
                    587:           helps to avoid critical errors when upgrading.
1.1       abs       588:     Use object directories:
                    589:        This helps to keep stale object
                    590:           files from polluting the build if a Makefile "forgets"
                    591:           about one.  It also makes it easier to clean up after
                    592:           a build.  It's also necessary if you want to use the
                    593:           same source tree for multiple machines.
                    594:           To use object directories:
                    595:            a) cd /usr/src ; make cleandir
1.2       mrg       596:            b) Add "OBJMACHINE=yes" to /etc/mk.conf
                    597:            c) Add "MKOBJDIRS=yes" to /etc/mk.conf
1.1       abs       598:            d) cd /usr/src ; make build
1.2       mrg       599:           Note that running "make obj" in a directory will create
                    600:           in obj.$MACHINE directory.
1.1       abs       601:     Build to a DESTDIR:
                    602:        This helps to keep old
                    603:           installed files (especially libraries) from interfering
                    604:           with the new build.
                    605:           To build to a DESTDIR, set the DESTDIR environment
1.2       mrg       606:           variable before running make build.  It should be set to
                    607:           the pathname of an initially empty directory.
1.1       abs       608:           Problems: you might need to update critical utilities
                    609:                without using DESTDIR since nothing is executed
                    610:                from what is installed in DESTDIR.
                    611:                (See critical utils, below)
                    612:     Build often:
                    613:        This keeps critical utilities current enough to not choke
                    614:        on any other part of the source tree that depends on up to
                    615:        date functionality.
                    616:
                    617: What to do if things don't work:
                    618: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    619: When things don't work there is usually a few things that commonly
                    620: should be done.
                    621:     1) make includes
                    622:        This should be done automatically by make build.
                    623:     2)  cd share/mk && make install
                    624:        Again, automatically done by make build.
                    625:
                    626: Failsafe rebuild of a small part of the tree:
                    627: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    628: To make sure you rebuild something correctly you want to do
                    629: something like the following:
                    630:     1)  Make sure the includes and .mk files are up to date.
                    631:     2)  Make sure any program used to build the particular
                    632:        utility is up to date.  (yacc, lex, etc...)
                    633:     3)  cd ...path/to/util...
                    634:        make cleandir
                    635:        rm ...all obj directories...
                    636:        make cleandir                   # yes, again
                    637:        make obj
                    638:        make depend && make
                    639:
                    640: Failsafe rebuild of the entire tree:
                    641: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    642: If you really want to make sure the source tree is clean and
1.2       mrg       643: ready for a build try the following.  Note that sourcing /etc/mk.conf
                    644: (a make(1) Makefile) in this manner is not right, and will not work
                    645: for anyone who uses any make(1) features in /etc/mk.conf.
1.1       abs       646:
                    647: ---cut here---
                    648: #!/bin/sh
                    649: . /etc/mk.conf
                    650:
1.58      lukem     651: if [ -z $NETBSDSRCDIR ] ; then
                    652:     NETBSDSRCDIR=/usr/src
1.1       abs       653: fi
1.58      lukem     654: if [ \! -d $NETBSDSRCDIR ] ; then
1.1       abs       655:     echo Unable to find sources
                    656:     exit 1
                    657: fi
1.58      lukem     658: find $NETBSDSRCDIR -name \*.o -o -name obj.\* -o -name obj -exec rm \{\} \;
1.1       abs       659:
                    660: if [ -z $BSDOBJDIR ] ; then
                    661:     BSDOBJDIR=/usr/obj
                    662: fi
                    663: if [ -d $BSDOBJDIR ] ; then
                    664:     rm -rf $BSDOBJDIR
                    665: fi
                    666:
1.58      lukem     667: cd $NETBSDSRCDIR && make cleandir
1.1       abs       668:
                    669: ---cut here---
                    670:
                    671: Critical utilities:
                    672: ^^^^^^^^^^^^^^^^^^^
                    673:        gnu/usr.bin/egcs
1.3       itojun    674:        usr.bin/compile_et
1.1       abs       675:        usr.bin/make
                    676:        usr.bin/yacc
                    677:        usr.bin/lex
1.11      lukem     678:        usr.bin/xlint
1.2       mrg       679:        usr.sbin/config
1.1       abs       680:
1.34      simonb    681: Other problems and possible solutions:
1.1       abs       682: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    683: Symptom:Unreasonable compiler errors.
                    684: Fix:   Rebuild gnu/usr.bin/egcs
                    685:
                    686: Symptom:Complaints involving a Makefile.
1.17      erh       687: Fix:   Rebuild usr.bin/make:
                    688:        cd usr.bin/make && make && make install
1.111     simonb    689:        Or, a failsafe method if that doesn't work:
1.17      erh       690:        cd usr.bin/make && cc *.c */*.c -I . -o make && mv make /usr/bin
                    691:
1.1       abs       692: Fix:   Make sure .mk files are up to date.
                    693:        cd share/mk && make install
1.2       mrg       694:
                    695: Symptom:Kernel `config' fails to configure any kernel, including GENERIC.
                    696: Fix:   Rebuild usr.sbin/config
1.1       abs       697:
                    698: Symptom:
                    699: Fix:   Rebuild usr.bin/yacc
                    700:
                    701: Symptom:
                    702: Fix:   Rebuild usr.bin/lex
                    703:
                    704: Symptom:
                    705: Fix:   rm /usr/lib/libbfd.a
1.4       itojun    706:
                    707: Symptom:Obsolete intermediate files are used during compilation
                    708: Fix:   Try the following sequence of commands in the directory in question.
                    709:        make cleandir; rm `make print-objdir`; make cleandir; make obj
                    710:        (If you built the tree without "make obj" in the past, obsolete files
                    711:        may remain.  The command tries to clean everything up)
1.5       wiz       712:
                    713: Symptom:.../sysinst/run.c:xx: warning: initialization from incompatible pointer type
                    714: Fix:   Rebuild and install usr.bin/menuc
1.12      itojun    715:
                    716: Symptom:mklocale not found during build in share/locale/ctype
                    717: Fix:   Build and install usr.bin/mklocale
1.13      dogcow    718:
1.86      kleink    719: Symptom:undefined reference to `__assert13' or `__unsetenv13'
1.13      dogcow    720: Fix:    Rebuild and install lib/libc
                    721:
1.19      cgd       722: Symptom:usr.sbin/config fails to build.
                    723: Fix:   Try building with -DMAKE_BOOTSTRAP added to CFLAGS in Makefile.
1.13      dogcow    724:
1.19      cgd       725: Symptom:undefined reference to `getprogname' or `setprogname'
                    726: Fix:    Rebuild and install lib/libc
1.24      abs       727:
                    728: Symptom:lint does not understand the '-X' option
                    729: Fix:    May need to build & install libs with NOLINT=1 before rebuilding lint

CVSweb <webmaster@jp.NetBSD.org>