Bug #3260
closedCan't build Ruby with SunStudio on sparc Solaris
Description
=begin
trunkをsparc solaris上でSunのccでコンパイルした場合、次のエラーが出てext/jsonをビルドできませんでした。
ccache cc -I. -I../../../.ext/include/sparc-solaris2.10 -I../../../../../mri/include -I../../../../../mri/ext/json/generator -DRUBY_EXTCONF_H=¥"extconf.h¥" -D_FILE_OFFSET_BITS=64 -KPIC -m32 -xO4 -g -ogenerator.o -c ../../../../../mri/ext/json/generator/generator.c
"../../../../../mri/ext/json/generator/generator.c", line 342: a cast does not yield an lvalue
cc: acomp failed for /export/home/yugui/.ccache/generator.tmp.blade1000dev.home.yugui.jp.18621.i
*** Error code 1
make: Fatal error: Command failed for target `generator.o'
Current working directory /export/home/yugui/dev/ruby/build/1.9.2/ext/json/generator
当該箇所を見ると次のようになってます。
fb->ptr = (char ) REALLOC_N((long) fb->ptr, char, required);
このlong*へのキャストってどういう意図で行ってますか?
=end
Updated by naruse (Yui NARUSE) over 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r27694.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end