Error Compile 1.8.0 and 1.8.1-pre2

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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"...
    2. 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...
    3. 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...
    4. #24555 [Opn->Csd]: Compile error
      ID: 24555 Updated by: sniper@php.net Reported By: kv at gki dot ru -Status: Open +Status: Closed...
    5. #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...
  3. #2

    Default Re: Error Compile 1.8.0 and 1.8.1-pre2

    Hi,

    At Wed, 12 Nov 2003 08:15:10 +0900,
    T. Onoma wrote:
    > 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'.
    Could you show stack trace?

    --
    Nobu Nakada

    nobu.nokada@softhome.net Guest

  4. #3

    Default 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

  5. #4

    Default Re: Error Compile 1.8.0 and 1.8.1-pre2

    Hi,

    At Wed, 12 Nov 2003 09:23:55 +0900,
    T. Onoma wrote:
    > > Could you show stack trace?
    >
    > Sorry, I don't know much about compiling programs. How do I do what you are asking?
    Run miniruby from gdb or run "gdb miniruby core" after
    segfault, and type "where" (without quotes, with return).

    --
    Nobu Nakada

    nobu.nokada@softhome.net Guest

  6. #5

    Default 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:
    > 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?

    --
    Nobu Nakada

    nobu.nokada@softhome.net Guest

  7. #6

    Default 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:
    > > 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?
    >
    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.

    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

  8. #7

    Default Re: Error Compile 1.8.0 and 1.8.1-pre2

    Hi,

    At Wed, 12 Nov 2003 11:43:14 +0900,
    T. Onoma wrote:
    > 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?)
    Check `ulimit -c'.
    > the error specifically says: 'mkmf.rb:354: [BUG] Segmentation
    > Fault' if that helps.
    Hmmm, only "false" line?

    What's your configure options?

    --
    Nobu Nakada

    nobu.nokada@softhome.net Guest

  9. #8

    Default Re: Error Compile 1.8.0 and 1.8.1-pre2

    took me a bit to get back to...
    > Check `ulimit -c'.
    returns: 0
    > > the error specifically says: 'mkmf.rb:354: [BUG] Segmentation
    > > Fault' if that helps.
    >
    > Hmmm, only "false" line?
    > What's your configure options?
    ./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

    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

  10. #9

    Default 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:
    > > Check `ulimit -c'.
    >
    > returns: 0
    So you have to do `ulimit -c 100000', or unlimited instead of a
    number.
    > ./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
    # --exec-prefix and --with-sitedir seem unnecessary...

    Try configure with CFLAGS='-O0 -ggdb -g3'.

    And what version is your gcc?
    > like i said, Gobo has non-standard FHS. is it looking for something it can't find?
    Well, it shouldn't ...

    --
    Nobu Nakada

    nobu.nokada@softhome.net Guest

  11. #10

    Default Re: Error Compile 1.8.0 and 1.8.1-pre2

    > # 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.
    thank, truly, for the time you have given me! you seem a very giving spirit here. the world needs more people like you!

    i tried ulimit -c 100000
    > Try configure with CFLAGS='-O0 -ggdb -g3'.
    and i tried this. nothing seems to have changed. still no core.
    > And what version is your gcc?
    3.3.1

    As for non-standard FHS:
    > Well, it shouldn't ...
    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.

    but i may skip that step if i can't get ruby to compile! :)

    -t0

    T. Onoma Guest

  12. #11

    Default Re: Error Compile 1.8.0 and 1.8.1-pre2

    Hi,

    At Sun, 16 Nov 2003 10:25:02 +0900,
    T. Onoma wrote:
    > i tried ulimit -c 100000
    >
    > > Try configure with CFLAGS='-O0 -ggdb -g3'.
    >
    > and i tried this. nothing seems to have changed. still no core.
    Couldn't you run the crashing command from gdb?

    $ gdb miniruby
    ...
    (gdb) run (arguments to miniruby)

    --
    Nobu Nakada


    nobu.nokada@softhome.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139