Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 780444 - dev-lang/julia-1.6.0 fails to compile
Summary: dev-lang/julia-1.6.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-05 22:02 UTC by Agostino Sarubbo
Modified: 2021-04-08 02:31 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,131.66 KB, application/x-xz)
2021-04-05 22:02 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-04-05 22:02:39 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/julia-1.6.0 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2021-04-05 22:02:42 UTC
Created attachment 697812 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2021-04-05 22:02:43 UTC
Possible context of error(s):

rm: cannot remove 'scratch/dsfmt-2.2.4/': No such file or directory
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
Comment 3 Serge 2021-04-06 15:58:02 UTC
(In reply to Agostino Sarubbo from comment #2)
> Possible context of error(s):
> 
> rm: cannot remove 'scratch/dsfmt-2.2.4/': No such file or directory
> -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
> -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
> -- Could NOT find Python module pygments
> -- Could NOT find Python module pygments.lexers.c_cpp
> -- Could NOT find Python module yaml

Do you use the flag system-llvm or not?
In my case julia-1.6.0 without the USE flag system-llvm compiles correctly but can't be installed because of this line in the src_install() section of the ebuild.
This line: cp "${S}/usr/lib/libLLVM"-?jl.so "${ED}/usr/$(get_libdir)/julia/" || die should be replaced by cp "${S}/usr/lib/libLLVM"-??jl.so "${ED}/usr/$(get_libdir)/julia/" || die
As LLVM version is 11.0.1 in this ebuild bash needs two ? instead of one to catch the number 11.
Comment 4 Larry the Git Cow gentoo-dev 2021-04-08 02:31:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9eec87f0441f022f4851e4d78813d835f25528f

commit f9eec87f0441f022f4851e4d78813d835f25528f
Author:     Jeffrey Lin <jeffrey@icurse.nl>
AuthorDate: 2021-03-28 06:15:34 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2021-04-08 02:05:37 +0000

    dev-lang/julia: add 1.6.0
    
    - dSFMT patches have been upstreamed, so split that into a package used
      by ::science. Also use system version of dev-libs/libutf8proc.
    
    - LLVM 11 is now supported.
    
    - Add curl as a direct dependency. The ssh USE flag is not strictly
      required unless cloning packages over ssh, but it will suppress errors
      and should be relatively small. Also, p7zip is needed for Pkg.
    
    - Remove some old baggage:
        - dev-libs/double-conversion: compiles fine without.
        - dev-libs/openspecfun: compiles fine without.
        - net-libs/libssh2: indirect dependency; add curl[ssh] instead.
        - sci-mathematics/glpk: hasn't been a dependency in years.
        - sci-mathematics/z3: doesn't seem to be an explicit dependency.
        - sys-libs/readline: hasn't been a dependency in years.
    
        - No need for separate stdlibs as upstream packs them into tarball.
    
        - Delete some sed commands where the lines to be changed no longer
          exist. Replace a patch+sed with a single sed.
    
        - Remove QA warning suppression now that upstream allows using
          system compiler support libraries (proper support for this was
          added after the 1.6.0 release, so patch is backported).
    
        - Sync Make.user with Make.inc and move make variables there.
    
    Closes: https://bugs.gentoo.org/728726
    Closes: https://bugs.gentoo.org/735764
    Closes: https://bugs.gentoo.org/778503
    Closes: https://bugs.gentoo.org/780444
    Closes: https://bugs.gentoo.org/780642
    Signed-off-by: Jeffrey Lin <jeffrey@icurse.nl>
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 dev-lang/julia/Manifest                            |   3 -
 .../julia/files/julia-1.6.0-fix-system-csl.patch   | 271 +++++++++++++++++++++
 dev-lang/julia/julia-1.6.0.ebuild                  | 103 +++-----
 3 files changed, 303 insertions(+), 74 deletions(-)