[ruby-dev:48064] [ruby-trunk - Bug #9658] [Closed] configure --with-opt-dir=dir と clang の組合せでビルドに失敗する
From:
knu@...
Date:
2014-03-21 12:59:18 UTC
List:
ruby-dev #48064
Issue #9658 has been updated by Akinori MUSHA. Status changed from Assigned to Closed % Done changed from 0 to 100 Applied in changeset r45378. ---------- Fix a build problem with clang and --with-opt-dir. * configure.in: Fix a build problem with clang and --with-opt-dir. If ruby is configured with --with-opt-dir=3Ddir when using clang as compiler, a warning `clang: warning: argument unused during compilation: '-I dir'` is emitted almost every time clang compiles a file. Unfortunately, RUBY_CHECK_PRINTF_PREFIX takes any output from the compiler as fatal error, and the check thus fails due to the warning. This is an attempt to fix the problem by adding a flag -Qunused-arguments to CFLAGS locally in the function to suppress the warning. [ruby-dev:48062] [Bug #9658] [Fixes GH-571] https://github.com/ruby/ruby/pull/571 ---------------------------------------- Bug #9658: configure --with-opt-dir=3Ddir =E3=81=A8 clang =E3=81=AE=E7=B5= =84=E5=90=88=E3=81=9B=E3=81=A7=E3=83=93=E3=83=AB=E3=83=89=E3=81=AB=E5=A4=B1= =E6=95=97=E3=81=99=E3=82=8B https://bugs.ruby-lang.org/issues/9658#change-45890 * Author: Akinori MUSHA * Status: Closed * Priority: Normal * Assignee: Akinori MUSHA * Category: build * Target version: current: 2.2.0 * ruby -v: 2.1.0 and later * Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED ---------------------------------------- ruby 2.1=E4=BB=A5=E9=99=8D=E3=81=A7 configure =E3=81=AB --with-opt-dir=3D/o= pt/local =E3=82=92=E6=8C=87=E5=AE=9A=E3=81=99=E3=82=8B=E3=81=A8=E3=80=81 * checking for printf prefix for long long... =E3=81=8C=E3=80=81 clang =E3= =81=AE=E5=90=90=E3=81=8F clang: warning: argument unused during compilation= : '-I /opt/local/include' =E3=81=AE=E3=81=9B=E3=81=84=E3=81=A7=E5=A4=B1=E6= =95=97=E3=81=97=E3=80=81 config.h =E3=81=AB PRI_LL_PREFIX =E3=81=AE=E5=AE= =9A=E7=BE=A9=E3=81=8C=E5=85=A5=E3=82=89=E3=81=AA=E3=81=84 * compiling .../ext/-test-/num2int/num2int.c =E3=81=8C=E3=81=93=E3=81=91=E3= =81=A6=E3=83=93=E3=83=AB=E3=83=89=E5=A4=B1=E6=95=97 =E3=81=A8=E3=81=84=E3=81=86=E6=B5=81=E3=82=8C=E3=81=A7=E3=81=99=E3=80=82 =E3=83=91=E3=83=83=E3=83=81=E3=82=92=E6=B7=BB=E4=BB=98=E3=81=97=E3=81=BE=E3= =81=99=E3=80=82 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) --=20 https://bugs.ruby-lang.org/