Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656496 - dev-lang/ruby-2.3.7::gentoo Fails to compile with specific CFLAGS
Summary: dev-lang/ruby-2.3.7::gentoo Fails to compile with specific CFLAGS
Status: RESOLVED DUPLICATE of bug 614760
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-25 14:43 UTC by Povilas Brilius
Modified: 2018-07-20 05:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Elog (ruby-2.3.7:20180525-142840.log,1.45 KB, text/x-log)
2018-05-25 14:43 UTC, Povilas Brilius
Details
Build log with conservative cflags (build.log.gz,34.47 KB, application/gzip)
2018-05-26 23:02 UTC, Povilas Brilius
Details
FEATURES="-ccache" emerge =dev-lang/ruby-2.3.7 build log (build.log.gz,34.69 KB, application/gzip)
2018-05-26 23:24 UTC, Povilas Brilius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Povilas Brilius 2018-05-25 14:43:33 UTC
Created attachment 533100 [details]
Elog

emerge --info '=dev-lang/ruby-2.3.7::gentoo:

Portage 2.3.33 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.3.0, glibc-2.26-r6, 4.16.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.16.7-gentoo-x86_64-AMD_A8-8600P_Radeon_R6,_10_Compute_Cores_4C+6G-with-gentoo-2.4.1
KiB Mem:    15837232 total,   2750892 free
KiB Swap:   16777212 total,  16464380 free
Timestamp of repository gentoo: Thu, 03 May 2018 00:45:01 +0000
Head commit of repository gentoo: 2896cfc2522fd36334708269d5e679a994c00814
Head commit of repository sakaki-tools: ec34a0c8579c23cdd84e839250561f5c3eee72f1

sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p2) 2.30.0
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.5.5-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.11.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r1::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync25.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no

mysql
    location: /var/lib/layman/mysql
    masters: gentoo
    priority: 50

sakaki-tools
    location: /usr/local/portage/sakaki-tools
    sync-type: git
    sync-uri: https://github.com/sakaki-/sakaki-tools.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver4 -Ofast -pipe -fvect-cost-model=unlimited -fsimd-cost-model=unlimited -fsched2-use-superblocks -fmodulo-sched -fmodulo-sched-allow-regmoves -faggressive-loop-optimizations"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=bdver4 -Ofast -pipe -fvect-cost-model=unlimited -fsimd-cost-model=unlimited -fsched2-use-superblocks -fmodulo-sched -fmodulo-sched-allow-regmoves -faggressive-loop-optimizations"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy ccache cgroup clean-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-elog split-log strict suidctl unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://cosmos.illinois.edu/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j4 -l16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp/portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias rewrite vhost_alias http2 version" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="php webcommon profiler" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, ENV_UNSET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-lang/ruby-2.3.7::gentoo was built with the following:
USE="berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -jemalloc -libressl -rubytests -socks5 -tk -xemacs" ABI_X86="(64)"
CFLAGS="-march=bdver4 -O3 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=bdver4 -O3 -pipe -fno-strict-aliasing"

emerge -pqv '=dev-lang/ruby-2.3.7::gentoo'

[ebuild   R   ] dev-lang/ruby-2.3.7  USE="berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -jemalloc -libressl -rubytests -socks5 -tk -xemacs"

Build log is missing at /tmp/portage/portage/dev-lang/ruby-2.3.7/temp/build.log.gz
Comment 1 Ben Kohler gentoo-dev 2018-05-25 15:17:16 UTC
Your CFLAGS are very scary.
Comment 2 Jonas Stein gentoo-dev 2018-05-26 21:50:29 UTC
Povilas, you have set

CFLAGS="-march=bdver4 -Ofast -pipe -fvect-cost-model=unlimited -fsimd-cost-model=unlimited -fsched2-use-superblocks -fmodulo-sched -fmodulo-sched-allow-regmoves -faggressive-loop-optimizations"

could you retest with more conservative CFLAGS and report back, please?
You can start with
CFLAGS="-march=native -O2 -pipe"
for example. Perhaps you can even point out which flags lead to problems.
Comment 3 Povilas Brilius 2018-05-26 23:02:16 UTC
Created attachment 533424 [details]
Build log with conservative cflags
Comment 4 Povilas Brilius 2018-05-26 23:08:58 UTC
CFLAGS="-O2 -march=native -pipe" was set to dev-lang/ruby only
Comment 5 Ben Kohler gentoo-dev 2018-05-26 23:10:34 UTC
Can you also try with ccache disabled?
Comment 6 Povilas Brilius 2018-05-26 23:24:41 UTC
Created attachment 533426 [details]
FEATURES="-ccache" emerge =dev-lang/ruby-2.3.7 build log
Comment 7 Ben Kohler gentoo-dev 2018-05-26 23:27:26 UTC
This looks like maybe an openssl-1.1 failure, what version of openssl do you have?
Comment 8 Povilas Brilius 2018-05-27 09:39:00 UTC
v1.1.1_pre6, it's a development installation ~amd64
Comment 9 Hans de Graaff gentoo-dev Security 2018-07-20 05:52:10 UTC

*** This bug has been marked as a duplicate of bug 614760 ***