Issue #7101 has been updated by knu (Akinori MUSHA). #16で触れた「別のバグ」の修正を r39281 に入れました。 (NetBSDではLIBRUBY_DLDFLAGSに --with-opt-dir が反映されなかったので execinfo を有効にしてビルドできなかった) これでNetBSDでビルドできるようになったかと思いきや、先ほどチケット化していただいた[Bug #7864](rc1で報告されていた問題)のせいで、そもそもNetBSDではtrunkもruby_2_0_0もビルドできていませんでした。 で、それらの修正を入れた上で、NetBSD/amd64で正常にビルドでき、rbconfig.rbのCFLAGS/CXXFLAGSも正常になりました。 念のため、NetBSDを常用している方にも確認をお願いします。 ---------------------------------------- Bug #7101: 拡張ライブラリの質問 https://bugs.ruby-lang.org/issues/7101#change-36345 Author: ko1 (Koichi Sasada) Status: Open Priority: Normal Assignee: mame (Yusuke Endoh) Category: build Target version: 2.0.0 ruby -v: trunk ささだです. trunk では,拡張ライブラリをビルドするとき,下記のようなオプションがつ きます. gcc -I. (snip) -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -ansi -std=iso9899:199409 (snip) -ansi -std=iso9899:199409 のあたりで,inline や // でのコメントアウト を利用している拡張ライブラリがビルド出来ない感じです. (inline については,ruby.h を include していれば適切に入れ替えられるん ですが,ruby.h を include していない *.c をビルドする可能性もあり,そこ でこけてる感じです) これは,仕様でしょうか.ぎゃっという人は多そうなので,拡張ライブラリの CC のオプションは,以前に外した方が良さそうに思いますが. # 目の前でマンガを読んでいる須藤さんから # 何とかしろと言われたのでご相談した次第です. -- // SASADA Koichi at atdot dot net
on 2013-02-16 13:06
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.