Backport #9058

compilation fails with -DGC_PROFILE_MORE_DETAIL

Added by Jeremy Hinegardner 6 months ago. Updated 6 months ago.

[ruby-core:58069]
Status:Closed
Priority:Normal
Assignee:-

Description

=begin
Building ruby-2.0.0-p247 from source

Configure
% CFLAGS=-DGCPROFILEMORE_DETAIL ./configure --disable-install-doc --disable-install-rdoc --prefix=/opt/rubies/ruby-2.0.0-p247-gc
# omitted

Make
% make
CC = clang
LD = ld
LDSHARED = clang -dynamic -bundle
CFLAGS = -DGCPROFILEMOREDETAIL -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -D
FORTIFYSOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBYEXPORT -fPIE
CPPFLAGS = -DXOPENSOURCE -DDARWINCSOURCE -DDARWINUNLIMITEDSELECT -DREENTRANT -I. -I.ext/include/x8664-darwin12.5.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamiclookup -Wl,-multiplydefined,suppress -fstack-protector -Wl,-u,objcmsgSend -Wl,-pie
SOLIBS =
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling dmyversion.c
compiling miniprelude.c
translating probes probes.d
. ./vmopts.h
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln
find.c
compiling enum.c
compiling enumerator.c
generating knownerrors.inc
known
errors.inc updated
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
gc.c:4089:34: error: no member named 'livenum' in 'struct rbobjspace::'
sizet live = objspace->heap.livenum;
~~~~~~~~~~~~~~ ^
1 error generated.
make: *** [gc.o] Error 1

This appears to be possibly fixed in head, I want to make sure that this is fixed in the next release of 2.0.

History

#1 Updated by Nobuyoshi Nakada 6 months ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport200
  • Category deleted (build)
  • Status changed from Open to Closed
  • Assignee deleted (Nobuyoshi Nakada)

Already fixed at r43429, patchlevel 341.

Also available in: Atom PDF