Operating System - Linux
1753479 Members
4936 Online
108794 Solutions
New Discussion юеВ

Re: Unable to compile Ruby for HP Itanium 11.23

 
SOLVED
Go to solution
Shirley Barger
Occasional Advisor

Unable to compile Ruby for HP Itanium 11.23

I am trying to compile Ruby 1.8.6 for our new Itanium server. I have never had a problem compiling Ruby for PA-RISC, but am hitting a wall hard with IA64. I am compiling with HP C/aC++ A.06.15 [May 16 2007] and am doing nothing fancy in configuration. I tank with "stack level too deep." Has anyone been able to compile Ruby on IA64, and/or is there some workaround you can suggest? Many thanks. The compile output is attached.
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: Unable to compile Ruby for HP Itanium 11.23

I think one of my colleagues tried it and that's what he got too. Unfortunately he gave up.

I'm not sure if cleaning up your warnings would help?
You could suppress this with +W2177:
warning #2177-D: function "big_shift" was declared but

"dln.c", line 1373: warning #3197-D: the prototype declaration of
"int *__errno(void)"
is ignored after this unprototyped redeclaration
extern int errno;
"error.c", line 883: warning #3197-D: the prototype declaration of
"char *strerror(int)" is ignored after this unprototyped redeclaration
char *strerror();

These are illegal and should be removed.

"eval.c", line 6680: warning #2180-D: argument is incompatible with formal
parameter
return exec_under(eval_under_i, under, under, args);

And look at these.
You could try using +wlint for more warnings.
Shirley Barger
Occasional Advisor

Re: Unable to compile Ruby for HP Itanium 11.23

Thanks for the help. I don't think the warnings will do it though. I guess I am stuck, unless I can figure out how to get Aries to run a PA-RISC version. Dubious. And frustrating. I guess I should have stayed with PA-RISC after all.
Dennis Handly
Acclaimed Contributor
Solution

Re: Unable to compile Ruby for HP Itanium 11.23

>unless I can figure out how to get Aries to run a PA-RISC version. Dubious.

Nothing to figure out, you just execute the PA executable.
http://www.hp.com/go/aries
Shirley Barger
Occasional Advisor

Re: Unable to compile Ruby for HP Itanium 11.23

Thanks, I will give Aries a try!
Shinji Teragaito_1
Respected Contributor

Re: Unable to compile Ruby for HP Itanium 11.23

Hi,

I was successfully able to compile ruby 1.8.6 on 11.23 and
11.31 for HP Integrity Server around 6 month ago.

The following was the procedure:

% env CC=cc CFLAGS="+O2 -D_XOPEN_SOURCE_EXTENDED" \
./configure 2>&1 | tee configure.log
% vi config.status

s,@LIBRUBYARG_SHARED@,|#_!!_#|-R $(libdir) -L$(libdir) -L. ,g
===>
s,@LIBRUBYARG_SHARED@,|#_!!_#|+b$(libdir) -L$(libdir) -L. ,g

% ./config.status
config.status: creating Makefile
% gmake 2>&1 | tee make.log
% gmake test 2>&1 | tee maketest.log

I used HP ANSI C/aC++ compiler A.06.14 at that time.

Hope this helps you.
Shirley Barger
Occasional Advisor

Re: Unable to compile Ruby for HP Itanium 11.23

Thanks!!!!! I will try this right away.