You are not logged in.

#1 2018-08-20 17:59:35

dburkhardt
Member
Registered: 2017-04-20
Posts: 2

Difficulty rebuilding tensorflow locally

Hello, I'm not sure if this is the correct forum, but I recently updated Arch and I'm trying to rebuild tensorflow locally. However, when I download the package repo using asp and compile using makepkg, I'm getting the following error:

ERROR: /old/home/dan/build/tensorflow/repos/community-x86_64/src/tensorflow-1.8.0/tensorflow/python/BUILD:4990:1: Executing genrule //tensorflow/python:framework/fast_tensor_util.pyx_cython_translation failed (Exit 1)
Traceback (most recent call last):
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/execroot/org_tensorflow/bazel-out/host/bin/external/cython/cython_binary.runfiles/cython/cython.py", line 17, in <module>
    main(command_line = 1)
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/Main.py", line 720, in main
    result = compile(sources, options)
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/Main.py", line 695, in compile
    return compile_multiple(source, options)
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/Main.py", line 666, in compile_multiple
    context = options.create_context()
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/Main.py", line 590, in create_context
    self.cplus, self.language_level, options=self)
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/Main.py", line 75, in __init__
    from . import Builtin, CythonScope
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/CythonScope.py", line 5, in <module>
    from .UtilityCode import CythonUtilityCode
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/UtilityCode.py", line 3, in <module>
    from .TreeFragment import parse_from_strings, StringParseContext
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/TreeFragment.py", line 17, in <module>
    from .Visitor import VisitorTransform
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/Visitor.py", line 15, in <module>
    from . import ExprNodes
  File "/old/home/dan/.cache/bazel/_bazel_dan/fbd6237600e57928189ecbf822e96b60/external/cython/Cython/Compiler/ExprNodes.py", line 2875
    await = None
          ^
SyntaxError: invalid syntax
INFO: Elapsed time: 10.372s, Critical Path: 0.48s
INFO: 35 processes: 35 local.
FAILED: Build did NOT complete successfully
==> ERROR: A failure occurred in build().
    Aborting...

The commands to reproduce on my machine:

$ asp checkout tensorflow
$ cd tensorflow/repos/community-x86_64/
$ makepkg -si

I'm surprised because I did not edit the PKGBUILD script (although I would like to in order to configure using mkl support). I've been googling that error, and I cant seem to find any hits online including in the Arch Forum and on the tensorflow Issues board.

Any suggestions about how to start troubleshooting this?

Thanks,
Dan

Offline

#2 2018-08-20 18:11:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Difficulty rebuilding tensorflow locally

Current version is at 1.10

asp update tensorflow
git pull


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-08-20 20:20:35

dburkhardt
Member
Registered: 2017-04-20
Posts: 2

Re: Difficulty rebuilding tensorflow locally

Thanks @jasonwryan. I guess I should have posted this in Newbie Corner because I obviously didn't RTFM.

checkout TARGET...
           Create a new git repository containing the full source and history
           for each of the given targets. The new repository will pull from
           the repository in $ASPROOT and must be updated separately after
           using asp update. If a checkout occurs on the same filesystem as
           $ASPROOT, most of the metadata can be hard linked, making this a
           relatively cheap copy.

Thanks for the tip.

Offline

Board footer

Powered by FluxBB