From: "jonforums (Jon Forums)" <redmine@...> Date: 2013-05-05T13:28:25+09:00 Subject: [ruby-core:54795] [ruby-trunk - Bug #8369] r40574 build fail Issue #8369 has been updated by jonforums (Jon Forums). Ah yes, a red herring issue. Removing those ignored, generated files from the source dir fixed it, and they're now being generated in the build dir. Must have been stale files from an earlier regression. Thank you. ---------------------------------------- Bug #8369: r40574 build fail https://bugs.ruby-lang.org/issues/8369#change-39135 Author: jonforums (Jon Forums) Status: Open Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: build Target version: current: 2.1.0 ruby -v: ruby 2.1.0dev (2013-04-29 trunk 40523) [i686-linux] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN The following build fail info is from my arch 32bit system with gcc 4.8.0, but I see the same fail (less descriptive error log) on ubuntu server 13.04 using gcc 4.7.3: [jon@archee build]$ svn log -1 -l 1 .. ------------------------------------------------------------------------ r40574 | zzak | 2013-05-03 18:21:34 -0400 (Fri, 03 May 2013) ------------------------------------------------------------------------ [jon@archee build]$ uname -a Linux archee 3.8.11-1-ARCH #1 SMP PREEMPT Thu May 2 17:52:13 CEST 2013 i686 GNU/Linux [jon@archee build]$ ../configure --enable-shared --disable-install-doc [jon@archee build]$ make all test-all 2>&1 | tee "arch_build_log-$(date +%FT%H%M)" CC = gcc LD = ld LDSHARED = gcc -shared CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ansi -std=iso9899:199409 -fPIC XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT CPPFLAGS = -I. -I.ext/include/i686-linux -I../include -I.. DLDFLAGS = -Wl,-soname,libruby.so.2.1 -fstack-protector SOLIBS = -lpthread -lrt -ldl -lcrypt -lm Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.8.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.8-20130425/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib --disable-libssp --disable-werror --enable-checking=release Thread model: posix gcc version 4.8.0 20130425 (prerelease) (GCC) compiling ../main.c compiling ../dmydln.c compiling ../dmyencoding.c compiling ../version.c compiling ../dmyversion.c generating miniprelude.c generating id.h id.h updated compiling miniprelude.c ruby --disable=gems ../tool/gen_dummy_probes.rb ../probes.d > probes.dmyh copying dummy probes.h compiling ../array.c compiling ../bignum.c compiling ../class.c ../class.c: In function 'rb_singleton_class_attached': ../class.c:35:21: error: 'id__attached__' undeclared (first use in this function) #define id_attached id__attached__ ^ ../class.c:295:34: note: in expansion of macro 'id_attached' st_insert(RCLASS_IV_TBL(klass), id_attached, obj); ^ ../class.c:35:21: note: each undeclared identifier is reported only once for each function it appears in #define id_attached id__attached__ ^ ../class.c:295:34: note: in expansion of macro 'id_attached' st_insert(RCLASS_IV_TBL(klass), id_attached, obj); ^ ../class.c: In function 'make_metaclass': ../class.c:35:21: error: 'id__attached__' undeclared (first use in this function) #define id_attached id__attached__ ^ ../class.c:317:35: note: in expansion of macro 'id_attached' rb_ivar_get(METACLASS_OF(k), id_attached) == (k)) ^ ../class.c:327:6: note: in expansion of macro 'HAVE_METACLASS_P' (HAVE_METACLASS_P(klass) ? METACLASS_OF(klass) : make_metaclass(klass)) ^ ../class.c:354:28: note: in expansion of macro 'ENSURE_EIGENCLASS' METACLASS_OF(metaclass) = ENSURE_EIGENCLASS(tmp); ^ ../class.c: In function 'singleton_class_of': ../class.c:35:21: error: 'id__attached__' undeclared (first use in this function) #define id_attached id__attached__ ^ ../class.c:1424:34: note: in expansion of macro 'id_attached' rb_ivar_get(RBASIC(obj)->klass, id_attached) == obj) { ^ ../class.c: In function 'rb_singleton_class': ../class.c:35:21: error: 'id__attached__' undeclared (first use in this function) #define id_attached id__attached__ ^ ../class.c:317:35: note: in expansion of macro 'id_attached' rb_ivar_get(METACLASS_OF(k), id_attached) == (k)) ^ ../class.c:327:6: note: in expansion of macro 'HAVE_METACLASS_P' (HAVE_METACLASS_P(klass) ? METACLASS_OF(klass) : make_metaclass(klass)) ^ ../class.c:1472:40: note: in expansion of macro 'ENSURE_EIGENCLASS' if (RB_TYPE_P(obj, T_CLASS)) (void)ENSURE_EIGENCLASS(klass); ^ make: *** [class.o] Error 1 -- http://bugs.ruby-lang.org/