Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2007 16:43:53 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        archon <archon_666@mail.ru>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: 'make buildworld' fails
Message-ID:  <20070130134353.GC1052@rambler-co.ru>
In-Reply-To: <1169826560.9859.15.camel@cameroon.enclave.org>
References:  <1169826560.9859.15.camel@cameroon.enclave.org>

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

--ABTtc+pdwF7KHXCz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 26, 2007 at 08:49:19PM +0500, archon wrote:
> I've just updated the sources in FreeBSD 6.2-RELEASE and tried to
> rebuild world. With option 'NO_CXX=3DYES' in /etc/make.conf world compiled
> successful, if this option not added 'make buildworld' failed. 'make
> buildworld' fails:
> <..>
> =3D=3D=3D> gnu/usr.bin/groff/src/libs/libgroff (depend)
> Making version.cpp
> rm -f .depend
> mkdep -f .depend -a    -DHAVE_CONFIG_H
> -I/usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/=
groff/src/include -I/usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../s=
rc/include /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../c=
ontrib/groff/src/libs/libgroff/iftoa.c /usr/src/gnu/usr.bin/groff/src/libs/=
libgroff/../../../../../../contrib/groff/src/libs/libgroff/itoa.c /usr/src/=
gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/groff/src/lib=
s/libgroff/matherr.c /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../=
=2E./../../contrib/groff/src/libs/libgroff/progname.c
> mkdep -f .depend
> -a        /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../=
contrib/groff/src/libs/libgroff/assert.cpp /usr/src/gnu/usr.bin/groff/src/l=
ibs/libgroff/../../../../../../contrib/groff/src/libs/libgroff/change_lf.cp=
p /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/gr=
off/src/libs/libgroff/cmap.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff=
/../../../../../../contrib/groff/src/libs/libgroff/color.cpp /usr/src/gnu/u=
sr.bin/groff/src/libs/libgroff/../../../../../../contrib/groff/src/libs/lib=
groff/cset.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../=
=2E./contrib/groff/src/libs/libgroff/device.cpp /usr/src/gnu/usr.bin/groff/=
src/libs/libgroff/../../../../../../contrib/groff/src/libs/libgroff/errarg.=
cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/=
groff/src/libs/libgroff/error.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgr=
off/../../../../../../contrib/groff/src/libs/libgroff/fatal.cpp /usr/src/gn=
u/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/groff/src/libs/=
libgroff/filename.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../..=
/../../../contrib/groff/src/libs/libgroff/font.cpp /usr/src/gnu/usr.bin/gro=
ff/src/libs/libgroff/../../../../../../contrib/groff/src/libs/libgroff/font=
file.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../con=
trib/groff/src/libs/libgroff/geometry.cpp /usr/src/gnu/usr.bin/groff/src/li=
bs/libgroff/../../../../../../contrib/groff/src/libs/libgroff/glyphuni.cpp =
/usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/grof=
f/src/libs/libgroff/htmlhint.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgro=
ff/../../../../../../contrib/groff/src/libs/libgroff/hypot.cpp /usr/src/gnu=
/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/groff/src/libs/l=
ibgroff/invalid.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../.=
=2E/../../contrib/groff/src/libs/libgroff/lf.cpp /usr/src/gnu/usr.bin/groff=
/src/libs/libgroff/../../../../../../contrib/groff/src/libs/libgroff/lineno=
=2Ecpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contr=
ib/groff/src/libs/libgroff/macropath.cpp /usr/src/gnu/usr.bin/groff/src/lib=
s/libgroff/../../../../../../contrib/groff/src/libs/libgroff/maxfilename.cp=
p /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/gr=
off/src/libs/libgroff/mksdir.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgro=
ff/../../../../../../contrib/groff/src/libs/libgroff/nametoindex.cpp /usr/s=
rc/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/groff/src/=
libs/libgroff/new.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../..=
/../../../contrib/groff/src/libs/libgroff/paper.cpp /usr/src/gnu/usr.bin/gr=
off/src/libs/libgroff/../../../../../../contrib/groff/src/libs/libgroff/pri=
me.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contr=
ib/groff/src/libs/libgroff/ptable.cpp /usr/src/gnu/usr.bin/groff/src/libs/l=
ibgroff/../../../../../../contrib/groff/src/libs/libgroff/searchpath.cpp /u=
sr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/groff/=
src/libs/libgroff/string.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/.=
=2E/../../../../../contrib/groff/src/libs/libgroff/strsave.cpp /usr/src/gnu=
/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/groff/src/libs/l=
ibgroff/symbol.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../..=
/../../contrib/groff/src/libs/libgroff/tmpfile.cpp /usr/src/gnu/usr.bin/gro=
ff/src/libs/libgroff/../../../../../../contrib/groff/src/libs/libgroff/tmpn=
ame.cpp /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../cont=
rib/groff/src/libs/libgroff/unicode.cpp /usr/src/gnu/usr.bin/groff/src/libs=
/libgroff/../../../../../../contrib/groff/src/libs/libgroff/uniglyph.cpp /u=
sr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/groff/=
src/libs/libgroff/uniuni.cpp version.cpp=20
> /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/gr=
off/src/libs/libgroff/cmap.cpp:27:18: cmap.h: No such file or directory
[...]
> /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/gr=
off/src/libs/libgroff/uniuni.cpp:29:21: unicode.h: No such file or directory
> mkdep: compile failed
> *** Error code 1
>=20
> Stop in /usr/src/gnu/usr.bin/groff/src/libs/libgroff.
> *** Error code 1

[...]

> My /etc/make.conf configuration file:
>=20
> CPUTYPE?=3Dpentium4
> CFLAGS=3D-O0 -g -pipe
> MAKE_SHELL?=3Dsh
> COPTFLAGS=3D-O0 -g -pipe
> CXXFLAGS=3D-O0 -g -pipe

Don't do that!  The make.conf(5) manpage states it explicitly
that CXXFLAGS (if ever set) is to be set using the +=3D operator.
By setting it explicitly, you broke it -- by default, it's set
to ${CFLAGS} (the latter is expanded at run time!).  In your
case, just removing the CXXFLAGS line will 1) do what you want
and 2) unbreak the build.

: CXXFLAGS      (str) Controls the compiler settings when compiling C++
:               code.  CXXFLAGS is initially set to the value of CFLAGS.
:               If you want to add to the CXXFLAGS value, use ``+=3D''
:               instead of ``=3D''.


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--ABTtc+pdwF7KHXCz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFv0uZqRfpzJluFF4RAt5jAJ4wGvyzSchfgY+ab/mUWRRubMnICgCeN6Ah
W2MwJK3KiOsySSzKZr+EAts=
=zbGE
-----END PGP SIGNATURE-----

--ABTtc+pdwF7KHXCz--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070130134353.GC1052>