[testing][build]Error in all my runners in docbook.jam

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[testing][build]Error in all my runners in docbook.jam

Boost - Build mailing list
My bjam log says:

notice: found boost-build.jam at C:/boost/develop/boost_root/boost-build.jam
notice: loading Boost.Build from C:/boost/develop/boost_bb/src
C:/boost/develop/boost_bb/src/tools/types\docbook.jam:8: in load
ERROR: rule "Copyright" unknown in module "docbook".
C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
C:/boost/develop/boost_bb/src/tools/types\register.jam:36: in load
C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
C:/boost/develop/boost_bb/src/tools\stage.jam:18: in load
C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
C:/boost/develop/boost_bb/src/tools\builtin.jam:27: in load
C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
c:/boost/develop/boost_bb/src\build-system.jam:12: in load
C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
C:\boost\develop\boost_bb\src/kernel/bootstrap.jam:139: in boost-build
C:\boost\develop\boost_root\boost-build.jam:17: in module scope


I noticed docbook.jam has a different comment style than other .jam files:

#|
Copyright 2017 Rene Rivera
Distributed under the Boost Software License, Version 1.0. (See
accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
|#

type DOCBOOK : docbook : XML ;

It seems that "Copyright" is being interpreted as a rule, and it's not
parsed as a command. Should I update something in my runners? I tried to
clean all build temporaries but it does not seem to solve anything.

Best,

Ion
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [testing][build]Error in all my runners in docbook.jam

Boost - Build mailing list
On 11/08/2017 10:58, Ion Gaztañaga via Boost-build wrote:
> It seems that "Copyright" is being interpreted as a rule, and it's not
> parsed as a command.

s/command/comment/
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [testing][build]Error in all my runners in docbook.jam

Boost - Build mailing list
In reply to this post by Boost - Build mailing list
Le 11.08.17 à 10:58, Ion Gaztañaga via Boost-build a écrit :

> My bjam log says:
>
> notice: found boost-build.jam at
> C:/boost/develop/boost_root/boost-build.jam
> notice: loading Boost.Build from C:/boost/develop/boost_bb/src
> C:/boost/develop/boost_bb/src/tools/types\docbook.jam:8: in load
> ERROR: rule "Copyright" unknown in module "docbook".
> C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
> C:/boost/develop/boost_bb/src/tools/types\register.jam:36: in load
> C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
> C:/boost/develop/boost_bb/src/tools\stage.jam:18: in load
> C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
> C:/boost/develop/boost_bb/src/tools\builtin.jam:27: in load
> C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
> c:/boost/develop/boost_bb/src\build-system.jam:12: in load
> C:\boost\develop\boost_bb\src/kernel\modules.jam:295: in import
> C:\boost\develop\boost_bb\src/kernel/bootstrap.jam:139: in boost-build
> C:\boost\develop\boost_root\boost-build.jam:17: in module scope
>
>
> I noticed docbook.jam has a different comment style than other .jam files:
>
> #|
> Copyright 2017 Rene Rivera
> Distributed under the Boost Software License, Version 1.0. (See
> accompanying file LICENSE_1_0.txt or copy at
> http://www.boost.org/LICENSE_1_0.txt)
> |#
>

This looks like the ASCIIDOCTOR markup Rene Rivera was mentioning in
this list, this same week.
I do not know if bjam is supposed to interpret the #| ... |# as one
block comment.

Raffi


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [testing][build]Error in all my runners in docbook.jam

Boost - Build mailing list
On 11/08/2017 13:55, Rene Rivera via Boost-Testing wrote:
>
> It is that.. Just rebuild b2 to handle the new block comments.

I deleted all my regression folder and found that bjam isn't properly
building. I guess my previous iterations were using an old bjam.exe.
build.bat output

strings.c(195) : error C2143: syntax error : missing ';' before 'type'
strings.c(196) : error C2065: 'p' : undeclared identifier
strings.c(196) : warning C4047: '>=' : 'int' differs in levels of
indirection from 'char *'

"char *p" is declared after the assertion which is illegal C90.

strings.c(240) : error C2143: syntax error : missing ';' before 'type'
strings.c(241) : error C2275: 'string' : illegal use of this type as an
expression
         c:\boost\develop\boost_bb\src\engine\strings.h(22) : see
declaration of 'string'
strings.c(241) : error C2146: syntax error : missing ';' before
identifier 'bar_copy'

"char * const bar" is declared in the middle of the scope.

Patch attached. My bjam builder is the old MSVC 7.1, but I guess that
same problem happens at least with MSVC2012.

Best,

Ion

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build

bbpatch.patch (1K) Download Attachment
Loading...