Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2016 09:10:42 +0200
From:      Schaich Alonso <alonsoschaich@fastmail.fm>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        Dmitry Luhtionov <dmitryluhtionov@gmail.com>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: make buildwotrld can not find zlib,h
Message-ID:  <20161018091042.dbc86eadd7c15f1e7fc4b5e1@fastmail.fm>
In-Reply-To: <CAN6yY1ta5e_8e9=OW1jKRPRn==Z%2BW_Vz3Uu_0=wHCT53ak0kRA@mail.gmail.com>
References:  <CAAYMRQf0mVGVHUaYdvT4DbxAJgavo-eb5odBQKJ9VFa0F0A5XQ@mail.gmail.com> <CAN6yY1ta5e_8e9=OW1jKRPRn==Z%2BW_Vz3Uu_0=wHCT53ak0kRA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Tue__18_Oct_2016_09_10_42_+0200_IXPCeqz1GtpNB+lF
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, 14 Oct 2016 11:06:55 -0700
Kevin Oberman <rkoberman@gmail.com> wrote:

> On Fri, Oct 14, 2016 at 6:10 AM, Dmitry Luhtionov <dmitryluhtionov@gmail.=
com
> > wrote:
>=20
> > c++  -O2 -pipe
> > -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include
> > -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/
> > include
> > -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -=
I.
> > -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/cla=
ng/
> > 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-freebsd11.0\"
> > -DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd11.0\"
> > -DDEFAULT_SYSROOT=3D\"/usr/obj/usr/src/tmp\" -MD -MF.depend.Compression=
.o
> > -MTCompression.o -Qunused-arguments
> > -I/usr/obj/usr/src/tmp/legacy/usr/include  -std=3Dc++11 -fno-exceptions
> > -fno-rtti -stdlib=3Dlibc++ -Wno-c++11-extensions  -c
> > /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/
> > Compression.cpp
> > -o Compression.o
> > /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/
> > Compression.cpp:21:10:
> > fatal error: 'zlib.h' file not found
> > #include <zlib.h>
> >          ^
> > 1 error generated.
> >
>=20
> Very odd. /usr/include/zlib.h is and long has been a standard component of
> FreeBSD and should be present on your system. Can you confirm its absence?
> Anything that could be in /etc/src.conf that might trigger this? (I can't
> see anything obvious, but src.conf(5) is very long.)
>=20
> I'm also not sure whether, at this point in the build, you should be using
> the system's include files or those in /usr/obj/usr/src/tmp/usr/include/ =
or
> /usr/src/lib/libz/zlib.h, which is what should be copied to
> /usr/obj/usr/src/tmp/usr/include. Normally the system's files are not used
> during the build.
>=20
> Have you tried completely removing /usr/obj (rm -r /usr/obj/*) before
> starting the build with -DNO_CLEAN?
> --
> Kevin Oberman, Part time kid herder and retired Network Engineer
> E-mail: rkoberman@gmail.com
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


Hi,

I'm having an issue with libarchive that might or might not be related:

> [...]
> (cd /usr/src/lib/libarchive/tests &&  DEPENDFILE=3D.depend.libarchive_tes=
t  NO_SUBDIR=3D1 make -f /usr/src/lib/libarchive/tests/Makefile _RECURSING_=
PROGS=3Dt  PROG=3Dlibarchive_test )
> cc -O2 -pipe -I/usr/src/lib/libarchive -I/usr/obj/usr/src/lib/libarchive/=
tests -I/usr/src/contrib/libarchive/libarchive -I/usr/src/contrib/libarchiv=
e/test_utils -DHAVE_LIBLZMA=3D1 -DHAVE_LZMA_H=3D1   -g -MD  -MF.depend.liba=
rchive_test.main.o -MTmain.o -std=3Dgnu99 -fstack-protector-strong    -Qunu=
sed-arguments  -c /usr/src/contrib/libarchive/libarchive/test/main.c -o mai=
n.o
> /usr/src/contrib/libarchive/libarchive/test/main.c:2400:10: fatal error: =
'list.h' file not found
> #include "list.h"
>          ^
> 1 error generated.
> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /usr/src/lib/libarchive/tests
> *** Error code 1
> [...]

list.h is perfectly there, but it's in /usr/src/lib/libarchive/tests rather=
 than /usr/obj/usr/src/lib/libarchive/tests (the second -I is wrong), so ei=
ther some copy-to-builddir target was skipped or the build process should i=
nclude the source path instead of the build path.

I removed anything from /usr/obj/ and also commented-away anything I had in=
 make.conf and src.conf prior to attempting to compile it (11-STABLE r30755=
0).

Alonso

--Signature=_Tue__18_Oct_2016_09_10_42_+0200_IXPCeqz1GtpNB+lF
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJYBcrzXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGRUQ1N0JDOERFQjk5NEQ5QjUyQzBBMzVG
RjhGNkI2RDBBQUNGQzY3AAoJEP+Pa20KrPxn0IEIAIVfYip87Nuedr4VdY/fQrqv
q94r1Ncfpl0hSIB50dZdyQLBgLcuvIdNF01rBp1G8dOe5IIUUMW3b76nLd1rzBK9
tLvRY9JKS9grOGRA6H+cXulHukMG1R73aKwL59K4C4om/X66+qa60b1oKmYQ9Jgb
lpALPDYg8HJEZV0HXibTbPjr2zXVrXXiCkskxpfl80Nibtzmgwa/cjouskcDjqC5
hhqRVarJz78ZqP0geln1zTaRzUNLnubWEIaIZSoTRZwIFTM05Gb2ewN2WAfXoUZR
ctWr47MISkLpMUjOkFSkd7XaKtq4wJy/GPF4bxZ1eG6aX5jsfiwz6DqRKZaJK+g=
=dkGY
-----END PGP SIGNATURE-----

--Signature=_Tue__18_Oct_2016_09_10_42_+0200_IXPCeqz1GtpNB+lF--



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