Boost logo

Boost-Build :

Subject: Re: [Boost-build] Cannot build boost::serialization for x64 (crosscompile)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-19 12:06:23


AMDG

Pfligersdorffer, Christian wrote:
> using gcc : 4.0.0 : /path/to/ppc_6xx-g++;
>
> chooses the right compiler but still uses the wrong ar, objcopy and ld.
> Why?
> See also
> http://goodliffe.blogspot.com/2008/05/cross-compiling-boost.html
>

What are the correct ar, objcopy, and ld?

Boost.Build looks for a program call ar (e.g.), first
in the directory containing the compiler, and then
in PATH.

using gcc : 4.0.0 : /path/to/ppc_6xx-g++ : <archiver>/path/to/pcc_6xx-ar ;

I'm not sure how it picks the wrong ld, since it doesn't invoke ld directly
(only through g++, AFAIK).

> Approach 3.
>
> Finally if I create a ppc_bin folder with links g++ ->
> /path/to/ppc_6xx-g++ as I did for compiling version <= 1.35, now the
> clever bjam tries to run some resulting ppc-executables on my x86
> system!
>

Yeah, this is just wrong.

In Christ,
Steven Watanabe


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