maxime louvel wrote:
...
I want to install a gentoo system on a mpc8548amc (powerpc based board from
Freescale).
The board is following the powerpc standard (32bits) but has no Floating
Point Unit.

ok

Thus I have tryed to create a cross compiler powerpc-softfloat-linux-gnu.
I have followed the gentoo handbok to do that.

I assume you mean the gentoo embedded handbook? [1]

I have been able to emere portage (after a sync) for my CHOST.

I have tried to
emerge baselayout glibc binutils

There is what I start encountering trouble...

From the error message, it look as though you were cross-emerging on your host. Were you using the xmerge script in [1]?

At any rate, make sure to read Section 5 of [2] carefully:

"Warning: xmerge defaults to ROOT=$SYSROOT. Because SYSROOT is where the cross toolchain is hosted on the host system, if you need to cross emerge any toolchain components (i.e. gcc, system libc, binutils, kernel headers, or gdb) for hosting on the target system, you do not want to use ROOT=$SYSROOT; use the --root option to specify a different directory instead. If you ignore this warning, you will end up overwriting your cross toolchain with the target system's toolchain components and breaking cross emerging completely, and the only way to fix it will be to delete your SYSROOT directory and rebuild your cross toolchain."

I looked for this warning in [1] and couldn't find it. Perhaps it should be added? ;-)

So, if this looks like what happened to you, you'll need to start over. Delete $SYSROOT, and crossdev -C the toolchain, then rebuild it.

Once that's done, you can either use INSTALL_MASK as suggested by [1], or 'xmerge --root /tmp/newroot packagename' or do what I do, rsync it out of $SYSROOT with a good rsync filter file.

hth,

Jason.

[1] - http://www.gentoo.org/proj/en/base/embedded/handbook/
[2] - http://www.gentoo.org/proj/en/base/embedded/cross-development.xml

--
[email protected] mailing list

Reply via email to