Forum: Ruby Compile problems with 1.8.4 on HP

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8ecb8bb62c3283f8069a54056c7dc25f?d=identicon&s=25 Jim Freeze (Guest)
on 2006-02-03 20:39
(Received via mailing list)
Hi

Ruby 1.8.4 doesn't want to build on my HP machine.
I get the following error:

cc -s -DRUBY_EXPORT -DYYMAXDEPTH=300  -I. -I.  -c eval.c
(Bundled) cc: "eval.c", line 1657: error 1000: Unexpected symbol:
"VALUE".
(Bundled) cc: "eval.c", line 1657: error 1705: Function prototypes are
an ANSI feature.
(Bundled) cc: "eval.c", line 1657: error 1573: Type of "VALUE" is
undefined due to an illegal declaration.
(Bundled) cc: "eval.c", line 2567: error 1000: Unexpected symbol:
"event".
(Bundled) cc: "eval.c", line 2569: error 1588: "event" undefined.
(Bundled) cc: "eval.c", line 4681: error 1000: Unexpected symbol:
"VALUE".
(Bundled) cc: "eval.c", line 4681: error 1705: Function prototypes are
an ANSI feature.
(Bundled) cc: "eval.c", line 4681: error 1573: Type of "VALUE" is
undefined due to an illegal declaration.
(Bundled) cc: "eval.c", line 9809: warning 546: Conflicting
enumeration types used in expression.
(Bundled) cc: "eval.c", line 9814: warning 546: Conflicting
enumeration types used in expression.
gmake: *** [eval.o] Error 1

Any ideas appreciated.
0ec4920185b657a03edf01fff96b4e9b?d=identicon&s=25 Yukihiro Matsumoto (Guest)
on 2006-02-04 03:58
(Received via mailing list)
Hi,

On 2/4/06, Jim Freeze <jim@freeze.org> wrote:
> Hi
>
> Ruby 1.8.4 doesn't want to build on my HP machine.
> I get the following error:

Try using gcc.
912c61d9da47754de7039f4271334a9f?d=identicon&s=25 MenTaLguY (Guest)
on 2006-02-05 04:18
(Received via mailing list)
On Sat, 2006-02-04 at 04:36 +0900, Jim Freeze wrote:
> Hi
>
> Ruby 1.8.4 doesn't want to build on my HP machine.

HP's c89 would (probably) do if you feel like shelling out for it.  HP's
bundled cc is severely crippled -- don't bother trying to compile
anything serious with it.

As Matz suggests, I've had best luck with gcc, though there are a number
of caveats.  See ruby-talk #177036:

 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/...

-mental
A6ce942e03edad55d9b504c1e1d859d6?d=identicon&s=25 Jim Freeze (Guest)
on 2006-02-05 15:04
(Received via mailing list)
On Feb 4, 2006, at 9:14 PM, MenTaLguY wrote:

>
> As Matz suggests, I've had best luck with gcc, though there are a
> number
> of caveats.  See ruby-talk #177036:
>

What's the best way to get gcc on an HP? At the HP porting archive
they have 4.0.2 binaries.

     http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-4.0.2/

and make-3.8.0.


Jim Freeze
912c61d9da47754de7039f4271334a9f?d=identicon&s=25 unknown (Guest)
on 2006-02-06 17:59
(Received via mailing list)
Quoting Jim Freeze <jimfreeze@gmail.com>:

> What's the best way to get gcc on an HP? At the HP porting
> archive they have 4.0.2 binaries.
>
>      http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-4.0.2/
>
> and make-3.8.0.

Yeah, the HP porting archive is good (but see my caveat regarding
readline).

-mental
This topic is locked and can not be replied to.