https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87891

            Bug ID: 87891
           Summary: _build/./gcc/as: line 106: exec: ppc64: not found
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dougmencken at gmail dot com
  Target Milestone: ---

When I try to cross-compile GCC from powerpc-darwin to powerpc64-darwin, it
fails at the beginning of libgcc

configure:3665: checking for suffix of object files
configure:3687: /Volumes/hfsplushd/Development/gcc-toolchain/_build/./gcc/xgcc
-B/Volumes/hfsplushd/Development/gcc-toolchain/_build/./gcc/
-B/Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/bin/
-B/Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/lib/ -isystem
/Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/include -isystem
/Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/sys-include    -c -g
-O2  conftest.c >&5
/Volumes/hfsplushd/Development/gcc-toolchain/_build/./gcc/as: line 106: exec:
ppc64: not found
configure:3691: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3705: error: in
`/Volumes/hfsplushd/Development/gcc-toolchain/_build/powerpc64-unknown-darwin/libgcc':
configure:3708: error: cannot compute suffix of object files: cannot compile

Looks like it can’t parse “.machine ppc64” at the top of assembly file

How do I configure

../gcc-8.2.0/configure \
--build=powerpc-apple-darwin9 --host=powerpc-apple-darwin9
--target=powerpc64-unknown-darwin \
--prefix=/Developer/GCC/8.2p/PowerPC/64bit \
--enable-languages=c,c++,objc,obj-c++ \
--enable-shared --enable-static \
--enable-checking=release \
--enable-threads=posix --with-__thread --without-system-zlib \
--disable-nls --disable-werror

Reply via email to