Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2021 08:31:33 -1000
From:      "parv/freebsd" <parv.0zero9+freebsd@gmail.com>
To:        Tomasz CEDRO <tomek@cedro.info>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: 12.2-RELEASE buildworld fail at cddl/zfs / libuutil.so
Message-ID:  <CABObuOo7M-1rVSuEpH0BzWU5eUor=5n%2BCA-AkmVL3HaczacG9Q@mail.gmail.com>
In-Reply-To: <ddb6e5d0-d18f-b4d2-16fd-48fa7f0005c3@cedro.info>
References:  <CABObuOrQ2GbDNeHsD09C0y3RQz7qkvHcCjNU6SQ6gNa4D3dS0A@mail.gmail.com> <ddb6e5d0-d18f-b4d2-16fd-48fa7f0005c3@cedro.info>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 27, 2021 at 6:10 AM Tomasz CEDRO wrote:

Hi Tomasz,

On 27.01.2021 12:52, parv/freebsd wrote:
>
...

> >     # /usr/bin/time -h make buildkernel buildworld NO_CLEAN=1
> > .                                               ^ ^ ^ ^ ^ ^
> > Perhaps try with cleaning out first buildworld, then kernel?
>
> Well I did remove all from /usr/obj, build failed, then checked out
> /usr/src from svn, build failed, then checked out /usr/src from git, and
> it failed.
>
> Just to make sure this is not a local environment problem I have
> switched to stable/12 branch (that is 12-STABLE) and it builds fine!!
>

Thanks for the clue ...

# git log --pretty=fuller --grep libuutil release/12.2.0..stable/12

commit 30ec3f368d
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: Dec.2020.1206-1622 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: Dec.2020.1206-1622 +0000

    MFC r364027 by arichardson: Fix linker error in libuutil with recent
LLVM

    This also fixes nanobsd-style build (cross-compiling).
    Original commit log:

      Not marking the function as static can result in a linker error:
      undefined reference to __assfail [--no-allow-shlib-undefined]
      I noticed this error after updating our CHERI LLVM to the latest
upstream
      LLVM HEAD revision.

      This change effectively reverts r329984 and marks dmu_buf_init_user as
      static (which keeps the GCC build happy).
... above seems to (as I haven't bisected) be the fix in 12-STABLE which
allows
the build to finish with success.

  - parv



> # git branch
>    main
>    releng/12.2
> * stable/12
>
...

> # /usr/bin/time -h make buildkernel buildworld release -j12
>
...

> --- kernel.full ---
> linking kernel.full
> ctfmerge -L VERSION -g -o kernel.full ...
>        text      data       bss        dec         hex   filename
>    23861318   1836970   3798784   29497072   0x1c216f0   kernel.full
> --- kernel.debug ---
> objcopy --only-keep-debug kernel.full kernel.debug
> --- kernel ---
> objcopy --strip-debug --add-gnu-debuglink=kernel.debug  kernel.full kernel
> --------------------------------------------------------------
>  >>> Kernel build for GENERIC completed on Wed Jan 27 08:03:22 CET 2021
> --------------------------------------------------------------
> `release' is up to date.
>          1h16m12.69s real                5h45m44.19s user
>   28m53.59s sys
>
>
> Did anyone manage to build 12.2-RELEASE from repo? :-)
>

--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOo7M-1rVSuEpH0BzWU5eUor=5n%2BCA-AkmVL3HaczacG9Q>