Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2022 04:45:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 267233] graphics/tesseract: fails to build if science/py-tensorflow is installed
Message-ID:  <bug-267233-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267233

            Bug ID: 267233
           Summary: graphics/tesseract: fails to build if
                    science/py-tensorflow is installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jinxiaoyong@gmail.com
                CC: amzo1337@gmail.com, pkubaj@FreeBSD.org
                CC: amzo1337@gmail.com, pkubaj@FreeBSD.org

Created attachment 237494
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237494&action=
=3Dedit
add --without-tensorflow to CONFIGURE_ARGS

By default tesseract configure checks for tensorflow.  Tensorflow installed
from port breaks the build of tesseract, see error messages below.  The fau=
lt
is in the tensorflow port, though I'm not sure how to fix that.  For tesser=
act
to build, it's enough to patch the Makefile and add
CONFIGURE_ARGS+=3D--without-tensorflow

--- src/lstm/libtesseract_lstm_la-tfnetwork.pb.lo ---
In file included from src/lstm/tfnetwork.pb.cc:4:
./src/lstm/tfnetwork.pb.h:17:4: error: This file was generated by an older
version of protoc which is
#  error This file was generated by an older version of protoc which is
   ^=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20
./src/lstm/tfnetwork.pb.h:18:4: error: incompatible with your Protocol Buff=
er
headers.  Please
#  error incompatible with your Protocol Buffer headers.  Please
   ^=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20
./src/lstm/tfnetwork.pb.h:19:4: error: regenerate this file with a newer
version of protoc.
#  error regenerate this file with a newer version of protoc.
   ^=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20
--- src/lstm/libtesseract_lstm_la-tfnetwork.pb.lo ---
./src/lstm/tfnetwork.pb.h:25:10: fatal error:
'google/protobuf/generated_message_table_driven.h' file not found
#include <google/protobuf/generated_message_table_driven.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- src/lstm/libtesseract_lstm_la-network.lo ---
In file included from src/lstm/network.cpp:42:=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
In file included from ./src/lstm/tfnetwork.h:30:
In file included from /usr/local/include/tensorflow/core/public/session.h:2=
4:
/usr/local/include/tensorflow/core/framework/tensor.h:22:10: fatal error:
'third_party/eigen3/unsupported/Eigen/CXX11/Tensor' file not found
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- src/lstm/libtesseract_lstm_la-tfnetwork.lo ---
In file included from src/lstm/tfnetwork.cpp:20:
In file included from ./src/lstm/tfnetwork.h:30:
In file included from /usr/local/include/tensorflow/core/public/session.h:2=
4:
/usr/local/include/tensorflow/core/framework/tensor.h:22:10: fatal error:
'third_party/eigen3/unsupported/Eigen/CXX11/Tensor' file not found
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267233-7788>