Code Monkey home page Code Monkey logo

Comments (16)

Gwang-Jin avatar Gwang-Jin commented on August 13, 2024 1

Ok. I submitted #375.

from homebrew-xorg.

dpo avatar dpo commented on August 13, 2024

mesa doesn't build at all. It's missing several dependencies. Currently, I've added

diff --git a/Formula/mesa.rb b/Formula/mesa.rb
index c0e705b..62543f6 100644
--- a/Formula/mesa.rb
+++ b/Formula/mesa.rb
@@ -18,6 +18,9 @@ class Mesa < Formula
   depends_on "bison" => :build
   depends_on "libtool" => :build

+  depends_on "linuxbrew/xorg/damageproto"
+  depends_on "linuxbrew/xorg/dri2proto"
+  depends_on "linuxbrew/xorg/glproto"
   depends_on "linuxbrew/xorg/libdrm"
   depends_on "systemd" # provides libudev <= needed by "gbm"
   depends_on "linuxbrew/xorg/libsha1"

but the build still fails with

Last 15 lines from /home/mgi.polymtl.ca/doorba/.cache/Homebrew/Logs/mesa/03.make:
libtool: link: ranlib .libs/libgalliumvl.a
libtool: link: ( cd ".libs" && rm -f "libgalliumvl.la" && ln -s "../libgalliumvl.la" "libgalliumvl.la" )
gallivm/lp_bld_misc.cpp: In function 'LLVMOpaqueBuilder* lp_create_builder(LLVMContextRef, lp_float_mode)':
gallivm/lp_bld_misc.cpp:833:13: error: 'class llvm::FastMathFlags' has no member named 'setUnsafeAlgebra'
       flags.setUnsafeAlgebra();
             ^
make[4]: *** [gallivm/lp_bld_misc.lo] Error 1
make[4]: Leaving directory `/tmp/mesa-20180605-9622-1m28ai0/mesa-17.2.3/src/gallium/auxiliary'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/mesa-20180605-9622-1m28ai0/mesa-17.2.3/src/gallium'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/mesa-20180605-9622-1m28ai0/mesa-17.2.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/mesa-20180605-9622-1m28ai0/mesa-17.2.3/src'
make: *** [all-recursive] Error 1

#351 makes some updates but it seems to have been abandoned.

from homebrew-xorg.

nir-krakauer avatar nir-krakauer commented on August 13, 2024

My build of mesa in Ubuntu fails with a different message:
ImportError: No module named setuptools
https://gist.github.com/1a74473593d7c0bd6d675c43f0cd9822

from homebrew-xorg.

Gwang-Jin avatar Gwang-Jin commented on August 13, 2024

@nir-krakauer Did you try to install setuptools using brewed pip?

pip install setuptools

from homebrew-xorg.

nir-krakauer avatar nir-krakauer commented on August 13, 2024

pip3 install setuptools returns:

Requirement already satisfied: setuptools in ./.linuxbrew/lib/python3.6/site-packages (39.2.0)

from homebrew-xorg.

Gwang-Jin avatar Gwang-Jin commented on August 13, 2024

@nir-krakauer Could you please run not pip3 but pip2?

from homebrew-xorg.

nir-krakauer avatar nir-krakauer commented on August 13, 2024

Thanks, brew reinstall python@2 did fix the problem.

from homebrew-xorg.

nir-krakauer avatar nir-krakauer commented on August 13, 2024

Now I also get
configure: error: Package requirements (glproto >= 1.4.14) were not met: No package 'glproto' found
https://gist.github.com/d9620a94307e088d8a93642ba2b4b573

from homebrew-xorg.

Gwang-Jin avatar Gwang-Jin commented on August 13, 2024

@nir-krakauer Yes. As a recommendation from @dpo,

brew edit mesa

adding to mesa.rb

  depends_on "linuxbrew/xorg/damageproto"
  depends_on "linuxbrew/xorg/dri2proto"
  depends_on "linuxbrew/xorg/glproto"

. Then you would meet the error message we met.

from homebrew-xorg.

Gwang-Jin avatar Gwang-Jin commented on August 13, 2024

I found setUnsafeAlgebra() as member function of class llvm::FastMathFlags in llvm-3.9. And this is not member function in llvm-6.0. So this seems to be a problem of llvm version.

from homebrew-xorg.

dpo avatar dpo commented on August 13, 2024

If that's the case, you should be able to declare something like

depends_on "[email protected]"

from homebrew-xorg.

maxim-belkin avatar maxim-belkin commented on August 13, 2024

good catch @Gwang-Jin!

from homebrew-xorg.

Gwang-Jin avatar Gwang-Jin commented on August 13, 2024

In [email protected], llvm@4, and llvm@5, setUnsafeAlgebra() is defined as a member function of class llvm::FastMathFlags. Only in llvm@6 it is deleted.
Now brew install [email protected] seems to have an issue:

Undefined reference to __cxa_guard_acquire and __cxa_guard_release

from homebrew-xorg.

Gwang-Jin avatar Gwang-Jin commented on August 13, 2024

I succeeded with llvm@4 at installing mesa.

from homebrew-xorg.

dpo avatar dpo commented on August 13, 2024

Could you please post your diff (or submit a PR)?

from homebrew-xorg.

maxim-belkin avatar maxim-belkin commented on August 13, 2024

This issue has been resolved in #375

from homebrew-xorg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.