Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: .../atf/lib/tools/libtools.a , amd64



On 2/12/14, NONAKA Kimihiro <nonakap%gmail.com@localhost> wrote:
> Hi,
>
> 2014-02-12 7:38 GMT+09:00 B Harder <brad.harder%gmail.com@localhost>:
>
>> This has been failing for me w/ latest, up-to-date src for some time.
>> Is there cleanup or tweaking I need to do to get this working again?
>>
>> nbmake[9]: nbmake[9]: don't know how to make
>> /usr/src/external/bsd/atf/lib/tools/libtools.a. Stop
>
> I think OBJDIR is wrong.
>
> nonaka@netbsd$ pwd
> /usr/src/external/bsd/atf/lib
> nonaka@netbsd$ make -V .OBJDIR
> /usr/src/external/bsd/atf/lib
> nonaka@netbsd$ cd tools
> nonaka@netbsd$ make -V .OBJDIR
> /usr/src/external/bsd/atf/lib/tools/obj.i386
>
> Index: external/bsd/atf/Makefile.inc
> ===================================================================
> RCS file: /cvsroot/src/external/bsd/atf/Makefile.inc,v
> retrieving revision 1.3
> diff -u -r1.3 Makefile.inc
> --- external/bsd/atf/Makefile.inc    12 Feb 2014 04:08:31 -0000    1.3
> +++ external/bsd/atf/Makefile.inc    13 Feb 2014 04:40:43 -0000
> @@ -39,8 +39,8 @@
>  CPPFLAGS+=    -I${SRCDIR}
>
>  .if defined(USE_ATF_LIBTOOLS)
> -PRIVATELIBDIR!= cd ${TOPDIR}/lib; ${PRINTOBJDIR}
> -CPPFLAGS+=    -I${PRIVATELIBDIR}/tools
> -LDADD+=        ${PRIVATELIBDIR}/tools/libtools.a
> -DPADD+=        ${PRIVATELIBDIR}/tools/libtools.a
> +PRIVATELIBTOOLDIR!= cd ${TOPDIR}/lib/tools; ${PRINTOBJDIR}
> +CPPFLAGS+=    -I${PRIVATELIBTOOLDIR}
> +LDADD+=        ${PRIVATELIBTOOLDIR}/libtools.a
> +DPADD+=        ${PRIVATELIBTOOLDIR}/libtools.a
>  .endif

Indeed that allows the build to proceed. Post-build has another atf issue:

postinstall checks failed: motd atf
To fix, run:
    sh /usr/sbin/postinstall -s '/usr/src' -d / fix motd atf
Note that this may overwrite local changes.
*** All done
kamloops# postinstall -s /usr/src -d / fix atf
Source directory: /usr/src
Target directory: /
atf fix:
        Can't find source directory for atf-run.hooks
postinstall fixes passed:
postinstall fixes failed: atf



-bch


Home | Main Index | Thread Index | Old Index