Problems building 4.2 docs

Bug #1469004 reported by tduell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Enblend
Fix Released
Undecided
Unassigned

Bug Description

Running into problems generating the pdf docs, on Fedora 21
if I run ./configure, it reports "can build all documentation: yes"
Building in rpmbuild using cmake, with -DDOC=ON, ps docs are generated OK.
Building in rpmbuild using cmake, with -DDOC=ON -DINSTALL_HTML_DOC=ON, both ps and html docs are generated.
Building in rpmbuild using cmake, with -DDOC=ON -DINSTALL_PDF_DOC=ON, my build fails with following info;

[ 35%] Generating fullsine.pstex
cd /home/terry/rpmbuild/BUILD/enblend-4.2.0-1180hg-Source/doc && /usr/bin/gnuplot --default-settings -e 'DATA_DIR="/home/terry/rpmbuild/BUILD/enblend-4.2.0-1180hg-Source/doc"' -e set\ output\ \"fullsine.tex\"\;\ set\ terminal\ epslatex\ /home/terry/rpmbuild/BUILD/enblend-4.2.0-1180hg-Source/doc/fullsine.gp
Error renaming from "exposure-weights.tex" to "exposure-weights.pstex": No such file or directory
doc/CMakeFiles/pdf.dir/build.make:351: recipe for target 'doc/exposure-weights.pstex' failed
make[2]: *** [doc/exposure-weights.pstex] Error 1

I also note that the ps and html docs are not the same. The ps contains a list of tables, html does not.
I note a minor a mistake in the ps 'list of tables', page 46, "Visualization colors an symbols...", suspect this should be "Visualization colors and symbols".

Cheers,
Terry

Revision history for this message
Bruno Postle (brunopostle) wrote :

Hi Terry, these are the fedora packages I need to build everything including docs for the enblend default branch:

boost-devel
freeglut-devel
glew-devel
gnuplot
gperftools-devel
gsl-devel
help2man
hevea
ImageMagick
lcms2-devel
libjpeg-devel
libpng-devel
libtiff-tools
libXi-devel
libXmu-devel
ocl-icd-devel
opencl-headers
OpenEXR-devel
perl(Digest::MD5)
plotutils-devel
texinfo
texinfo-tex
texlive-bigfoot
texlive-bold-extra
texlive-comment
texlive-epstopdf-bin
texlive-floatrow
texlive-hyphenat
texlive-latex-fonts
texlive-nag
texlive-shorttoc
texlive-thumbpdf
texlive-trivfloat
texlive-xstring
tidy
transfig
vigra-devel

Revision history for this message
tduell (tduell-iinet) wrote :

Thanks Bruno. I thought I had all the dependencies... I believed configure, but I had missed a couple.
Not a lot of joy though, it still fails to build pdf, this is the latest error report from rpmbuild, using '%cmake . -DENABLE_OPENMP=ON -DDOC=ON -DINSTALL_PDF_DOC=ON'.

[ 50%] Error renaming from "laplacian-of-gaussian.tex" to "laplacian-of-gaussian.pstex": No such file or directory
doc/CMakeFiles/ps.dir/build.make:389: recipe for target 'doc/laplacian-of-gaussian.pstex' failed
make[2]: *** [doc/laplacian-of-gaussian.pstex] Error 1

I've checked my dependencies against your list a few times, so if you are able to build all the docs, it must something I'm doing wrong here.

Cheers,
Terry

Revision history for this message
tduell (tduell-iinet) wrote :

A bit more grist t' mill on this, this morning I made another attempt to build, using rpmbuild on Fedora, a source archive generated (from enblend 69d6a6e14271 1183 source) via cmake and 'make package_source', and again using the build instruction in rpmbuild ...

'%cmake . -DENABLE_OPENMP=ON -DDOC=ON -DINSTALL_PDF_DOC=ON'.

The error is similar to previous...

cd /home/terry/rpmbuild/BUILD/enblend-4.2.0-1183hg-Source/doc && /usr/bin/cmake -E rename fullsine.tex fullsine.pstex
/usr/bin/cmake -E cmake_progress_report /home/terry/rpmbuild/BUILD/enblend-4.2.0-1183hg-Source/CMakeFiles 70
Error renaming from "fullsine.tex" to "fullsine.pstex": No such file or directory
doc/CMakeFiles/ps.dir/build.make:368: recipe for target 'doc/fullsine.pstex' failed
make[2]: *** [doc/fullsine.pstex] Error 1

When I snoop in /home/terry/rpmbuild/BUILD/enblend-4.2.0-1183hg-Source/doc I find files 'fullsine.eps', 'fullsine.gp', 'fullsine.pstex' and fullsine-eps-converted-to.pdf', so I a bit confused as to whether this is a bug or a local problem.

Cheers,
Terry

Revision history for this message
tmodes (tmodes) wrote :

Hi Terry,

please test if changeset 6696605bba09 fixes your issue.
If not, please add the full log of "make pdf" and not only the last line.

Revision history for this message
tduell (tduell-iinet) wrote :

Hello Thomas,
I just tried that changeset, using the following in my rpmbuild .spec file, a bit of a guess that this is what you wanted me to try.

%build
%cmake . -DENABLE_OPENMP=ON -DDOC=ON -DINSTALL_PDF_DOC=ON

make %{?_smp_mflags} && make pdf

The build process stopped numerous time, wanting user input...all related to doc generation, none of which I understood, and responded with a carriage return or the suggested input. The build did complete without error, and both ps and pdf docs were generated, and they look OK, but that was only a quick look.
Something in my build process, is not correct, but I have no idea what.
I got the impression that Bruno had successfully generated all the docs, but that may not have been using cmake.
Attached is file 'enblend-build.txt' which records all the output from the rpmbuild process. Hope it helps.

Cheers,
Terry

Revision history for this message
tmodes (tmodes) wrote :

Ok, there were same flags concerning error handling missing for pdflatex. Added in changeset 5f4573210cce.

Revision history for this message
tduell (tduell-iinet) wrote :

Hello Thomas,
I have just tried the latest changeset, built as per comment #5, but added -DENABLE_HTML_DOC=ON to test the full recipe.
The build still halts a few times with 'fatal error' being emitted twice from enfuse doc build, but these aren't rpmbuild errors.
As before, the process will continue with my keyboard input, and the rpmbuild process completes without error.
All the docs are there in usr/share/doc/enblend, but content not checked. The file sizes all look OK.
I have attached 'enblend-build-2.txt', which is a record of the rpmbuild process.

Cheers,
Terry

Revision history for this message
tmodes (tmodes) wrote :

Hi Terry,

I have currently no idea what goes wrong on your side. The error is triggered in enfuse.aux which is generated by pdflatex without an explicit command. I'm no TeX/LaTeX expert to interpret this error.
Maybe someone else has an idea.

By the way did you try it with a plain CMake command instead of complete rpmbuild chain?

Revision history for this message
tduell (tduell-iinet) wrote :

I have just run a few test local builds (not using rpmbuild), and everything builds and installs OK.
Attempting to emulate this successful process in rpmbuild still results in the process halting few times and waiting on user input, which has usually just been a carriage return, with the process finally running to completion, and it looks like all is built and installed correctly.
I can only conclude that the problem is mine, in that I am not specifying the rpmbuild process correctly.
Thanks for your help Thomas.

Revision history for this message
tmodes (tmodes) wrote :

Hi Terry,

some issues have been fixed with your help.

But I can't help with rpmbuild. Maybe rpmbuild is using some other environment variables for latex/pdflatex than rpmbuild (or not all necessary environment variables are passed into rpmbuild, just guessing)

The normal CMake works now, so I'm closing here.

Changed in enblend:
status: New → Fix Committed
Revision history for this message
tduell (tduell-iinet) wrote :

OK, thanks Thomas.

Revision history for this message
Christoph Spiel (cspiel) wrote :

Fixed in 4.2.

Changed in enblend:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.