Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mesa: fix build Aarch64 #63875

Merged
merged 1 commit into from Jun 27, 2019
Merged

Conversation

worldofpeace
Copy link
Contributor

Motivation for this change

Was failing like

meson.build:21:0: ERROR: Options "imx" are not in allowed choices: ", auto, kmsro, radeonsi, r300, r600, nouveau, freedreno, swrast, v3d, vc4, etnaviv, tegra, i915, svga, virgl, swr, panfrost, iris, lima"
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@worldofpeace
Copy link
Contributor Author

cc @eadwu

@worldofpeace
Copy link
Contributor Author

huh darwin is failing to configure at

meson.build:368:4: ERROR: Problem encountered: Cannot build GLX support without X11 platform support and at least one OpenGL API

@eadwu
Copy link
Member

eadwu commented Jun 27, 2019

Removing the option should be fine while for the darwin error, from what I'm reading it seems to originate from here [1]. If we don't want to change -Dglx for darwin then there should be a non-zero amount of gallium or dri drivers, -Ddri-drivers= -Dgallium-drivers= -Dvulkan-drivers= [2].

[1] https://gitlab.freedesktop.org/mesa/mesa/blob/19.1/meson.build#L315
[2] https://hydra.nixos.org/build/95553754/log

@matthewbauer
Copy link
Member

Removing the option should be fine while for the darwin error, from what I'm reading it seems to originate from here [1]. If we don't want to change -Dglx for darwin then there should be a non-zero amount of gallium or dri drivers, -Ddri-drivers= -Dgallium-drivers= -Dvulkan-drivers= [2].

[1] https://gitlab.freedesktop.org/mesa/mesa/blob/19.1/meson.build#L315
[2] https://hydra.nixos.org/build/95553754/log

That looks like a mesa issue. The whole point of the appledri is to have GLX without building opengl drivers. Otherwise you wouldn't be building anything at all[1]. For now it's probably okay for this to be broken, luckily not much macOS stuff uses it right now (it only makes sense if you are using XQuartz as well).

[1] https://gitlab.freedesktop.org/mesa/mesa/blob/19.1/src/glx/apple/RELEASE_NOTES

Issue filed at https://bugs.freedesktop.org/show_bug.cgi?id=111016

@worldofpeace
Copy link
Contributor Author

Thanks for filing an issue upstream @matthewbauer.
I agree it's fine to leave it broken for darwin.

Let's merge ✨

@worldofpeace worldofpeace merged commit 159b9d8 into NixOS:staging Jun 27, 2019
@worldofpeace worldofpeace deleted the mesa-fixaarch branch June 27, 2019 22:51
@vcunat vcunat mentioned this pull request Jul 9, 2019
10 tasks
@vcunat
Copy link
Member

vcunat commented Jul 9, 2019

Well, the darwin problem probably blocks merging to master, due to breaking a few thousand darwin builds. Lemme try this: #64500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants