Opened 7 months ago

Closed 7 months ago

#22859 closed enhancement (fixed)

llvm/libclc-22.1.0

Reported by: Bruce Dubbs Owned by: Xi Ruoyao
Priority: normal Milestone: 13.1
Component: BOOK Version: git
Severity: medium Keywords:
Cc:

Description

New major version.

Change History (11)

comment:1 by Xi Ruoyao, 7 months ago

There seem no longer tarballs for separated projects, only a llvm-project-20.1.0.src.tar.xz monolithic tarball. We need to chdir into the llvm directory and add -D LLVM_ENABLE_RUNTIMES=compiler-rt -D LLVM_ENABLE_PROJECTS=clang to avoid building many projects not needed by BLFS.

The good thing is we no longer need to download 5 tarballs (and host 2 of them on anduin) in this way.

Last edited 7 months ago by Xi Ruoyao (previous) (diff)

comment:2 by Xi Ruoyao, 7 months ago

rustc needs a patch to resolve some test failures: ​https://github.com/rust-lang/rust/commit/bf3ac98d6930ba4e258cf33240c2fe7c99d19eae.patch (though it seems we are not compiling rust to AMDGPU shader so maybe we can simply document the failures instead).

comment:4 by martyj19, 7 months ago

SPIRV-LLVM-Translator-22.1.0.tar.gz now available.

comment:5 by Xi Ruoyao, 7 months ago

Owner: changed from blfs-book to Xi Ruoyao
Status: new → assigned

comment:7 by Xi Ruoyao, 7 months ago

Firefox FTBFS. The bundled rust-bindgen needs a fix: ​https://patch-diff.githubusercontent.com/raw/rust-lang/rust-bindgen/pull/3278.patch (the only relevant part is the hunk for clang.rs).

comment:8 by Xi Ruoyao, 7 months ago

And it's still not enough. The next error:

 5:38.23 In file included from /home/xry111/sources/12.5/firefox-140.8.0/gfx/skia/skia/modules/skcms/src/skcms_TransformHsw.cc:56:
 5:38.24 /home/xry111/sources/12.5/firefox-140.8.0/gfx/skia/skia/modules/skcms/src/Transform_inl.h:160:12: error: use of undeclared identifier '__builtin_ia32_vcvtph2ps256'; did you mean '__builtin_ia32_cvtpd2ps256'?
 5:38.24   160 |     return __builtin_ia32_vcvtph2ps256((I16)half);
 5:38.24       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
 5:38.24       |            __builtin_ia32_cvtpd2ps256
 5:38.25 /usr/lib/clang/22/include/avxintrin.h:2187:18: note: '__builtin_ia32_cvtpd2ps256' declared here
 5:38.25  2187 |   return (__m128)__builtin_ia32_cvtpd2ps256((__v4df) __a);
 5:38.25       |                  ^
 5:38.25 In file included from /home/xry111/sources/12.5/firefox-140.8.0/gfx/skia/skia/modules/skcms/src/skcms_TransformHsw.cc:56:
 5:38.26 /home/xry111/sources/12.5/firefox-140.8.0/gfx/skia/skia/modules/skcms/src/Transform_inl.h:160:40: error: cannot initialize a parameter of type '__attribute__((__vector_size__(4 * sizeof(double)))) double' (vector of 4 'double' values) with an rvalue of type 'I16' (vector of 8 'int16_t' values)
 5:38.26   160 |     return __builtin_ia32_vcvtph2ps256((I16)half);
 5:38.26       |                                        ^~~~~~~~~
 5:38.30 2 errors generated.

in reply to:  9 comment:10 by Douglas R. Reno, 7 months ago

Replying to Xi Ruoyao:

It seems ​https://skia-review.googlesource.com/c/skcms/+/1038217.

This has a pretty good shot of breaking Libreoffice as well, since it uses Skia in some places too

comment:11 by Xi Ruoyao, 7 months ago

Resolution: → fixed
Status: assigned → closed

Fixed:

Note: See TracTickets for help on using tickets.