Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libxml2 missing from --system-libs when libxml2 is enabled #36008

Closed
llvmbot opened this issue Mar 9, 2018 · 5 comments
Closed

libxml2 missing from --system-libs when libxml2 is enabled #36008

llvmbot opened this issue Mar 9, 2018 · 5 comments
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Mar 9, 2018

Bugzilla Link 36660
Resolution FIXED
Resolved on Apr 06, 2018 21:28
Version 6.0
OS Linux
Blocks #35997
Reporter LLVM Bugzilla Contributor
CC @andrewrk,@zmodem
Fixed by commit(s) r327135 r329482

Extended Description

Compiled LLVM 6.0.0 with default options for my system but only the X86 target enabled, which turns on LLVM_ENABLE_LIBXML2 because I have libxml2 installed. When linking against the resulting binaries, I get a lot of unresolved symbols that match ones exported by -lxml2.

llvm-config --link-static --system-libs returns -lz -lrt -ldl -ltinfo -lpthread -lm. I believe it should also include -lxml2.

I tried to investigate further myself, but didn't get far enough into what llvm-config does internally to figure out where the --system-libs are specified.

@zmodem
Copy link
Collaborator

zmodem commented Mar 9, 2018

Fix idea: https://reviews.llvm.org/D44302

@zmodem
Copy link
Collaborator

zmodem commented Mar 9, 2018

r327135

@andrewrk
Copy link
Member

andrewrk commented Mar 9, 2018

I don't have a link to the release blocker bug for 6.0.1. Can we get this picked into the 6.0.1 branch?

@zmodem
Copy link
Collaborator

zmodem commented Mar 12, 2018

Good point. Let's keep it open until it's decided about merging.

@tstellar
Copy link
Collaborator

tstellar commented Apr 7, 2018

Merged: r329482

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag
Projects
None yet
Development

No branches or pull requests

4 participants