|
Bugzilla – Full Text Bug Listing |
| Summary: | compiling mesa with d3d12 produce internal compiler error | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Leap Micro | Reporter: | Israel <loedur> |
| Component: | Base | Assignee: | Richard Biener <rguenther> |
| Status: | NEW --- | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | loedur, lubos.kocman |
| Version: | 5.5 | Flags: | sndirsch:
needinfo?
(loedur) |
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE Leap 15.5 | ||
| Whiteboard: | |||
| Found By: | Integration Test | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Israel
2023-08-26 18:51:22 UTC
May I ask what are you trying to achieve? Building Mesa git main from source? Which gcc version? I remember having set some meson options to get build fixed (see Mesa specfile in Tumbleweed), but I think these weren't internal compiler issues. So I guess this won't help. ------------------------------------------------------------------- Sat Jun 10 11:42:42 UTC 2023 - Stefan Dirsch <sndirsch@suse.com> - needed to fix build of Mesa 23.1 * Mesa-drivers: -Dshader-cache=enabled * Mesa: -Dxlib-lease=enabled * recommended for both Mesa and Mesa-drivers to avoid some scary messages when comparing fds: -Dallow-kcmp=enabled - Credits for figuring this out go to "llyyr" <llyyr.public@gmail.com> [...] You can install gcc12-c++ and use CXX=g++-12 - otherwise I'd need preprocessed source (as the error indicates) to investigate. With following steps, works for me: Add missing repositories with yast https://download.opensuse.org/repositories/devel:tools:building/15.5 https://download.opensuse.org/repositories/multimedia:libs/15.5 Set links as superuser su cd /usr/bin ln -s gcc-12 gcc ln -s g++-12 g++ rm cc ln -s gcc-12 cc zypper source-install Mesa As "test"-user cd sourcecode/mesa git pull With the "main" branch I run into a new error: meson --reconfigure build-mesa-main_leap15.5_x86_64 -Dgallium-drivers=radeonsi,r300,r600,nouveau,swrast,svga,virgl,zink,d3d12 -Dvulkan-drivers=amd,swrast,virtio -Dshader-cache=enabled -Dxlib-lease=enabled -Dvulkan-beta=true -Dvulkan-layers=device-select meson compile --jobs 4 -C build-mesa-main_leap15.5_x86_64 --- INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja -C /home/test/sourcecode/mesa/build-mesa-main_leap15.5_x86_64 -j 4 ninja: Entering directory `/home/test/sourcecode/mesa/build-mesa-main_leap15.5_x86_64' [2/1342] Generating src/nouveau/nvidia-headers/cl902d.h with a custom command FAILED: src/nouveau/nvidia-headers/nvk_cl902d.h src/nouveau/nvidia-headers/nvk_cl902d.c /usr/bin/python3 ../src/nouveau/nvidia-headers/class_parser.py --in_h ../src/nouveau/nvidia-headers/classes/cl902d.h --out_h src/nouveau/nvidia-headers/nvk_cl902d.h --out_c src/nouveau/nvidia-headers/nvk_cl902d.c Traceback (most recent call last): File "../src/nouveau/nvidia-headers/class_parser.py", line 372, in <module> main() File "../src/nouveau/nvidia-headers/class_parser.py", line 339, in main nvcl = nvcl.removeprefix("cl") AttributeError: 'str' object has no attribute 'removeprefix' [5/1342] Compiling C object src/gallium/drivers/llvmpipe/libllvmpipe.a.p/lp_state_cs.c.o ninja: build stopped: subcommand failed. --- So I switch to 23.1.x git switch 23.1 Branch '23.1' folgt nun 'origin/23.1'. Zu neuem Branch '23.1' gewechselt --- Now I works for me (for git mesa 23.1.6). Hello team, is there anything left to be done? Lubos |