Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Oct 2016 17:40:35 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        Marcus von Appen <mva@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>, Jonathan Anderson <jonathan@freebsd.org>
Subject:   Re: Recent -CURRENT unable to build numerous ports
Message-ID:  <B4A3B2F4-BEDF-4D3F-BCB4-0011FF22686D@FreeBSD.org>
In-Reply-To: <CAGBxaX=8r-ZhGyARoNRNviuuQD_%2BupRBAgMF8bP7u74g%2B5w1tQ@mail.gmail.com>
References:  <20161021184451.GA48781@athena.sysfault.org> <B3B4D779-C25E-4A95-A6C0-4D01A7033F4B@FreeBSD.org> <CAGBxaX=8r-ZhGyARoNRNviuuQD_%2BupRBAgMF8bP7u74g%2B5w1tQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_18F95366-4EB4-4496-AE28-CB93E97C1BBA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 22 Oct 2016, at 06:47, Aryeh Friedman <aryeh.friedman@gmail.com> =
wrote:
>=20
>> This was a side-effect of r307676, which added transformation rules =
for
>> .bco and .llo files (LLVM bytecode in binary and text =
representation).
>>=20
>> Because .SUFFIXES was not updated to match, bmake was actually trying =
to
>> build a ".c.bco" file in the above case...
>>=20
>> I committed a fix in r307754.
>>=20
>>=20
> Still doesn't work and still corrupts the base system (see output =
after
> portmaster failure) on a fresh from CD install of 11-STABLE (post =
svlite of
> /usr/src and make DESTDIR=3D/ world kernel):
>=20
> root@lilith:/usr/src # uname -a
> FreeBSD lilith 10.3-STABLE FreeBSD 10.3-STABLE #0 r307759: Sat Oct 22
> 00:14:55 EDT 2016     aryehl@lilith:/usr/obj/usr/src/sys/GENERIC  =
amd64

You said that you have a fresh install of 11-STABLE, but this shows
10.3-STABLE?  What is it?


> =3D=3D=3D>   Registering installation for gettext-runtime-0.19.8.1
> pkg-static: Unable to access file
> =
/usr/ports/devel/gettext-runtime/work/stage/usr/local/include/autosprintf.=
h:
> No such file or directory
> pkg-static: Unable to access file
> =
/usr/ports/devel/gettext-runtime/work/stage/usr/local/lib/libasprintf.a: =
No
> such file or directory
> pkg-static: Unable to access file
> =
/usr/ports/devel/gettext-runtime/work/stage/usr/local/lib/libasprintf.so:
> No such file or directory
> pkg-static: Unable to access file
> =
/usr/ports/devel/gettext-runtime/work/stage/usr/local/lib/libasprintf.so.0=
:
> No such file or directory
> pkg-static: Unable to access file
> =
/usr/ports/devel/gettext-runtime/work/stage/usr/local/lib/libasprintf.so.0=
.0.0:
> No such file or directory
> *** Error code 74

This has nothing to do with the fix I checked in.  It seems more like
packaging problem in the gettext port, or some problem on your system.

Maybe you can try cleaning the port, making sure the work directory is
gone, then build it again.



> root@lilith:/usr/ports # cd /usr/src
> root@lilith:/usr/src # make DESTDIR=3D/ world kernel;

Don't do this.  IMHO the "world" target should be removed, as it is too
easy to shoot yourself in the foot with it.

The correct way to do a source-based upgrade is:
* make buildworld
* make buildkernel
* make installkernel
* reboot in single user
* etcupdate -p
* make installworld
* etcupdate
* reboot


> --------------------------------------------------------------
>>>> stage 1.1: legacy release compatibility shims
> --------------------------------------------------------------
> cd /usr/src; MAKEOBJDIRPREFIX=3D/usr/obj/usr/src/tmp  INSTALL=3D"sh
> /usr/src/tools/install.sh"
> =
PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us=
r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi=
n:/sbin:/bin:/usr/sbin:/usr/bin
> WORLDTMP=3D/usr/obj/usr/src/tmp  VERSION=3D"FreeBSD 10.3-STABLE amd64 =
1003509"

Here is the discrepancy again, if this is 11-STABLE, why does it show
10.3-STABLE here?


> c++  -O2 -pipe
> -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include
> =
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/incl=
ude
> -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support =
-I.
> =
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/=
include
> -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS
> -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing
> -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd10.3\"
> -DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd10.3\" =
-DDEFAULT_SYSROOT=3D\"\"

And here the target and host are both 10.3.  What gives?


> =
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Suppo=
rt/AlignOf.h:19:
> /usr/include/c++/v1/cstddef:58:30: error: redefinition of 'nullptr_t'
> struct _LIBCPP_TYPE_VIS_ONLY nullptr_t
>                             ^
> /usr/include/c++/v1/__nullptr:24:30: note: previous definition is here
> struct _LIBCPP_TYPE_VIS_ONLY nullptr_t
>                             ^

It looks like you might have partially installed an 11-STABLE userland,
and now are trying to build a 10-STABLE world?  I am not sure if that
is supposed to work.

If your system is rather hosed, as I think it is, it might be easier to
just reinstall directly from the 11.0-RELEASE ISOs.  Then you can try
building 11-STABLE again.

-Dimitry


--Apple-Mail=_18F95366-4EB4-4496-AE28-CB93E97C1BBA
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.30

iEYEARECAAYFAlgLiH4ACgkQsF6jCi4glqOdOgCfR9Pt4iyyNGD122M+sa3gIvMb
qwMAoJh1a3abf17CaTlvDTL39FpoHVdT
=RCLW
-----END PGP SIGNATURE-----

--Apple-Mail=_18F95366-4EB4-4496-AE28-CB93E97C1BBA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B4A3B2F4-BEDF-4D3F-BCB4-0011FF22686D>