Summary: | media-libs/mesa-20.1.0_{rc2,rc3} 32bit build on x86_64 broken | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | artbx <artur> |
Component: | Current packages | Assignee: | Mike Gilbert <floppym> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | herrtimson, jeffrey, jstein, x11 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build logs
compressed build log from amd64 multilib with clang-9 |
Description
artbx
2020-05-15 11:16:17 UTC
Please attach a build log. Also, when you report bugs please explicitly point out the fact that you're using clang as the system compiler. Created attachment 639388 [details]
build logs
clang sure I'll remember this.
Logs attached
Same error ocurs with mesa-20.0.7, propably it is connected with llvm/clang update from 9 to 10, as with earlier mesa-20.0.6 when clang-9 was main compiler there were no problem at all.
I also encountered this problem and I think this is a issue of meson. Here is my test: ❯ cd /tmp ❯ mkdir meson_clang_test ❯ cd meson_clang_test ❯ meson init Using "meson_clang_test" (name of current directory) as project name. Using "meson_clang_test" (project name) as name of executable to build. Defaulting to generating a C language project. Sample project created. To build it run the following commands: meson builddir ninja -C builddir ❯ mkdir build ❯ cd build ❯ export CC="clang -m32" CXX="clang++ -m32" ❯ meson ../ The Meson build system Version: 0.54.1 Source dir: /tmp/meson_clang_test Build dir: /tmp/meson_clang_test/build Build type: native build Project name: meson_clang_test Project version: 0.1 Using 'CC' from environment with value: 'clang -m32' Using 'CC' from environment with value: 'clang -m32' C compiler for the host machine: clang -m32 (clang 10.0.0 "clang version 10.0.0 ") C linker for the host machine: clang -m32 ld.lld 10.0.0 Host machine cpu family: x86_64 Host machine cpu: x86_64 Build targets in project: 1 Found ninja-1.10.0 at /usr/bin/ninja ❯ rm -rf * ❯ export CC="gcc -m32" CXX="g++ -m32" ❯ meson ../ The Meson build system Version: 0.54.1 Source dir: /tmp/meson_clang_test Build dir: /tmp/meson_clang_test/build Build type: native build Project name: meson_clang_test Project version: 0.1 Using 'CC' from environment with value: 'gcc -m32' Using 'CC' from environment with value: 'gcc -m32' C compiler for the host machine: gcc -m32 (gcc 9.3.0 "gcc (Gentoo 9.3.0 p2) 9.3.0") C linker for the host machine: gcc -m32 ld.lld 10.0.0 Host machine cpu family: x86 Host machine cpu: i686 Build targets in project: 1 Found ninja-1.10.0 at /usr/bin/ninja Look at the "Host machine cpu family" and the "Host machine cpu". Mesa use this to determine which flags( -DUSE_X86_ASM or -DUSE_X86_64_ASM) to use (mesa's meson.build,line 1111) src/mapi/entry.c use this flags to include the corresponding asm code. Yes, there is macro USE_X86_ASM and USE_X86_64_ASM which are defined by meson config in which they are defined based AFIR on host_machine.cpu_type(). I dont know meson at all (I use autotools and cmake on daily basis only) but for me looks like meson should have something like target_machine.cpu_type() as x86 is cross build on x86_64 instead of host_machine used there. I don't know how to fix this config Created attachment 641066 [details]
compressed build log from amd64 multilib with clang-9
I've never tested compiling mesa with clang, but I felt bored and so gave it a try with clang-9: this gives me the same error as you've got with clang-10, and it also happens the same way with mesa-20.0.7 and clang-9 You might want to try to fiddle a bit with meson then, trying either the newest or an older version than in tree. I tried few mesons even 9999, all produce same error *** Bug 724890 has been marked as a duplicate of this bug. *** Fix in Meson: https://github.com/mesonbuild/meson/pull/7182 https://github.com/mesonbuild/meson/commit/9dc3ca2c1c9fbb47e731551c6432df144f725261 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61fb31c86760964f605b8e78cf9c6450a8a0fbbd commit 61fb31c86760964f605b8e78cf9c6450a8a0fbbd Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2020-05-24 16:41:30 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2020-05-24 16:41:59 +0000 dev-util/meson: bump to 0.45.2 Closes: https://bugs.gentoo.org/721786 Closes: https://bugs.gentoo.org/723224 Signed-off-by: Mike Gilbert <floppym@gentoo.org> dev-util/meson/Manifest | 1 + dev-util/meson/files/0.54.2-multilib-clang.patch | 181 +++++++++++++++++++++++ dev-util/meson/meson-0.54.2.ebuild | 86 +++++++++++ dev-util/meson/meson-9999.ebuild | 15 ++ 4 files changed, 283 insertions(+) |