Or-tools: Build is failing in ubuntu

Created on 21 Mar 2019  ·  8Comments  ·  Source: google/or-tools

Unable build the master branch in ubuntu 16.04

make third_party stopped at

-- Installing: /home/ubuntu/or-tools-master/dependencies/install/lib/libabsl_optional.a
-- Installing: /home/ubuntu/or-tools-master/dependencies/install/lib/libabsl_bad_optional_access.a
-- Installing: /home/ubuntu/or-tools-master/dependencies/install/lib/libabsl_bad_variant_access.a
_

make[1]: Leaving directory '/home/ubuntu/or-tools-master/dependencies/sources/abseil-cpp-bf29470/build_cmake'

_

make python failed at
fails with -c ortools/gen/ortools/algorithms/knapsack_solver_python_wrap.cc
-o objs/swig/knapsack_solver_python_wrap.o
g++: error: ortools/gen/ortools/algorithms/knapsack_solver_python_wrap.cc: No such file or directory
g++: fatal error: no input files
compilation terminated.

makefiles/Makefile.python.mk:123: recipe for target 'objs/swig/knapsack_solver_python_wrap.o' failed
make: * [objs/swig/knapsack_solver_python_wrap.o] Error 1

Bug C++ Python Linux

All 8 comments

@Mizux With same master branch we are able to build without any issue in mac OS

Did you install swig ?
Laurent Perron | Operations Research | [email protected] | (33) 1 42 68 53
00

Le jeu. 21 mars 2019 à 11:53, Arjunkumar notifications@github.com a
écrit :

@Mizux https://github.com/Mizux With same master branch we are able to
build without any issue in mac OS


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1144#issuecomment-475184911,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17bda5PpbfOwmpcdzmZkeOCxYxj1tks5vY2SQgaJpZM4cBKj8
.

@lperron No, I didnt. Should we do that in linux? it builds perfectly without it in mac

because xcode installs swig.

https://developers.google.com/optimization/install/python/source_linux
Laurent Perron | Operations Research | [email protected] | (33) 1 42 68 53
00

Le jeu. 21 mars 2019 à 12:04, Arjunkumar notifications@github.com a
écrit :

@lperron https://github.com/lperron No, I didnt. Should we do that in
linux? it builds perfectly without it in mac


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1144#issuecomment-475188050,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17e_YCYpcf09ym9ranEYaoNITBD3Dks5vY2dOgaJpZM4cBKj8
.

Got it Tx. Installed swig and building it now 🤞

make test_python failed
Traceback (most recent call last):
File "ortools/constraint_solver/samples/cvrptw_break.py", line 329, in
main()
File "ortools/constraint_solver/samples/cvrptw_break.py", line 325, in main
print_solution(data, manager, routing, assignment)
File "ortools/constraint_solver/samples/cvrptw_break.py", line 214, in print_solution
for i in xrange(intervals.Size()):
File "/home/ubuntu/or-tools-master/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 2553, in
__getattr__ = lambda self, name: _swig_getattr(self, IntervalContainer, name)
File "/home/ubuntu/or-tools-master/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 74, in _swig_getattr
return _swig_getattr_nondynamic(self, class_type, name, 0)
File "/home/ubuntu/or-tools-

master/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 69, in _swig_getattr_nondynamic
return object.__getattr__(self, name)
AttributeError: type object 'object' has no attribute '__getattr__'
makefiles/Makefile.python.mk:484: recipe for target 'rpy_cvrptw_break' failed
make: * [rpy_cvrptw_break] Error 1

found: code have bee nreverte during the last export form google3
https://github.com/google/or-tools/commit/814935dab7554273b3d6988c64b1d00f530414f1#diff-f745f826960b07eded785fe30b2d7ffd

On my way to revert this part...DONE

👍 It is fixed now

Was this page helpful?
0 / 5 - 0 ratings