Project

General

Profile

Actions

Bug #13200

closed

Ruby 2.4.0 Stable Fails to Build from Source on openSUSE

Added by martin_vahi (Martin Vahi) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:79475]

Description

An excerpt of a "make" console output
from a LLVM/clang based build session of the
https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.gz
that has the SHA256 sum of
152fd0bd15a90b4a18213448f485d4b53e9f7662e1508190aa5b702446b29e3d
:

configuring socket
configuring stringio
configuring strscan
configuring syslog
configuring zlib
make[1]: Entering directory '/opt/2dot7TiB_k8vaketas/ts2/mittevarundatav/_home/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0'
exts.mk:1468: *** missing separator.  Stop.
make[1]: Leaving directory '/opt/2dot7TiB_k8vaketas/ts2/mittevarundatav/_home/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0'
uncommon.mk:220: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ uname -a
Linux linux-0fiz 3.16.7-48-desktop #1 SMP PREEMPT Wed Oct 26 18:09:22 UTC 2016 (8c027f6) x86_64 x86_64 x86_64 GNU/Linux
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ date
Wed Feb  8 01:33:08 EET 2017
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ clang -v
clang version 3.8.0 (trunk 249969)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/ts2/m_local/bin_p/LLVM/vd_2015_10_11/vd_2015_10_11_installed/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/4.8
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/4.9
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-4.8 --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux) 
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ echo $CFLAGS 
-mtune=native -ftree-vectorize
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ echo $CXXFLAGS
-mtune=native -ftree-vectorize
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ echo $CC
clang
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ echo $CXX
clang++
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$

The configure parameters:

./configure --prefix=/home/ts2/m_local/bin_p/Ruby/paigaldatult/v_2_4_0 --enable-load-relative  --enable-multiarch

An excerpt of the "make" console output
from a GCC based build session, where

export CC="gcc"
export CXX="g++"

configuring sdbm
configuring socket
configuring stringio
configuring strscan
configuring syslog
configuring zlib
make[1]: Entering directory '/opt/2dot7TiB_k8vaketas/ts2/mittevarundatav/_home/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0'
exts.mk:1468: *** missing separator.  Stop.
make[1]: Leaving directory '/opt/2dot7TiB_k8vaketas/ts2/mittevarundatav/_home/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0'
uncommon.mk:220: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ echo $CC
gcc
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ echo $CXX
g++
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ echo $CFLAGS
-mtune=native -ftree-vectorize
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ echo $CXXFLAGS
-mtune=native -ftree-vectorize
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ date
Wed Feb  8 01:46:37 EET 2017
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$ uname -a
Linux linux-0fiz 3.16.7-48-desktop #1 SMP PREEMPT Wed Oct 26 18:09:22 UTC 2016 (8c027f6) x86_64 x86_64 x86_64 GNU/Linux
ts2@linux-0fiz:~/m_local/bin_p/Ruby/kompileerimine/ruby-2.4.0$

Files

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Status changed from Open to Feedback

Please show lines around the line 1468 in file exts.mk.

Updated by martin_vahi (Martin Vahi) about 7 years ago

Nobuyoshi Nakada wrote:

Please show lines around the line 1468 in file exts.mk.

The exts.mk is attatched as

2017_02_09_bugs_ruby-lang_org_issues_13200_exts_mk.txt

but some of the lines are:

ext/zlib/realclean:
        $(Q)$(MAKE) -C $(@D) $(MFLAGS) V=$(V) $(@F)

extso:
        @echo EXTSO=$(EXTSO)

note:
        @echo "*** Following extensions failed to configure:"
        @echo "../.././ext/openssl/extconf.rb:58: Ignore OpenSSL broken by Apple.
Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')"
        @echo "*** Fix the problems, then remove these directories and try again if you want."

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED

Fix of openssl/extconf.rb should be backported to older versions, not only 2.4.

Actions #5

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Status changed from Feedback to Closed

Applied in changeset r57590.


extmk.rb: split notes

Updated by naruse (Yui NARUSE) about 7 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE

ruby_2_4 r57898 merged revision(s) 57590,57591,57592.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0