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]

cross-gcc targetting PowerPC MPC8349 running in little endian mode


I've created a powerpc-8349.dat file for use with
cross-gcc:

TARGET=powerpc-unknown-linux-gnu
TARGET_CFLAGS="-O3 -pipe -fsigned-char
-mpowerpc-gfxopt"
GCC_EXTRA_CONFIG="--enable-cxx-flags=-mcpu=powerpc"

Unfortunately, when I attempt to compile a simple
hello world program with:

# powerpc-linux-gcc -mli ttle hello.c

which yields:

/usr/local/toolchain_ppc/gcc-4.1.0-glibc-2.3.6/powerpc-unknown-linux-gnu/lib/gcc
/powerpc-unknown-linux-gnu/4.1.0/../../../../powerpc-unknown-linux-gnu/lib/libgc
c_s.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

I've tried other targets such as powerpc-linux-eabi,
pwerpcle-linux-unknown-gnu, and powerpcle-linux, all
without success.  

I've also tried specifying "--enable-biendian" as one
of the GCC_EXTRA_CONFIG parameters.  This builds
successfully, though it still doesn't allow me to
compile with the -mlittle parameter.

Thoughts?

 - Daniel

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