This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: Problems with building a Cross-Compiler


Hi there,

I am having the same problem trying to produce a 2.95.1 sparc-sun-aout cross
compiler under solaris 7.

Please let me know if you get to the bottom of this as it is critical that I
get an aout compiler running on this machine alongside the elf format.

Thanks

Neil
Christoph Walzer <a8802616@unet.univie.ac.at> wrote in message
38202C80.39A6D451@unet.univie.ac.at">news:38202C80.39A6D451@unet.univie.ac.at...
> Hi !
> I'm not really sure whether I found a bug or not. Nevertheless I came
> across a lot of inconveniences during the attempt to make a
> cross-compiler.
> I could solve some problems myself but now I'm stuck.
> The facts:
>
> i)  the (optional) native compilers: gcc 2.7.2.1, egcs 1.1.2, gcc
> 2.95.1, each one working perfectly so far
>
> ii) using the above native compilers I tried to make
> a cross-compiler out of egcs 1.1.2 and gcc 2.95.1 - unfortunately
> unsuccessful for all the combination of cross and native
> compilers I tried.
>
> iii) target=powerpc-eabi, prefix=/usr/local/cross.ppc; configure.guess
> finds as host: i686-pc-linux-gnulibc1
>
> iv) I compiled the binutils (2.9.1) before compiling gcc using the same
> configure-parameters as above
>
> v) I tried to make the cross-compiler by typing "make cross"; here are
> the reasons why it stopped:
> (a) native gcc 2.95.1, cross gcc 2.95.1:
> In file included from ../../gcc-2.95.1/gcc/cp/tinfo.cc:32:
> include/new:28: `operator new' takes type `size_t' as first parameter
> .
> .
> .
> include/new:39: `operator new' takes type `size_t' as first parameter
> (b)native gcc.2.95.1 or gcc 2.7.2, cross egcs 1.1.2:
> checking whether the C compiler (/home/Packete/Packete/Packet.Quellen/
> Compilers.Tools/cross-gcc/build-gcc/gcc/xgcc  -B /home/Packete/
> Packet.Quellen/Compilers.Tools/cross-gcc/build-gcc/gcc/ -g -O2 )
> works ... no
> configure: error: installation or configuration problem: C compiler
> cannot create executables.
>
> Invoking xgcc myself it says "cannot exec cc1plus, no such file or
> directory". But it's there - in the same directory as xgcc!
>
> vi) I used the header-files from the target-machine (and put it in the
> right place)
>
> vii) trying "make all" with native gcc 2.7.2 or gcc 2.95.1 and cross
> egcs lead to the Error:
> ../../egcs-1.1.2/gcc/objc/misc.c:  In function `objc_error':
> ../../egcs-1.1.2/gcc/objc/misc.c:44: request for member `gpr' in
> something not a structure or union
> .
> .
> .
> ../../egcs-1.1.2/gcc/objc/misc.c :44: request for member
> `overflow_arg_area' in something not a struct or union
>
> "make all" should be done according to the CrossGCC FAQ -don't blame me!
>
> I read the "CrossGCC FAQ" as well as the cross-compiler part of "Using
> and Porting GCC" and  did exactly what I had read there. I can't find
> any
> hint to the above errors.
> Thanks for help in advance !
>
> Christoph Walzer
>
>
>



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