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: failed with llvm@6 #375

Closed
wants to merge 6 commits into from
Closed

Conversation

Gwang-Jin
Copy link
Contributor

@Gwang-Jin Gwang-Jin commented Jun 8, 2018

I changed llvm@6 into llvm@4.
--enable-gallium-llvm option was deprecated and needed to be changed to --enable-llvm.

Contributing to homebrew-xorg:

You can erase any parts of this template not applicable to your Pull Request.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you included a log of the failed build without your patch using brew gist-logs <formula>?
  • Does your submission pass
    brew audit --strict <formula> (where <formula> is the name of the formula you're submitting)?
  • Have you built your formula locally prior to submission with brew install <formula>?

I changed llvm@6 into llvm@4.
--enable-gallium-llvm option was deprecated and needed to be changed to --enable-llvm.
@Gwang-Jin Gwang-Jin changed the title failed with llvm@6 mesa: failed with llvm@6 Jun 8, 2018
@dpo
Copy link

dpo commented Jun 9, 2018

CircleCI says

checking for x11 xext xdamage >= 1.1 xfixes x11-xcb xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8... no
configure: error: Package requirements (x11 xext xdamage >= 1.1 xfixes x11-xcb xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8) were not met:

Package 'kbproto', required by 'x11', not found

@nir-krakauer
Copy link

These modifications to mesa.rb enable me to install it, on Ubuntu.

@Gwang-Jin
Copy link
Contributor Author

@dpo I've added depends_on "linuxbrew/xorg/kbproto". And should I include xextproto and xf86vidmodeproto?

@dpo
Copy link

dpo commented Jun 9, 2018

Here's the next error message:

checking for x11 xext xdamage >= 1.1 xfixes x11-xcb xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8... no
configure: error: Package requirements (x11 xext xdamage >= 1.1 xfixes x11-xcb xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8) were not met:

Package 'xextproto', required by 'xext', not found

Looks like we're discovering them one by one.

@maxim-belkin
Copy link
Owner

Hey, @Gwang-Jin and @dpo. Our planned course of action is to remove llvm dependency and make it an optional one. I'll look into mesa issues today

Other dependencies are added.
@Gwang-Jin
Copy link
Contributor Author

@dpo I added other dependencies.

@Gwang-Jin
Copy link
Contributor Author

@maxim-belkin Ok. It seems to be possible if we use
--with-dri-drivers= --with-gallium-drivers=r600 --disable-gallium-llvm

https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/opengl-vulkan-mesa-gallium3d/38705-is-llvm-strictly-required-for-building-mesa-gallium-radeon

But it is need to be checked.

@Gwang-Jin
Copy link
Contributor Author

Gwang-Jin commented Jun 11, 2018

@dpo I have a question: Is it more precise

   depends_on "linuxbrew/xorg/dri2proto"
   depends_on "linuxbrew/xorg/glproto"
   depends_on "linuxbrew/xorg/kbproto" if build.with? "libva"
   depends_on "linuxbrew/xorg/xextproto" if build.with? "libva"
   depends_on "linuxbrew/xorg/xf86vidmodeproto" if build.with? "libva"
   depends_on "linuxbrew/xorg/fixesproto" if build.with? "libva"

?

kbproto, xextproto, xf86vidmodeproto ,and fixesproto weren't need to be build mesa without libva.

Ok. I will try to check them using ci/circleci.

@dpo
Copy link

dpo commented Jun 11, 2018

We're back to

checking for x11 xext xdamage >= 1.1 xfixes x11-xcb xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8... no
configure: error: Package requirements (x11 xext xdamage >= 1.1 xfixes x11-xcb xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8) were not met:

Package 'kbproto', required by 'x11', not found

It looks like kbproto is needed, even without libva.

@Gwang-Jin
Copy link
Contributor Author

Ok. I removed "if build.with? "libva"". It would pass ci/circlei.

@dpo
Copy link

dpo commented Jun 12, 2018

Looks good! Many thanks! Would you mind making llvm support optional, as suggested by @maxim-belkin?

@Gwang-Jin
Copy link
Contributor Author

Regarding --without-llvm, only r600 driver can be used. It would be possible. And I would like to add an option --with-gallium-osmesa (Disable the older classic OSMesa in favor of the newer gallium OSMesa). But these options are conflict. --with-gallium-osmesa requires --with-gallium-drivers=swrast,swr. So I want to finish this PR here and will try another PR. Thanks.

@Gwang-Jin Gwang-Jin closed this Jun 14, 2018
@Gwang-Jin Gwang-Jin reopened this Jun 14, 2018
@dpo
Copy link

dpo commented Jun 17, 2018

@maxim-belkin Is there something holding this up?

@maxim-belkin
Copy link
Owner

Thanks, @Gwang-Jin and @dpo!
I've tested this locally and mesa builds fine with it. As I mentioned before, the plan is to make llvm dependency optional but your solution is good until we do that.

@dpo
Copy link

dpo commented Jun 18, 2018

Great! Thank you.

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

Successfully merging this pull request may close these issues.

4 participants