Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 568486

Summary: sys-devel/gcc-5.3.0[gcj] ld: cannot find -ljack
Product: Gentoo Linux Reporter: edes <edes>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.tar.bz2

Description edes 2015-12-16 22:45:29 UTC
Created attachment 419416 [details]
build.log.tar.bz2

gcc-5.3.0 fails to build on my ~amd64 gentoo box:

libtool: link: /usr/x86_64-pc-linux-gnu/bin/ranlib .libs/libubsan.a
libtool: link: rm -fr .libs/libubsan.lax
libtool: link: ( cd ".libs" && rm -f "libubsan.la" && ln -s "../libubsan.la" "libubsan.la" )
make[8]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/32/libsanitizer/ubsan'
make[8]: Entering directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/32/libsanitizer'
true "AR_FLAGS=rc" "CC_FOR_BUILD=x86_64-pc-linux-gnu-gcc" "CFLAGS=-g -march=native -O2 -pipe  -m32" "CXXFLAGS=-g -march=native -O2 -pipe -D_GNU_SOURCE  -m32" "CFLAGS_FOR_BUILD=-march=native -O2 -pipe" "CFLAGS_FOR_TARGET=-g -march=native -O2 -pipe" "INSTALL=/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c" "INSTALL_DATA=/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c -m 644" "INSTALL_PROGRAM=/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c" "INSTALL_SCRIPT=/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c" "JC1FLAGS=" "LDFLAGS=-m32" "LIBCFLAGS=-g -march=native -O2 -pipe  -m32" "LIBCFLAGS_FOR_TARGET=-g -march=native -O2 -pipe" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000   " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "RUNTESTFLAGS=" "exec_prefix=/usr" "infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.3.0/info" "libdir=/usr/lib" "prefix=/usr" "includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include" "AR=/usr/x86_64-pc-linux-gnu/bin/ar" "AS=/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/./gcc/as" "LD=/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/./gcc/collect-ld -m elf_x86_64 -m elf_i386" "LIBCFLAGS=-g -march=native -O2 -pipe  -m32" "NM=/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/./gcc/nm" "PICFLAG=" "RANLIB=/usr/x86_64-pc-linux-gnu/bin/ranlib" "DESTDIR=" DO=all multi-do # make
make[8]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/32/libsanitizer'
make[7]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/32/libsanitizer'
make[6]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/32/libsanitizer'
make[5]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/libsanitizer'
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/libsanitizer'
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/libsanitizer'
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/x86_64-pc-linux-gnu/libsanitizer'
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-5.3.0/work/build'
Makefile:21073: recipe for target 'bootstrap-lean' failed
make: *** [bootstrap-lean] Error 2


here is emerge --info:
Portage 2.2.26 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.22-r1, 4.3.0-gentoo x86_64)
=================================================================
System uname: Linux-4.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:    16334656 total,    104940 free
KiB Swap:    8191996 total,   8136824 free
Timestamp of repository gentoo: Wed, 16 Dec 2015 11:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.11::gentoo, 3.4.3-r5::gentoo, 3.5.1::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

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

acme
    location: /usr/local/portage
    masters: gentoo

Installed sets: @virtualbox
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.lug.udel.edu/pub/gentoo/ http://mirrors.rit.edu/gentoo/"
LANG="es_UY.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify lzma mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl seccomp session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis 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="access_compat socache_shmcb authz_core authn_core authz_host dir mime unixd actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_file authz_dbm authz_groupfile authz_owner authz_user autoindex cache cache_disk cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dumpio env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat log_config log_forensic logio mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_fcgi proxy_ftp proxy_http proxy_scgi ratelimit remoteip reqtimeout rewrite setenvif slotmem_shm speling status substitute unique_id userdir usertrack version vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" FFTOOLS="ismindex pktdumper qt-faststart" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="es es_ES" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" SANE_BACKENDS="xerox_mfp net" USERLAND="GNU" VIDEO_CARDS="nouveau" XFCE_PLUGINS="clock" 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"
USE_PYTHON="2.7 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Gilbert gentoo-dev 2015-12-16 23:18:52 UTC
libtool: link: /var/tmp/portage/sys-devel/gcc-5.3.0/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-5.3.0/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32 -shared  -fPIC -DPIC  .libs/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.o .libs/gnu_javax_sound_midi_dssi_DSSISynthesizer.o ../../../native/jni/classpath/.libs/jcl.o   -ljack  -m32 -march=native -m32 -m32   -Wl,-soname -Wl,libgjsmdssi.so -o .libs/libgjsmdssi.so

/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libjack.so when searching for -ljack
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -ljack
collect2: error: ld returned 1 exit status
Makefile:411: recipe for target 'libgjsmdssi.la' failed
Comment 2 Mike Gilbert gentoo-dev 2015-12-16 23:26:34 UTC
Looks like we might have an automagic dependency on media-sound/jack-audio-connection-kit, which triggers a failure if media-sound/jack-audio-connection-kit[abi_x86_32] is not installed.
Comment 3 Andrew John Hughes 2016-02-04 22:36:54 UTC
The Jack dependency needs to be there for gcj builds or --disable-dssi needs to be passed to configure.

$ ./configure --help|grep dssi
  --disable-dssi          compile DSSI providers (enable by --enable-dssi)

$ grep -r 'jack' `find -name 'Makefile.am'`
./native/jni/midi-dssi/Makefile.am:libgjsmdssi_la_LIBADD = $(top_builddir)/native/jni/classpath/jcl.lo -ljack
Comment 4 Andrew John Hughes 2016-02-04 22:38:03 UTC
configure does check for jack/jack.h but not the library, which explains why it's failing on multilib.
Comment 5 Andrew John Hughes 2016-02-04 23:04:38 UTC
Filed a GCC bug to resolve the detection issue:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69679
Comment 6 Arfrever Frehtes Taifersar Arahesis 2016-02-06 13:16:53 UTC

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