Bug #8971

'make check' broken

Added by Vit Ondruch 7 months ago. Updated 7 months ago.

[ruby-core:57520]
Status:Closed
Priority:Immediate
Assignee:Nobuyoshi Nakada
Category:build
Target version:2.1.0
ruby -v:ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux] Backport:1.9.3: DONTNEED, 2.0.0: DONTNEED

Description

=begin
$ make check 'TESTS=-v '
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O2 -g -pipe -Wall -Wp,-DFORTIFYSOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -fPIC -m64
XCFLAGS = -DFORTIFYSOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBYEXPORT
CPPFLAGS = -I. -I.ext/include/x86
64-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.2.1 -fstack-protector -m64
SOLIBS = -lpthread -ldl -lcrypt -lm

Using built-in specs.
COLLECTGCC=/usr/bin/gcc
COLLECT
LTOWRAPPER=/usr/libexec/gcc/x8664-redhat-linux/4.8.1/lto-wrapper
Target: x8664-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-
cxaatexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-isl=/builddir/build/BUILD/gcc-4.8.1-20130920/obj-x8664-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.1-20130920/obj-x8664-redhat-linux/cloog-install --with-tune=generic --with-arch32=i686 --build=x8664-redhat-linux
Thread model: posix
gcc version 4.8.1 20130920 (Red Hat 4.8.1-10) (GCC)
generating encdb.h
encdb.h unchanged

... snip ...

make[2]: Entering directory /builddir/build/BUILD/ruby-2.1.0-preview1'
make[2]:
ruby' is up to date.
make[2]: Leaving directory /builddir/build/BUILD/ruby-2.1.0-preview1'
make[1]: Leaving directory
/builddir/build/BUILD/ruby-2.1.0-preview1'
./ruby: error while loading shared libraries: libruby.so.2.1: cannot open shared object file: No such file or directory
test failed
make: *** [yes-test-sample] Error 1

This was probably introduced by rev42989. Not sure why RUNRUBY was replaced by MINIRUBY there. Moreover, I guess that it happens only when shared library is enabled, otherwise somebody would notice it already.
=end

Associated revisions

Revision 43129
Added by Nobuyoshi Nakada 7 months ago

common.mk: use RUNRUBY for test-sample

  • common.mk (yes-test-sample): use RUNRUBY instead of MINIRUBY to set runtime library path and run the built ruby. [Bug #8971]

History

#1 Updated by Koichi Sasada 7 months ago

  • Category set to build
  • Assignee set to Nobuyoshi Nakada
  • Priority changed from Normal to Immediate
  • Target version set to 2.1.0

#2 Updated by Nobuyoshi Nakada 7 months ago

  • Status changed from Open to Feedback

How did you run configure?

#3 Updated by Vit Ondruch 7 months ago

This is my configuration command:

$ ./configure --build=x8664-redhat-linux-gnu --host=x8664-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-rubylibprefix=/usr/share/ruby --with-archlibdir=/usr/lib64 --with-sitedir=/usr/local/share/ruby/siteruby --with-sitearchdir=/usr/local/lib64/ruby/siteruby --with-vendordir=/usr/share/ruby/vendorruby --with-vendorarchdir=/usr/lib64/ruby/vendorruby --with-rubyhdrdir=/usr/include --with-rubyarchhdrdir=/usr/include '--with-sitearchhdrdir=$(sitehdrdir)/$(arch)' '--with-vendorarchhdrdir=$(vendorhdrdir)/$(arch)' --with-rubygemsdir=/usr/share/rubygems --with-ruby-pc=ruby.pc --disable-rpath --enable-shared --with-ruby-version= --enable-multiarch --with-prelude=./abrt_prelude.rb

#4 Updated by Nobuyoshi Nakada 7 months ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r43129.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


common.mk: use RUNRUBY for test-sample

  • common.mk (yes-test-sample): use RUNRUBY instead of MINIRUBY to set runtime library path and run the built ruby. [Bug #8971]

#5 Updated by Nobuyoshi Nakada 7 months ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: DONTNEED

Also available in: Atom PDF