Comments (6)
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.
From @eiennohito on May 16, 2016 4:13
-march=native
started to make shared installation unusable in our environment :(
from brew.
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.
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.
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.
Thanks for the heads up, Elliot. How frustrating!
from brew.
Related Issues (20)
- brew install mongodb gives SyntaxError HOT 4
- Repeated `xorgproto`-related warnings output from several core commands (e.g. `doctor`, `leaves`) HOT 30
- brew audit/style error when your Ruby2.6RubyGems3.0.2 HOT 3
- Brew upgrade don't delete old version's Cellar directory for packages installed from sources HOT 1
- brew won't use correct git version HOT 1
- Failure while executing git config, exit code 129 HOT 27
- Unable to install linuxbrew to vps server over ssh. " Cannot write: No space left on device HOT 2
- "Cannot write: No space left on device" when trying to install linuxbrew to VPS server HOT 29
- brew bundle dump fails HOT 2
- Redirect http://linuxbrew.sh to https://linuxbrew.sh HOT 1
- `brew install yarn` does not support `--without-node` HOT 1
- Vendored Ruby install fails with unhelpful message on i686 HOT 6
- Cannot execute one-line installation as root HOT 1
- Error: cannot load such file -- irb HOT 1
- Brewed curl cannot find the CA certificates and all bottle downloads fail HOT 14
- Stuck in rebase HOT 2
- Unable to resolve dependency: user requested 'did_you_mean' HOT 8
- cannot load such file -- os/linux/glibc HOT 5
- pipenv does not install HOT 9
- Applying patch breaks brew HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brew.