This is the mail archive of the 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]
Other format: [Raw text]

Re: PATCH: Fix sizeof checking for cross compile

On Fri, Nov 22, 2002 at 04:29:19PM -0500, DJ Delorie wrote:
> > I have been using it to bootstrap gcc and gcc-3_2-rhl8-branch on
> > Linux/x86 as well as build gcc-3_2-rhl8-branch 3.2 Linux/mipsel and
> > Linux/mips binaries on Linux/x86. 
> I assume linux/mips is big endian, and you're doing a host-x-host, not
> a plain cross compiler?  Or both?

Yes, linux/mips is big endian. I did:

1. Create mipsel-linux-gcc.

# /export/tools-3.2-redhat-8/bin/mipsel-linux-gcc -v
Reading specs from
Configured with: /export/linux/src/tools-3.2-redhat-8/tools/configure
--disable-multilib --enable-clocale=gnu --with-system-zlib
--target=mipsel-linux --prefix=/export/tools-3.2-redhat-8
--with-local-prefix=/export/tools-3.2-redhat-8 --enable-threads=posix
--enable-haifa --enable-shared --disable-checking
Thread model: posix
gcc version 3.2 20021115 (Red Hat Linux 8.0 3.2-13)

2. Use mipsel-linux-gcc to build Linux/mipsel gcc.

# cd /export/redhat/rpms-3.2/BUILD/gcc-3.2-20021023/obj-mips-linux/gcc
# file xgcc
xgcc: ELF 32-bit MSB mips-1 executable, MIPS R3000_BE, version 1 (SYSV),
dynamically linked (uses shared libs), not stripped


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