This is the mail archive of the gcc@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]

Building gcc/gcj cross compiler for PPP/Linux (libffi problem)


Hi All,

   I am trying to build a gcc/gcj cross-compiler for PowerPC/Linux
target on
   host X86/Linux.

   This is my configure command:

    /home/le/freeware/gcc/gcc-3.0/configure
--prefix=/usr/local/powerpc-linux
    --target=powerpc-linux

--with-headers=/opt/hardhat/devkit/ppc/7xx/powerpc-hardhat-linux/include

    --with-libs=/opt/hardhat/devkit/ppc/7xx/powerpc-hardhat-linux/lib

    After some hacks to get thru the section (libffi), one of the
problems that it complains
    the checking size of short is not avaliable.

    It can not complied the libffi stuff at all. I got the following
message:

=======================================================================
make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "CXXFLAGS="
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/bin/sh
/home/le/freeware/gcc/gcc-3.0/install-sh -c" "INSTALL_DATA=/bin/sh
/home/le/freeware/gcc/gcc-3.0/install-sh -c -m 644"
"INSTALL_PROGRAM=/bin/sh /home/le/freeware/gcc/gcc-3.0/install-sh -c  "
"INSTALL_SCRIPT=/bin/sh /home/le/freeware/gcc/gcc-3.0/install-sh -c"
"JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make"
"MAKEINFO=makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh"
"exec_prefix=/usr/local/powerpc-linux"
"infodir=/usr/local/powerpc-linux/info"
"libdir=/usr/local/powerpc-linux/lib" "prefix=/usr/local/powerpc-linux"
"AR=ar" "AS=@AS@" "CC=/home/le/freeware/gcc/gcc-3.0-ppc/gcc/xgcc
-B/home/le/freeware/gcc/gcc-3.0-ppc/gcc/
-B/usr/local/powerpc-linux/powerpc-linux/bin/
-B/usr/local/powerpc-linux/powerpc-linux/lib/ -isystem
/usr/local/powerpc-linux/powerpc-linux/include" "CXX=@CXX@" "LD=ld"
"LIBCFLAGS=" "NM=" "PICFLAG=" "RANLIB=powerpc-linux-ranlib" "DESTDIR="
all-recursive
make[1]: Entering directory
`/home/le/freeware/gcc/gcc-3.0-ppc/powerpc-linux/libffi'
make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "CXXFLAGS="
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/bin/sh
/home/le/freeware/gcc/gcc-3.0/install-sh -c" "INSTALL_DATA=/bin/sh
/home/le/freeware/gcc/gcc-3.0/install-sh -c -m 644"
"INSTALL_PROGRAM=/bin/sh /home/le/freeware/gcc/gcc-3.0/install-sh -c  "
"INSTALL_SCRIPT=/bin/sh /home/le/freeware/gcc/gcc-3.0/install-sh -c"
"JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make"
"MAKEINFO=makeinfo  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh"
"exec_prefix=/usr/local/powerpc-linux"
"infodir=/usr/local/powerpc-linux/info"
"libdir=/usr/local/powerpc-linux/lib" "prefix=/usr/local/powerpc-linux"
"AR=ar" "AS=@AS@" "CC=/home/le/freeware/gcc/gcc-3.0-ppc/gcc/xgcc
-B/home/le/freeware/gcc/gcc-3.0-ppc/gcc/
-B/usr/local/powerpc-linux/powerpc-linux/bin/
-B/usr/local/powerpc-linux/powerpc-linux/lib/ -isystem
/usr/local/powerpc-linux/powerpc-linux/include" "CXX=@CXX@" "LD=ld"
"LIBCFLAGS=" "NM=" "PICFLAG=" "RANLIB=powerpc-linux-ranlib" "DESTDIR="
DO=all multi-do
make[2]: Entering directory
`/home/le/freeware/gcc/gcc-3.0-ppc/powerpc-linux/libffi'
if [ -z "nof" ]; then \
  true; \
else \
  rootpre=`pwd`/; export rootpre; \
  srcrootpre=`cd /home/le/freeware/gcc/gcc-3.0/libffi; pwd`/; export
srcrootpre; \
  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/le/freeware/gcc/gcc-3.0-ppc/gcc/xgcc
-B/home/le/freeware/gcc/gcc-3.0-ppc/gcc/
-B/usr/local/powerpc-linux/powerpc-linux/bin/
-B/usr/local/powerpc-linux/powerpc-linux/lib/ -isystem
/usr/local/powerpc-linux/powerpc-linux/include"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
 flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
 if (cd ../${dir}/${lib}; make  \
   CFLAGS="-g -O2 ${flags}" \
   prefix="/usr/local/powerpc-linux" \
   exec_prefix="/usr/local/powerpc-linux" \
   GCJFLAGS="@GCJFLAGS@ ${flags}" \
   CXXFLAGS=" ${flags}" \
   LIBCFLAGS=" ${flags}" \
   LIBCXXFLAGS=" ${flags}" \
   LDFLAGS=" ${flags}" \
   all); then \
   true; \
 else \
   exit 1; \
 fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[3]: Entering directory
`/home/le/freeware/gcc/gcc-3.0-ppc/powerpc-linux/nof/libffi'
make[3]: *** No rule to make target `all'.  Stop.
make[3]: Leaving directory
`/home/le/freeware/gcc/gcc-3.0-ppc/powerpc-linux/nof/libffi'
make[2]: *** [multi-do] Error 1
make[2]: Leaving directory
`/home/le/freeware/gcc/gcc-3.0-ppc/powerpc-linux/libffi'
make[1]: *** [all-multi] Error 2
make[1]: Leaving directory
`/home/le/freeware/gcc/gcc-3.0-ppc/powerpc-linux/libffi'
make: *** [all-recursive-am] Error 2

===================================================================


    I am just wondering if anyone knows of this particular problem.
Also, is there anyone
    who has successfully built the gcc/gcj (version 3.0) cross-compiler
for PowerPC/Linux
    target on host X86/Linux. Thanks a lot for your time and input. Your
help is much appreciated.

Regards
Le


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