linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Cross-compiling standard utilities for MPC823
@ 2001-09-25 15:12 Cindy Peters
  2001-09-25 15:18 ` Mark Hatle
  2001-09-26 22:14 ` Magnus Damm
  0 siblings, 2 replies; 3+ messages in thread
From: Cindy Peters @ 2001-09-25 15:12 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


I am attempting to cross-compile the file utilities that I downloaded from
the linuxppc ftp site for the MPC823 on an x86 PC running Redhat 6.2. I am
getting an error when configure is trying to determine the byte ordering.
Following is a clip from the config.log file.

configure:2220: checking whether byte ordering is bigendian
configure:2242: powerpc-linux-gcc -c -g -O2  conftest.c >&5
configure: In function `main':
configure:2236: `bogus' undeclared (first use in this function)
configure:2236: (Each undeclared identifier is reported only once
configure:2236: for each function it appears in.)
configure:2236: parse error before `endian'
configure: failed program was:
#line 2228 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>

int
main ()
{
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif

  ;
  return 0;
}

I have tried defining BIG_ENDIAN and BYTE_ORDERING but that is not helping.
Can someone tell me what I need to do to successfully cross-compile this?
Here is the command line I am using.

AR=powerpc-linux-ar AS=powerpc-linux-as LD=powerpc-linux-ld \
  RANLIB=powerpc-linux-ranlib CC=powerpc-linux-gcc NM=powerpc-linux-nm \
  ./configure --build=i686-pc-linux-gnu --host=powerpc-unknown-linux-gnu \
  --target=powerpc-unknown-linux-gnu \
	--prefix=/opt/usr/local/powerpc-linux

Thanks,

Cindy Peters
Adaptive Micro-Ware, Inc.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-26 22:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-25 15:12 Cross-compiling standard utilities for MPC823 Cindy Peters
2001-09-25 15:18 ` Mark Hatle
2001-09-26 22:14 ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).