Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Formula/e/eigen.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
class Eigen < Formula
desc "C++ template library for linear algebra"
homepage "https://gitlab.com/libeigen/eigen"
# TODO: remove LGPL from licenses in 5.0.0
url "https://gitlab.com/libeigen/eigen/-/archive/3.4.1/eigen-3.4.1.tar.gz"
sha256 "b93c667d1b69265cdb4d9f30ec21f8facbbe8b307cf34c0b9942834c6d4fdbe2"
url "https://gitlab.com/libeigen/eigen/-/archive/5.0.0/eigen-5.0.0.tar.gz"
sha256 "315c881e19e17542a7d428c5aa37d113c89b9500d350c433797b730cd449c056"
license all_of: [
"MPL-2.0",
"Apache-2.0", # BFloat16.h
"BSD-3-Clause", # bindings to BLAS, LAPACKe and MKL
"Minpack", # LevenbergMarquardt
"LGPL-2.1-only", # IterativeSolvers, removed in 5.0.0
]
head "https://gitlab.com/libeigen/eigen.git", branch: "master"

Expand Down Expand Up @@ -37,7 +35,7 @@
system "cmake", "--install", "build"
end

test do

Check failure on line 38 in Formula/e/eigen.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew test --verbose eigen` failed on macOS Sonoma (14) on Apple Silicon!

==> Testing eigen ==> /usr/bin/clang++ test.cpp -I/opt/homebrew/Cellar/eigen/5.0.0/include/eigen3 -o test In file included from test.cpp:2: In file included from /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/Dense:1: In file included from /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/Core:22: /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Macros.h:729:2: error: Eigen requires at least c++14 support. 729 | #error Eigen requires at least c++14 support. | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Macros.h:981:39: error: unknown type name 'constexpr' 981 | EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE constexpr void ignore_unused_variable(const T&) {} | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Macros.h:1295:31: warning: variadic templates are a C++11 extension [-Wc++11-extensions] 1295 | template <typename T, typename... Ts> | ^ In file included from test.cpp:2: In file included from /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/Dense:1: In file included from /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/Core:180: /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:137:22: warning: alias declarations are a C++11 extension [-Wc++11-extensions] 137 | using remove_all_t = typename remove_all<T>::type; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:209:52: error: 'T' does not refer to a value 209 | struct is_void : is_same<void, std::remove_const_t<T>> {}; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:208:17: note: declared here 208 | template <class T> | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:209:37: error: no member named 'remove_const_t' in namespace 'std' 209 | struct is_void : is_same<void, std::remove_const_t<T>> {}; | ~~~~~^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:209:56: error: expected expression 209 | struct is_void : is_same<void, std::remove_const_t<T>> {}; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:209:58: error: expected '>' 209 | struct is_void : is_same<void, std::remove_const_t<T>> {}; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:209:25: note: to match this '<' 209 | struct is_void : is_same<void, std::remove_const_t<T>> {}; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:209:58: error: expected '{' after base class list 209 | struct is_void : is_same<void, std::remove_const_t<T>> {}; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:222:19: warning: variadic templates are a C++11 extension [-Wc++11-extensions] 222 | template <typename...> | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:223:16: warning: alias declarations are a C++11 extension [-Wc++11-extensions] 223 | using void_t = void; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:269:35: warning: alias declarations are a C++11 extension [-Wc++11-extensions] 269 | using add_const_on_value_type_t = typename add_const_on_value_type<T>::type; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:301:10: error: unknown type name 'constexpr' 301 | static constexpr Index value = Dynamic; | ^ /opt/homebrew/Cellar/eigen/5.0.0/include/eigen3/Eigen/src/Core/util/Meta.h:301:25:
(testpath/"test.cpp").write <<~CPP
#include <iostream>
#include <Eigen/Dense>
Expand Down
Loading