Project

General

Profile

Actions

Bug #19127

closed

Build of 3.2.0-preview3 fails unless Ruby is already installed

Added by yasuhirokimura (Yasuhiro KIMURA) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
3.2.0-preview3
[ruby-core:110722]

Description

Steps to reproduce process

  1. Make clean install of operating system.
  2. Install tools and libraries necessary to build Ruby with release
    archive files (C Compiler, make, libyaml, etc). Keep in mind any
    version of Ruby isn't installed.
  3. Download ruby-3.2.0-preview3.tar.xz.
  4. tar xfpvJ ruby-3.2.0-preview3.tar.xz
  5. cd ruby-3.2.0-preview3
  6. ./configure
  7. make

Exptected result

Step 7 finishes successfully.

What really happens

It fails as following.

compiling ruby.c
compiling scheduler.c
compiling shape.c
compiling signal.c
compiling sprintf.c
compiling st.c
compiling strftime.c
compiling string.c
compiling struct.c
compiling symbol.c
compiling thread.c
compiling time.c
compiling transcode.c
compiling transient_heap.c
compiling util.c
compiling variable.c
executable host ruby is required. use --with-baseruby option.
make: *** [uncommon.mk:1232: .revision.time] Error 1

Conditions

Confirmed with following environments.

  • Debian 11.5 amd64
  • FreeBSD 13.1-RELEASE amd64

Updated by jeremyevans0 (Jeremy Evans) over 1 year ago

This also happens on OpenBSD. I tested with a current OpenBSD snapshot and reproduced, but I assume it also happens on supported OpenBSD releases (7.1 and 7.2).

With OpenBSD make, the error is:

*** Error 1 in /usr/obj/ports/ruby-3.2.0-preview3/ruby-3.2.0-preview3 (Makefile:1958 './.revision.time')
Actions #3

Updated by hsbt (Hiroshi SHIBATA) over 1 year ago

  • Target version set to 3.2
Actions #5

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Status changed from Open to Closed

Applied in changeset git|3fae53a343ebd7686bb20d8f4b6855f4d11019cd.


[Bug #19127] Fix revision.h dependency when no baseruby

Disconnect the dependency of revision.h on the timestamp file if no
baseruby is available

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0