From: Lenz Grimmer <lenz@grimmer.com>
To: cwillu <cwillu@cwillu.com>
Cc: Btrfs mailing list <linux-btrfs@vger.kernel.org>
Subject: Re: Error compiling btrfs-tools from git (undefined reference to `pthread_create')
Date: Fri, 29 Jun 2012 10:46:53 +0200 [thread overview]
Message-ID: <4FED6B7D.5000800@grimmer.com> (raw)
In-Reply-To: <CAE5mzvhc-6S6AdY5uDxVqEegiTY_Sa3uFS-=1Ckit2T7rY4GOg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1776 bytes --]
Hi,
thank you for your reply.
On 06/27/2012 02:20 PM, cwillu wrote:
> On Wed, Jun 27, 2012 at 6:11 AM, Lenz Grimmer <lenz@grimmer.com> wrote:
>> On Ubuntu 11.10 "Oneiric" with gcc 4.6.1, compiling the btrfs tools from git
>> fails for me with the following error:
>
> Which git repo?
> git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
> builds on ubuntu just fine (just checked on a fresh checkout), and
> likewise the integration repo (but note that the integration repo's
> master branch is not useful to build; you need to check out one of the
> actual integration branches as described on the wiki).
That's likely the issue - the following commands reproduce the compile error
for me:
git clone http://git.darksatanic.net/repo/btrfs-progs-unstable.git btrfs-progs
cd btrfs-progs
make
[...]
gcc -lpthread -g -Werror -Os -o btrfs btrfs.o btrfs_cmds.o scrub.o \
ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o root-tree.o
dir-item.o file-item.o inode-item.o inode-map.o crc32c.o rbtree.o
extent-cache.o extent_io.o volumes.o utils.o btrfs-list.o btrfslabel.o -luuid
scrub.o: In function `scrub_start':
/space/tmp/btrfs-progs/scrub.c:1342: undefined reference to `pthread_create'
/space/tmp/btrfs-progs/scrub.c:1360: undefined reference to `pthread_create'
/space/tmp/btrfs-progs/scrub.c:1374: undefined reference to `pthread_join'
/space/tmp/btrfs-progs/scrub.c:1430: undefined reference to `pthread_cancel'
/space/tmp/btrfs-progs/scrub.c:1432: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
However, using the integration-20120605 branch compiles fine. Thanks and sorry
for the noise!
Bye,
LenZ
--
Lenz Grimmer <lenz@grimmer.com> - http://www.lenzg.net/
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2012-06-29 8:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 12:11 Error compiling btrfs-tools from git (undefined reference to `pthread_create') Lenz Grimmer
2012-06-27 12:20 ` cwillu
2012-06-29 8:46 ` Lenz Grimmer [this message]
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=4FED6B7D.5000800@grimmer.com \
--to=lenz@grimmer.com \
--cc=cwillu@cwillu.com \
--cc=linux-btrfs@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).