Project

General

Profile

Bug #13854

`make golf` broken

Added by znz (Kazuhiro NISHIYAMA) almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
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 に展開されてしまって失敗しているようです。

Associated revisions

Revision 99d989be
Added by nobu (Nobuyoshi Nakada) almost 2 years ago

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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 59767
Added by nobu (Nobuyoshi Nakada) almost 2 years ago

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]

Revision 59767
Added by nobu (Nobuyoshi Nakada) almost 2 years ago

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]

Revision 59767
Added by nobu (Nobuyoshi Nakada) almost 2 years ago

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]

History

#1

Updated by nobu (Nobuyoshi Nakada) almost 2 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]

Also available in: Atom PDF