This is the mail archive of the crossgcc@sources.redhat.com 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: Configuring gcc for a s390 or criss crosscompiler? (was: [PATCH] Add --with-cross configure option to force -DCROSS_COMPILE behavior)


On Sun, Jun 08, 2003 at 06:38:07PM -0700, Dan Kegel wrote:
> Unfortunately, Daniel's trick doesn't work on s390 and cris, which seem
> to canonicalize target tuples harder than other targets:
> 
> + /build/s390-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/gcc-3.3/configure
> --target=s390-unknown-linux-gnu --host=s390-host_unknown-linux-gnu
> --prefix=/result/s390-unknown-linux-gnu/gcc-3.3-glibc-2.3.2
> --enable-languages=c
> --with-local-prefix=/result/s390-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/s390-
> unknown-linux-gnu --enable-threads=no --without-headers --with-newlib
> --disable-shared
> ...
> *** --with-headers is only supported when cross compiling

Eh, I guess you're running that on an S/390...

> Testing config.sub out directly, I see:
> 
> $ for arch in i686 sparc arm cris ppc m68k ia64 s390 mips sparc64; do
> /bin/sh build/s390-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/gcc-3.3/config.sub
> $arch-blort-linux-gnu; done
> i686-blort-linux-gnu
> sparc-blort-linux-gnu
> arm-blort-linux-gnu
> cris-axis-linux-gnu
> powerpc-blort-linux-gnu
> m68k-blort-linux-gnu
> ia64-blort-linux-gnu
> s390-ibm-linux-gnu
> mips-blort-linux-gnu
> sparc64-blort-linux-gnu
> 
> So I'm still a bit stuck -- if I want my toolchain build script 
> script to work for all the architectures gcc/glibc/linux support,
> I guess I need to figure out how to coax config.sub into
> thinking I'm building a cross-compiler. 
> 
> How horrible would it be if I just disabled the rabid canonicalization
> in the s390 and cris cases?

I think this is a bug and should be fixed in config.sub - ask
config-patches@gnu.org if he (Ben) agrees with us?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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