Git Product home page Git Product logo

Comments (6)

staticfloat avatar staticfloat commented on May 12, 2024 2

Thanks for this Shaun.

To anyone frustrated with trying to compile software using linuxbrew on a Raspberry Pi, note that because Linuxbrew sends -mcpu=native to GCC, and GCC 4.9.2 suffers from this bug in the current version of Raspbian, no software can be installed using Linuxbrew without setting HOMEBREW_ARCH to something other than native. In the case of the Raspberry Pi 3, I have found HOMEBREW_ARCH=armv8-a+crc to work well.

from brew.

sjackman avatar sjackman commented on May 12, 2024

From @eiennohito on May 16, 2016 4:13

-march=native started to make shared installation unusable in our environment :(

from brew.

sjackman avatar sjackman commented on May 12, 2024

Sorry for the breakage, Arseny. Try the following workaround:

diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index 3d1b2a8..df84dcf 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -8,7 +8,7 @@ module Stdenv

   # @private
   SAFE_CFLAGS_FLAGS = "-w -pipe"
-  DEFAULT_FLAGS = OS.mac? ? "-march=core2 -msse4" : "-march=native"
+  DEFAULT_FLAGS = "-march=core2 -msse4"

   def self.extended(base)
     unless ORIGINAL_PATHS.include? HOMEBREW_PREFIX/"bin"

from brew.

sjackman avatar sjackman commented on May 12, 2024

I've added the requested HOMEBREW_ARCH environment variable. Just for my curiosity, what value are you planning to use? Linuxbrew bottles use -march=core2, so I'd suggest HOMEBREW_ARCH=core2 if that works for you.

from brew.

eiennohito avatar eiennohito commented on May 12, 2024

Thank you very much, this is great.

As a workaround I have temporarily made the brew upgrade job to execute on the oldest machine, but this should fix it.

Regarding the value, it will be either core2 or nehalem, I need to do a better hardware survey before deciding that.

from brew.

sjackman avatar sjackman commented on May 12, 2024

Thanks for the heads up, Elliot. How frustrating!

from brew.

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.