How to build/test glibc with new gcc
Joseph Myers
joseph@codesourcery.com
Wed Jul 22 16:38:00 GMT 2015
On Fri, 17 Jul 2015, Szabolcs Nagy wrote:
> i'm wondering what's the official way to build glibc with new gcc.
>
> the documentation about building glibc assumes that the host
> compiler is used when doing a native build, but if gcc is installed
> at some prefix path, then the tests don't use the right libraries:
>
> they use libgcc_s.so.1 and libstdc++.so.6 of the host (or fail
> when the host does not have these).
>
> Using LD_LIBRARY_PATH does not work as the tests override the
> library path, but i assume this can be solved by either adding
> -Wl,-rpath=/gcc/prefix/lib to the LDFLAGS of the tests or
> copying the compiler runtime into the build path:
Copying libgcc_s and libstdc++ into the build path is known to be required
(this applies to both native and cross testing). See the list of
architecture-independent issues at
<https://sourceware.org/glibc/wiki/Release/2.21>, where it references
<https://sourceware.org/ml/libc-alpha/2012-04/msg01014.html>.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list