dmansfield / parsey-mcparseface-api

Serve the Parsey McParseface API using TF Serving infrastructure
Apache License 2.0
36 stars 2 forks source link

error in compiling syntaxnet model branch "documents-from-tensor" #2

Open boundles opened 8 years ago

boundles commented 8 years ago

Hi, when I compile syntaxnet model branch "documents-from-tensor", error occurs as follow: ERROR: /home/darren.wy/.cache/bazel/_bazel_darren.wy/ac581bc1223ed80290130d37625e326f/external/org_tensorflow/tensorflow/contrib/quantization/kernels/BUILD:86:1: C++ compilation of rule '@org_tensorflow//tensorflow/contrib/quantization/kernels:_quantized_kernels.so' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 ... (remaining 51 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. external/org_tensorflow/tensorflow/contrib/quantization/kernels/quantized_conv_ops.cc:21:47: fatal error: external/gemmlowp/public/gemmlowp.h: No such file or directory

include "external/gemmlowp/public/gemmlowp.h"

Could you give me some suggestions?Thanks.

dmansfield commented 8 years ago

See #1. I've updated the exact build steps I use in the README.md of the project. Can you follow these exact steps and see if it works for you?

Probably we have some missing system pre-requisites to find and install. My system has a lot of libraries pre-installed.

Probably we should try this in a fresh docker to determine what actual dependencies there are.

johndpope commented 8 years ago

fyi https://github.com/tensorflow/models/blob/master/syntaxnet/Dockerfile

If you're using gpu stuff -> you can use this https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/docker/Dockerfile.devel-gpu

I drafted this dockerfile with a git pull from a https://github.com/dsindex/syntaxnet (which includes your codebase) https://gist.github.com/johndpope/d41a7d6daf8652cbdaff41a2b063c801

but I hit this snag

screen shot 2016-10-03 at 23 36 02