You are not logged in.

#1 2008-03-07 21:46:54

Erroneous
Member
Registered: 2006-08-28
Posts: 35

Error compiling gcc on ppc

I'm trying to install the ps3toolchain from http://ps2dev.org/ps3/Tools/Toolchain/p … 26.tar.bz2 so I can compile programs specifically for ppu/spu, but I keep having problems. I noticed that in the i686 PKGCONFIG for gcc that it required the de_DE locale, so I regenerated my locales with that and began compiling. binutils compiled just fine, but a good ways into compiling gcc I get the following error:

make[2]: Entering directory `/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1'
Configuring stage 2 in ./intl
configure: loading cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /bin/install -c
checking whether NLS is requested... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for powerpc64-unknown-linux-gnu-gcc...  /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory `/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1'
make: *** [all] Error 2

Running cat intl/config.log reveals

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /root/ps3toolchain/build/gcc-4.2.0/intl/configure --cache-file=./config.cache --build=powerpc64-unknown-linux-gnu --host=powerpc64-unknown-linux-gnu --target=ppu --prefix=/usr/local/ps3dev/ppu --with-newlib --disable-libgomp --disable-libmudflap --disable-libssp --disable-nls --disable-shared --disable-threads --without-headers --enable-languages=c --program-transform-name=s,^,ppu-,;  --srcdir=../../intl --with-build-libsubdir=.

## --------- ##
## Platform. ##
## --------- ##

hostname = ps3
uname -m = ppc64
uname -r = 2.6.25-rc1-10429-g664fdd3-dirty
uname -s = Linux
uname -v = #6 SMP Tue Feb 19 23:56:26 EST 2008

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = ppc64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1220: loading cache ./config.cache
configure:1323: checking whether make sets $(MAKE)
configure:1343: result: yes
configure:1390: checking for a BSD-compatible install
configure:1445: result: /bin/install -c
configure:1470: checking whether NLS is requested
configure:1479: result: no
configure:1517: checking for msgfmt
configure:1548: result: /usr/bin/msgfmt
configure:1557: checking for gmsgfmt
configure:1588: result: /usr/bin/msgfmt
configure:1627: checking for xgettext
configure:1658: result: /usr/bin/xgettext
configure:1698: checking for msgmerge
configure:1728: result: /usr/bin/msgmerge
configure:1771: checking for powerpc64-unknown-linux-gnu-gcc
configure:1797: result:  /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/
configure:2079: checking for C compiler version
configure:2082:  /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/ --version </dev/null >&5
xgcc (GCC) 4.2.0
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2085: $? = 0
configure:2087:  /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/ -v </dev/null >&5
Reading specs from /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/specs
Target: ppu
Configured with: ../configure --prefix=/usr/local/ps3dev/ppu --target=ppu --enable-languages=c --with-newlib --disable-libgomp --disable-libmudflap --disable-libssp --disable-nls --disable-shared --disable-threads --without-headers
Thread model: single
gcc version 4.2.0
configure:2090: $? = 0
configure:2092:  /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/ -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2095: $? = 1
configure:2118: checking for C compiler default output file name
configure:2121:  /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/ -g -O2   conftest.c  >&5
/usr/local/ps3dev/ppu/ppu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/local/ps3dev/ppu/ppu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/local/ps3dev/ppu/ppu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
configure:2124: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2163: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=set
ac_cv_env_CC_value=' /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=powerpc64-unknown-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=powerpc64-unknown-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=ppu
ac_cv_path_GMSGFMT=/usr/bin/msgfmt
ac_cv_path_MSGFMT=/usr/bin/msgfmt
ac_cv_path_MSGMERGE=/usr/bin/msgmerge
ac_cv_path_XGETTEXT=/usr/bin/xgettext
ac_cv_prog_CC=' /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/'
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL=''
ALLOCA=''
AUTOCONF=''
AUTOHEADER=''
BUILD_INCLUDED_LIBINTL=''
CATOBJEXT=''
CC=' /root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/xgcc -B/root/ps3toolchain/build/gcc-4.2.0/build-ppu-stage1/./prev-gcc/ -B/usr/local/ps3dev/ppu/ppu/bin/'
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
DATADIRNAME=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GENCAT=''
GLIBC21=''
GMSGFMT='/usr/bin/msgfmt'
INCINTL=''
INSTALL_DATA='/bin/install -c -m 644'
INSTALL_PROGRAM='/bin/install -c'
INSTALL_SCRIPT='/bin/install -c'
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBINTL_DEP=''
LIBOBJS=''
LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAINT=''
MKINSTALLDIRS='$(top_builddir)/../../intl/../mkinstalldirs'
MSGFMT='/usr/bin/msgfmt'
MSGMERGE='/usr/bin/msgmerge'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
POSUB=''
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
USE_INCLUDED_LIBINTL=''
USE_NLS='no'
XGETTEXT='/usr/bin/xgettext'
ac_ct_CC=''
ac_ct_RANLIB=''
bindir='${exec_prefix}/bin'
build='powerpc64-unknown-linux-gnu'
build_alias='powerpc64-unknown-linux-gnu'
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='powerpc64-unknown-linux-gnu'
host_alias='powerpc64-unknown-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local/ps3dev/ppu'
program_transform_name='s,^,ppu-,; '
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='ppu'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 77

I had to copy /usr/include/gnu/stubs-64.h over from the ps3toolchain when I built it on my i686 Archlinux because it appears they disabled 64-bit libraries and whatnot on the ppc. Any ideas what I need to do?

Offline

Board footer

Powered by FluxBB