Skip to content

[libxml2] build failure with x64-linux-dynamic #14990

@klalumiere

Description

@klalumiere

Host Environment

set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)

set(VCPKG_CMAKE_SYSTEM_NAME Linux)

To Reproduce
./vcpkg install libxml2:x64-linux-dynamic --overlay-triplets [PATH_TO_x64-linux-dynamic]

Failure logs

FAILED: libxml2.so 
: && /usr/bin/clang -fPIC -fPIC -g   -shared -Wl,-soname,libxml2.so -o libxml2.so CMakeFiles/libxml2.dir/DOCBparser.c.o CMakeFiles/libxml2.dir/HTMLparser.c.o CMakeFiles/libxml2.dir/HTMLtree.c.o CMakeFiles/libxml2.dir/SAX.c.o CMakeFiles/libxml2.dir/SAX2.c.o CMakeFiles/libxml2.dir/buf.c.o CMakeFiles/libxml2.dir/c14n.c.o CMakeFiles/libxml2.dir/catalog.c.o CMakeFiles/libxml2.dir/chvalid.c.o CMakeFiles/libxml2.dir/debugXML.c.o CMakeFiles/libxml2.dir/dict.c.o CMakeFiles/libxml2.dir/encoding.c.o CMakeFiles/libxml2.dir/entities.c.o CMakeFiles/libxml2.dir/error.c.o CMakeFiles/libxml2.dir/globals.c.o CMakeFiles/libxml2.dir/hash.c.o CMakeFiles/libxml2.dir/legacy.c.o CMakeFiles/libxml2.dir/list.c.o CMakeFiles/libxml2.dir/nanoftp.c.o CMakeFiles/libxml2.dir/nanohttp.c.o CMakeFiles/libxml2.dir/parser.c.o CMakeFiles/libxml2.dir/parserInternals.c.o CMakeFiles/libxml2.dir/pattern.c.o CMakeFiles/libxml2.dir/relaxng.c.o CMakeFiles/libxml2.dir/schematron.c.o CMakeFiles/libxml2.dir/threads.c.o CMakeFiles/libxml2.dir/tree.c.o CMakeFiles/libxml2.dir/uri.c.o CMakeFiles/libxml2.dir/valid.c.o CMakeFiles/libxml2.dir/xinclude.c.o CMakeFiles/libxml2.dir/xlink.c.o CMakeFiles/libxml2.dir/xmlIO.c.o CMakeFiles/libxml2.dir/xmlmemory.c.o CMakeFiles/libxml2.dir/xmlmodule.c.o CMakeFiles/libxml2.dir/xmlreader.c.o CMakeFiles/libxml2.dir/xmlregexp.c.o CMakeFiles/libxml2.dir/xmlsave.c.o CMakeFiles/libxml2.dir/xmlschemas.c.o CMakeFiles/libxml2.dir/xmlschemastypes.c.o CMakeFiles/libxml2.dir/xmlstring.c.o CMakeFiles/libxml2.dir/xmlunicode.c.o CMakeFiles/libxml2.dir/xmlwriter.c.o CMakeFiles/libxml2.dir/xpath.c.o CMakeFiles/libxml2.dir/xpointer.c.o CMakeFiles/libxml2.dir/xzlib.c.o  -Wl,-rpath,/home/klalumiere/Projects/vcpkg/installed/x64-linux-dynamic/debug/lib:  /home/klalumiere/Projects/vcpkg/installed/x64-linux-dynamic/debug/lib/libz.so  /home/klalumiere/Projects/vcpkg/installed/x64-linux-dynamic/debug/lib/liblzmad.so  -llibc && :
/usr/bin/ld: cannot find -llibc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Additional context
I've coded a fix. The pull request will come soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:community-tripletA PR or issue related to community triplets not officially validated by the vcpkg team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions