Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572546 - dev-lang/julia-0.4.3 mangles blas dependency during prepare: error compiling blas_vendor: could not load library "lib-L/usr/lib64/blas/reference"
Summary: dev-lang/julia-0.4.3 mangles blas dependency during prepare: error compiling ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-21 18:05 UTC by Zhu Sha Zang
Modified: 2017-04-10 20:35 UTC (History)
3 users (show)

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


Attachments
info (info.txt,12.81 KB, text/plain)
2016-01-21 18:07 UTC, Zhu Sha Zang
Details
pqv (pqv.txt,52 bytes, text/plain)
2016-01-21 18:08 UTC, Zhu Sha Zang
Details
Environment (environment.txt,90.92 KB, text/plain)
2016-01-21 18:10 UTC, Zhu Sha Zang
Details
build log archive (buildlog.tar.bz2,17.58 KB, application/x-bzip)
2016-01-21 18:13 UTC, Zhu Sha Zang
Details
New build log from julia compilation attempt (newbuildlog-julia.log,224.30 KB, text/x-log)
2016-01-27 17:30 UTC, Zhu Sha Zang
Details
build log (build.log.txt,285.59 KB, text/plain)
2017-03-22 22:29 UTC, Alex Kosh
Details
environment (environment,88.47 KB, text/plain)
2017-03-22 22:30 UTC, Alex Kosh
Details
portage info (log1,5.40 KB, text/plain)
2017-03-22 22:30 UTC, Alex Kosh
Details
use flags (log2,54 bytes, text/plain)
2017-03-22 22:31 UTC, Alex Kosh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zhu Sha Zang 2016-01-21 18:05:36 UTC
Every time that I tried to compile julia compilation finish with problems agains blas-reference.

Reproducible: Always

Steps to Reproduce:
1. emerge -uDN julia

Actual Results:  
error during bootstrap:
LoadError(at "sysimg.jl" line 238: LoadError(at "util.jl" line 234: ErrorException("error compiling blas_vendor: could not load library "lib-L/usr/lib64/blas/reference"
lib-L/usr/lib64/blas/reference: cannot open shared object file: No such file or directory")))
rec_backtrace at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
jl_throw at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 0x7f8418b77152)
unknown function (ip: 0x7f8418bc5b32)
unknown function (ip: 0x7f8418bc5c4c)
unknown function (ip: 0x7f8418b9010f)
jl_trampoline at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
jl_apply_generic at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 0x7f8418be5972)
unknown function (ip: 0x7f8418be4d09)
unknown function (ip: 0x7f8418be5958)
unknown function (ip: 0x7f8418be4d09)
unknown function (ip: 0x7f8418be5c2f)
unknown function (ip: 0x7f8418be5ecf)
unknown function (ip: 0x7f8418bf7cc3)
unknown function (ip: 0x7f8418bf84d5)
jl_load at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 0x7f820ecb5049)
unknown function (ip: 0x7f820ea1710a)


Expected Results:  
Compilation finish

Portage 2.2.27 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-4.9.3, glibc-2.22-r1, 4.3.3-gentoo-blackhammer x86_64)
=================================================================
System uname: Linux-4.3.3-gentoo-blackhammer-x86_64-AMD_Phenom-tm-_II_X4_960T_Processor-with-gentoo-2.2
KiB Mem:     8176520 total,   3923212 free
KiB Swap:    3015932 total,   3015932 free
Timestamp of repository gentoo: Thu, 21 Jan 2016 11:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.4.2::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.3::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r1::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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -Wstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=amdfam10 -O2 -pipe -Wstack-protector"
DISTDIR="/usr/local/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --keep-going=y --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 --load-average"
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="/var/tmp"
USE="3dnow 3dnowext R X Xaw3d a52 aac aacplus aalib acpi addressbook adiummessagestyle admin adobe-cff adplug aio airplay akonadi alisp alsa amd64 android animation-rtl annotations anthy ao apng applet archive asf assistant asyncns atmo audio audit autoipd autostatus autotools autotrace avahi avatars avcodec avformat avx bazaar berkdb bidi bip bitmap bitsofbinary bl bluetooth bluez bogofilter bookmarks box branding bs2b bsf bzip2 c++0x c++14 cairo calendar canna caps captcha captchaforms cdda cdio cdparanoia cdr chardet chatzilla chm cjk classic clearcase cli client clientinfo clock clutter cmake collab collada color colord colorpicker commands compat compress compressed-lumas connectivity console contacts context contrast contrib corefonts coverage cpuload cracklib creds crypt cryptsetup cscope css csv ctype cuda cue cups curl cvs cxx d daap dap databasedesigner dataforms datastreamsmanager dbus dcc_video debugger declarative designer designer-plugin desktopglobe detex devhelp device-mapper dia diff dig dirac djvu dns dom downloadorder dri dri3 drm dropbox dts dv dvb dvbpsi dvd dvdr dvi2tty e2fsprogs eap eap-sim ebook eclipse egl eglfs embedded emboss emoticons emotion emovix enca encode epspdf equalizer espeak evas evdev eve excel exceptions exif experimental expert-mode extensions extra extras faac faad facebook fakevim fam fastcgi fastscroll fbcon feedback fftw filestreamsmanager filetransfer firefox fits flac fltk fontconfig fontforge foomaticdb fortran fortran2003 freeimage ftdi ftp fuse gajim gallery gallium game-engine games gateways gbm gc gcj gcl gconf gcov gcrypt gd gdbm geoclue geoip geolocation geonames geos gflags gfxnvidia ggi gif gimp gist git gkrellm gl2ps glade glamor glep gles gles1 gles2 glew glib glpk glut gme gmp gnome gnome-keyring gnomecanvas gnomecards gnumeric gnuplot go gpg gphoto2 gpm gpu grammar graph graphbrowsing graphics graphite graphviz grilo groupwise growl grp grub gsf gsm gtalk gtk gts gudev gui guidexml guile gvfs gzip hddtemp highlight hog hostip hpcups hpijs html http http-cache httpd httppower humanities hwdb ices icons iconv icq id3tag ide idle ieee1394 image image-converter imaging imap imapc imlib inbandstreams infinality inotify introspection iostats ipc ipod ipv6 ipython iqauth irc isag jabbersearch jadetex java javafx jemalloc joystick jpeg kasumi kate kde kdepim kdm kdrive keymap kipi ladspa lame lapack lastfm lastfmfingerprint latex lcms libass libatomic libav libcaca libffi libguess libkms libmpv libnotify libtiger libv4l linsys live lm_sensors location logrotate logviewer logwatch lqr lua lua-cairo lua-imlib luajit luatex lv2 lximage lxml lyx lzma lzo mac mad madde maildir math mathml matplotlib matroska matrox mbox md5 md5sum mdnsresponder-compat meanwhile mediawiki melt mempool-buddy mempool-chained-pool mempool-fixed-bitmap mempool-one-big mempool-pass-through mercurial messagearchiver messaging metapost minizip mjpeg mlib-update mmap mms mmx mmxext mng modules mozdom mozilla mp3 mp3tunes mp4 mpd mpeg mpg123 mtp multilib multimedia multiprocess multislot multitarget multiuser multiuserchat musepack music musicbrainz nano-syntax nas nat-pmp ncurses ndof network network-cron networking networkmonitor nlpsolver nls nntp nominatim nova nowlistening npp nptl nsplugin nss ntfs ntfsdecrypt ntl ntlm numpy nut nvidia objc objc++ objc-gc octave odk ofa offensive offlinehelp ofono ofx ogg okteta omega omxil online-services openal openct opencv openexr opengl openid openmp openssl optimisememory opus orc organizer oscar osmesa otr outputs overlays ovftool p2p pam pango patented pcre16 pdf pep8 pepmanager perforce perl phonehome phonon pipe plasma player plazes plotutils plugin-autowep plugin-btscan plugin-checksum plugin-doat plugin-dot15d4 plugin-fishlim plugin-ptw plugin-spectools plugin-sysinfo plugin-syslog plugins png pnm policykit pop pop3c positioning postgres postproc postscript powermanagement ppds ppp printsupport privacy privacylists privatestorage profiler profiling pronounce pstricks publishers publishsubscribe pulseaudio pvr pyflakes pyglet pygments pylint pyqt4 python python3 pyx pyzord qalculate qbs qml qpak qrcode qscintilla qt-dbus qt3support qt4 qt5 qthelp quicktime quotes quvi qwt radio readline realtime recorder reencrypt registration remotecontrol rendering replaygain reviewboard rfc3779 right_timezone roaming romio rostersearch rss rtsp rubberband s3 sandbox sasl sbc scanner schroedinger science scipy screen screensaver screenshot script scripts scripttools scrobbler sdk sdl sdl-image sdl-sound sdlaudio sdlgfx seccomp secure-delete security semantic-desktop sensord sensors servicediscovery serviceframework session sessionnegotiation sha1 sha512 shadow shine shm shout sid sidebar simage sip skins skydrive skype slp smbsharemodes smbtav2 smi smime smp sms smtp snappy sndfile snmp snmppower soap sockets socks socks5 socksstreams sound soundcloud sounds sourceview sox spam-report sparse spell sphinx sql sqlite sqlite3 sse sse2 sse3 ssh-askpass ssl staging stars startup-notification statistics stats stereo stream streams strigi subtitles subversion svg swat swig swscale sysstat system-sqlite systemd systeminfo sysvipc t1lib taglib tbb tcl tcpd tcpdump tcpreplay tcpwrapper tellico telnet templates tex4ht texi2html texmacs themedesigner themes theora thin-splines threads threadsafe thumbnail thunderbird tiff timerinfo timezone tinfo tk tls toolame toolbar tools tor tordns trace traits transcode tray trayicon truetype tv tvtime tweak-mode twitter twolame udev udisks udisks2 uim ukit uml unicode unlock-notify upcall upower urandom usb ust utils uvm v4l v8 vaapi vamp vba vcard vcd vcdx vdpau verse versit vf-dlopen vga video videos videoslideshow vim vim-pager vim-plugin vim-syntax vimeo virtualbox visual visualizer vix vkontakte vlc vlm vmware-tools vmware_guest_freebsd vmware_guest_linux vmware_guest_netware vmware_guest_solaris vmware_guest_winPre2k vmware_guest_windows vnc vocoder volpack vorbis vpx vtk wad wav waveout wavpack wayland wayland-compositor weather weather-metar weather-xoap webchannel webdav webp webpresence webrtc-aec websockets whiteboarding widgets wifi wireshark wma wma-fixed wmf worldclock wps wxwidgets x11extras x11vnc x264 xanim xattr xbase xcb xchatdccserver xcomposite xdg xetex xface xforward xfs xft xhtml xim xindy xine xinerama xkb xls xml xmldoclet xmlpatterns xmlreader xmlrpc xmlsec xmlwriter xmp xmpp xmppuriqueries xnest xorg xorgmodule xosd xplanet xpm xprint xrandr xrender xscreensaver xsettings xslt xterm xv xvfb xvid yahoo yahoo-geo yaml yaz youtube yuv4mpeg zfs zip zlib zsh-completion zvbi" 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="lbmethod_bytraffic cgi actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias slotmem_shm unixd socache_shmcb" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="nss" DVB_CARDS="dibusb-usb1 dibusb-usb2 usb-dib0700" ELIBC="glibc" ENLIGHTENMENT_MODULES="access backlight battery clock comp conf-applications conf-dialogs conf-display conf-edgebindings conf-interaction conf-intl conf-keybindings conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers connman cpufreq dropshadow everything fileman fileman-opinfo gadman ibar ibox illume2 mixer msgbus notification pager quickaccess shot start syscon systray tasks temperature tiling winlist wizard xkbswitch" 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" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="pt_BR de en ja ru zh_CN es fr" LIRC_DEVICES="audio audio_alsa imputlirc irdeo irdeo_remote irlink irman irreal serial udp" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics java javacard javafx mobility profiler webcommon websvccommon" NGINX_MODULES_HTTP="access addition auth_basic autoindex browser cache_purge charset dav degradation empty_gif fancyindex fastcgi flv geo geoip gzip gzip_static headers_more image_filter limit_conn limit_req limit_zone lua map memcached mp4 perl proxy push random_index realip referer rewrite scgi secure_link slowfs_cache split_clients ssi stub_status sub upload upload_progress upstream_ip_hash userid uwsgi xslt" NGINX_MODULES_MAIL="imap pop3 smtp" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 arm" QEMU_USER_TARGETS="i386 arm" RUBY_TARGETS="ruby22 ruby23" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga v4l modesetting fbdev" 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 Zhu Sha Zang 2016-01-21 18:07:20 UTC
Created attachment 423542 [details]
info
Comment 2 Zhu Sha Zang 2016-01-21 18:08:01 UTC
Created attachment 423544 [details]
pqv
Comment 3 Zhu Sha Zang 2016-01-21 18:10:00 UTC
Created attachment 423546 [details]
Environment
Comment 4 Zhu Sha Zang 2016-01-21 18:13:30 UTC
Created attachment 423548 [details]
build log archive
Comment 5 Rafał Mużyło 2016-01-22 09:33:25 UTC
Perhaps the sed expression got too greedy.

"lib-L/usr/lib64/blas/reference" iseems to be result of

lblas=${lblas%% *}
lib${lblas#-l}

What does 'pkg-config --libs blas' return ?
Comment 6 Zhu Sha Zang 2016-01-22 13:14:39 UTC
Take a look:

[root@blackhammer ~]$ pkg-config --libs blas                                                                                         10:14
-L/usr/lib64/blas/reference -lblas
Comment 7 Matthias Maier gentoo-dev 2016-01-22 17:18:18 UTC
I've hopefully fixed this issue in 0.4.3. Please test again.
(Migration from the development repository to the rsync mirrors takes some time).


commit ee0eb7f58bc7d5bff6aa744b1fc5f50bd8309cf3
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Fri Jan 22 11:12:21 2016 -0600

    dev-lang/julia: Set up blas/lapack dependencies correctly, bug 572546
    
    Package-Manager: portage-2.2.26
Comment 8 Paul 2016-01-23 09:14:58 UTC
I'm afraid that it does not work (for me on different systems). I had the same error as above but with the new ebuild i get the following errors:

signal (11): Segmentation fault
unknown function (ip: 0x7f37e314696b)
unknown function (ip: 0x7f37e314697a)
unknown function (ip: 0x7f37e3146ad7)
unknown function (ip: 0x7f37e31471aa)
unknown function (ip: 0x7f37e3072fe8)
unknown function (ip: 0x7f39e9cadb1a)
unknown function (ip: 0x7f39e9cadc03)
unknown function (ip: 0x7f39e9cb1e15)
unknown function (ip: 0x7f39e9cad9d4)
unknown function (ip: 0x7f39e9cb161b)
unknown function (ip: 0x7f39e7fccfcb)
unknown function (ip: 0x7f39e9cad9d4)
unknown function (ip: 0x7f39e7fcd55d)
dlopen at /lib64/libdl.so.2 (unknown line)
jl_uv_dlopen at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 0x7f39e88e6cd1)
unknown function (ip: 0x7f39e88ba5ed)
unknown function (ip: 0x7f39e88bb5fb)
unknown function (ip: 0x7f39e88d052d)
unknown function (ip: 0x7f39e88c7cf1)
unknown function (ip: 0x7f39e88ce372)
unknown function (ip: 0x7f39e88d3223)
unknown function (ip: 0x7f39e88d57f9)
unknown function (ip: 0x7f39e88d59fc)
unknown function (ip: 0x7f39e8897c8f)
jl_trampoline at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
jl_apply_generic at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 0x7f39e88e3ca3)
unknown function (ip: 0x7f39e88e3051)
unknown function (ip: 0x7f39e88e3c89)
unknown function (ip: 0x7f39e88e3051)
unknown function (ip: 0x7f39e88e3f67)
unknown function (ip: 0x7f39e88e4217)
unknown function (ip: 0x7f39e88f569f)
unknown function (ip: 0x7f39e88f5e85)
jl_load at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 0x7f37e50fc04c)
jl_apply_generic at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 0x7f37e44f4100)
unknown function (ip: 0x7f39e88e3ca3)
unknown function (ip: 0x7f39e88e3051)
unknown function (ip: 0x7f39e88f5355)
unknown function (ip: 0x7f39e88f598c)
unknown function (ip: 0x7f39e88f5635)
unknown function (ip: 0x7f39e88f5e85)
jl_load at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/../lib/libjulia.so (unknown line)
unknown function (ip: 0x401964)
unknown function (ip: 0x401d33)
unknown function (ip: 0x40174f)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x401799)
unknown function (ip: (nil))
/bin/sh: line 1: 25843 Segmentation fault      /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/julia -C native --output-o /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/lib/julia/sys.o -f -J /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/lib/julia/inference.ji sysimg.jl
Comment 9 Zhu Sha Zang 2016-01-27 17:28:29 UTC
Still won't finish compilation:

/var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/base/precompile.jl

signal (11): Segmentation fault
unknown function (ip: 0x7f192bbd80c0)
unknown function (ip: 0x7f192bbd812d)
unknown function (ip: 0x7f192bbe8323)
unknown function (ip: 0x7f192bbe8432)
unknown function (ip: 0x7f192bb0cfa9)
unknown function (ip: 0x7f1b386a6c27)
unknown function (ip: 0x7f1b378323ea)
unknown function (ip: 0x7f1b37832435)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x4017b9)
unknown function (ip: (nil))
/bin/sh: line 1: 10501 Segmentation fault      /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/julia -C native --output-o /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/lib/julia/sys.o -f -J /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/lib/julia/inference.ji sysimg.jl
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***
Makefile:200: recipe for target '/var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/lib/julia/sys.o' failed
make[1]: *** [/var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/lib/julia/sys.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3'
Makefile:69: recipe for target 'julia-sysimg-release' failed
make: *** [julia-sysimg-release] Error 2
 * ERROR: dev-lang/julia-0.4.3::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/julia-0.4.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/julia-0.4.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/julia-0.4.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/julia-0.4.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3'
 * S: '/var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3'

>>> Failed to emerge dev-lang/julia-0.4.3, Log file:

>>>  '/var/tmp/portage/dev-lang/julia-0.4.3/temp/build.log'
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (dev-lang/julia-0.4.3:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-lang/julia-0.4.3/temp/build.log'
Comment 10 Zhu Sha Zang 2016-01-27 17:30:07 UTC
Created attachment 424002 [details]
New build log from julia compilation attempt
Comment 11 Matthias Maier gentoo-dev 2016-01-27 17:39:18 UTC
I can reproduce the compilation issue in a plain amd64 environment.
I will have a look.
Comment 12 Matthias Maier gentoo-dev 2016-01-27 17:48:28 UTC
As a temporary workaround install

  sci-libs/blas-reference-20131116-r2
  sci-libs/lapack-reference-3.6.0-r1

from the science overlay. (Be aware of the fact that this most likely requires to recompile everything depending on blas/lapack.)
Comment 13 Cesko Voeten 2016-04-11 16:40:49 UTC
(In reply to Matthias Maier from comment #12)
> As a temporary workaround install
> 
>   sci-libs/blas-reference-20131116-r2
>   sci-libs/lapack-reference-3.6.0-r1
> 
> from the science overlay. (Be aware of the fact that this most likely
> requires to recompile everything depending on blas/lapack.)

Unfortunately, even with these exact versions installed and after emerge @preserved-rebuild, the build still segfaults for me:

signal (11): Segmentation fault
unknown function (ip: 0x7f20c17ad25b)
unknown function (ip: 0x7f20c17ad293)
unknown function (ip: 0x7f20c17ad293)
unknown function (ip: 0x7f20c17ad3b7)
unknown function (ip: 0x7f20c17ada9d)
unknown function (ip: 0x7f20c16d9878)
unknown function (ip: 0x7f22cd3010fa)
unknown function (ip: 0x7f22cd30120b)
unknown function (ip: 0x7f22cd3056b0)
unknown function (ip: 0x7f22cd300fa4)
unknown function (ip: 0x7f22cd304e51)
unknown function (ip: 0x7f22cc243fd9)
unknown function (ip: 0x7f22cd300fa4)
unknown function (ip: 0x7f22cc2445d1)
dlopen at /lib64/libdl.so.2 (unknown line)
jl_uv_dlopen at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/dlload.c:51
jl_load_dynamic_library_ at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/dlload.c:168
get_library at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/ccall.cpp:107
runtime_sym_lookup at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/ccall.cpp:164
emit_cglobal at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/ccall.cpp:600
emit_intrinsic at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/intrinsics.cpp:833
emit_call at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/codegen.cpp:2628
emit_function at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/codegen.cpp:4699
to_function at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/codegen.cpp:643
jl_compile at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/codegen.cpp:812
jl_trampoline_compile_function at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/builtins.c:1025
jl_apply_generic at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/gf.c:1709
do_call at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/interpreter.c:66
eval at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/interpreter.c:213
do_call at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/interpreter.c:63
eval at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/interpreter.c:213
eval_body at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/interpreter.c:547
jl_toplevel_eval_body at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/interpreter.c:525
jl_toplevel_eval_flex at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/toplevel.c:521
jl_toplevel_eval_flex at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/toplevel.c:573
jl_load at /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/src/toplevel.c:620
unknown function (ip: 0x7f20c3d14049)
unknown function (ip: 0x7f20c3a7610a)
/bin/sh: line 1: 18395 Segmentation fault      (core dumped) /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/bin/julia -C native --output-o /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/lib/julia/sys.o -f -J /var/tmp/portage/dev-lang/julia-0.4.3/work/julia-0.4.3/usr/lib/julia/inference.ji sysimg.jl

and dmesg says:

traps: julia[18395] general protection ip:7f20c17ad25b sp:7ffdc0947de0 error:0 in libgfortran.so.3.0.0[7f20c16bf000+128000]

Note that I'm segfaulting in a different place than Comment 9 is (and also that I appear to be segfaulting in gcc code rather than in blas/lapack). Anything I can do or test?
Comment 14 Matthias Maier gentoo-dev 2016-09-09 06:17:42 UTC
This issue is fixed in version 0.4.6 that just hit the tree. Please test and reopen if necessary.

commit b620c2db81b11d3e63069512fbcc855b53cfb26a
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Fri Sep 9 00:45:35 2016 -0500

    dev-lang/julia: version bump to 0.4.6
    
    Package-Manager: portage-2.2.28
Comment 15 Alex Kosh 2016-11-17 04:44:42 UTC
The error still persist in 0.5.0-r2, please reopen the bug (I do not see any link to reopen it, sorry)
https://forums.gentoo.org/viewtopic-t-1054656.html

# emerge --info '=dev-lang/julia-0.5.0-r2::gentoo' 
https://owncloud.usask.ca/index.php/s/zOz4sRFQDOQLZCv 
# emerge -pqv '=dev-lang/julia-0.5.0-r2::gentoo' 
https://owncloud.usask.ca/index.php/s/dcT8oQWaKSMgR1j 
build.log 
https://owncloud.usask.ca/index.php/s/awyRyyvTnN6sAYv 
environment 
https://owncloud.usask.ca/index.php/s/08XVAOOmMBHLRqw
Comment 16 Alex Kosh 2016-11-24 20:02:14 UTC
Is there any workaround to install Julia 0.5 on Gentoo?
Comment 17 Andreas Sturmlechner gentoo-dev 2017-03-22 22:01:03 UTC
Your links don't work anymore, please don't do that and in the future upload any logs to gentoo bugzilla instead.
Comment 18 Alex Kosh 2017-03-22 22:29:40 UTC
Created attachment 468000 [details]
build log
Comment 19 Alex Kosh 2017-03-22 22:30:06 UTC
Created attachment 468002 [details]
environment
Comment 20 Alex Kosh 2017-03-22 22:30:59 UTC
Created attachment 468004 [details]
portage info
Comment 21 Alex Kosh 2017-03-22 22:31:26 UTC
Created attachment 468006 [details]
use flags
Comment 22 Alex Kosh 2017-03-22 22:35:14 UTC
Sorry for that. I have attached them again, but I would not be able to reproduce them quickly. Because of Julia, I gave up on gentoo for time being, but I can recover everything if required. I thought that Julia 0.6 will be out soon, and the bug may be gone, and I will try to use gentoo again. Thanks.
Comment 23 Matthias Maier gentoo-dev 2017-03-23 14:42:35 UTC
What blas library do you have installed exactly?
Comment 24 Alex Kosh 2017-03-24 03:19:37 UTC
Sorry, I do not really know now. Those logs I posted were produced with freshly installed gentoo, so blas was the default blas which julia emerge pulled (I am not sure what it was). The only thing I changed - I added spqr-1.3.1 keyword. After that I also tried openblas-0.2.15 from the science overlay, which led me to different bug and I gave up. I will soon try to clean my gentoo and start from scratch. Again, sorry for such poor feedback, some time has passed.
Comment 25 Matthias Maier gentoo-dev 2017-03-24 03:37:59 UTC
(In reply to Alex Kosh from comment #24)
> Sorry, I do not really know now. Those logs I posted were produced with
> freshly installed gentoo, so blas was the default blas which julia emerge
> pulled (I am not sure what it was). The only thing I changed - I added
> spqr-1.3.1 keyword.

The problem is I cannot reproduce
 - on my machine
 - in an amd64 stage-3
 - in an ~amd64 stage-3

:-/
Comment 26 Alex Kosh 2017-03-25 18:09:34 UTC
I updated the system, deep-cleaned everything, and installed julia: all worked except two bugs which are not related to blas:
1) I have to install spqr1.3.1 because failed to emerge
2) julia did not want to compile with emacs USE flag - "Error occurred processing contrib/julia-mode.el", but this is probably next issue which I probably need to submit somewhere else.