Project

General

Profile

Actions

Bug #4998

closed

addr2line.c with SunStudio (Oracle Solaris Studio) cc

Added by ngoto (Naohisa Goto) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-07-08 trunk 32460) [sparc64-solaris2.10]
Backport:
[ruby-dev:44066]

Description

addr2line.c にて
#ifdef ELF
(中略)
#else /* defined(ELF) */
#error not supported
#endif
のように ELF の有無をチェックしていますが、Solaris の cc はこのマクロを定義しないようで、"not supported"になってしまいました。(sparc64で動くSolaris 10上のSun Studio 11とOracle Solaris Studio 12.2で確認)

ELF のかわりに、configureでELFを使っているかどうかチェックして定義されるマクロ USE_ELF を使うように変更したら、make test もPASSしました。
(make test-all は途中でSegmentation faultで落ちましたが、それは別件。)

パッチを添付します。


Files

addr2line.diff (839 Bytes) addr2line.diff ngoto (Naohisa Goto), 07/08/2011 09:05 PM
Actions #1

Updated by naruse (Yui NARUSE) almost 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r32461.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • addr2line.c: use USE_ELF instead of ELF because Solaris
    doesn't define it. USE_ELF is already provided by configure.
    patched by Naohisa Goto. [ruby-dev:44066] [Bug #4998]

  • addr2line.h: ditto.

  • vm_dump.c: ditto.

Actions

Also available in: Atom PDF

Like0
Like0