Bug #8369

r40574 build fail

Added by Jon Forums 12 months ago. Updated 12 months ago.

[ruby-core:54788]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada
Category:build
Target version: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

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 "archbuildlog-$(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.
COLLECTGCC=gcc
COLLECT
LTOWRAPPER=/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-
cxaatexit --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/gendummyprobes.rb ../probes.d > probes.dmyh
copying dummy probes.h
compiling ../array.c
compiling ../bignum.c
compiling ../class.c
../class.c: In function 'rbsingletonclassattached':
../class.c:35:21: error: 'id
attached' undeclared (first use in this function)
#define id
attached idattached
^
../class.c:295:34: note: in expansion of macro 'idattached'
st
insert(RCLASSIVTBL(klass), idattached, obj);
^
../class.c:35:21: note: each undeclared identifier is reported only once for each function it appears in
#define id
attached idattached
^
../class.c:295:34: note: in expansion of macro 'idattached'
st
insert(RCLASSIVTBL(klass), idattached, obj);
^
../class.c: In function 'make
metaclass':
../class.c:35:21: error: 'idattached' undeclared (first use in this function)
#define idattached idattached_
^
../class.c:317:35: note: in expansion of macro 'idattached'
rb
ivarget(METACLASSOF(k), idattached) == (k))
^
../class.c:327:6: note: in expansion of macro 'HAVE
METACLASSP'
(HAVE
METACLASSP(klass) ? METACLASSOF(klass) : makemetaclass(klass))
^
../class.c:354:28: note: in expansion of macro 'ENSURE
EIGENCLASS'
METACLASSOF(metaclass) = ENSUREEIGENCLASS(tmp);
^
../class.c: In function 'singletonclassof':
../class.c:35:21: error: 'idattached' undeclared (first use in this function)
#define idattached idattached_
^
../class.c:1424:34: note: in expansion of macro 'idattached'
rb
ivarget(RBASIC(obj)->klass, idattached) == obj) {
^
../class.c: In function 'rbsingletonclass':
../class.c:35:21: error: 'idattached' undeclared (first use in this function)
#define idattached idattached_
^
../class.c:317:35: note: in expansion of macro 'idattached'
rb
ivarget(METACLASSOF(k), idattached) == (k))
^
../class.c:327:6: note: in expansion of macro 'HAVE
METACLASSP'
(HAVE
METACLASSP(klass) ? METACLASSOF(klass) : makemetaclass(klass))
^
../class.c:1472:40: note: in expansion of macro 'ENSURE
EIGENCLASS'
if (RBTYPEP(obj, TCLASS)) (void)ENSUREEIGENCLASS(klass);
^
make: *** [class.o] Error 1

History

#1 Updated by Jon Forums 12 months 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 12 months 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 12 months 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 12 months ago

  • Status changed from Open to Closed

Also available in: Atom PDF