Project

General

Profile

Actions

Bug #13854

closed

`make golf` broken

Added by znz (Kazuhiro NISHIYAMA) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
[ruby-dev:50214]

Description

make golf が失敗します。

% make golf
...
compiling .../ruby/goruby.c golf_prelude.c
gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
uncommon.mk:951: ターゲット 'goruby.o' のレシピで失敗しました

たぶん r58724 の変更の

$(MAINOBJ): $(srcdir)/$(MAINSRC)
        $(ECHO) compiling $(srcdir)/$(MAINSRC)
        $(Q) $(CC) $(MAINCPPFLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$(srcdir)/$(MAINSRC)

golf: $(LIBRUBY) $(GOLFOBJS) PHONY
        $(Q) $(MAKE) $(mflags) MAINOBJ="$(GOLFOBJS)" PROGRAM=$(GORUBY)$(EXEEXT) program

のように MAINOBJ が複数になることを想定していなくて、$(CSRCFLAG)$(srcdir)/$(MAINSRC) の最後の MAINSRC が goruby.c golf_prelude.c に展開されてしまって失敗しているようです。

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r59767.


common.mk: fix golf

  • common.mk (golf): MAINOBJ must be single object file name, so
    moved golf_prelude to EXTOBJS. [ruby-dev:50214] [Bug #13854]
Actions

Also available in: Atom PDF

Like0
Like0