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: [PATCH] Fix Makefile in glibc for building cross tools for ppc64


I can't reproduce the problem. I run it on a i686 machine. The file
crosstool-0.43/build/powerpc64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc/csu/version-info.h
generated just fine.

"Compiled on a Linux 2.6.12 system on 2007-08-01.\n"
"Available extensions:\n"
"	GNU libio by Per Bothner\n"
"	crypt add-on version 2.1 by Michael Glad and others\n"
"	linuxthreads-0.10 by Xavier Leroy\n"
"	BIND-8.2.3-T5B\n"
"	libthread_db work sponsored by Alpha Processor Inc\n"
"	NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk\n"

May I have more info of how to reproduce your problem?

Thanks,
Dongmin

On 7/31/07, Dan Kegel <dank@kegel.com> wrote:
> Thanks for the patch.
> I seem to recall having to do something like this before... yes:
> http://kegel.com/crosstool/current/patches/glibc-2.1.3/glibc-2.1.3-allow-gcc3-versioninfo.patch
> http://kegel.com/crosstool/current/patches/glibc-2.2.2/glibc-2.1.3-allow-gcc3-versioninfo.patch
> I'll see if Dongmin can reproduce this and get a fix in.
> - Dan
>
> On 7/31/07, Jerone Young <jyoung5@us.ibm.com> wrote:
> > When trying to use demo-powerpc-970 script on x86 to create a powerpc
> > 970 compiler, the compilation fails while compiling glibc-2.3.6. The
> > problem is that a Makefile in the glibc package generates a header file
> > that is used while compiling. The header generated places a " on the 3rd
> > line and creates invalid C code that causes the failure. Linue 2 The
> > file that is generated is
> > /crosstool-0.43/build/powerpc64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc/csu/version-info.h
> >
> > Which ends up looking like this:
> > <BEGIN>
> > "Compiled on a Linux 2.6.12 system on 2007-07-31.\n"
> > "Available extensions:
> > "
> > "       GNU libio by Per Bothner\n"
> > "       crypt add-on version 2.1 by Michael Glad and others\n"
> > "       linuxthreads-0.10 by Xavier Leroy\n"
> > "       BIND-8.2.3-T5B\n"
> > "       libthread_db work sponsored by Alpha Processor Inc\n"
> > "       NIS(YP)/NIS+ NSS modules 0.19 by Thor
> > <END>
> >
> > Notice line 3 of this generated header causes the problem. This patch
> > fixes the problem and allows things to compile without issue.
> >
> > This patch applies to glibc-2.3.6 package.
> >
> > Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
> >
> > diff -r 626180c0de17 csu/Makefile
> > --- a/csu/Makefile      Tue Jul 31 16:35:38 2007 -0500
> > +++ b/csu/Makefile      Tue Jul 31 18:58:52 2007 -0500
> > @@ -241,7 +241,7 @@ all-Banner-files = $(wildcard $(addsuffi
> >          esac; \
> >          files="$(all-Banner-files)";                           \
> >          if test -n "$$files"; then                             \
> > -          echo "\"Available extensions:\\n\"";                 \
> > +          printf '"Available extensions:\\n"\n';               \
> >            sed -e '/^#/d' -e 's/^[[:space:]]*/  /'              \
> >                -e 's/^\(.*\)$$/\"\1\\n\"/' $$files;             \
> >          fi) > $@T
> >
> >
> >
> >
>
>
> --
> Wine for Windows ISVs: http://kegel.com/wine/isv
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>
>


-- 
-----------------------------------------------------------------
Dongmin Zhang
Compute Science Department,
Texas A&M University

--
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]