Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940233 - dev-lang/julia-1.8.5-r1 fails to compile: SmallVector.h:92:69: error: uint64_t was not declared in this scope
Summary: dev-lang/julia-1.8.5-r1 fails to compile: SmallVector.h:92:69: error: uint64_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-09-25 09:02 UTC by Agostino Sarubbo
Modified: 2024-11-04 05:16 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,47.55 KB, application/x-xz)
2024-09-25 09:02 UTC, Agostino Sarubbo
Details
cstdint includes patch (cstidint-includes.patch,2.56 KB, patch)
2024-11-04 05:00 UTC, tdr
Details | Diff
emerge --info from tdr (tdr-emerge--info.txt,6.34 KB, text/plain)
2024-11-04 05:01 UTC, tdr
Details

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

Issue: dev-lang/julia-1.8.5-r1 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-09-25 09:02:18 UTC
Created attachment 903737 [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 2024-09-25 09:02:19 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- 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
/var/tmp/portage/dev-lang/julia-1.8.5-r1/work/julia-1.8.5/deps/srccache/llvm-julia-13.0.1-3/llvm/include/llvm/ADT/SmallVector.h:92:69: error: 'uint64_t' was not declared in this scope
Comment 3 tdr 2024-11-04 04:58:32 UTC
Three files in the bundled version of llvm-13 are missing #include <cstdint>


deps/srccache/llvm-julia-13.0.1-3/llvm/include/llvm/ADT/SmallVector.h
deps/srccache/llvm-julia-13.0.1-3/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
deps/srccache/llvm-julia-13.0.1-3/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h

Will attach a patch that lets it build with sys-devel/gcc-15.0.0_pre20241103:15 as long as -fpermissive is used.


```
env env used:


COMMON_FLAGS="-march=native -O3 -fno-vect-cost-model -mprefer-vector-width=512 -pipe"
CFLAGS="${COMMON_FLAGS} -fpermissive "
CXXFLAGS="${COMMON_FLAGS}"
```

emerge --info will be attached
Comment 4 tdr 2024-11-04 05:00:26 UTC
Created attachment 907828 [details, diff]
cstdint includes patch
Comment 5 tdr 2024-11-04 05:01:29 UTC
Created attachment 907829 [details]
emerge --info from tdr
Comment 6 Larry the Git Cow gentoo-dev 2024-11-04 05:16:56 UTC
The bug has been closed via the following commit(s):

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

commit c25187d2a8c1103c924121953c9f63f48f37ef38
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2024-11-04 05:14:46 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2024-11-04 05:14:46 +0000

    dev-lang/julia: add missing <cstdint> includes
    
    Thanks to Ted Rodgers for the patch!
    
    Closes: https://bugs.gentoo.org/940233
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 .../julia/files/julia-1.8.5-cstdint-includes.patch | 54 ++++++++++++++++++++++
 dev-lang/julia/julia-1.8.5-r1.ebuild               |  1 +
 2 files changed, 55 insertions(+)