Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627738 - sys-devel/gcc-5.4.0-r3 build fails on x32 with USE=gcj
Summary: sys-devel/gcc-5.4.0-r3 build fails on x32 with USE=gcj
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard: masked in 17.0 profiles
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-12 23:40 UTC by Daniel Santos
Modified: 2019-12-29 11:06 UTC (History)
1 user (show)

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


Attachments
build log (xz compressed) (gcc-5.4.0-r3:20170812-214947.log.xz,474.94 KB, application/x-xz)
2017-08-12 23:40 UTC, Daniel Santos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2017-08-12 23:40:27 UTC
Created attachment 488726 [details]
build log (xz compressed)

Since USE=gcj is going away, should we mask it when x32 ABI is specified?  The strange thing is that when I went into this directory and manually ran the link, it succeeded:

sudo -Hu portage /bin/bash -l
. /home/tmp/portage/sys-devel/gcc-5.4.0-r3/temp/environment
<link command from below>

Perhaps the -l polluted the environment, however.

I'm going to guess at a minor severity and this is not a blocker for anything I'm doing.  Please note that emerge --info below is after I've disabled gcj.

libtool: link: /home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./gcc/gcj -B/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-pc-linux-gnux32/32/libjava/ -B/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-pc-linux-gnux32/32/libjava/ -B/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnux32/bin/ -B/usr/x86_64-pc-linux-gnux32/lib/ -isystem /usr/x86_64-pc-linux-gnux32/include -isystem /usr/x86_64-pc-linux-gnux32/sys-include -m32 -ffloat-store -fomit-frame-pointer -Usun -march=nocona -mtune=native -O2 -ggdb -m32 -m32 -o ecjx -findirect-dispatch --main=org.eclipse.jdt.internal.compiler.batch.GCCMain -Djava.class.path=/usr/share/gcc-data/x86_64-pc-linux-gnux32/5.4.0/java/ecj.jar ecjx.o  -L/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-pc-linux-gnux32/32/libjava -L/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-pc-linux-gnux32/32/libjava/.libs
./.libs/libgcj.so: undefined reference to `ffi_raw_call'
./.libs/libgcj.so: undefined reference to `ffi_prep_raw_closure_loc'
./.libs/libgcj.so: undefined reference to `ffi_prep_cif_machdep'
./.libs/libgcj.so: undefined reference to `ffi_prep_closure_loc'
./.libs/libgcj.so: undefined reference to `ffi_call'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:9498: jv-convert] Error 1
make[5]: *** Waiting for unfinished jobs....
./.libs/libgcj.so: undefined reference to `ffi_raw_call'
./.libs/libgcj.so: undefined reference to `ffi_prep_raw_closure_loc'
./.libs/libgcj.so: undefined reference to `ffi_prep_cif_machdep'
./.libs/libgcj.so: undefined reference to `ffi_prep_closure_loc'
./.libs/libgcj.so: undefined reference to `ffi_call'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:9445: gcj-dbtool] Error 1
libtool: link: (cd ".libs" && rm -f "libgij.so.16" && ln -s "libgij.so.16.0.0" "libgij.so.16")
libtool: link: (cd ".libs" && rm -f "libgij.so" && ln -s "libgij.so.16.0.0" "libgij.so")
libtool: link: ( cd ".libs" && rm -f "libjvm.la" && ln -s "../libjvm.la" "libjvm.la" )
libtool: link: ( cd ".libs" && rm -f "libgij.la" && ln -s "../libgij.la" "libgij.la" )
mv -f classpath/tools/.deps/libgcj_tools_la-tools.Tpo classpath/tools/.deps/libgcj_tools_la-tools.Plo
make[5]: Leaving directory '/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-pc-linux-gnux32/32/libjava'
make[4]: *** [Makefile:10240: all-recursive] Error 1
make[4]: Leaving directory '/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-pc-linux-gnux32/32/libjava'
make[3]: *** [Makefile:12804: multi-do] Error 1
make[3]: Leaving directory '/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-pc-linux-gnux32/libjava'
make[2]: *** [Makefile:12768: all-multi] Error 2
make[2]: Leaving directory '/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-pc-linux-gnux32/libjava'
make[1]: *** [Makefile:20390: all-target-libjava] Error 2
make[1]: Leaving directory '/home/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build'
make: *** [Makefile:24025: bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-5.4.0-r3::gentoo failed (compile phase):





$ emerge --info
Portage 2.3.6 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r4, 4.9.39-gentoo x86_64)
=================================================================
System uname: Linux-4.9.39-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5450_@_3.00GHz-with-gentoo-2.3
KiB Mem:    32945300 total,   3971032 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sat, 12 Aug 2017 08:00:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.27::gentoo, 2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=native -O2 -ggdb"
DISTDIR="/mnt/large/distfiles"
EMERGE_DEFAULT_OPTS="-j3 --load-average=11 --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy cgroup compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo rsync://rsync.gtlib.gatech.edu/gentoo rsync://gentoo.cs.uni.edu/gentoo-distfiles"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 --load-average=8.75"
PKGDIR="/mnt/large/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"
USE="X a52 aac acl acpi aio alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr clang cli consolekit cracklib crypt cups cxx dbus device-mapper dri dts dvd dvdr emboss encode exif fam firefox flac fortran fuse gcj gdbm gif git glamor gpm gstaudio gstvideo gtk hardened highlight iconv icu ipv6 jpeg jpeg2k lcms ldap libnotify llvm lvm lz4 lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg multicall multilib multitarget natspec ncurses nls nptl objc objc++ objc-gc ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds qt3support qt4 rar readline sasl savedconfig sdl seccomp session smp snappy spell spice sqlite sqlite3 sse sse2 sse3 sse4_1 ssl ssse3 startup-notification static-libs subversion svg syslog systemtap tcpd threads tiff tools truetype tty-helpers udev udisks unicode upower usb usbredir utils valgrind vim-syntax virt-network virtio vorbis wxwidgets x264 xattr xcb xen xml xv xvid zeroconf zlib" ABI_X86="64 32" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" 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" GRUB_PLATFORMS="efi-64 pc coreboot emu multiboot qemu xen" INPUT_DEVICES="keyboard mouse joystick evdev wacom vmmouse" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" LLVM_TARGETS="AMDGPU ARM BPF NVPTX Mips X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="aarch64 arm armeb i386 hppa m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le s390x sparc sparc32plus sparc64 x86_64" QEMU_USER_TARGETS="aarch64 arm armeb i386 hppa m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le s390x sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="radeon vesa qxl vmware amdgpu" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-12-29 11:06:53 UTC
Let's close it as non-masked versions of gcc don't have gcj and related
libraries.