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: Crosstool build failures for PPC750


This is an FAQ... you need patches/gcc-3.3.3/fix-fixincl.patch
You can copy it from patches/gcc-3.3.6 but it may need tweaking.
I think somebody posted it recently to the list.
- Dan

On 3/10/06, James Cunning <jcunning@spacemicro.com> wrote:
> Hello,
>
> I apologize for writing to you directly, as I suspect you may have limited
> time to deal with individual problems in using your crosstool scripts.
> However, I have found nothing with Google that matches the situation I have.
>
> I am trying to build a cross-toolchain for an embedded PowerPC 750 board. The
> board currently has kernel 2.4.21pre1 running on it and the cross-development
> tools provided were incomplete. I have been unsuccessful getting a completed
> build with crosstool for a variety of gcc/glibc version combinations.
>
> For example, on FC4 and SuSE 10.0 (both having gcc 4.0.2), the build fails
> with:
>
> /crosstool/crosstool-0.40/build/powerpc-750-linux-gnu/gcc-3.3.3-glibc-2.3.2/gcc-3.3.3/gcc/read-rtl.c:
> In function 'read_rtx':
> /crosstool/crosstool-0.40/build/powerpc-750-linux-gnu/gcc-3.3.3-glibc-2.3.2/gcc-3.3.3/gcc/read-rtl.c:653:
> error: invalid lvalue in increment
> make[1]: *** [read-rtl.o] Error 1
> make[1]: Leaving directory
> `/crosstool/crosstool-0.40/build/powerpc-750-linux-gnu/gcc-3.3.3-glibc-2.3.2/build-gcc-core/gcc'
> make: *** [all-gcc] Error 2
>
> On a SuSE 9.1 system (with gcc 3.3.3), the build finishes, but the test
> compile fails with:
>
> + test '!' -d tmp
> + mkdir tmp
> + cd tmp
> + test x '!=' x
> + cat
> + /opt/crosstool/gcc-3.3.3-glibc-2.3.2/powerpc-750-linux-gnu/bin/powerpc-750-linux-gnu-gcc
> -static hello.c -o powerpc-750-linux-gnu-hello-static
> hello.c: In function `main':
> hello.c:4: error: `PATH_MAX' undeclared (first use in this function)
> hello.c:4: error: (Each undeclared identifier is reported only once
> hello.c:4: error: for each function it appears in.)
>
> Do you have any reports of this sort of problem, or any suggestions on how to
> get around it?  Thank you.
> --
> James L. Cunning                        Space Micro Inc.
> Phone:  619-838-3241            10401 Roselle St., Suite 400
> Fax:            858-332-0709            San Diego, CA 92121
> Email:  jcunning@spacemicro.com
>
>


--
Wine for Windows ISVs: http://kegel.com/wine/isv

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