Bug 1212339 - Mesa:drivers fails to build on s390x
Summary: Mesa:drivers fails to build on s390x
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Current
Hardware: S/390-64 Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: Gfx Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-14 06:36 UTC by Dominique Leuenberger
Modified: 2023-06-19 06:44 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Leuenberger 2023-06-14 06:36:47 UTC
Since the most recent update of Mesa to version 23.1.2, the :drivers flavor has been failing to build for s390x

https://build.opensuse.org/package/live_build_log/openSUSE:Factory:zSystems/Mesa:drivers/standard/s390x

This in turn results in a large unresolvable chain behind this package and blocks generation of new, valid installer media
Comment 1 Stefan Dirsch 2023-06-14 08:16:32 UTC
I think this is exactly the same issue I saw on x86_64

[ 1856s] /home/abuild/rpmbuild/BUILD/mesa-23.1.2/s390x-suse-linux/../src/loader/loader_dri_helper.c:235: undefined reference to `xcb_randr_get_crtc_info_unchecked'
[ 1856s] /usr/lib64/gcc/s390x-suse-linux/13/../../../../s390x-suse-linux/bin/ld: /tmp/cc4MQuAo.ltrans2.ltrans.o:/home/abuild/rpmbuild/BUILD/mesa-23.1.2/s390x-suse-linux/../src/loader/loader_dri_helper.c:241: undefined reference to `xcb_randr_get_crtc_info_reply'
[ 1856s] /usr/lib64/gcc/s390x-suse-linux/13/../../../../s390x-suse-linux/bin/ld: /tmp/cc4MQuAo.ltrans2.ltrans.o:/home/abuild/rpmbuild/BUILD/mesa-23.1.2/s390x-suse-linux/../src/loader/loader_dri_helper.c:271: undefined reference to `xcb_randr_get_screen_resources_current_unchecked'
[ 1856s] /usr/lib64/gcc/s390x-suse-linux/13/../../../../s390x-suse-linux/bin/ld: /tmp/cc4MQuAo.ltrans2.ltrans.o:/home/abuild/rpmbuild/BUILD/mesa-23.1.2/s390x-suse-linux/../src/loader/loader_dri_helper.c:274: undefined reference to `xcb_randr_get_screen_resources_current_reply'
[ 1856s] /usr/lib64/gcc/s390x-suse-linux/13/../../../../s390x-suse-linux/bin/ld: /tmp/cc4MQuAo.ltrans2.ltrans.o:/home/abuild/rpmbuild/BUILD/mesa-23.1.2/s390x-suse-linux/../src/loader/loader_dri_helper.c:277: undefined reference to `xcb_randr_get_screen_resources_current_crtcs'
[ 1856s] /usr/lib64/gcc/s390x-suse-linux/13/../../../../s390x-suse-linux/bin/ld: /tmp/cc4MQuAo.ltrans2.ltrans.o:/home/abuild/rpmbuild/BUILD/mesa-23.1.2/s390x-suse-linux/../src/loader/loader_dri_helper.c:280: undefined reference to `xcb_randr_get_screen_resources_current_modes'
[ 1856s] /usr/lib64/gcc/s390x-suse-linux/13/../../../../s390x-suse-linux/bin/ld: /tmp/cc4MQuAo.ltrans2.ltrans.o:/home/abuild/rpmbuild/BUILD/mesa-23.1.2/s390x-suse-linux/../src/loader/loader_dri_helper.c:291: undefined reference to `xcb_randr_get_crtc_info_unchecked'
[ 1856s] /usr/lib64/gcc/s390x-suse-linux/13/../../../../s390x-suse-linux/bin/ld: /tmp/cc4MQuAo.ltrans2.ltrans.o:/home/abuild/rpmbuild/BUILD/mesa-23.1.2/s390x-suse-linux/../src/loader/loader_dri_helper.c:298: undefined reference to `xcb_randr_get_crtc_info_reply'
[ 1856s] collect2: error: ld returned 1 exit status

which then I could fix with this magic change.

-------------------------------------------------------------------
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

No idea, which this doesn't help for s390x. Fixing this might take time.
Comment 2 Stefan Dirsch 2023-06-16 13:03:35 UTC
Looks like this got fixed by my latest change

-------------------------------------------------------------------
Fri Jun 16 12:48:49 UTC 2023 - Stefan Dirsch <sndirsch@suse.com>

- use -Dxlib-lease=enabled also for -drivers build
Comment 3 Sarah Kriesch 2023-06-19 06:44:58 UTC
It seems, that only a build restart has been required. Mesa:drivers is building successfully on s390x now.