Bug #8409

Having issues compiling 2.0.0 p195

Added by Sam Saffron almost 2 years ago. Updated 9 months ago.

[ruby-core:54999]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:2.0.0 p195 Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

sam@ubuntu:~/.rbenv/versions/2.0.0-p195$ uname -a
Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

sam@ubuntu:~/.rbenv/versions/2.0.0-p195$ gcc --version
gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3


compile steps:

checkout p195 directly from the tag (also tested with download)

autoconf
./configure --prefix=/home/sam/.rbenv/versions/2.0.0-p195
make install

sam@ubuntu:~/.rbenv/versions/2.0.0-p195$ bin/ruby
Segmentation fault (core dumped)

sam@ubuntu:~/.rbenv/versions/2.0.0-p195$ gdb bin/ruby
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
"/home/sam/.rbenv/versions/2.0.0-p195/bin/ruby": not in executable format: File format not recognized

Lost on how to continue debugging this, it is telling me the executable is not valid.

build log
https://gist.github.com/SamSaffron/5581420

0001-Disallow-prefix-pwd.patch Magnifier (799 Bytes) Steve Klabnik, 08/06/2013 03:51 AM

Associated revisions

Revision 47151
Added by Hiroshi SHIBATA 9 months ago

  • configure.in: ignored working directory same as prefix value. [Bug #8409]

Revision 47151
Added by Hiroshi SHIBATA 9 months ago

  • configure.in: ignored working directory same as prefix value. [Bug #8409]

Revision 47152
Added by Nobuyoshi Nakada 9 months ago

configure.in: [Bug #8409]

  • configure.in: check if prefix is same as the cwd, not only same path name. also use AC_MSG_ERROR to bail out.

Revision 47152
Added by Nobuyoshi Nakada 9 months ago

configure.in: [Bug #8409]

  • configure.in: check if prefix is same as the cwd, not only same path name. also use AC_MSG_ERROR to bail out.

History

#1 Updated by Sam Saffron almost 2 years ago

Newbie error

compiling ruby with --prefix set to pwd leads to this mess. it should probably fail the build earlier instead of this rather hard to debug issue.

#2 Updated by Steve Klabnik over 1 year ago

I have attached a patch that disallows --prefix set to pwd, but I am not an autoconf master. It works for me, but I'm not sure if there is a better way.

#3 Updated by Hiroshi SHIBATA 9 months ago

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

Applied in changeset r47151.


  • configure.in: ignored working directory same as prefix value. [Bug #8409]

Also available in: Atom PDF