This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


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: Bootstrapping cross-toolchain for ia64


On Fri, 4 Nov 2016 13:06:05 +0000
Joseph Myers <joseph@codesourcery.com> wrote:

> On Fri, 4 Nov 2016, Adhemerval Zanella wrote:
> 
> > I faced the same issue and the solution I found was to configure
> > gcc with '--disable-shared'.  It is not an optimal approach for a
> > complete toolchain, but it is at least suffice to correctly build
> > glibc.
> 
> The first GCC (whose build fails) *is* configured with
> --disable-shared (and --without-headers --with-newlib to get
> inhibit_libc defined).  It still tries to build unwind code that
> includes libc headers unconditionally.

we used to have the following patch in the Fedora cross-gcc
http://pkgs.fedoraproject.org/cgit/rpms/cross-gcc.git/log/cross-gcc-with-libgcc.patch

diff -up gcc-4.7.0/libgcc/unwind-generic.h.cross-libgcc-ia64 gcc-4.7.0/libgcc/unwind-generic.h
--- gcc-4.7.0/libgcc/unwind-generic.h.cross-libgcc-ia64 2012-06-01 18:14:22.552450391 +0200
+++ gcc-4.7.0libgcc/unwind-generic.h 2012-06-01 18:14:42.523121821 +0200
@@ -211,7 +211,9 @@
_Unwind_SjLj_Resume_or_Rethrow (struct _ compatible with the standard ABI for IA-64, we inline these.  */

 #ifdef __ia64__
+#ifndef inhibit_libc
 #include <stdlib.h>
+#endif

 static inline _Unwind_Ptr
 _Unwind_GetDataRelBase (struct _Unwind_Context *_C)


		Dan


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