Compilation Error

839 views
Skip to first unread message

Mark

unread,
Mar 21, 2017, 7:40:58 PM3/21/17
to or-tools-discuss
First time I have encountered this error when building from source.  Building on Windows 7 with VS2013:

src\sat/flow_costs.h(75) : error C2144: syntax error : 'double' should be preceded by ';'
src\sat/flow_costs.h(75) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
make: *** [objs/sat/flow_costs.obj] Error 2

Laurent Perron

unread,
Mar 22, 2017, 5:18:37 AM3/22/17
to or-tools-discuss

I will have a look. Thanks


--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Laurent Perron

unread,
Mar 22, 2017, 6:35:06 AM3/22/17
to or-tools-discuss
Hi, It should be fixed now.

Thanks for the report.

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


2017-03-22 5:18 GMT-04:00 Laurent Perron <laurent...@gmail.com>:

I will have a look. Thanks

Le mar. 21 mars 2017 à 19:40, Mark <slash...@gmail.com> a écrit :
First time I have encountered this error when building from source.  Building on Windows 7 with VS2013:

src\sat/flow_costs.h(75) : error C2144: syntax error : 'double' should be preceded by ';'
src\sat/flow_costs.h(75) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
make: *** [objs/sat/flow_costs.obj] Error 2

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discuss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discuss+unsubscribe@googlegroups.com.

Mark

unread,
Apr 9, 2017, 1:47:58 PM4/9/17
to or-tools-discuss
Build Setup:  Windows 7 with VS2013

Error when running:

    make java

src\constraint_solver/constraint_solver.h(85) : fatal error C1083: Cannot open include file: 'constraint_solver/solver_parameters.pb.h': No such file
or directory
make: *** [objs/swig/constraint_solver_java_wrap.obj] Error 2

Mark

unread,
Apr 9, 2017, 1:59:21 PM4/9/17
to or-tools-discuss
Different error when running:

    make cc

cl /EHsc /MD /nologo -nologo  /O2 -DNDEBUG /Isrc /Iexamples /Isrc\\gen 
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include /DGFLAGS_
DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= 
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include  
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include 
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include /DUSE_CBC 
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include /DUSE_CLP   
/IC:\\gurobi701\win64\include /DUSE_GUROBI /DUSE_GLOP /DUSE_BOP /D__WIN32__  /I\\inc
lude /DPSAPI_VERSION=1 /DARCH_K8 -c src/util/piecewise_linear_function.cc /Foobjs\\util\\piecewise_linear_function.obj
piecewise_linear_function.cc
src/util/piecewise_linear_function.cc(355) : error C2440: 'initializing' : cannot convert from 'initializer-list' to 'operations_research::PiecewiseLi
nearFunction'
        Constructor for class 'operations_research::PiecewiseLinearFunction' is declared 'explicit'
src/util/piecewise_linear_function.cc(361) : error C2440: 'initializing' : cannot convert from 'initializer-list' to 'operations_research::PiecewiseLi
nearFunction'
        Constructor for class 'operations_research::PiecewiseLinearFunction' is declared 'explicit'
src/util/piecewise_linear_function.cc(367) : error C2440: 'initializing' : cannot convert from 'initializer-list' to 'operations_research::PiecewiseLi
nearFunction'
        Constructor for class 'operations_research::PiecewiseLinearFunction' is declared 'explicit'
src/util/piecewise_linear_function.cc(377) : error C2440: 'initializing' : cannot convert from 'initializer-list' to 'operations_research::PiecewiseLi
nearFunction'
        Constructor for class 'operations_research::PiecewiseLinearFunction' is declared 'explicit'
src/util/piecewise_linear_function.cc(387) : error C2440: 'initializing' : cannot convert from 'initializer-list' to 'operations_research::PiecewiseLi
nearFunction'
        Constructor for class 'operations_research::PiecewiseLinearFunction' is declared 'explicit'
src/util/piecewise_linear_function.cc(400) : error C2440: 'initializing' : cannot convert from 'initializer-list' to 'operations_research::PiecewiseLi
nearFunction'
        Constructor for class 'operations_research::PiecewiseLinearFunction' is declared 'explicit'
make: *** [objs/util/piecewise_linear_function.obj] Error 2

Laurent Perron

unread,
Apr 9, 2017, 3:58:09 PM4/9/17
to or-tools-discuss
Thanks for the report. I cannot compile on windows while on vacation :-)
It should be fixed now.
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.

Mark

unread,
Apr 11, 2017, 9:33:13 PM4/11/17
to or-tools-discuss
Unfortunately, I'm still getting the same error when running "make cc":

        Constructor for class 'operations_research::PiecewiseLinearFunction' is declared 'explicit'
make: *** [objs/util/piecewise_linear_function.obj] Error 2

Thanks for giving it a shot while on vacation though.

Laurent Perron

unread,
Apr 13, 2017, 4:02:44 AM4/13/17
to or-tools-discuss
Hi, 

I should have missed one. Can you give me the compete error message?

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discuss+unsubscribe@googlegroups.com.

Mark

unread,
Apr 13, 2017, 10:13:45 AM4/13/17
to or-tools-discuss
For "make cc":

cl /EHsc /MD /nologo -nologo  /O2 -DNDEBUG /Isrc /Iexamples /Isrc\\gen 
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= 
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include  
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include 
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include /DUSE_CBC 
/IC:\\Path\\To\\or-tools\\dependencies\\install\\include /DUSE_CLP   
/IC:\\gurobi701\win64\include /DUSE_GUROBI /DUSE_GLOP /DUSE_BOP /D__WIN32__  
/I\\include /DPSAPI_VERSION=1 /DARCH_K8 -c src/util/piecewise_linear_function.cc 
/Foobjs\\util\\piecewise_linear_function.obj
piecewise_linear_function.cc
src/util/piecewise_linear_function.cc(355) : error C2440: 'initializing' : cannot convert from 'initializer-list' to 'operations_research::PiecewiseLinearFunction'

Laurent Perron

unread,
Apr 20, 2017, 4:13:35 AM4/20/17
to or-tools-discuss
Hi, 

I fixed this problem.
Unfortunately, routing.cc does not compile under visual studio 2013 (and this is a bug in the compiler :-) ).
We are working on a fix.

Can you use visual studio 2015?

Thanks

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


--

Laurent Perron

unread,
Apr 21, 2017, 5:47:03 AM4/21/17
to or-tools-discuss
Hi, 

I just pushed the fix.
Please update and recompile.

Thanks

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


Mark

unread,
Apr 22, 2017, 5:22:14 PM4/22/17
to or-tools-discuss
Looks like the bump to gflags 2.2.0 resulted in an error:

  inflating: dependencies/sources/gflags-2.2.0/test/nc/gflags_nc.cc
cd dependencies\sources && rename gflags-master gflags-2.2.0
The system cannot find the file specified.
make: *** [dependencies/sources/gflags-2.2.0/INSTALL.md] Error 1

Laurent Perron

unread,
Apr 22, 2017, 5:40:44 PM4/22/17
to or-tools-discuss
Please do make clean_third_party, then make third_party.

--

Mark

unread,
Apr 22, 2017, 6:42:23 PM4/22/17
to or-tools-discuss
ran make clean_third_party, then make third_party.  
The exact same error persists:

.
.
.
cd dependencies/archives && rename v2.2.0.zip gflags-2.2.0.zip
tools\unzip -d dependencies/sources dependencies\archives\gflags-2.2.0.zip
Archive:  dependencies/archives/gflags-2.2.0.zip
f8a0efe03aa69b3336d8e228b37d4ccb17324b88
   creating: dependencies/sources/gflags-2.2.0/
  inflating: dependencies/sources/gflags-2.2.0/.gitattributes
.
.
.
  inflating: dependencies/sources/gflags-2.2.0/test/nc/CMakeLists.txt

Mark

unread,
May 2, 2017, 12:55:45 PM5/2/17
to or-tools-discuss
Just tried compiling again with brand new source obtained a few minutes ago.
Problem still persists:

cd dependencies\sources && rename gflags-master gflags-2.2.0
The system cannot find the file specified.
make: *** [dependencies/sources/gflags-2.2.0/INSTALL.md] Error 1

This error occurs when running:

    make third_party

it still occurs even if I run:

    make clean_third_party
    make third_party

platform:  Windows 7 64bit, Visual Studio 2013 64bit

Mark

unread,
May 17, 2017, 11:02:53 PM5/17/17
to or-tools-discuss
java and csharp now work on Windows 7 64bit, Visual Studio 2013 64bit.  
make csharpfz is currently failing:

    make csharpfz
    make: *** No rule to make target `assembly_info', needed by `bin/Google.OrTools.Flatzinc.dll'.  Stop.

Michael Powell

unread,
May 18, 2017, 12:05:28 AM5/18/17
to or-tools-discuss


On Wednesday, May 17, 2017 at 11:02:53 PM UTC-4, Mark wrote:
java and csharp now work on Windows 7 64bit, Visual Studio 2013 64bit.  
make csharpfz is currently failing:

I'll look into that tomorrow.

Michael Powell

unread,
May 20, 2017, 3:13:50 PM5/20/17
to or-tools-discuss


On Thursday, May 18, 2017 at 12:05:28 AM UTC-4, Michael Powell wrote:


On Wednesday, May 17, 2017 at 11:02:53 PM UTC-4, Mark wrote:
java and csharp now work on Windows 7 64bit, Visual Studio 2013 64bit.  
make csharpfz is currently failing:

I'll look into that tomorrow.

Sorry for the delay. I have a build working on my local machine. Will have a PR coming shortly this afternoon.

Michael Powell

unread,
May 20, 2017, 10:13:33 PM5/20/17
to or-tools-discuss


On Saturday, May 20, 2017 at 3:13:50 PM UTC-4, Michael Powell wrote:


On Thursday, May 18, 2017 at 12:05:28 AM UTC-4, Michael Powell wrote:


On Wednesday, May 17, 2017 at 11:02:53 PM UTC-4, Mark wrote:
java and csharp now work on Windows 7 64bit, Visual Studio 2013 64bit.  
make csharpfz is currently failing:

I'll look into that tomorrow.

Sorry for the delay. I have a build working on my local machine. Will have a PR coming shortly this afternoon.

I am poised to commit a couple of things. I will also add ./gen/ to the .gitignore if it hasn't already been as I gather these are generated code that should be ignored in the commit. Not sure why they aren't already added, to be honest, unless there was an errant commit to the .gitignore, etc.

Michael Powell

unread,
May 20, 2017, 10:15:45 PM5/20/17
to or-tools-discuss


On Saturday, May 20, 2017 at 10:13:33 PM UTC-4, Michael Powell wrote:


On Saturday, May 20, 2017 at 3:13:50 PM UTC-4, Michael Powell wrote:


On Thursday, May 18, 2017 at 12:05:28 AM UTC-4, Michael Powell wrote:


On Wednesday, May 17, 2017 at 11:02:53 PM UTC-4, Mark wrote:
java and csharp now work on Windows 7 64bit, Visual Studio 2013 64bit.  
make csharpfz is currently failing:

I'll look into that tomorrow.

Sorry for the delay. I have a build working on my local machine. Will have a PR coming shortly this afternoon.

I am poised to commit a couple of things. I will also add ./gen/ to the .gitignore if it hasn't already been as I gather these are generated code that should be ignored in the commit. Not sure why they aren't already added, to be honest, unless there was an errant commit to the .gitignore, etc.

Ah, I see what happened, though I'm not sure what the problem was with ./src/ as compared/contrasted with ./ortools/.

Mark

unread,
Aug 27, 2017, 4:48:51 PM8/27/17
to or-tools-discuss
Currently getting a compilation error when trying to build with Visual Studio 2017 on Windows 7.
(On a side note, for some reason it's trying to use VS14 instead of VS15 despite using the VS15 Native Tools Command Prompt - I'm not sure what's causing that.
We may need to check how the version of visual studio is being detected if both are installed on the same system).
Is this saying it's having difficulty finding nmake?  Do you do something special to fix that?



-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
CMake Error: Generator: execution of make failed. Make command was: "nmake" "/NOLOGO" "cmTC_26969\fast"
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- broken
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio
  14.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/Path/to/or-tools/dependencies/sources/gflags-2.2.0/build_cmake/CMakeFiles/CMakeTmp



  Run Build Command:"nmake" "/NOLOGO" "cmTC_26969\fast"

  The system cannot find the file specified

  Generator: execution of make failed.  Make command was: "nmake" "/NOLOGO"
  "cmTC_26969\fast"

Mark

unread,
Nov 20, 2017, 10:06:16 PM11/20/17
to or-tools-discuss
Currently getting a compilation error when trying to build from source with Visual Studio 2017 on Windows 7.

make: *** [dependencies\sources\protobuf-3.5.0\cmake\build\protobuf.sln] Error 1

A quick check confirms the following directory exists but is empty:

  dependencies\sources\protobuf-3.5.0\cmake\build\

Laurent Perron

unread,
Nov 20, 2017, 10:09:21 PM11/20/17
to or-tools-discuss
I will look into it tomorrow.
In the meantime, you can change manually PROTOBUF_TAG to 3.4.1 in makefiles/Makefile.third_party.win.mk.

Can you check the cmake command was run?

On my mac, the cmake/build is not empty.

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


--

Mark

unread,
Dec 19, 2017, 12:30:32 AM12/19/17
to or-tools-discuss
Error during "make cc" with current source code.  Windows 7, Visual Studio 2017 v15.5.2:

cl /EHsc /MD /nologo -nologo  /O2 -DNDEBUG /I. /Iortools\\gen /IC:\\Path\\To\\or-tools\\dependencies\\install\\include /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /IC:\\Path\\To\\or-tools\\dependencies\\install\\include  /IC:\\Path\\To\\or-tools\\dependencies\\install\\include /I\\include /DGOOGLE_GLOG_DLL_DECL= /IC:\\Path\\To\\or-tools\\dependencies\\install\\include /IC:\\Path\\To\\or-tools\\dependencies\\install\\include\\coin /DUSE_CBC /IC:\\Path\\To\\or-tools\\dependencies\\install\\include /IC:\\Path\\To\\or-tools\\dependencies\\install\\include\\coin /DUSE_CLP   /IC:\\gurobi752\win64\include /DUSE_GUROBI /DUSE_GLOP /DUSE_BOP /D__WIN32__ /DPSAPI_VERSION=1 -c .\\ortools\\graph\\connected_components.cc /Foobjs\\graph\\connected_components.obj
connected_components.cc
.\ortools\graph\connected_components.cc(73): error C2039: 'max': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\include\iostream(13): note: see declaration of 'std'
.\ortools\graph\connected_components.cc(73): error C3861: 'max': identifier not found
.\ortools\graph\connected_components.cc(73): error C2789: 'min_num_nodes': an object of const-qualified type must be initialized
.\ortools\graph\connected_components.cc(73): note: see declaration of 'min_num_nodes'
make: *** [objs/graph/connected_components.obj] Error 2

Laurent Perron

unread,
Dec 19, 2017, 5:55:23 AM12/19/17
to or-tools-discuss
Should be fixed.

Thanks

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


--

Mark

unread,
Dec 19, 2017, 1:39:51 PM12/19/17
to or-tools-discuss
Next error in "make cc":

cl /EHsc /MD /nologo -nologo  /O2 -DNDEBUG /I. /Iortools\\gen /IC:\\Path\\To\\or-tools\\dependencies\\install\\include /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /IC:\\Path\\To\\or-tools\\dependencies\\install\\include  /IC:\\Path\\To\\or-tools\\dependencies\\install\\include /I\\include /DGOOGLE_GLOG_DLL_DECL= /IC:\\Path\\To\\or-tools\\dependencies\\install\\include /IC:\\Path\\To\\or-tools\\dependencies\\install\\include\\coin /DUSE_CBC /IC:\\Path\\To\\or-tools\\dependencies\\install\\include /IC:\\Path\\To\\or-tools\\dependencies\\install\\include\\coin /DUSE_CLP    /DUSE_GLOP /DUSE_BOP /D__WIN32__ /DPSAPI_VERSION=1 -c .\\ortools\\constraint_solver\\ac4_mdd_reset_table.cc /Foobjs\\constraint_solver\\ac4_mdd_reset_table.obj
ac4_mdd_reset_table.cc
ortools\gen\ortools/constraint_solver/model.pb.h(33): fatal error C1083: Cannot open include file: 'ortools/constraint_solver/search_limit.pb.h': No such file or directory
make: *** [objs/constraint_solver/ac4_mdd_reset_table.obj] Error 2

Laurent Perron

unread,
Dec 19, 2017, 3:26:44 PM12/19/17
to or-tools-discuss
Fixed.

Thansk!!

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


--

Mark

unread,
Dec 20, 2017, 1:24:28 AM12/20/17
to or-tools-discuss
"make cc" now works fine.  
Next error in "make archive", specifically in the target "make dotnet_archive":

copy examples\\data\\discrete_tomography\\* temp\\or-tools_VisualStudio2017-64bit_v6.6.4698\\examples\\data\\discrete_tomography
The system cannot find the path specified.
make: *** [dotnet_archive] Error 1

Mark

unread,
Dec 1, 2019, 9:18:41 PM12/1/19
to or-tools-discuss
Received this same error on 2 different machines (Windows 7 using VS2019, and Windows 10 using VS2017):
Issue:  error during make third_party
Log:
.
.
.
include/google/protobuf/wrappers.proto
tools\win\rm.exe -rf dependencies/sources/abseil-cpp-8ba96a8
git clone --quiet https://github.com/abseil/abseil-cpp.git dependencies\sources\abseil-cpp-8ba96a8
cd dependencies\sources\abseil-cpp-8ba96a8 && git reset --hard 8ba96a8
HEAD is now at 8ba96a8 Export of internal Abseil changes
cd dependencies\sources\abseil-cpp-8ba96a8 && git apply "C:\\Path\\To\\or-tools\patches\abseil-cpp-8ba96a8.patch"
error: can't open patch 'C://Path//To//or-tools/patches/abseil-cpp-8ba96a8.patch': No such file or directory
make: *** [dependencies/sources/abseil-cpp-8ba96a8] Error 128

Laurent Perron

unread,
Dec 2, 2019, 5:00:27 AM12/2/19
to or-tools-discuss
Thanks. 

I fixed it.

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/62607d11-cfe0-433c-b4cc-51da10c73446%40googlegroups.com.

Mark

unread,
Dec 2, 2019, 6:52:26 PM12/2/19
to or-tools-discuss
That fixed it.  

I'm getting a different error further along in "make cc" using VS2019 on Windows 7 (I received a different internal compiler error using VS2017 on Windows 10, not sure if it was at the same location):

cl /EHsc /MD /nologo -nologo  /D__WIN32__ /DPSAPI_VERSION=1 /DNOMINMAX /DWIN32_LEAN_AND_MEAN=1 /D_CRT_SECURE_NO_WARNINGS /O2 -DNDEBUG /I. /Iortools/ge
n /I"dependencies\\install\\include" /I"dependencies\\install\\include" /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /I"dep
endencies\\install\\include" /DGOOGLE_GLOG_DLL_DECL= /I"dependencies\\install\\include" /I"dependencies\\install\\include" /I"dependencies\\install\\i
nclude\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\
\include\\coin" /DUSE_CLP /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependenci
es\\install\\include\\coin" /DUSE_CBC /DUSE_GLOP /DUSE_BOP      /DOR_TOOLS_MAJOR=7 /DOR_TOOLS_MINOR=4 -c ortools\\gen\\ortools\\constraint_solver\\sol
ver_parameters.pb.cc /Foobjs\\constraint_solver\\solver_parameters.pb.obj
md lib
lib \
 /OUT:lib\\ortools.lib \
 objs/base/bitmap.obj objs/base/file.obj objs/base/logging.obj objs/base/random.obj objs/base/recordio.obj objs/base/sysinfo.obj objs/base/threadpool.
obj objs/base/timer.obj objs/base/version.obj \
 objs/port/file_nonport.obj objs/port/sysinfo_nonport.obj \
 objs/util/bitset.obj objs/util/cached_log.obj objs/util/file_util.obj objs/util/fp_utils.obj objs/util/graph_export.obj objs/util/piecewise_linear_fu
nction.obj objs/util/proto_tools.obj objs/util/range_query_function.obj objs/util/rational_approximation.obj objs/util/sigint.obj objs/util/sorted_int
erval_list.obj objs/util/stats.obj objs/util/time_limit.obj objs/util/optional_boolean.pb.obj \
 objs/data/jobshop_scheduling_parser.obj objs/data/rcpsp_parser.obj objs/data/set_covering_data.obj objs/data/set_covering_parser.obj objs/data/jobsho
p_scheduling.pb.obj objs/data/rcpsp.pb.obj \
 objs/lp_data/lp_data.obj objs/lp_data/lp_data_utils.obj objs/lp_data/lp_decomposer.obj objs/lp_data/lp_print_utils.obj objs/lp_data/lp_types.obj objs
/lp_data/lp_utils.obj objs/lp_data/matrix_scaler.obj objs/lp_data/matrix_utils.obj objs/lp_data/model_reader.obj objs/lp_data/mps_reader.obj objs/lp_d
ata/proto_utils.obj objs/lp_data/sparse.obj objs/lp_data/sparse_column.obj \
 objs/glop/basis_representation.obj objs/glop/dual_edge_norms.obj objs/glop/entering_variable.obj objs/glop/initial_basis.obj objs/glop/lp_solver.obj
objs/glop/lu_factorization.obj objs/glop/markowitz.obj objs/glop/preprocessor.obj objs/glop/primal_edge_norms.obj objs/glop/reduced_costs.obj objs/glo
p/revised_simplex.obj objs/glop/status.obj objs/glop/update_row.obj objs/glop/variable_values.obj objs/glop/variables_info.obj objs/glop/parameters.pb
.obj \
 objs/graph/assignment.obj objs/graph/astar.obj objs/graph/bellman_ford.obj objs/graph/cliques.obj objs/graph/connected_components.obj objs/graph/dijk
stra.obj objs/graph/linear_assignment.obj objs/graph/max_flow.obj objs/graph/min_cost_flow.obj objs/graph/perfect_matching.obj objs/graph/shortestpath
s.obj objs/graph/util.obj objs/graph/flow_problem.pb.obj \
 objs/algorithms/dynamic_partition.obj objs/algorithms/dynamic_permutation.obj objs/algorithms/find_graph_symmetries.obj objs/algorithms/hungarian.obj
 objs/algorithms/knapsack_solver.obj objs/algorithms/knapsack_solver_for_cuts.obj objs/algorithms/sparse_permutation.obj \
 objs/sat/all_different.obj objs/sat/boolean_problem.obj objs/sat/circuit.obj objs/sat/clause.obj objs/sat/cp_constraints.obj objs/sat/cp_model.obj ob
js/sat/cp_model_checker.obj objs/sat/cp_model_expand.obj objs/sat/cp_model_lns.obj objs/sat/cp_model_loader.obj objs/sat/cp_model_objective.obj objs/s
at/cp_model_presolve.obj objs/sat/cp_model_search.obj objs/sat/cp_model_solver.obj objs/sat/cp_model_symmetries.obj objs/sat/cp_model_utils.obj objs/s
at/cumulative.obj objs/sat/cuts.obj objs/sat/diffn.obj objs/sat/disjunctive.obj objs/sat/drat_checker.obj objs/sat/drat_proof_handler.obj objs/sat/dra
t_writer.obj objs/sat/encoding.obj objs/sat/implied_bounds.obj objs/sat/integer.obj objs/sat/integer_expr.obj objs/sat/integer_search.obj objs/sat/int
ervals.obj objs/sat/linear_constraint.obj objs/sat/linear_constraint_manager.obj objs/sat/linear_programming_constraint.obj objs/sat/linear_relaxation
.obj objs/sat/lp_utils.obj objs/sat/optimization.obj objs/sat/overload_checker.obj objs/sat/pb_constraint.obj objs/sat/precedences.obj objs/sat/presol
ve_context.obj objs/sat/presolve_util.obj objs/sat/probing.obj objs/sat/pseudo_costs.obj objs/sat/restart.obj objs/sat/rins.obj objs/sat/sat_decision.
obj objs/sat/sat_solver.obj objs/sat/simplification.obj objs/sat/subsolver.obj objs/sat/symmetry.obj objs/sat/synchronization.obj objs/sat/table.obj o
bjs/sat/theta_tree.obj objs/sat/timetable.obj objs/sat/timetable_edgefinding.obj objs/sat/util.obj objs/sat/boolean_problem.pb.obj objs/sat/cp_model.p
b.obj objs/sat/sat_parameters.pb.obj \
 objs/bop/bop_base.obj objs/bop/bop_fs.obj objs/bop/bop_lns.obj objs/bop/bop_ls.obj objs/bop/bop_portfolio.obj objs/bop/bop_solution.obj objs/bop/bop_
solver.obj objs/bop/bop_util.obj objs/bop/complete_optimizer.obj objs/bop/integral_solver.obj objs/bop/bop_parameters.pb.obj \
 objs/linear_solver/bop_interface.obj objs/linear_solver/cbc_interface.obj objs/linear_solver/clp_interface.obj objs/linear_solver/cplex_interface.obj
 objs/linear_solver/glop_interface.obj objs/linear_solver/glop_utils.obj objs/linear_solver/glpk_interface.obj objs/linear_solver/gurobi_environment.o
bj objs/linear_solver/gurobi_interface.obj objs/linear_solver/gurobi_proto_solver.obj objs/linear_solver/linear_expr.obj objs/linear_solver/linear_sol
ver.obj objs/linear_solver/model_exporter.obj objs/linear_solver/model_validator.obj objs/linear_solver/sat_interface.obj objs/linear_solver/sat_proto
_solver.obj objs/linear_solver/sat_solver_utils.obj objs/linear_solver/scip_interface.obj objs/linear_solver/scip_proto_solver.obj objs/linear_solver/
xpress_interface.obj objs/linear_solver/linear_solver.pb.obj \
 objs/constraint_solver/alldiff_cst.obj objs/constraint_solver/assignment.obj objs/constraint_solver/constraint_solver.obj objs/constraint_solver/cons
traints.obj objs/constraint_solver/count_cst.obj objs/constraint_solver/default_search.obj objs/constraint_solver/demon_profiler.obj objs/constraint_s
olver/deviation.obj objs/constraint_solver/diffn.obj objs/constraint_solver/element.obj objs/constraint_solver/expr_array.obj objs/constraint_solver/e
xpr_cst.obj objs/constraint_solver/expressions.obj objs/constraint_solver/graph_constraints.obj objs/constraint_solver/interval.obj objs/constraint_so
lver/local_search.obj objs/constraint_solver/model_cache.obj objs/constraint_solver/pack.obj objs/constraint_solver/range_cst.obj objs/constraint_solv
er/resource.obj objs/constraint_solver/routing.obj objs/constraint_solver/routing_breaks.obj objs/constraint_solver/routing_flags.obj objs/constraint_
solver/routing_flow.obj objs/constraint_solver/routing_index_manager.obj objs/constraint_solver/routing_lp_scheduling.obj objs/constraint_solver/routi
ng_neighborhoods.obj objs/constraint_solver/routing_parameters.obj objs/constraint_solver/routing_sat.obj objs/constraint_solver/routing_search.obj ob
js/constraint_solver/sched_constraints.obj objs/constraint_solver/sched_expr.obj objs/constraint_solver/sched_search.obj objs/constraint_solver/search
.obj objs/constraint_solver/table.obj objs/constraint_solver/timetabling.obj objs/constraint_solver/trace.obj objs/constraint_solver/utilities.obj obj
s/constraint_solver/visitor.obj objs/constraint_solver/assignment.pb.obj objs/constraint_solver/demon_profiler.pb.obj objs/constraint_solver/routing_e
nums.pb.obj objs/constraint_solver/routing_parameters.pb.obj objs/constraint_solver/search_limit.pb.obj objs/constraint_solver/solver_parameters.pb.ob
j \
 psapi.lib ws2_32.lib shlwapi.lib     "dependencies\\install\lib\zlib.lib" "dependencies\\install\lib\gflags_static.lib" "dependencies\\install\lib\gl
og.lib" "dependencies\\install\lib\libprotobuf.lib" "dependencies\\install\lib\absl_*.lib" "dependencies\\install\lib\coin\libCbcSolver.lib" "dependen
cies\\install\lib\coin\libCbc.lib" "dependencies\\install\lib\coin\libCgl.lib" "dependencies\\install\lib\coin\libClp.lib" "dependencies\\install\lib\
coin\libOsiClp.lib" "dependencies\\install\lib\coin\libOsi.lib" "dependencies\\install\lib\coin\libCoinUtils.lib" \

Microsoft (R) Library Manager Version 14.23.28105.4
Copyright (C) Microsoft Corporation.  All rights reserved.

ws2_32.lib(WS2_32.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in psapi.lib(PSAPI.DLL); second definition ignored
shlwapi.lib(SHLWAPI.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in psapi.lib(PSAPI.DLL); second definition ignored

Mark

unread,
Dec 2, 2019, 9:29:25 PM12/2/19
to or-tools-discuss
And here is the other error I just referred to (Windows 10, VS2017):

cl /EHsc /MD /nologo -nologo  /D__WIN32__ /DPSAPI_VERSION=1 /DNOMINMAX /DWIN32_LEAN_AND_MEAN=1 /D_CRT_SECURE_NO_WARNINGS /O2 -DNDEBUG /I. /Iortools/gen /I"dependencies\\install\\include" /I"dependencies\\install\\include" /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /I"dependencies\\install\\include" /DGOOGLE_GLOG_DLL_DECL= /I"dependencies\\install\\include" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /DUSE_CLP /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /DUSE_CBC /DUSE_GLOP /DUSE_BOP      /DOR_TOOLS_MAJOR=7 /DOR_TOOLS_MINOR=4 -c .\\ortools\\glop\\initial_basis.cc /Foobjs\\glop\\initial_basis.obj
initial_basis.cc
c:\Path\To\or-tools\dependencies\install\include\absl\container\internal\compressed_tuple.h(87) : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'd:\agent\_work\3\s\src\vctools\compiler\utc\src\p2\main.c', line 187)
 To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information

c:\Path\To\or-tools\dependencies\install\include\absl\container\internal\compressed_tuple.h(87) : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'd:\agent\_work\3\s\src\vctools\compiler\utc\src\common\error.c', line 835)
 To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information
make: *** [objs/glop/initial_basis.obj] Error 3

Mark

unread,
Jan 30, 2020, 10:34:04 PM1/30/20
to or-tools-discuss
Just tried again with today's code.  The compressed_tuple.h error still exists.  (Windows 10, VS2017).

cl /EHsc /MD /nologo -nologo  /D__WIN32__ /DPSAPI_VERSION=1 /DNOMINMAX /DWIN32_LEAN_AND_MEAN=1 /D_CRT_SECURE_NO_WARNINGS /O2 -DNDEBUG /I. /Iortools/gen /I"dependencies\\install\\include" /I"dependencies\\install\\include" /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /I"dependencies\\install\\include" /DGOOGLE_GLOG_DLL_DECL= /I"dependencies\\install\\include" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /DUSE_CLP /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /DUSE_CBC /DUSE_GLOP /DUSE_BOP      /DOR_TOOLS_MAJOR=7 /DOR_TOOLS_MINOR=5 -c .\\ortools\\glop\\initial_basis.cc /Foobjs\\glop\\initial_basis.obj

Laurent Perron

unread,
Jan 31, 2020, 3:18:51 AM1/31/20
to or-tools-discuss
yes. 
We dropped support for 2017. I have no solution.

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.


--
--Laurent

Jan Gregor

unread,
Jan 31, 2020, 4:36:53 AM1/31/20
to or-tools-discuss
I hope that the problem with internal error was reported to Microsoft.
By the way, from following link it seems that microsoft compiler isn't the only option in VS2017 and maybe compilation error can be solved by alternative compiler.



On Friday, January 31, 2020 at 9:18:51 AM UTC+1, Laurent Perron wrote:
yes. 
We dropped support for 2017. I have no solution.

Le ven. 31 janv. 2020 à 04:34, Mark <slash...@gmail.com> a écrit :
Just tried again with today's code.  The compressed_tuple.h error still exists.  (Windows 10, VS2017).

cl /EHsc /MD /nologo -nologo  /D__WIN32__ /DPSAPI_VERSION=1 /DNOMINMAX /DWIN32_LEAN_AND_MEAN=1 /D_CRT_SECURE_NO_WARNINGS /O2 -DNDEBUG /I. /Iortools/gen /I"dependencies\\install\\include" /I"dependencies\\install\\include" /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /I"dependencies\\install\\include" /DGOOGLE_GLOG_DLL_DECL= /I"dependencies\\install\\include" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /DUSE_CLP /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /DUSE_CBC /DUSE_GLOP /DUSE_BOP      /DOR_TOOLS_MAJOR=7 /DOR_TOOLS_MINOR=5 -c .\\ortools\\glop\\initial_basis.cc /Foobjs\\glop\\initial_basis.obj
initial_basis.cc
c:\Path\To\or-tools\dependencies\install\include\absl\container\internal\compressed_tuple.h(87) : fatal error C1001: An internal error has occurred in the compiler.

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools...@googlegroups.com.


--
--Laurent

Mark

unread,
Jan 31, 2020, 10:48:53 AM1/31/20
to or-tools-discuss
Thanks, VS2019 worked.  Hadn't realized 2017 was dropped.

Michael W Powell

unread,
Jan 31, 2020, 1:46:26 PM1/31/20
to or-tools-discuss


On Friday, January 31, 2020 at 3:18:51 AM UTC-5, Laurent Perron wrote:
yes. 
We dropped support for 2017. I have no solution.

Am I correct in understanding the "drop" is in terms of build pipeline?

In other words, the product of the build still targets the same dotnet
standard frameworks?

Thank you...
 
Le ven. 31 janv. 2020 à 04:34, Mark <slash...@gmail.com> a écrit :
Just tried again with today's code.  The compressed_tuple.h error still exists.  (Windows 10, VS2017).

cl /EHsc /MD /nologo -nologo  /D__WIN32__ /DPSAPI_VERSION=1 /DNOMINMAX /DWIN32_LEAN_AND_MEAN=1 /D_CRT_SECURE_NO_WARNINGS /O2 -DNDEBUG /I. /Iortools/gen /I"dependencies\\install\\include" /I"dependencies\\install\\include" /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /I"dependencies\\install\\include" /DGOOGLE_GLOG_DLL_DECL= /I"dependencies\\install\\include" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /DUSE_CLP /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /I"dependencies\\install\\include" /I"dependencies\\install\\include\\coin" /DUSE_CBC /DUSE_GLOP /DUSE_BOP      /DOR_TOOLS_MAJOR=7 /DOR_TOOLS_MINOR=5 -c .\\ortools\\glop\\initial_basis.cc /Foobjs\\glop\\initial_basis.obj
initial_basis.cc
c:\Path\To\or-tools\dependencies\install\include\absl\container\internal\compressed_tuple.h(87) : fatal error C1001: An internal error has occurred in the compiler.

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools...@googlegroups.com.


--
--Laurent

Laurent Perron

unread,
Jan 31, 2020, 5:04:16 PM1/31/20
to or-tools-discuss
Yes, it only affects C++, and the redistributable libraries you need to install for python/java/.NET.

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/c62c7fe4-a3be-475c-93dd-6696063b56b1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages