Ask a Question related to Ruby, Design and Development.
-
T. Onoma #1
Error Compile 1.8.0 and 1.8.1-pre2
I'm trying to compile they latest. But i'm getting a SEGMENTATION FAULT error.
It happens on miniruby. I found a post that said to add --enable-shared. So I did and this got me to the next file libruby.so with an error saying 'Unkown nod type 0'.
I tried it on 1.8.1 and got the same segementation fault on miniruby. --enabled-shared didn't help.
I'll keep searching and hacking but I thought I'd put this out these to see if anyone has any ideas.
thanks,
-t0
p.s. I'm doing this on GoboLinux. So maybe the alternate file hiearchry is the problem, but I doubt I would have gotten as far as did if it were.
T. Onoma Guest
-
Compile time error
<mx:XML id="myTree" source="../Tree.xml" > </mx:XML> <mx:Tree cellPress="nodeClicked(event)" height="100%" borderColor="#FFFFFF" x="25" y="20"... -
PHP 4.3.3 compile error w/GD
Anyone else have this problem compiling PHP 4.3.3 from source under Linux (I'm using Slackware 9.0)? Under PHP 4.3.2 I had no compilation... -
Error during compile of 5.8.1-RC2
I tried to send this as an email to perlbug@perl.org, but it kept bouncing. This is a compile-time error, so I can't use perlbug to report it. My... -
#24555 [Opn->Csd]: Compile error
ID: 24555 Updated by: sniper@php.net Reported By: kv at gki dot ru -Status: Open +Status: Closed... -
#24555 [NEW]: Compile error
From: kv at gki dot ru Operating system: FreeBSD 4.7 PHP version: 5CVS-2003-07-08 (dev) PHP Bug Type: Compile Failure Bug... -
nobu.nokada@softhome.net #2
Re: Error Compile 1.8.0 and 1.8.1-pre2
Hi,
At Wed, 12 Nov 2003 08:15:10 +0900,
T. Onoma wrote:Could you show stack trace?> It happens on miniruby. I found a post that said to add
> --enable-shared. So I did and this got me to the next file
> libruby.so with an error saying 'Unkown nod type 0'.
--
Nobu Nakada
nobu.nokada@softhome.net Guest
-
T. Onoma #3
Re: Error Compile 1.8.0 and 1.8.1-pre2
> Could you show stack trace?
Sorry, I don't know much about compiling programs. How do I do what you are asking?
-t0
T. Onoma Guest
-
nobu.nokada@softhome.net #4
Re: Error Compile 1.8.0 and 1.8.1-pre2
Hi,
At Wed, 12 Nov 2003 09:23:55 +0900,
T. Onoma wrote:Run miniruby from gdb or run "gdb miniruby core" after>> > Could you show stack trace?
> Sorry, I don't know much about compiling programs. How do I do what you are asking?
segfault, and type "where" (without quotes, with return).
--
Nobu Nakada
nobu.nokada@softhome.net Guest
-
nobu.nokada@softhome.net #5
Re: Error Compile 1.8.0 and 1.8.1-pre2
Hi,
At Wed, 12 Nov 2003 10:06:43 +0900,
[email]nobu.nokada@softhome.net[/email] wrote:Sorry, substitute gdb with debugger on your platform.> Run miniruby from gdb or run "gdb miniruby core" after
> segfault, and type "where" (without quotes, with return).
BTW, what's your platform at all?
--
Nobu Nakada
nobu.nokada@softhome.net Guest
-
T. Onoma #6
Re: Error Compile 1.8.0 and 1.8.1-pre2
> Hi,
okay, i'm running Linux on an Athlon XP and i beleive i'm compiling for i686. (hmmm... have to check which version of gcc). specifically i'm using GoboLinux which has a non-standard FHS, but I am pretty certian that i've told it where everything is.>
> At Wed, 12 Nov 2003 10:06:43 +0900,
> [email]nobu.nokada@softhome.net[/email] wrote:>> > Run miniruby from gdb or run "gdb miniruby core" after
> > segfault, and type "where" (without quotes, with return).
> Sorry, substitute gdb with debugger on your platform.
> BTW, what's your platform at all?
>
when i try gdb it tells me that core dosen't exist. i.e. no such file or directory. do i need to do something to get core to exist? (or perhaps it's being placed somewhere else?)
the --enable-shared option got me past miniruby, it's now bombing right after that on libruby.so.1.8.1.
the error specifically says: 'mkmf.rb:354: [BUG] Segmentation Fault' if that helps.
thanks for your help,
-t0
T. Onoma Guest
-
nobu.nokada@softhome.net #7
Re: Error Compile 1.8.0 and 1.8.1-pre2
Hi,
At Wed, 12 Nov 2003 11:43:14 +0900,
T. Onoma wrote:Check `ulimit -c'.> when i try gdb it tells me that core dosen't exist. i.e. no
> such file or directory. do i need to do something to get core
> to exist? (or perhaps it's being placed somewhere else?)
Hmmm, only "false" line?> the error specifically says: 'mkmf.rb:354: [BUG] Segmentation
> Fault' if that helps.
What's your configure options?
--
Nobu Nakada
nobu.nokada@softhome.net Guest
-
T. Onoma #8
Re: Error Compile 1.8.0 and 1.8.1-pre2
took me a bit to get back to...
returns: 0> Check `ulimit -c'.
./configure --prefix=/Programs/Ruby/1.8.1 \>> > the error specifically says: 'mkmf.rb:354: [BUG] Segmentation
> > Fault' if that helps.
> Hmmm, only "false" line?
> What's your configure options?
--exec-prefix=/Programs/Ruby/1.8.1 \
--enable-shared \
--with-sitedir=/Programs/Ruby/1.8.1/lib/site_ruby \
--localstatedir=/Programs/Ruby/Variable \
--sysconfdir=/Programs/Ruby/Settings
like i said, Gobo has non-standard FHS. is it looking for something it can't find?
i have a log of the ./configure output too, if that would help. let me know.
-t0
T. Onoma Guest
-
nobu.nokada@softhome.net #9
Re: Error Compile 1.8.0 and 1.8.1-pre2
Hi,
# Unfortunately, I don't have enough time this month, and will
# be absent from tonight through Sunday, and from 19 through
# 25. So sorry that I won't be able to respond quickly.
At Thu, 13 Nov 2003 10:14:34 +0900,
T. Onoma wrote:So you have to do `ulimit -c 100000', or unlimited instead of a>> > Check `ulimit -c'.
> returns: 0
number.
# --exec-prefix and --with-sitedir seem unnecessary...> ./configure --prefix=/Programs/Ruby/1.8.1 \
> --exec-prefix=/Programs/Ruby/1.8.1 \
> --enable-shared \
> --with-sitedir=/Programs/Ruby/1.8.1/lib/site_ruby \
> --localstatedir=/Programs/Ruby/Variable \
> --sysconfdir=/Programs/Ruby/Settings
Try configure with CFLAGS='-O0 -ggdb -g3'.
And what version is your gcc?
Well, it shouldn't ...> like i said, Gobo has non-standard FHS. is it looking for something it can't find?
--
Nobu Nakada
nobu.nokada@softhome.net Guest
-
T. Onoma #10
Re: Error Compile 1.8.0 and 1.8.1-pre2
> # Unfortunately, I don't have enough time this month, and will
thank, truly, for the time you have given me! you seem a very giving spirit here. the world needs more people like you!> # be absent from tonight through Sunday, and from 19 through
> # 25. So sorry that I won't be able to respond quickly.
i tried ulimit -c 100000
and i tried this. nothing seems to have changed. still no core.> Try configure with CFLAGS='-O0 -ggdb -g3'.
3.3.1> And what version is your gcc?
As for non-standard FHS:
not necessarily. i would like to see the whole of the system abstracted away from the FHS using namespaces instead. in other words, lets say i create a file. i give this file a globally unique name like 'www.onoma.net/mycategory/hiearchy/myfile' or something to that effect. then that file would always be accessable by that name, even if it on another system. gobo is sort of a first step for me in that direction.> Well, it shouldn't ...
but i may skip that step if i can't get ruby to compile! :)
-t0
T. Onoma Guest
-
nobu.nokada@softhome.net #11
Re: Error Compile 1.8.0 and 1.8.1-pre2
Hi,
At Sun, 16 Nov 2003 10:25:02 +0900,
T. Onoma wrote:Couldn't you run the crashing command from gdb?> i tried ulimit -c 100000
>>> > Try configure with CFLAGS='-O0 -ggdb -g3'.
> and i tried this. nothing seems to have changed. still no core.
$ gdb miniruby
...
(gdb) run (arguments to miniruby)
--
Nobu Nakada
nobu.nokada@softhome.net Guest



Reply With Quote

