From 1a05ddc52d9cd63d1550ed62d60ebc9bd8931a74 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 28 Aug 2014 15:25:58 -0500 Subject: gcc: add caveats about broken openmp multilib Closes #29670. --- Library/Formula/gcc.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/gcc.rb b/Library/Formula/gcc.rb index 7bb827261..d2568d0ac 100644 --- a/Library/Formula/gcc.rb +++ b/Library/Formula/gcc.rb @@ -181,6 +181,16 @@ class Gcc < Formula File.rename file, "#{dir}/#{base}-#{suffix}#{ext}" end + def caveats + if build.with?("multilib") then <<-EOS.undent + GCC has been built with multilib support. Notably, OpenMP may not work: + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670 + If you need OpenMP support you may want to + brew reinstall gcc --without-multilib + EOS + end + end + test do if build.with?("fortran") || build.with?("all-languages") fixture = <<-EOS.undent -- cgit v1.2.3