cross-compiler sysroot location

Osborne Hardison hardisun at gmail.com
Fri Mar 30 02:46:16 CEST 2007


I found an way to re-build arm-linux toolchain from within the OM tree with
the appropriate sysroot changes:

*~/moko$ *make clean-package-gcc-cross-4.1.1
*~/moko$ *vi openembedded/packages/gcc/gcc-cross_4.1.1.bb:
*[modify the **EXTRA_OECONF **to this:]*
EXTRA_OECONF += "--with-mpfr=${STAGING_DIR}/${BUILD_SYS}
--with-sysroot=/usr/local/arm/${PV}"
*~/moko$ *sudo make build-package-gcc-cross-4.1.1

this builds and creates arm-linux tools with sysroot set correctly; however
the make install does not install all of the bins, libs, objects, and
includes to the /usr/local/arm/4.1.1 dir.  So I tried this next:

EXTRA_OECONF += "--with-mpfr=${STAGING_DIR}/${BUILD_SYS}
--with-sysroot=/usr/local/arm/${PV} --prefix=/usr/local/arm/${PV}"

This results in various errors popping up which I slogged thru until I got
to this one in the libstdc++ part of the gcc build:

| checking for ld that supports -Wl,-z,relro... yes
| checking for main in -lm... configure: error: Link tests are not allowed
after GCC_NO_EXECUTABLES.
| make[2]: *** [configure-target-libstdc++-v3] Error 1
| make[2]: Leaving directory
`/home/ohardison/moko/build/tmp/work/armv4t-linux/gcc-cross-4.1.1-r12/gcc-
4.1.1/build.i686-linux.arm-linux'

I have no idea how to get beyond this one.  Is there a way to specify
install dir without using --prefix perhaps?  In looking through the
glibc_2.5.bb for any clues I noticed there are variables to control staging
the libc files including CROSS_DIR.  Where does the setting for this come
from?

I realize from the profound empty noise I got back from my first email that
I might be in uncharted waters here, but I appreciate any help.


Osborne
hardisun at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/openmoko-devel/attachments/20070329/2a856edb/attachment.html


More information about the openmoko-devel mailing list