readthedocs.org: Illegal instruction error

Details

Expected Result

I regularly update the repo and the docs should rebuild.

Actual Result

In recent commits the building failed with the following error log when starting Sphinx:

python /home/docs/checkouts/readthedocs.org/user_builds/zhusuan/envs/latest/bin/sphinx-build -T -E -b readthedocs -d _build/doctrees-readthedocs -D language=en . _build/html
Running Sphinx v1.7.1
Illegal instruction

My local building works well and I’ve tried Sphinx 1.6.5 and 1.7.1. They both failed with the same error. Do you have an idea what the problem is?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (11 by maintainers)

Most upvoted comments

@stsewd @berkerpeksag I just updated the dev branch and found the memory error when downloading tensorflow 1.6.0.

Downgrading worked for me too. Thanks for reporting, and sharing work-around!

@stsewd Thanks for asking. It passed because I’m using TF 1.4. I haven’t got time to try the mock solution since I’m busy with other things these days. I will report in this thread once I try it.

I did some experiments on the dev branch. When I set TF to 1.4.0 in the doc requirements file, everything works well (build page). When I changed it to 1.6.0, the build failed with a MemoryError (build page) or Illegal instruction (build page).

I’m now using <=1.4.0 for a temporal fix. Should I request more memory for my project or wait for a fix?

Looking at http://readthedocs.org/projects/zhusuan/builds/6828690/, the return code is 132 which means sphinx-build was interrupted by SIGILL. I don’t rule out the OOM case since Python 2 is doing a poor job at handling OOM errors, but this might be caused by an extension module compiled with a flag that is not supported by CPU (or virtual CPU?) in our servers.

We probably need to check versions of all dependencies with extension modules (numpy, tensorflow, matplotlib etc.) in http://readthedocs.org/projects/zhusuan/builds/6828690/ (first failed build) and http://readthedocs.org/projects/zhusuan/builds/6822461/ (last completed build)