This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The 'populate' script


Yan, All,

> The populate script is installed by crosstool-NG along with the other
> cross-tools. You will find it in the toolchain's bin directory, such as:
> Â# ls /opt/x-tools/arm-unknown-linux-gnu/bin/*populate*
> Â/opt/x-tools/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-populate

That is exactly what I expected, however, the 'find' result didn't agree:

$ sudo find / -name "*populate*" -print
/usr/local/src/crosstool-ng-1.8.2/scripts/populate.in
/usr/local/src/gccCross/targets/src/gcc-4.4.3/libstdc++-v3/testsuite/util/io/text_populate.hpp
/usr/local/src/gcc-4.5.1/libstdc++-v3/testsuite/util/io/text_populate.hpp
/usr/local/lib/ct-ng-1.8.2/scripts/populate.in
/usr/bin/svn-populate-node-origins-index
/usr/src/linux-headers-2.6.32-21-generic/include/config/arch/populates

As you can see no such script found anywhere, would it be due to my
recent 'ct-ng build' break out in the middle of 'Installing binutils
for target' as reported earlier?  Any idea how to resolve this issue:

[ERROR]    configure: error: in
`/usr/local/src/gccCross/targets/arm-none-linux-gnueabi/build/build-binutils-for-target/libiberty':
[ERROR]    configure: error: cannot run test program while cross compiling
[ALL  ]    See `config.log' for more details.
[ERROR]    make[1]: *** [configure-libiberty] Error 1
[ALL  ]    make[1]: Leaving directory
`/usr/local/src/gccCross/targets/arm-none-linux-gnueabi/build/build-binutils-for-target'
[ERROR]    Build failed in step 'Installing binutils for target'
[ERROR]    Error happened in
'/usr/local/lib/ct-ng-1.8.2/scripts/functions' in function
'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from
'/usr/local/lib/ct-ng-1.8.2/scripts/build/binutils/binutils.sh' at
line # 114 in function 'do_binutils_target'
[ERROR]          called from
'/usr/local/lib/ct-ng-1.8.2/scripts/crosstool-NG.sh' at line # 586 in
function 'main'
[ERROR]    Look at '/opt/x-tools/arm-none-linux-gnueabi/build.log' for
more info on this error.
[ERROR]  (elapsed: 70:13.77)
make: *** [build] Error 2


> The sysroot of the toolchain contains the system part of the rootfs, such
> as system libraries (libc et al.) and system headers (stdio.h ...).
...
...
> Once you have installed all your packages in there, the staging area will
> contain all what your packages have installed, and only that. So it is not
> ready to be used to prepare the final file system for the target, as it
> will be missing the system libraries.
>
> Crosstool-NG helps you create a complete staging area by mean of the
> populate script.
...
...

> Hope this was clear enough. :-)

Loud and C L E A R!!!  :)  Explanation like this should add to overview.txt

Regards,
Samson

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]