The only USE flag used, when installing Julia is emacs, from what I can see.

# equery uses julia
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-lang/julia-0.3.0:
 U I
 - - emacs : Add support for GNU Emacs

I believe that BLAS is built with 64 bit support (but I am not entirely 
sure):

# eselect blas show
lib64: reference

The complete code of the e-build is:


# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

RESTRICT="test"

inherit elisp-common eutils multilib pax-utils toolchain-funcs

PDSFMT=dSFMT-src-2.2

DESCRIPTION="High-performance programming language for technical computing"
HOMEPAGE="http://julialang.org/";
SRC_URI="
    https://github.com/JuliaLang/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
    http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/${PDSFMT}.tar.gz
    https://dev.gentoo.org/~patrick/libuv-${P}.tar.bz2
    https://dev.gentoo.org/~patrick/rmath-0_p20140821.tar.bz2
    
http://www.public-software-group.org/pub/projects/utf8proc/v1.1.6/utf8proc-v1.1.6.tar.gz
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="emacs"

RDEPEND="
    dev-lang/R:0=
    dev-libs/double-conversion:0=
    dev-libs/gmp:0=
    dev-libs/libpcre:3=
    dev-libs/mpfr:0=
    dev-libs/openspecfun
    sci-libs/arpack:0=
    sci-libs/camd:0=
    sci-libs/cholmod:0=
    sci-libs/fftw:3.0=
    sci-libs/openlibm:0=
    sci-libs/spqr:0=
    sci-libs/umfpack:0=
    sci-mathematics/glpk:0=
    =sys-devel/llvm-3.4*
    >=sys-libs/libunwind-1.1:7=
    sys-libs/readline:0=
    sys-libs/zlib:0=
    virtual/blas
    virtual/lapack
    emacs? ( app-emacs/ess )"

DEPEND="${RDEPEND}
    dev-util/patchelf
    virtual/pkgconfig"

src_prepare() {
    ln -s "${DISTDIR}"/${PDSFMT}.tar.gz deps/dsfmt-2.2.tar.gz || die
    ln -s "${DISTDIR}"/utf8proc-v1.1.6.tar.gz deps/utf8proc-v1.1.6.tar.gz 
|| die
    cp  -ar "${WORKDIR}"/Rmath deps/ || die
    rmdir deps/libuv && ln -s "${WORKDIR}"/libuv deps/libuv
    # no fetching in ebuild
    # /usr/include/suitesparse is for debian only
    # respect prefix, flags
    sed -i \
        -e 's|$(JLDOWNLOAD)|${EPREFIX}/bin/true|' \
        -e 's|git submodule|${EPREFIX}/bin/true|g' \
        -e 's|^\(SUITESPARSE_INC\s*=\).*||g' \
        -e "s|-O3|${CFLAGS}|g" \
        -e 's|/usr/bin/||g' \
        -e "s|/usr/include|${EPREFIX%/}/usr/include|g" \
        deps/Makefile || die

    sed -i \
        -e "s|\(JULIA_EXECUTABLE = \)\(\$(JULIAHOME)/julia\)|\1 
LD_LIBRARY_PATH=\$(BUILD)/$(get_libdir) \2|" \
        -e "s|-O3|${CFLAGS}|g" \
        -e "s|LIBDIR = lib|LIBDIR = $(get_libdir)|" \
        -e "s|/usr/lib|${EPREFIX}/usr/$(get_libdir)|" \
        -e "s|/usr/include|${EPREFIX}/usr/include|" \
        -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|" \
        -e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \
        Make.inc || die

    sed -i \
        -e "s|,lib)|,$(get_libdir))|g" \
        -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|g" \
        Makefile || die

    sed -i \
        -e "s|ar -rcs|$(tc-getAR) -rcs|g" \
        src/Makefile || die

}

src_configure() {
    # libuv is an incompatible fork from upstream, so don't use system one
    cat <<-EOF > Make.user
        USE_LLVM_SHLIB=1
        USE_SYSTEM_ARPACK=1
        USE_SYSTEM_BLAS=1
        USE_SYSTEM_FFTW=1
        USE_SYSTEM_GMP=1
        USE_SYSTEM_GRISU=1
        USE_SYSTEM_LAPACK=1
        USE_SYSTEM_LIBM=1
        USE_SYSTEM_LIBUNWIND=1
        USE_SYSTEM_LIBUV=0
        USE_SYSTEM_LLVM=1
        USE_SYSTEM_MPFR=1
        USE_SYSTEM_OPENLIBM=1
        USE_SYSTEM_OPENSPECFUN=1
        USE_SYSTEM_PCRE=1
        USE_SYSTEM_READLINE=1
        USE_SYSTEM_RMATH=1
        USE_SYSTEM_SUITESPARSE=1
        USE_SYSTEM_ZLIB=1
        VERBOSE=1
    EOF
}

src_compile() {
    # Not parallel-safe, #514882
    emake -j1 cleanall
    if [[ $(get_libdir) != lib ]]; then
        mkdir -p usr/$(get_libdir) || die
        ln -s $(get_libdir) usr/lib || die
    fi
    emake -j1 julia-release prefix="/usr" DESTDIR="${D}"
    pax-mark m $(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}')
    emake
    use emacs && elisp-compile contrib/julia-mode.el
}

src_test() {
    emake test
}

src_install() {
    emake install prefix="/usr" DESTDIR="${D}"
    cat > 99julia <<-EOF
        LDPATH=${EROOT%/}/usr/$(get_libdir)/julia
    EOF
    doenvd 99julia

    if use emacs; then
        elisp-install "${PN}" contrib/julia-mode.el
        elisp-site-file-install "${FILESDIR}"/63julia-gentoo.el
    fi
    dodoc README.md
}

pkg_postinst() {
    use emacs && elisp-site-regen
}

pkg_postrm() {
    use emacs && elisp-site-regen
}


Here 

On Monday, September 7, 2015 at 10:51:41 AM UTC+2, Tony Kelman wrote:
>
> 0.3.0 is a year out of date, you should update to 0.3.11. Depending which 
> BLAS implementation is being used there, you probably need to add 
> USE_BLAS64=0 when you build. Where is the actual make command getting run 
> there, and what flags are being used? On master when you set 
> USE_SYSTEM_BLAS we now default to USE_BLAS64=0 for non-MKL BLAS 
> implementations, but looks like I didn't backport that to release-0.3 yet.
>
>
> On Monday, September 7, 2015 at 1:36:02 AM UTC-7, Phil_n wrote:
>>
>> julia> versioninfo()
>> Julia Version 0.3.0
>> Platform Info:
>>   System: Linux (x86_64-pc-linux-gnu)
>>   CPU: Intel(R) Core(TM) i7-4550U CPU @ 
>> 1.50GHz                                     
>>   WORD_SIZE: 64                                                    
>>   BLAS: libblas                                                      
>>   LAPACK: liblapack
>>   LIBM: libm
>>   LLVM: libLLVM-3.3
>>
>> I may add that I run python 2.7
>>
>> I built Julia with Gentoos command "emerge julia". The package manager is 
>> Portage. Portage use e-build files that specify the build. I enclose the 
>> e-build contents for Julia 0.3.0
>>
>> DEFINED_PHASES=compile configure install postinst postrm prepare test
>> DEPEND=dev-lang/R:0= dev-libs/double-conversion:0= dev-libs/gmp:0= 
>> dev-libs/libpcre:3= dev-libs/mpfr:0= dev-libs/openspecfun 
>> sci-libs/arpack:0= sci-libs/camd:0= sci-libs/cholmod:0= sci-libs/fftw:3.0= 
>> sci-libs/openlibm:0= sci-libs/spqr:0= sci-libs/umfpack:0= 
>> sci-mathematics/glpk:0= =sys-devel/llvm-3.4* >=sys-libs/libunwind-1.1:7= 
>> sys-libs/readline:0= sys-libs/zlib:0= virtual/blas virtual/lapack emacs? ( 
>> app-emacs/ess ) dev-util/patchelf virtual/pkgconfig
>> DESCRIPTION=High-performance programming language for technical computing
>> EAPI=5
>> HOMEPAGE=http://julialang.org/
>> IUSE=emacs
>> KEYWORDS=~amd64 ~x86 ~amd64-linux ~x86-linux
>> LICENSE=MIT
>> RDEPEND=dev-lang/R:0= dev-libs/double-conversion:0= dev-libs/gmp:0= 
>> dev-libs/libpcre:3= dev-libs/mpfr:0= dev-libs/openspecfun 
>> sci-libs/arpack:0= sci-libs/camd:0= sci-libs/cholmod:0= sci-libs/fftw:3.0= 
>> sci-libs/openlibm:0= sci-libs/spqr:0= sci-libs/umfpack:0= 
>> sci-mathematics/glpk:0= =sys-devel/llvm-3.4* >=sys-libs/libunwind-1.1:7= 
>> sys-libs/readline:0= sys-libs/zlib:0= virtual/blas virtual/lapack emacs? ( 
>> app-emacs/ess )
>> RESTRICT=test
>> SLOT=0
>> SRC_URI=https://github.com/JuliaLang/julia/archive/v0.3.0.tar.gz -> 
>> julia-0.3.0.tar.gz 
>> http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2.2.tar.gz 
>> https://dev.gentoo.org/~patrick/libuv-julia-0.3.0.tar.bz2 
>> https://dev.gentoo.org/~patrick/rmath-0_p20140821.tar.bz2 
>> http://www.public-software-group.org/pub/projects/utf8proc/v1.1.6/utf8proc-v1.1.6.tar.gz
>> _eclasses_=elisp-common    73c48c11ad6a6494eda0d0cca848c8fa    eutils    
>> 351a78113be5b393c09a2c948701ad36    multilib    
>> df4e4d5cfd3d137d0c248e1991c0e4d6    pax-utils    
>> 4f1280c0d4dcd8340f731827007c0a53    toolchain-funcs    
>> 4b8d3388c0a6e798504e20ba30b49361
>> _md5_=0bcd509adf676993353b822904b3e9dd
>>
>> When running the install script (the e-build) I got the message that a 
>> few keywords needed to be set, as follows
>>
>> # required by dev-lang/julia-0.3.0::gentoo
>> # required by julia (argument)
>> =dev-libs/openspecfun-0.4-r1 ~amd64
>> # required by dev-lang/julia-0.3.0::gentoo
>> # required by julia (argument)
>> =sys-devel/llvm-3.4.2 ~amd64
>> # required by julia (argument)
>> =dev-lang/julia-0.3.0 ~amd64
>> # required by dev-lang/julia-0.3.0::gentoo
>> # required by julia (argument)
>> =sci-libs/openlibm-0.3 ~amd64
>> # required by dev-lang/julia-0.3.0::gentoo
>> # required by julia (argument)
>> =dev-libs/double-conversion-2.0.1 ~amd64
>> # required by dev-lang/julia-0.3.0::gentoo
>> # required by julia (argument)
>> =sci-libs/spqr-1.3.1 ~amd64
>>
>>
>> On Monday, September 7, 2015 at 7:57:34 AM UTC+2, Tony Kelman wrote:
>>>
>>> What does versioninfo() say? Did you build Julia from a git checkout, or 
>>> is there some port build recipe for it in Gentoo?
>>>
>>>
>>> On Sunday, September 6, 2015 at 2:37:02 PM UTC-7, Phil_n wrote:
>>>>
>>>> I am getting an error when i try to load PyPlot for makeing a plot
>>>>
>>>> julia> using PyPlot 
>>>> ERROR: LAPACKException(140544214827008) 
>>>>  in include at /usr/bin/../lib/julia/sys.so 
>>>>  in include_from_node1 at /usr/bin/../lib/julia/sys.so 
>>>>  in include at /usr/bin/../lib/julia/sys.so 
>>>>  in include_from_node1 at /usr/bin/../lib/julia/sys.so 
>>>>  in include at /usr/bin/../lib/julia/sys.so 
>>>>  in include_from_node1 at /usr/bin/../lib/julia/sys.so 
>>>>  in include at /usr/bin/../lib/julia/sys.so 
>>>>  in include_from_node1 at /usr/bin/../lib/julia/sys.so 
>>>> while loading /home/philip/.julia/v0.3/Colors/src/conversions.jl, in 
>>>> expression starting on line 717 
>>>> while loading /home/philip/.julia/v0.3/Colors/src/Colors.jl, in 
>>>> expression starting on line 31 
>>>> while loading /home/philip/.julia/v0.3/PyPlot/src/colormaps.jl, in 
>>>> expression starting on line 4 
>>>> while loading /home/philip/.julia/v0.3/PyPlot/src/PyPlot.jl, in 
>>>> expression starting on line 489
>>>>
>>>> Can anyone guide me to the root casue of this problem, I would be 
>>>> greatful
>>>>
>>>> I am running Gentoo Linux on a Lenovo X1 Carbon laptop
>>>>
>>>> Tnx /Phil
>>>>
>>>

Reply via email to