libxml/parser.h not found?


(Dave Abrahams) #1

Anyone know what this is about?

/Users/dave/src/s/swift/utils/build-script --distcc '--lit-args=--distribute -sv' --build-args=-v --skip-build-ios-device --skip-build-tvos-device --skip-build-compiler-rt --swift-stdlib-build-type=Debug --swift-stdlib-enable-assertions=1 --skip-build-benchmarks --release-debuginfo --debug-swift-stdlib --swift-stdlib-build-type=Debug --swift-stdlib-enable-assertions=1 --test --

...
/Users/Shared/dabrahams/s/llvm/tools/clang/tools/c-index-test/c-index-test.c:15:10: fatal error: 'libxml/parser.h' file not found
#include <libxml/parser.h>
         ^
1 error generated.

···

--
-Dave


(Doug Coleman) #2

Looks like clang/CMakeLists.txt looks for libxml2:

find_package(LibXml2 2.5.3 QUIET)
if (LIBXML2_FOUND)
  set(CLANG_HAVE_LIBXML 1)
endif()

Perhaps you have the libxml2 library but not the libxml headers?

Doug

···

On Nov 3, 2016, at 12:54 PM, Dave Abrahams via swift-dev <swift-dev@swift.org> wrote:

Anyone know what this is about?

/Users/dave/src/s/swift/utils/build-script --distcc '--lit-args=--distribute -sv' --build-args=-v --skip-build-ios-device --skip-build-tvos-device --skip-build-compiler-rt --swift-stdlib-build-type=Debug --swift-stdlib-enable-assertions=1 --skip-build-benchmarks --release-debuginfo --debug-swift-stdlib --swift-stdlib-build-type=Debug --swift-stdlib-enable-assertions=1 --test --

...
/Users/Shared/dabrahams/s/llvm/tools/clang/tools/c-index-test/c-index-test.c:15:10: fatal error: 'libxml/parser.h' file not found
#include <libxml/parser.h>
        ^
1 error generated.

--
-Dave

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


(Dave Abrahams) #3

Looks like clang/CMakeLists.txt looks for libxml2:

find_package(LibXml2 2.5.3 QUIET)
if (LIBXML2_FOUND)
  set(CLANG_HAVE_LIBXML 1)
endif()

Perhaps you have the libxml2 library but not the libxml headers?

I don't know how that could happen, but anyway... a clean reconfigure
got me past it, thanks.

···

on Thu Nov 03 2016, Doug Coleman <swift-dev-AT-swift.org> wrote:

Doug

On Nov 3, 2016, at 12:54 PM, Dave Abrahams via swift-dev <swift-dev@swift.org> wrote:

Anyone know what this is about?

/Users/dave/src/s/swift/utils/build-script --distcc
'--lit-args=--distribute -sv' --build-args=-v
--skip-build-ios-device --skip-build-tvos-device
--skip-build-compiler-rt --swift-stdlib-build-type=Debug
--swift-stdlib-enable-assertions=1 --skip-build-benchmarks
--release-debuginfo --debug-swift-stdlib
--swift-stdlib-build-type=Debug --swift-stdlib-enable-assertions=1
--test --

...
/Users/Shared/dabrahams/s/llvm/tools/clang/tools/c-index-test/c-index-test.c:15:10: fatal error: 'libxml/parser.h' file not found
#include <libxml/parser.h>
        ^
1 error generated.

--
-Dave

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

--
-Dave