From: Jinwoo Lee Date: Sat, 13 Jun 2015 21:22:25 +0000 (+1700) Subject: Re: [patch v3 1/4] build: integrate building ruby bindings into notmuch build process X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=847514b7cbf60da8ecc39baf3d377fe426c489af;p=notmuch-archives.git Re: [patch v3 1/4] build: integrate building ruby bindings into notmuch build process --- diff --git a/29/1b8bc32fb8fefdc6a4047b2be2a0b61206de45 b/29/1b8bc32fb8fefdc6a4047b2be2a0b61206de45 new file mode 100644 index 000000000..c9ef55e57 --- /dev/null +++ b/29/1b8bc32fb8fefdc6a4047b2be2a0b61206de45 @@ -0,0 +1,135 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id BF78B6DE0AF8 + for ; Sat, 13 Jun 2015 14:22:31 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.568 +X-Spam-Level: +X-Spam-Status: No, score=-0.568 tagged_above=-999 required=5 tests=[AWL=0.002, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id PKFhDJ8tDzBj for ; + Sat, 13 Jun 2015 14:22:29 -0700 (PDT) +Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com + [209.85.220.42]) + by arlo.cworth.org (Postfix) with ESMTPS id C5B896DE0948 + for ; Sat, 13 Jun 2015 14:22:29 -0700 (PDT) +Received: by pacgb13 with SMTP id gb13so11372975pac.1 + for ; Sat, 13 Jun 2015 14:22:29 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:subject:in-reply-to:references:user-agent:date:message-id + :mime-version:content-type; + bh=ScZRv5ZvZyLIckfYWQ8C/8iF9J5VWUgR56A/Y5H2lPE=; + b=rCTs5bN9fT2dQg/XTB7DWJU+bCBySHeduoTdyXdI53sep9icCnLwFhvvWeuhRG98uU + 7AdwsnjcoDzLgGs04aINNJylqiEHYXicDZiWIoKKSrFA2qiAr/SpRJ+pD5LegQ+wNVei + Td1Z0LPcWR6RXePw6ydqVKUnYgLXabNTFB3JQnamAe/Ldog+DXR+ryuIsCtc0KZZn9O7 + 9w9hyTtqglRpcmyEAE/BF3RrIpR21RmQikKSfRacYo9fjwjk3MzMKftRq04IbAbO3prD + vuGcahQxyBo3KBLk4kk6tIlECoPA18bMZL0ya62EQtKGoZHAiec5p7QIdYaa7qY+VUs8 + CARw== +X-Received: by 10.66.65.134 with SMTP id x6mr33824621pas.129.1434230549480; + Sat, 13 Jun 2015 14:22:29 -0700 (PDT) +Received: from localhost ([2601:647:4b02:71ea:b00c:9bdd:d6e7:4a42]) + by mx.google.com with ESMTPSA id pz9sm7509485pbb.93.2015.06.13.14.22.26 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 13 Jun 2015 14:22:27 -0700 (PDT) +From: Jinwoo Lee +To: David Bremner , notmuch@notmuchmail.org +Subject: Re: [patch v3 1/4] build: integrate building ruby bindings into + notmuch build process +In-Reply-To: <87bngj9uvv.fsf@maritornes.cs.unb.ca> +References: <1425679073-30439-5-git-send-email-david@tethera.net> + <1433142542-2307-1-git-send-email-david@tethera.net> + <1433142542-2307-2-git-send-email-david@tethera.net> + <87zj4415bu.fsf@maritornes.cs.unb.ca> + + + + <87bngj9uvv.fsf@maritornes.cs.unb.ca> +User-Agent: Notmuch/0.20.1+21~g4e79903 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-apple-darwin14.3.0) +Date: Sat, 13 Jun 2015 14:22:25 -0700 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 13 Jun 2015 21:22:31 -0000 + +On Sat, Jun 13, 2015 at 02:11 PM, David Bremner wrote: +> Jinwoo Lee writes: +> +>>> I with configure has an option to skip the ruby-bindings build. +>> +>> `configure' seems to try to detect whether the ruby development tools +>> are installed. It thinks I have them but I don't actually, and that's +>> why my build fails. When I manually set 'HAVE_RUBY_DEV = 0' in +>> Makefile.config, everything's fine. +> +> Thanks for narrowing this down. Can you tell us the output of +> +> % ruby -e "require 'mkmf'" ; echo $? + +This command succeeds and returns 0. + +When I change the dependency of ruby-bindings from libnotmuch.so to +libnotmuch.dylib and run `make', I get errors like below. + +Looks like mkmf.rb (I have no idea what this is) is provided by OS X by +default, but actually running it fails. + +... +[snip] +... +checking for notmuch_database_create in libnotmuch.so... *** extconf.rb failed *** +Could not create Makefile due to some reason, probably lack of necessary +libraries and/or headers. Check the mkmf.log file for more details. You may +need configuration options. + +Provided configuration options: + --with-opt-dir + --without-opt-dir + --with-opt-include + --without-opt-include=${opt-dir}/include + --with-opt-lib + --without-opt-lib=${opt-dir}/lib + --with-make-prog + --without-make-prog + --srcdir=. + --curdir + --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby +/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError) +You have to install development tools first. + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:513:in `block in try_link0' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb:88:in `mktmpdir' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:510:in `try_link0' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:534:in `try_link' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:720:in `try_func' + from extconf.rb:19:in `block in have_local_library' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:336:in `postpone' + from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for' + from extconf.rb:17:in `have_local_library' + from extconf.rb:25:in `
' +make: *** [ruby-bindings] Error 1 +