On Fri, Oct 14, 2016 at 6:10 AM, Dmitry Luhtionov <dmitryluhtio...@gmail.com
> wrote:

> 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/clang/
> include
> -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS
> -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing
> -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd11.0\"
> -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.0\"
> -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -MD -MF.depend.Compression.o
> -MTCompression.o -Qunused-arguments
> -I/usr/obj/usr/src/tmp/legacy/usr/include  -std=c++11 -fno-exceptions
> -fno-rtti -stdlib=libc++ -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.
>

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.)

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.

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: rkober...@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-unsubscr...@freebsd.org"

---
河北隆生@熊本県産業技術センター
_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to