From: Alain Kalker <a.c.kalker@gmail.com>
To: linux-sparse@vger.kernel.org
Subject: sparse-llvm: link errors with LLVM 3.5.0
Date: Sun, 21 Sep 2014 18:49:18 +0000 (UTC) [thread overview]
Message-ID: <lvn6je$63j$1@ger.gmane.org> (raw)
Hi all,
I'm getting link errors building sparse on Arch Linux, which has LLVM
version 3.5.0.
An example:
/usr/lib/libLLVMSupport.a(Mutex.o): In function
`llvm::sys::MutexImpl::MutexImpl(bool)':
(.text._ZN4llvm3sys9MutexImplC2Eb+0x37): undefined reference to
`pthread_mutexattr_init'
From some discussion in [1], we found that this is most likely due to a
change in LLVM[2] which requires the new "--system-libs" option to llvm-
config to get the list of link flags for correct linking of system
libraries (including "-lpthread") needed by the LLVM libraries.
Kind regards,
Alain
[1]: https://bugs.archlinux.org/task/42053
[2]: http://reviews.llvm.org/rL197664
reply other threads:[~2014-09-21 18:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='lvn6je$63j$1@ger.gmane.org' \
--to=a.c.kalker@gmail.com \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).