Project

General

Profile

Actions

Bug #9658

closed

configure --with-opt-dir=dir と clang の組合せでビルドに失敗する

Added by knu (Akinori MUSHA) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Target version:
ruby -v:
2.1.0 and later
[ruby-dev:48062]

Description

ruby 2.1以降で configure に --with-opt-dir=/opt/local を指定すると、

  • checking for printf prefix for long long... が、 clang の吐く clang: warning: argument unused during compilation: '-I /opt/local/include' のせいで失敗し、 config.h に PRI_LL_PREFIX の定義が入らない

  • compiling .../ext/-test-/num2int/num2int.c がこけてビルド失敗

という流れです。

パッチを添付します。

cf.
https://twitter.com/knu/status/421181635455766529
https://gist.github.com/knu/8330662
https://github.com/ruby/ruby/pull/571


Files

571.patch (2.65 KB) 571.patch https://github.com/ruby/ruby/pull/571 knu (Akinori MUSHA), 03/20/2014 03:25 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0