Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-08-29 02:54:34


On Monday 28 August 2006 23:27, Russell L. Carter wrote:
> Greetings,
> I am trying to carefully follow the 'Extender Manual'
> and its example code in 'example/customization' (which
> builds fine) and I am missing something. For a quick
> test, I want to teach bjam how to build pdf's from
> latex files using rubber:
>
> file rubber.jam:
>
> import type ;
> type.register LATEX : tex : : main ;
> type.register LATEX_PDF : pdf ;
>
> import generators ;
>
> generators.register-standard latex.latex : LATEX : LATEX_PDF ;
>
> actions latex
> {
> rubber $(>)
> }
>
> file project-root.jam:
>
> import rubber ;
>
> file Jamfile:
>
> latex report.pdf : report.tex ;

This line requests V2 to produce a target of type LATEX, from source file
report.tex. The extension .tex corresponds to type LATEX, so the generators
system is asked to produce LATEX target from a single LATEX source. You did
not declare any generators that can do it.

I think using

   latex_pdf report.pdf : report.tex ;

will work better.

>
> Error:
>
> rcarter_at_feyerabend [275] bjam
> /usr/share/boost-build/build/targets.jam:1156: in construct from module
> object(typed-target)@1
> error: unable to construct ./report.pdf

You can always use --debug-generators to diagnose such issues.

> /usr/share/boost-build/build/targets.jam:1024: in
> object(typed-target)@1.generate from module object(typed-target)@1
> /usr/share/boost-build/build/targets.jam:546: in generate-really from
> module object(main-target)@1
> /usr/share/boost-build/build/targets.jam:519: in
> object(main-target)@1.generate from module object(main-target)@1
> /usr/share/boost-build/build/targets.jam:203: in
> object(project-target)@1.generate from module object(project-target)@1
> /usr/share/boost-build/build-system.jam:160: in load from module
> build-system /usr/share/boost-build/kernel/modules.jam:259: in import from
> module modules /usr/share/boost-build/kernel/bootstrap.jam:120: in
> boost-build from module /usr/share/boost-build/boost-build.jam:1: in module
> scope from module
>
> rcarter_at_feyerabend [276] bjam -v
> Boost.Jam Version 3.1.11. OS=LINUX.

And what's the output of

    bjam --version

?

> This is on a debian amd64 testing box, with boost-build installed
> from the debian package.

The Debian package is M10, while we've released M11 recently. M10 is more than
a year old.

> Note, the online documentation doesn't mention
> using 'main' in the type declaration, but it's described in the
> installed documentation, and exists in the build system jam files.

That's one difference from M10. In M11 you don't have to use 'main' in the
type decaration.

- Volodya

>
> TIA,
> Russell
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk