Bug #3971

Problem compiling 1.9.2-p0 under AIX 5.3

Added by Glauber Ribeiro over 3 years ago. Updated almost 3 years ago.

[ruby-core:32859]
Status:Closed
Priority:Low
Assignee:Yutaka Kanemoto
Category:build
Target version:1.9.3
ruby -v:ruby 1.8.7 (2008-05-31 patchlevel 0) [powerpc-aix5.3.0.0] Backport:

Description

=begin
Compile fails on file cfunc.c, part of the dl extension, with many errors similar to the following:

"cfunc.c", line 378.13: 1506-033 (S) Function is not valid. Function cannot return a function.
"cfunc.c", line 378.13: 1506-963 (W) The attribute "cdecl" is not a valid variable attribute and is ignored.
"cfunc.c", line 378.13: 1506-117 (S) Operand must be a scalar type.

This is the only file that fails. If i delete the dl extension, the build succeeds.

This is AIX 4.3 with IBM XL C for AIX v 10.1 in "cc" mode (64-bit).

I'm attaching a text file which has the output of "./configure --prefix=/aissrc/inc/ruby19 && make".

Ruby 1.9.1-p430 compiled correctly.
=end

build_log.txt Magnifier (155 KB) Glauber Ribeiro, 10/20/2010 11:55 PM

Associated revisions

Revision 32333
Added by Yutaka Kanemoto almost 3 years ago

configure.in: Add warnflags for XL/C on AIX during configure
to avoid [Bug #3971]. See

History

#1 Updated by Yui NARUSE over 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Yutaka Kanemoto

=begin

=end

#2 Updated by Yutaka Kanemoto over 3 years ago

=begin
Hi.

Sorry to late to respond.
Could you please try warnflags option for configure like this?
"./configure --prefix=/aissrc/inc/ruby19 warnflags=-qinfo=por && make".

You may see many information messages, but it might be harmless.
I would like to know whether you can compile dl module by using warnflags.

Ruby 1.9.1-p430 compiled correctly.
In my test env, I can see the same problem on both 1.9.2p0 and 1.9.1p430.

--
Yutaka KANEMOTO
http://d.hatena.ne.jp/kinpoco/

=end

#3 Updated by Hiroshi Nakamura almost 3 years ago

  • Target version changed from 1.9.2 to 1.9.3

#4 Updated by Yutaka Kanemoto almost 3 years ago

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

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


configure.in: Add warnflags for XL/C on AIX during configure
to avoid [Bug #3971]. See

Also available in: Atom PDF