Re: rtems-docs build failure

2018-12-23 Thread Chris Johns
On 23/12/18 2:56 am, Joel Sherrill wrote:
> Checking if Sphinx is at least 1.3       : yes (1.8) 

I have started to understand the PDF build issue. Sphinx creates a GNU make
Makefile in the latex directory that is to be used to build the PDF. The one I
see being created by sphinx-build 1.8 uses 'latexmk' to build the PDF.

The 'latexml' command internally calls 'xindy'. In my playing around I switched
to using 'xelatex' builder so I am not sure if this is resulting in 'xindy'
being used rather than 'makeindex'. I doubt it is related. The Makefile contains
flags for 'xindy' including a sphinx specific file.

The problem I am now facing is 'xindy' is not installed as a command with
texlive on FreeBSD. I am not yet sure if this is normal for FreeBSD or a
packaging issue. The packaged and installed 'latexmk' expects it to exist.

> [joel@localhost rtems-docs]$ ./waf
> Waf: Entering directory `/home/joel/rtems-work/rtems-docs/build'
> Waf: Leaving directory `/home/joel/rtems-work/rtems-docs/build'
> invalid number of source/target for bld(posted=True,
> target=[/home/joel/rtems-work/rtems-docs/build/user/latex/capt-of.sty,
> /home/joel/rtems-work/rtems-docs/build/user/latex/eqparbox.sty,
> /home/joel/rtems-work/rtems-docs/build/user/latex/environ.sty,
> /home/joel/rtems-work/rtems-docs/build/user/latex/ifplatform.sty,
> /home/joel/rtems-work/rtems-docs/build/user/latex/trimspaces.sty,
> /home/joel/rtems-work/rtems-docs/build/user/latex/slantsc.sty,
> /home/joel/rtems-work/rtems-docs/build/user/latex/upquote.sty,
> /home/joel/rtems-work/rtems-docs/build/user/latex/rtemsextrafonts.sty], idx=1,
> meths=['process_subst', 'process_rule', 'process_source'],
> source=['../common/latex/capt-of.sty', '../common/latex/eqparbox.sty',
> '../common/latex/environ.sty', '../common/latex/ifplatform.sty',
> '../common/latex/trimspaces.sty', '../common/latex/slantsc.sty',
> '../common/latex/upquote.sty'], path=/home/joel/rtems-work/rtems-docs/user,
> is_copy=True, features=['subst']) in /home/joel/rtems-work/rtems-docs/user

The target .sty files listed are not in my install. I am not sure what is
happening here.

> Texlive on this VM is 2018 and looks like I installed it in late November.

Do you have `xindy` as a command in your path? Is it installed as part of
texlive, if not which package?

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: rtems-docs build failure

2018-12-23 Thread Shashvat Jain
Hello Chris
I would like to add my problem here .
I am unable to properly install sphinx.
When I run ./waf Configure , it gives the following error ,
__

Setting top to   : /home/shashvat/rtems-docs
Setting out to   : /home/shashvat/rtems-docs/build
Checking version : 5.0.0 (master)
Checking for program 'sphinx-build'  : /usr/bin/sphinx-build
Checking for program 'aspell': /usr/bin/aspell
Checking if Sphinx is at least 1.3   : Traceback (most recent call
last):
  File 
"/home/shashvat/rtems-docs/.waf-1.9.7-d2740ebc8bcbca7fcd8f4ae914fb/waflib/Scripting.py",
line 120, in waf_entry_point
run_commands()
  File 
"/home/shashvat/rtems-docs/.waf-1.9.7-d2740ebc8bcbca7fcd8f4ae914fb/waflib/Scripting.py",
line 181, in run_commands
ctx=run_command(cmd_name)
  File 
"/home/shashvat/rtems-docs/.waf-1.9.7-d2740ebc8bcbca7fcd8f4ae914fb/waflib/Scripting.py",
line 172, in run_command
ctx.execute()
  File 
"/home/shashvat/rtems-docs/.waf-1.9.7-d2740ebc8bcbca7fcd8f4ae914fb/waflib/Configure.py",
line 85, in execute
super(ConfigurationContext,self).execute()
  File 
"/home/shashvat/rtems-docs/.waf-1.9.7-d2740ebc8bcbca7fcd8f4ae914fb/waflib/Context.py",
line 88, in execute
self.recurse([os.path.dirname(g_module.root_path)])
  File 
"/home/shashvat/rtems-docs/.waf-1.9.7-d2740ebc8bcbca7fcd8f4ae914fb/waflib/Context.py",
line 129, in recurse
user_function(self)
  File "/home/shashvat/rtems-docs/wscript", line 36, in configure
conf.recurse(b)
  File 
"/home/shashvat/rtems-docs/.waf-1.9.7-d2740ebc8bcbca7fcd8f4ae914fb/waflib/Context.py",
line 129, in recurse
user_function(self)
  File "/home/shashvat/rtems-docs/common/waf.py", line 216, in cmd_configure
ver = check_sphinx_version(ctx, sphinx_min_version)
  File "/home/shashvat/rtems-docs/common/waf.py", line 124, in
check_sphinx_version
ctx.fatal("Sphinx version cannot be checked: %s" % version)
UnboundLocalError: local variable 'version' referenced before assignment
__

Please help
I think Dr. Joel is facing a problem while
Running ./waf Configure with --pdf option
Enable.

Thank you
Regards
Shashvat

On Sat 22 Dec, 2018, 2:31 AM Chris Johns  On 22/12/18 1:52 am, Joel Sherrill wrote:
> > Just passing along that it still fails for me: Builds when not doing PDF
>
> What failed?
>
> > [joel@devel rtems-docs]$ ./waf configure --prefix=/tmp/docs --pdf
> > [joel@devel rtems-docs]$ ./waf && ./waf install
>
> The build or the install? Please run as separate commands.
>
> Thanks
> Chris
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: rtems-docs build failure

2018-12-23 Thread Joel Sherrill
Shashvat.. what's the output of sphinx-build --version? The format has
changed at least once and broken the version probe. I see this:

$ sphinx-build --version
sphinx-build 1.8.2


Chris... xindy

==
[joel@localhost rtems]$ xindy
xindy  xindy.run
[joel@localhost rtems]$ type xindy
xindy is /usr/local/texlive/2018/bin/x86_64-linux/xindy
[joel@localhost rtems]$ echo $PATH
/home/joel/.local/bin:/usr/local/texlive/2018/bin/x86_64-linux:/home/joel/rtems-work/tools/5/bin:/home/joel/rtems-work/rtems-testing/bin:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/bin:/home/joel/bin
==

Checking on one of the other machines, it has the same version of texlive
so xindy is included. On holiday so can't check the other two
installations. One of those for sure is older. I know I have sphinx-build
1.6 to 1.8 depending on the computer. But the texlive may not vary as much.

--joel

==

On Sun, Dec 23, 2018 at 3:52 AM Shashvat Jain 
wrote:

> Hello Chris
> I would like to add my problem here .
> I am unable to properly install sphinx.
> When I run ./waf Configure , it gives the following error ,
> __
>
> Setting top to   : /home/shashvat/rtems-docs
> Setting out to   : /home/shashvat/rtems-docs/
> build
> Checking version : 5.0.0 (master)
> Checking for program 'sphinx-build'  : /usr/bin/sphinx-build
> Checking for program 'aspell': /usr/bin/aspell
> Checking if Sphinx is at least 1.3   : Traceback (most recent call
> last):
>   File "/home/shashvat/rtems-docs/.waf-1.9.7-
> d2740ebc8bcbca7fcd8f4ae914fb/waflib/Scripting.py", line 120, in
> waf_entry_point
> run_commands()
>   File "/home/shashvat/rtems-docs/.waf-1.9.7-
> d2740ebc8bcbca7fcd8f4ae914fb/waflib/Scripting.py", line 181, in
> run_commands
> ctx=run_command(cmd_name)
>   File "/home/shashvat/rtems-docs/.waf-1.9.7-
> d2740ebc8bcbca7fcd8f4ae914fb/waflib/Scripting.py", line 172, in
> run_command
> ctx.execute()
>   File "/home/shashvat/rtems-docs/.waf-1.9.7-
> d2740ebc8bcbca7fcd8f4ae914fb/waflib/Configure.py", line 85, in execute
> super(ConfigurationContext,self).execute()
>   File "/home/shashvat/rtems-docs/.waf-1.9.7-
> d2740ebc8bcbca7fcd8f4ae914fb/waflib/Context.py", line 88, in execute
> self.recurse([os.path.dirname(g_module.root_path)])
>   File "/home/shashvat/rtems-docs/.waf-1.9.7-
> d2740ebc8bcbca7fcd8f4ae914fb/waflib/Context.py", line 129, in recurse
> user_function(self)
>   File "/home/shashvat/rtems-docs/wscript", line 36, in configure
> conf.recurse(b)
>   File "/home/shashvat/rtems-docs/.waf-1.9.7-
> d2740ebc8bcbca7fcd8f4ae914fb/waflib/Context.py", line 129, in recurse
> user_function(self)
>   File "/home/shashvat/rtems-docs/common/waf.py", line 216, in
> cmd_configure
> ver = check_sphinx_version(ctx, sphinx_min_version)
>   File "/home/shashvat/rtems-docs/common/waf.py", line 124, in
> check_sphinx_version
> ctx.fatal("Sphinx version cannot be checked: %s" % version)
> UnboundLocalError: local variable 'version' referenced before assignment
> __
>
> Please help
> I think Dr. Joel is facing a problem while
> Running ./waf Configure with --pdf option
> Enable.
>
> Thank you
> Regards
> Shashvat
>
> On Sat 22 Dec, 2018, 2:31 AM Chris Johns 
>> On 22/12/18 1:52 am, Joel Sherrill wrote:
>> > Just passing along that it still fails for me: Builds when not doing PDF
>>
>> What failed?
>>
>> > [joel@devel rtems-docs]$ ./waf configure --prefix=/tmp/docs --pdf
>> > [joel@devel rtems-docs]$ ./waf && ./waf install
>>
>> The build or the install? Please run as separate commands.
>>
>> Thanks
>> Chris
>> ___
>> devel mailing list
>> devel@rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>>
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: rtems-docs build failure

2018-12-23 Thread Chris Johns
On 24/12/18 4:11 am, Joel Sherrill wrote:
> 
> Chris... xindy
> 
> ==
> [joel@localhost rtems]$ xindy
> xindy      xindy.run  
> [joel@localhost rtems]$ type xindy
> xindy is /usr/local/texlive/2018/bin/x86_64-linux/xindy
> [joel@localhost rtems]$ echo $PATH
> /home/joel/.local/bin:/usr/local/texlive/2018/bin/x86_64-linux:/home/joel/rtems-work/tools/5/bin:/home/joel/rtems-work/rtems-testing/bin:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/bin:/home/joel/bin

Thanks. It looks like a build from source which installs this xindy command.

> Checking on one of the other machines, it has the same version of texlive so
> xindy is included. On holiday so can't check the other two installations. One 
> of
> those for sure is older. I know I have sphinx-build 1.6 to 1.8 depending on 
> the
> computer. But the texlive may not vary as much.

Yes I suspect it does not vary too much which is why I am confused by what I am
seeing. I cannot find much on the topic or I am not looking in the right spot.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: rtems-docs build failure

2018-12-23 Thread Joel Sherrill
On Sun, Dec 23, 2018, 4:16 PM Chris Johns  On 24/12/18 4:11 am, Joel Sherrill wrote:
> >
> > Chris... xindy
> >
> > ==
> > [joel@localhost rtems]$ xindy
> > xindy  xindy.run
> > [joel@localhost rtems]$ type xindy
> > xindy is /usr/local/texlive/2018/bin/x86_64-linux/xindy
> > [joel@localhost rtems]$ echo $PATH
> >
> /home/joel/.local/bin:/usr/local/texlive/2018/bin/x86_64-linux:/home/joel/rtems-work/tools/5/bin:/home/joel/rtems-work/rtems-testing/bin:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/bin:/home/joel/bin
>
> Thanks. It looks like a build from source which installs this xindy
> command.
>

I'm not building from source. I am installing the texlive binaries.

>
> > Checking on one of the other machines, it has the same version of
> texlive so
> > xindy is included. On holiday so can't check the other two
> installations. One of
> > those for sure is older. I know I have sphinx-build 1.6 to 1.8 depending
> on the
> > computer. But the texlive may not vary as much.
>
> Yes I suspect it does not vary too much which is why I am confused by what
> I am
> seeing. I cannot find much on the topic or I am not looking in the right
> spot.
>
> Chris
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: rtems-docs build failure

2018-12-23 Thread Chris Johns
On 24/12/18 9:35 am, Joel Sherrill wrote:
> 
> 
> On Sun, Dec 23, 2018, 4:16 PM Chris Johns   wrote:
> 
> On 24/12/18 4:11 am, Joel Sherrill wrote:
> >
> > Chris... xindy
> >
> > ==
> > [joel@localhost rtems]$ xindy
> > xindy      xindy.run  
> > [joel@localhost rtems]$ type xindy
> > xindy is /usr/local/texlive/2018/bin/x86_64-linux/xindy
> > [joel@localhost rtems]$ echo $PATH
> >
> 
> /home/joel/.local/bin:/usr/local/texlive/2018/bin/x86_64-linux:/home/joel/rtems-work/tools/5/bin:/home/joel/rtems-work/rtems-testing/bin:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/bin:/home/joel/bin
> 
> Thanks. It looks like a build from source which installs this xindy 
> command.
> 
> 
> I'm not building from source. I am installing the texlive binaries.
>

Yes, sorry, that I what I meant, you are using a specific install. The important
point is texlive expects there to be a xindy command.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel