Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install issue on MacOS #3522

Closed
JO-WTF opened this issue Oct 28, 2022 · 9 comments
Closed

Install issue on MacOS #3522

JO-WTF opened this issue Oct 28, 2022 · 9 comments
Assignees
Milestone

Comments

@JO-WTF
Copy link

JO-WTF commented Oct 28, 2022

What version of OR-Tools and what language are you using?
Version: main
Language: Python

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CPLEX

What operating system (Linux, Windows, ...) and version?
MacOS Monterey

What did you do?

  1. clone main
  2. tried make third_party but no Makefile.local generated(seems documentation needs to be updated?)
  3. make clean
  4. add export USE_CPLEX=ON and export CPLEX_ROOT=/my_cplex_directory to ~/.zshrc
  5. source ~/.zshrc
  6. make third_party with no error
  7. make python

What did you expect to see
build success with 0 errors

What did you see instead?

[ 97%] Linking CXX shared library lib/libortools.dylib
/usr/local/Cellar/cmake/3.24.2/bin/cmake -E cmake_link_script CMakeFiles/ortools.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/c++ -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.15 -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 9.0.0 -current_version 9.4.0 -o lib/libortools.9.4.dylib -install_name @rpath/libortools.9.dylib CMakeFiles/ortools_proto.dir/ortools/bop/bop_parameters.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/constraint_solver/assignment.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/constraint_solver/demon_profiler.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/constraint_solver/routing_enums.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/constraint_solver/routing_parameters.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/constraint_solver/search_limit.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/constraint_solver/search_stats.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/constraint_solver/solver_parameters.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/glop/parameters.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/graph/flow_problem.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/linear_solver/linear_solver.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/packing/multiple_dimensions_bin_packing.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/packing/vector_bin_packing.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/sat/boolean_problem.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/sat/cp_model.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/sat/cp_model_service.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/sat/sat_parameters.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/scheduling/course_scheduling.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/scheduling/jobshop_scheduling.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/scheduling/rcpsp.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/util/optional_boolean.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/pdlp/solve_log.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/pdlp/solvers.pb.cc.o CMakeFiles/ortools_proto.dir/ortools/gscip/gscip.pb.cc.o ortools/algorithms/CMakeFiles/ortools_algorithms.dir/dynamic_partition.cc.o ortools/algorithms/CMakeFiles/ortools_algorithms.dir/dynamic_permutation.cc.o ortools/algorithms/CMakeFiles/ortools_algorithms.dir/find_graph_symmetries.cc.o ortools/algorithms/CMakeFiles/ortools_algorithms.dir/hungarian.cc.o ortools/algorithms/CMakeFiles/ortools_algorithms.dir/knapsack_solver.cc.o ortools/algorithms/CMakeFiles/ortools_algorithms.dir/knapsack_solver_for_cuts.cc.o ortools/algorithms/CMakeFiles/ortools_algorithms.dir/sparse_permutation.cc.o ortools/base/CMakeFiles/ortools_base.dir/bitmap.cc.o ortools/base/CMakeFiles/ortools_base.dir/case.cc.o ortools/base/CMakeFiles/ortools_base.dir/commandlineflags.cc.o ortools/base/CMakeFiles/ortools_base.dir/file.cc.o ortools/base/CMakeFiles/ortools_base.dir/logging.cc.o ortools/base/CMakeFiles/ortools_base.dir/logging_utilities.cc.o ortools/base/CMakeFiles/ortools_base.dir/path.cc.o ortools/base/CMakeFiles/ortools_base.dir/raw_logging.cc.o ortools/base/CMakeFiles/ortools_base.dir/recordio.cc.o ortools/base/CMakeFiles/ortools_base.dir/strtoint.cc.o ortools/base/CMakeFiles/ortools_base.dir/sysinfo.cc.o ortools/base/CMakeFiles/ortools_base.dir/threadpool.cc.o ortools/base/CMakeFiles/ortools_base.dir/timer.cc.o ortools/base/CMakeFiles/ortools_base.dir/version.cc.o ortools/base/CMakeFiles/ortools_base.dir/vlog_is_on.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/bop_base.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/bop_fs.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/bop_lns.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/bop_ls.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/bop_portfolio.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/bop_solution.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/bop_solver.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/bop_util.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/complete_optimizer.cc.o ortools/bop/CMakeFiles/ortools_bop.dir/integral_solver.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/alldiff_cst.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/assignment.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/constraint_solver.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/constraints.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/count_cst.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/default_search.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/demon_profiler.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/deviation.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/diffn.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/element.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/expr_array.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/expr_cst.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/expressions.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/graph_constraints.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/interval.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/local_search.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/model_cache.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/pack.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/range_cst.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/resource.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_breaks.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_filters.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_flags.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_flow.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_index_manager.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_lp_scheduling.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_neighborhoods.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_parameters.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_sat.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/routing_search.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/sched_constraints.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/sched_expr.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/sched_search.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/search.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/table.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/timetabling.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/trace.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/utilities.cc.o ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/visitor.cc.o ortools/glpk/CMakeFiles/ortools_glpk.dir/glpk_env_deleter.cc.o ortools/glpk/CMakeFiles/ortools_glpk.dir/glpk_formatters.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/iteration_stats.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/primal_dual_hybrid_gradient.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/quadratic_program.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/quadratic_program_io.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/sharded_optimization_utils.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/sharded_quadratic_program.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/sharder.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/solvers_proto_validation.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/termination.cc.o ortools/pdlp/CMakeFiles/ortools_pdlp.dir/trust_region.cc.o ortools/gscip/CMakeFiles/ortools_gscip.dir/gscip.cc.o ortools/gscip/CMakeFiles/ortools_gscip.dir/gscip_event_handler.cc.o ortools/gscip/CMakeFiles/ortools_gscip.dir/gscip_ext.cc.o ortools/gscip/CMakeFiles/ortools_gscip.dir/gscip_message_handler.cc.o ortools/gscip/CMakeFiles/ortools_gscip.dir/gscip_parameters.cc.o ortools/gscip/CMakeFiles/ortools_gscip.dir/legacy_scip_params.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/basis_representation.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/dual_edge_norms.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/entering_variable.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/initial_basis.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/lp_solver.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/lu_factorization.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/markowitz.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/preprocessor.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/primal_edge_norms.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/reduced_costs.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/revised_simplex.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/status.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/update_row.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/variable_values.cc.o ortools/glop/CMakeFiles/ortools_glop.dir/variables_info.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/assignment.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/astar.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/bellman_ford.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/cliques.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/connected_components.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/dijkstra.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/linear_assignment.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/max_flow.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/min_cost_flow.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/perfect_matching.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/shortestpaths.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/topologicalsorter.cc.o ortools/graph/CMakeFiles/ortools_graph.dir/util.cc.o ortools/gurobi/CMakeFiles/ortools_gurobi.dir/environment.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/bop_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/cbc_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/clp_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/cplex_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/glop_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/glop_utils.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/glpk_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/gurobi_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/gurobi_proto_solver.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/linear_expr.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/linear_solver.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/linear_solver_callback.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/model_exporter.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/model_validator.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/pdlp_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/pdlp_proto_solver.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/sat_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/sat_proto_solver.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/sat_solver_utils.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/scip_callback.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/scip_interface.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/scip_proto_solver.cc.o ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/xpress_interface.cc.o "ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir///_deps/scip-src/src/lpi/lpi_glop.cpp.o" ortools/lp_data/CMakeFiles/ortools_lp_data.dir/lp_data.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/lp_data_utils.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/lp_decomposer.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/lp_parser.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/lp_print_utils.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/lp_types.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/lp_utils.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/matrix_scaler.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/matrix_utils.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/model_reader.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/mps_reader.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/proto_utils.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/sparse.cc.o ortools/lp_data/CMakeFiles/ortools_lp_data.dir/sparse_column.cc.o ortools/packing/CMakeFiles/ortools_packing.dir/arc_flow_builder.cc.o ortools/packing/CMakeFiles/ortools_packing.dir/arc_flow_solver.cc.o ortools/packing/CMakeFiles/ortools_packing.dir/binpacking_2d_parser.cc.o ortools/packing/CMakeFiles/ortools_packing.dir/vector_bin_packing_parser.cc.o ortools/port/CMakeFiles/ortools_port.dir/file.cc.o ortools/port/CMakeFiles/ortools_port.dir/sysinfo.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/all_different.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/boolean_problem.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/circuit.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/clause.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_constraints.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_checker.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_expand.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_lns.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_loader.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_objective.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_postsolve.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_presolve.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_search.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_solver.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_symmetries.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cp_model_utils.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cumulative.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cumulative_energy.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/cuts.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/diffn.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/diffn_util.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/disjunctive.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/drat_checker.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/drat_proof_handler.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/drat_writer.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/encoding.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/feasibility_pump.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/implied_bounds.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/integer.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/integer_expr.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/integer_search.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/intervals.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/lb_tree_search.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/linear_constraint.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/linear_constraint_manager.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/linear_programming_constraint.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/linear_relaxation.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/lp_utils.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/max_hs.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/optimization.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/parameters_validation.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/pb_constraint.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/precedences.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/presolve_context.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/presolve_util.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/probing.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/pseudo_costs.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/restart.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/rins.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/sat_decision.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/sat_inprocessing.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/sat_solver.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/scheduling_constraints.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/scheduling_cuts.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/simplification.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/subsolver.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/swig_helper.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/symmetry.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/symmetry_util.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/synchronization.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/table.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/theta_tree.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/timetable.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/timetable_edgefinding.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/util.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/var_domination.cc.o ortools/sat/CMakeFiles/ortools_sat.dir/zero_half_cuts.cc.o ortools/scheduling/CMakeFiles/ortools_scheduling.dir/jobshop_scheduling_parser.cc.o ortools/scheduling/CMakeFiles/ortools_scheduling.dir/rcpsp_parser.cc.o ortools/util/CMakeFiles/ortools_util.dir/bitset.cc.o ortools/util/CMakeFiles/ortools_util.dir/cached_log.cc.o ortools/util/CMakeFiles/ortools_util.dir/file_util.cc.o ortools/util/CMakeFiles/ortools_util.dir/fp_roundtrip_conv.cc.o ortools/util/CMakeFiles/ortools_util.dir/fp_utils.cc.o ortools/util/CMakeFiles/ortools_util.dir/graph_export.cc.o ortools/util/CMakeFiles/ortools_util.dir/logging.cc.o ortools/util/CMakeFiles/ortools_util.dir/piecewise_linear_function.cc.o ortools/util/CMakeFiles/ortools_util.dir/proto_tools.cc.o ortools/util/CMakeFiles/ortools_util.dir/range_query_function.cc.o ortools/util/CMakeFiles/ortools_util.dir/rational_approximation.cc.o ortools/util/CMakeFiles/ortools_util.dir/sigint.cc.o ortools/util/CMakeFiles/ortools_util.dir/sorted_interval_list.cc.o ortools/util/CMakeFiles/ortools_util.dir/stats.cc.o ortools/util/CMakeFiles/ortools_util.dir/string_util.cc.o ortools/util/CMakeFiles/ortools_util.dir/time_limit.cc.o ortools/model_builder/wrappers/CMakeFiles/ortools_model_builder_wrappers.dir/model_builder_helper.cc.o -Wl,-rpath,@loader_path lib/libz.a lib/libabsl_base.a lib/libabsl_flags.a lib/libabsl_flags_commandlineflag.a lib/libabsl_flags_parse.a lib/libabsl_flags_usage.a lib/libabsl_cord.a lib/libabsl_raw_hash_set.a lib/libabsl_hash.a lib/libabsl_leak_check.a lib/libabsl_stacktrace.a lib/libabsl_status.a lib/libabsl_statusor.a lib/libabsl_strings.a lib/libabsl_synchronization.a lib/libprotobuf.a lib/libre2.a lib/libCbcSolver.a lib/libOsiCbc.a lib/libClpSolver.a lib/libOsiClp.a /Applications/CPLEX_Studio128/cplex/lib/x86-64_osx/static_pic/libcplex.a lib/libGLPK.a _deps/scip-build/lib/libscip.a lib/libabsl_flags_usage_internal.a lib/libabsl_flags.a lib/libabsl_flags_internal.a lib/libabsl_flags_marshalling.a lib/libabsl_flags_reflection.a lib/libabsl_flags_config.a lib/libabsl_hash.a lib/libabsl_city.a lib/libabsl_low_level_hash.a lib/libabsl_raw_hash_set.a lib/libabsl_hashtablez_sampler.a lib/libabsl_flags_private_handle_accessor.a lib/libabsl_flags_commandlineflag.a lib/libabsl_flags_commandlineflag_internal.a lib/libabsl_flags_program_name.a lib/libabsl_random_distributions.a lib/libabsl_random_seed_sequences.a lib/libabsl_random_internal_pool_urbg.a lib/libabsl_random_internal_randen.a lib/libabsl_random_internal_randen_hwaes.a lib/libabsl_random_internal_randen_hwaes_impl.a lib/libabsl_random_internal_randen_slow.a lib/libabsl_random_internal_platform.a lib/libabsl_random_internal_seed_material.a lib/libabsl_random_seed_gen_exception.a lib/libabsl_status.a lib/libabsl_cord.a lib/libabsl_cordz_info.a lib/libabsl_cord_internal.a lib/libabsl_cordz_functions.a lib/libabsl_exponential_biased.a lib/libabsl_cordz_handle.a lib/libabsl_synchronization.a lib/libabsl_graphcycles_internal.a lib/libabsl_time.a lib/libabsl_civil_time.a lib/libabsl_time_zone.a -Xlinker -framework -Xlinker CoreFoundation lib/libabsl_stacktrace.a lib/libabsl_str_format_internal.a lib/libabsl_bad_optional_access.a lib/libabsl_symbolize.a lib/libabsl_debugging_internal.a lib/libabsl_malloc_internal.a lib/libabsl_demangle_internal.a lib/libabsl_strings.a lib/libabsl_int128.a lib/libabsl_strings_internal.a lib/libabsl_base.a lib/libabsl_spinlock_wait.a lib/libabsl_throw_delegate.a lib/libabsl_bad_variant_access.a lib/libabsl_bad_any_cast_impl.a lib/libabsl_raw_logging_internal.a lib/libabsl_log_severity.a lib/libCbc.a lib/libCgl.a lib/libOsiClp.a lib/libClp.a lib/libOsi.a lib/libCoinUtils.a -lm lib/libz.a
duplicate symbol '_gzgetc' in:
lib/libz.a(gzread.c.o)
/Applications/CPLEX_Studio128/cplex/lib/x86-64_osx/static_pic/libcplex.a(zlib_gzread.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [lib/libortools.9.4.dylib] Error 1
make[2]: *** [CMakeFiles/ortools.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [python] Error 2

Make sure you include information that can help us debug (full error message, model Proto).

Anything else we should know about your project / environment
make third_party doesn't generate Makefile.local. Is that as expected? Otherwise does the documentation need to be updated?

@Mizux Mizux self-assigned this Oct 28, 2022
@Mizux
Copy link
Collaborator

Mizux commented Oct 28, 2022

Seems zlib symbols provided by the builded zlib and the one shipped in CPLEX are in conflict...

lib/libz.a(gzread.c.o)
/Applications/CPLEX_Studio128/cplex/lib/x86-64_osx/static_pic/libcplex.a(zlib_gzread.o)

Try to add a -DBUILD_ZLIB=OFF to disable the build of zlib (in this case it should try to use a dynamic zlib version found in your system) OR try to bump zlib version 🤷
ref:

if(BUILD_ZLIB)
message(CHECK_START "Fetching ZLIB")
list(APPEND CMAKE_MESSAGE_INDENT " ")
FetchContent_Declare(
zlib
GIT_REPOSITORY "https://github.com/madler/ZLIB.git"
GIT_TAG "v1.2.11"
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/ZLIB.patch")
FetchContent_MakeAvailable(zlib)
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(CHECK_PASS "fetched")
endif()

@JO-WTF
Copy link
Author

JO-WTF commented Oct 28, 2022

Thanks, will try it out.

What about Makefile.local? That was a convenient way to configure the installation, but seems to be depreciated?

Seems zlib symbols provided by the builded zlib and the one shipped in CPLEX are in conflict...

lib/libz.a(gzread.c.o)
/Applications/CPLEX_Studio128/cplex/lib/x86-64_osx/static_pic/libcplex.a(zlib_gzread.o)

Try to add a -DBUILD_ZLIB=OFF to disable the build of zlib (in this case it should try to use a dynamic zlib version found in your system) OR try to bump zlib version 🤷 ref:

if(BUILD_ZLIB)
message(CHECK_START "Fetching ZLIB")
list(APPEND CMAKE_MESSAGE_INDENT " ")
FetchContent_Declare(
zlib
GIT_REPOSITORY "https://github.com/madler/ZLIB.git"
GIT_TAG "v1.2.11"
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/ZLIB.patch")
FetchContent_MakeAvailable(zlib)
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(CHECK_PASS "fetched")
endif()

@Mizux
Copy link
Collaborator

Mizux commented Oct 28, 2022

now, Makefile is just a wrapper on top of the CMake based build (before remove). So we had to remove the Makefile.local....

@Mizux
Copy link
Collaborator

Mizux commented Oct 28, 2022

interesting...
RedisGraph/RedisGraph#1243 (comment)

In this case try to replace

list(APPEND OR_TOOLS_COMPILE_OPTIONS "-fwrapv")

by

 list(APPEND OR_TOOLS_COMPILE_OPTIONS "-fwrapv" "-fcommon") 

@JO-WTF Which version of compiler did you use ? (seems to be clang)

@JO-WTF
Copy link
Author

JO-WTF commented Oct 28, 2022

interesting... RedisGraph/RedisGraph#1243 (comment)

@JO-WTF Which version of compiler did you use ? (seems to be clang)

(base) ~  gcc --version
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

@JO-WTF
Copy link
Author

JO-WTF commented Oct 28, 2022

now, Makefile is just a wrapper on top of the CMake based build (before remove). So we had to remove the Makefile.local....

Are you suggesting adding USE_CPLEX=ON and other customized stuff in Makefile directly? In that case the documentations need to be updated to avoid confusion...

@Mizux
Copy link
Collaborator

Mizux commented Oct 28, 2022

  1. No, I was just explaining the lost of Makefile.local
  2. USE_CPLEX is still woriking/supported
    USE_CPLEX ?= OFF
  3. Documentation need to be rewrite to be CMake/Bazel based...
  4. if "-fcommon" fix your issue, i'll patch main branch accordingly...

@JO-WTF
Copy link
Author

JO-WTF commented Oct 28, 2022

  1. if "-fcommon" fix your issue, i'll patch main branch accordingly...

Nope, that didn't work.

@lperron
Copy link
Collaborator

lperron commented Nov 22, 2022

Regrouped into

Please follow up there.

@lperron lperron closed this as completed Nov 22, 2022
@Mizux Mizux added this to the v9.5 milestone Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants