Project

General

Profile

Actions

Bug #18684

closed

Support for out of source build

Added by vo.x (Vit Ondruch) about 2 months ago. Updated 27 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux]
[ruby-core:108195]

Description

Trying out of source build, it fails:

... snip ...

compiling ../ruby-3.1.1/vm_sync.c
compiling ../ruby-3.1.1/vm_trace.c
compiling ../ruby-3.1.1/yjit.c
assembling ../ruby-3.1.1/coroutine/amd64/Context.S
Assembler messages:
Fatal error: can't create coroutine/amd64/Context.o: No such file or directory
make: *** [Makefile:438: coroutine/amd64/Context.o] Error 1

I wonder if there is any chance to make this work?

Updated by mame (Yusuke Endoh) about 2 months ago

Please precisely write what you did. The following process works well for me.

$ tar xf ruby-3.1.1.tar.gz
$ mkdir ruby-build
$ cd ruby-build
$ ../ruby-3.1.1/configure --prefix=$PWD/local
$ make

I guess you first did "in-place" build and then did "out-of-place" build by using the source directory that has not only source files but also object files. This is not supported.

Actions #2

Updated by nobu (Nobuyoshi Nakada) about 1 month ago

  • Status changed from Open to Feedback

Updated by vo.x (Vit Ondruch) 30 days ago

mame (Yusuke Endoh) wrote in #note-1:

I guess you first did "in-place" build and then did "out-of-place" build by using the source directory that has not only source files but also object files.

Thx, that was what I did. Is there a way to prevent this or to provide some helpful message?

Actions #4

Updated by jeremyevans0 (Jeremy Evans) 27 days ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF