Bug #8369

r40574 build fail

Added by Jon Forums over 2 years ago. Updated over 2 years ago.

[ruby-core:54788]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada
ruby -v:ruby 2.1.0dev (2013-04-29 trunk 40523) [i686-linux] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

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

History

#1 Updated by Jon Forums over 2 years ago

Similar build fails on 64bit arch (gcc 4.8.0) and 64bit ubuntu server 13.04 (gcc 4.7.3)

#2 Updated by Tomoyuki Chikanaga over 2 years ago

Hello,

I have encountered the same build failure few days ago.
In my case, removing id.h and id.c in the source directory solved the build error.

Could you try it?

#3 Updated by Jon Forums over 2 years ago

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.

#4 Updated by Zachary Scott over 2 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF