Skip to content

Commit

Permalink
ampl-mp 4.0.0
Browse files Browse the repository at this point in the history
ampl-mp: remove build patches

Signed-off-by: Rui Chen <rui@chenrui.dev>

autobump: add ampl-mp

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed Nov 8, 2024
1 parent 17394ff commit 413641b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ alsa-lib
amber
ammonite-repl
amp
ampl-mp
amqp-cpp
amtterm
ancient
Expand Down
26 changes: 2 additions & 24 deletions Formula/a/ampl-mp.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class AmplMp < Formula
desc "Open-source library for mathematical programming"
homepage "https://www.ampl.com/"
url "/~https://github.com/ampl/mp/archive/refs/tags/3.1.0.tar.gz"
sha256 "587c1a88f4c8f57bef95b58a8586956145417c8039f59b1758365ccc5a309ae9"
url "/~https://github.com/ampl/mp/archive/refs/tags/v4.0.0.tar.gz"
sha256 "9ac4b03dd03285cfcf998d81b53410611dd3ba0515463b70980965ec51e29f0f"
license "MIT"
revision 3

livecheck do
url :stable
Expand All @@ -28,27 +27,6 @@ class AmplMp < Formula
sha256 "b836dbf1208426f4bd93d6d79d632c6f5619054279ac33453825e036a915c675"
end

# Removes Google Benchmark - as already done so upstream
# All it did was conflict with the google-benchmark formula
patch do
url "/~https://github.com/ampl/mp/commit/96e332bb8cb7ba925e3ac947d6df515496027eed.patch?full_index=1"
sha256 "1a4ef4cd1f4e8b959c20518f8f00994ef577e74e05824b2d1b241b1c3c1f84eb"
end

# Install missing header files, remove in > 3.1.0
# /~https://github.com/ampl/mp/issues/110
patch do
url "/~https://github.com/ampl/mp/commit/8183be3e486d38d281e0c5a02a1ea4239695035e.patch?full_index=1"
sha256 "6b37201f1d0d6dba591e7e1b81fb16d2694d118605c92c422dcdaaedb463c367"
end

# Backport fmt header update. Remove in the next release
# /~https://github.com/ampl/mp/issues/108
patch do
url "/~https://github.com/ampl/mp/commit/1f39801af085656e4bf72250356a3a70d5d98e73.patch?full_index=1"
sha256 "b0e0185f24caba54cb38b65a638ebda6eb4db3e8c74d71ca79f072b8337e8e2c"
end

def install

Check failure on line 30 in Formula/a/ampl-mp.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle ampl-mp` failed on Linux!

[ 95%] Building CXX object test/CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o cd /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/build/test && /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/g++-11 -DFMT_USE_FILE_DESCRIPTORS -DMP_DATE=20240724 -DMP_SYSINFO="\"Linux x86_64\"" -DMP_TEST_DATA_DIR=\"/tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/data\" -DMP_USE_ATOMIC -DMP_USE_HASH -DMP_USE_UNIQUE_PTR -I/tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include -I/tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/../thirdparty -I/tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/src -Wall -Wextra -pedantic -O3 -DNDEBUG -std=c++17 -fPIE -fno-delete-null-pointer-checks -MD -MT test/CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o -MF CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o.d -o CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o -c /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-mip-test.cpp In file included from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/converter.h:22, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-flat-test.h:10, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/constr_2_expr.h:400:13: error: explicit specialization in non-namespace scope ‘class mp::Constraints2Expr<Impl>’ 400 | template <> | ^ In file included from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-flat-test.h:8, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-flat-test.h: In static member function ‘static mp::ConstraintAcceptanceLevel TestBackendAcceptingConstraints<Constraint>::AcceptanceLevel(const Constraint*)’: /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-flat-test.h:38:33: error: ‘mp::ConstraintAcceptanceLevel::mp’ has not been declared 38 | ACCEPT_CONSTRAINT(Constraint, mp::Recommended, mp::CG_Default) | ^~ /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/model_api_base.h:91:41: note: in definition of macro ‘ACCEPT_CONSTRAINT’ 91 | { return mp::ConstraintAcceptanceLevel::level; } \ | ^~~~~ /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-flat-test.h: In static member function ‘static mp::ConstraintAcceptanceLevel TestBackendAcceptingConstraints<Constraint>::AcceptanceLevel(const LinConEQ*)’: /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-flat-test.h:39:35: error: ‘mp::ConstraintAcceptanceLevel::mp’ has not been declared 39 | ACCEPT_CONSTRAINT(mp::LinConEQ, mp::Recommended, mp::CG_Default) | ^~ /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/model_api_base.h:91:41: note: in definition of macro ‘ACCEPT_CONSTRAINT’ 91 | { return mp::ConstraintAcceptanceLevel::level; } \ | ^~~~~ In file included from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/converter.h:22, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/redef/MIP/converter_mip.h:6, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-mip-test.h:7, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/test/converter-mip-test.cpp:25: /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/constr_2_expr.h:400:13: error: explicit specialization in non-namespace scope ‘class mp::Constraints2Expr<Impl>’ 400 | template <> | ^ In file included from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/item_keeper.h:7, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/constr_keeper.h:15, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/converter_model.h:14, from /tmp/ampl-mp-20241108-3764-oi4a54/mp-4.0.0/include/mp/flat/c

Check failure on line 30 in Formula/a/ampl-mp.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle ampl-mp` failed on macOS Sequoia (15) on Apple Silicon!

cd /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/build && /opt/homebrew/Cellar/cmake/3.31.0/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0 /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/build /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/build/test /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/build/test/CMakeFiles/converter-mip-test.dir/DependInfo.cmake "--color=" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f test/CMakeFiles/converter-mip-test.dir/build.make test/CMakeFiles/converter-mip-test.dir/build [ 95%] Building CXX object test/CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o cd /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/build/test && /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DFMT_USE_FILE_DESCRIPTORS -DMP_DATE=20240724 -DMP_SYSINFO="\"Darwin arm64\"" -DMP_TEST_DATA_DIR=\"/tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/data\" -DMP_USE_ATOMIC -DMP_USE_HASH -DMP_USE_UNIQUE_PTR -I/tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/include -I/tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/../thirdparty -I/tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/src -Wall -Wextra -pedantic -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -fPIE -fno-delete-null-pointer-checks -MD -MT test/CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o -MF CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o.d -o CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o -c /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-mip-test.cpp In file included from /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-flat-test.h:38:3: error: no member named 'mp' in 'mp::ConstraintAcceptanceLevel'; did you mean simply 'mp'? 38 | ACCEPT_CONSTRAINT(Constraint, mp::Recommended, mp::CG_Default) | ^ /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/include/mp/flat/model_api_base.h:91:10: note: expanded from macro 'ACCEPT_CONSTRAINT' 91 | { return mp::ConstraintAcceptanceLevel::level; } \ | ^ /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/include/mp/flat/converter.h:30:11: note: 'mp' declared here 30 | namespace mp { | ^ In file included from /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-flat-test.h:38:37: error: no member named 'Recommended' in namespace 'mp' 38 | ACCEPT_CONSTRAINT(Constraint, mp::Recommended, mp::CG_Default) | ~~~~^ /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/include/mp/flat/model_api_base.h:91:41: note: expanded from macro 'ACCEPT_CONSTRAINT' 91 | { return mp::ConstraintAcceptanceLevel::level; } \ | ^~~~~ In file included from /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-flat-test.h:39:3: error: no member named 'mp' in 'mp::ConstraintAcceptanceLevel'; did you mean simply 'mp'? 39 | ACCEPT_CONSTRAINT(mp::LinConEQ, mp::Recommended, mp::CG_Default) | ^ /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/include/mp/flat/model_api_base.h:91:10: note: expanded from macro 'ACCEPT_CONSTRAINT' 91 | { return mp::ConstraintAcceptanceLevel::level; } \ | ^ /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/include/mp/flat/converter.h:30:11: note: 'mp' declared here 30 | namespace mp { | ^ In file included from /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/test/converter-flat-test.h:39:39: error: no member named 'Recommended' in namespace 'mp' 39 | ACCEPT_CONSTRAINT(mp::LinConEQ, mp::Recommended, mp::CG_Default) | ~~~~^ /tmp/ampl-mp-20241108-4915-4lqrum/mp-4.0.0/include/mp/flat/model_api_base.h:91:41: note: expanded from mac

Check failure on line 30 in Formula/a/ampl-mp.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle ampl-mp` failed on macOS Sonoma (14) on Apple Silicon!

cd /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/build && /opt/homebrew/Cellar/cmake/3.31.0/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0 /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/build /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/build/test /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/build/test/CMakeFiles/converter-mip-test.dir/DependInfo.cmake "--color=" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f test/CMakeFiles/converter-mip-test.dir/build.make test/CMakeFiles/converter-mip-test.dir/build [ 95%] Building CXX object test/CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o cd /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/build/test && /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DFMT_USE_FILE_DESCRIPTORS -DMP_DATE=20240724 -DMP_SYSINFO="\"Darwin arm64\"" -DMP_TEST_DATA_DIR=\"/tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/data\" -DMP_USE_ATOMIC -DMP_USE_HASH -DMP_USE_UNIQUE_PTR -I/tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/include -I/tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/../thirdparty -I/tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/src -Wall -Wextra -pedantic -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fPIE -fno-delete-null-pointer-checks -MD -MT test/CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o -MF CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o.d -o CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o -c /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-mip-test.cpp In file included from /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-flat-test.h:38:3: error: no member named 'mp' in 'mp::ConstraintAcceptanceLevel'; did you mean simply 'mp'? 38 | ACCEPT_CONSTRAINT(Constraint, mp::Recommended, mp::CG_Default) | ^ /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/include/mp/flat/model_api_base.h:91:10: note: expanded from macro 'ACCEPT_CONSTRAINT' 91 | { return mp::ConstraintAcceptanceLevel::level; } \ | ^ /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/include/mp/flat/converter.h:30:11: note: 'mp' declared here 30 | namespace mp { | ^ In file included from /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-flat-test.h:38:37: error: no member named 'Recommended' in namespace 'mp' 38 | ACCEPT_CONSTRAINT(Constraint, mp::Recommended, mp::CG_Default) | ~~~~^ /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/include/mp/flat/model_api_base.h:91:41: note: expanded from macro 'ACCEPT_CONSTRAINT' 91 | { return mp::ConstraintAcceptanceLevel::level; } \ | ^~~~~ In file included from /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-flat-test.h:39:3: error: no member named 'mp' in 'mp::ConstraintAcceptanceLevel'; did you mean simply 'mp'? 39 | ACCEPT_CONSTRAINT(mp::LinConEQ, mp::Recommended, mp::CG_Default) | ^ /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/include/mp/flat/model_api_base.h:91:10: note: expanded from macro 'ACCEPT_CONSTRAINT' 91 | { return mp::ConstraintAcceptanceLevel::level; } \ | ^ /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/include/mp/flat/converter.h:30:11: note: 'mp' declared here 30 | namespace mp { | ^ In file included from /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/test/converter-flat-test.h:39:39: error: no member named 'Recommended' in namespace 'mp' 39 | ACCEPT_CONSTRAINT(mp::LinConEQ, mp::Recommended, mp::CG_Default) | ~~~~^ /tmp/ampl-mp-20241108-5152-3efjg1/mp-4.0.0/include/mp/flat/model_api_base.h:91:41: note: expanded from mac

Check failure on line 30 in Formula/a/ampl-mp.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle ampl-mp` failed on macOS Ventura (13) on Apple Silicon!

cd /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/build && /opt/homebrew/Cellar/cmake/3.31.0/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0 /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/build /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/build/test /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/build/test/CMakeFiles/converter-mip-test.dir/DependInfo.cmake "--color=" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f test/CMakeFiles/converter-mip-test.dir/build.make test/CMakeFiles/converter-mip-test.dir/build [ 95%] Building CXX object test/CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o cd /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/build/test && /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DFMT_USE_FILE_DESCRIPTORS -DMP_DATE=20240724 -DMP_SYSINFO="\"Darwin arm64\"" -DMP_TEST_DATA_DIR=\"/tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/data\" -DMP_USE_ATOMIC -DMP_USE_HASH -DMP_USE_UNIQUE_PTR -I/tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/include -I/tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/../thirdparty -I/tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/src -Wall -Wextra -pedantic -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -fPIE -fno-delete-null-pointer-checks -MD -MT test/CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o -MF CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o.d -o CMakeFiles/converter-mip-test.dir/converter-mip-test.cpp.o -c /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-mip-test.cpp In file included from /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-flat-test.h:38:3: error: no member named 'mp' in 'mp::ConstraintAcceptanceLevel'; did you mean simply 'mp'? ACCEPT_CONSTRAINT(Constraint, mp::Recommended, mp::CG_Default) ^ /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/include/mp/flat/model_api_base.h:91:10: note: expanded from macro 'ACCEPT_CONSTRAINT' { return mp::ConstraintAcceptanceLevel::level; } \ ^ /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/include/mp/flat/converter.h:30:11: note: 'mp' declared here namespace mp { ^ In file included from /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-flat-test.h:38:37: error: no member named 'Recommended' in namespace 'mp' ACCEPT_CONSTRAINT(Constraint, mp::Recommended, mp::CG_Default) ~~~~^ /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/include/mp/flat/model_api_base.h:91:41: note: expanded from macro 'ACCEPT_CONSTRAINT' { return mp::ConstraintAcceptanceLevel::level; } \ ^~~~~ In file included from /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-flat-test.h:39:3: error: no member named 'mp' in 'mp::ConstraintAcceptanceLevel'; did you mean simply 'mp'? ACCEPT_CONSTRAINT(mp::LinConEQ, mp::Recommended, mp::CG_Default) ^ /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/include/mp/flat/model_api_base.h:91:10: note: expanded from macro 'ACCEPT_CONSTRAINT' { return mp::ConstraintAcceptanceLevel::level; } \ ^ /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/include/mp/flat/converter.h:30:11: note: 'mp' declared here namespace mp { ^ In file included from /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-flat-test.cpp:4: /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/test/converter-flat-test.h:39:39: error: no member named 'Recommended' in namespace 'mp' ACCEPT_CONSTRAINT(mp::LinConEQ, mp::Recommended, mp::CG_Default) ~~~~^ /tmp/ampl-mp-20241108-5006-xd7t0q/mp-4.0.0/include/mp/flat/model_api_base.h:91:41: note: expanded from macro 'ACCEPT_CONSTRAINT' { return mp::ConstraintAcceptanceLevel::level; } \ ^~~~~ In file included from
system "cmake", "-S", ".", "-B", "build",
"-DAMPL_LIBRARY_DIR=#{libexec}/bin",
Expand Down

0 comments on commit 413641b

Please sign in to comment.