Bug #8971

'make check' broken

Added by vo.x (Vit Ondruch) almost 7 years ago. Updated almost 7 years ago.

Target version:
ruby -v:
ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]


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

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl= --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --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- --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-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.1-20130920/obj-x86_64-redhat-linux/cloog-install --with-tune=generic --with-arch_32=i686 --build=x86_64-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'
ruby' is up to date.
make[2]: Leaving directory /builddir/build/BUILD/ruby-2.1.0-preview1'
make[1]: Leaving directory
./ruby: error while loading shared libraries: 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.

Updated by ko1 (Koichi Sasada) almost 7 years ago

  • Category set to build
  • Assignee set to nobu (Nobuyoshi Nakada)
  • Priority changed from Normal to 7
  • Target version set to 2.1.0

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

  • Status changed from Open to Feedback

How did you run configure?

Updated by vo.x (Vit Ondruch) almost 7 years ago

This is my configuration command:

$ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-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/site_ruby --with-sitearchdir=/usr/local/lib64/ruby/site_ruby --with-vendordir=/usr/share/ruby/vendor_ruby --with-vendorarchdir=/usr/lib64/ruby/vendor_ruby --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


Updated by nobu (Nobuyoshi Nakada) almost 7 years 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. use RUNRUBY for test-sample

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

Updated by nobu (Nobuyoshi Nakada) almost 7 years 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