ps3dev / ps3toolchain

A script to autobuild an open source toolchain for the PS3.
BSD 2-Clause "Simplified" License
283 stars 92 forks source link

Installation: script 002-gcc-4.5.2-PPU-stage1.sh: Failed #36

Closed therobmcg closed 13 years ago

therobmcg commented 13 years ago

Getting an error running the toolchain.sh script, fresh install ubuntu 10.10 & followed the process on the wiki. Had to manually install a few extra packages (g++, libelf, may have been 1 other), and eventually following more than an hour of compiling stuff it halts with:

configure: creating ./config.status configure: creating ./config.status config.status: creating Makefile config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating testsuite/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands ../scripts/002-gcc-4.5.2-PPU-stage1.sh: Failed.

I admittedly don't know much about compiling stuff like this in linux so if i've missed an important piece of information that would help solve this please let me know!

ooPo commented 13 years ago

Could you try following the process as described in the readme.txt included with ps3toolchain?

therobmcg commented 13 years ago

Hi, thanks for the response. I actually tried following the readme.txt instructions first and failed with this (or a similar looking) error then created a new virtual box for the attempt using the old wiki instructions.

I'll try again, following the readme.txt on a fresh ubuntu 10.10 install, and reply.

therobmcg commented 13 years ago

Setup: Ubuntu 10.10 32bit Virtual Box. 2gb ram, 20gb hd. fresh install.

Chose to: Download updates while installing, Install 3rd part software (mp3 thing i think)

In terminal:

sudo apt-get install autoconf automake bison flex gcc libelf-dev make \ texinfo libncurses5-dev patch python subversion wget zlib1g-dev \ libtool python-dev bzip2 libgmp-dev pkg-config (cut n paste)

need's sudo first.

unable to locate package libgmp-dev

replaced libgmp-dev with libgmp3-dev

succesfull apt installs.

added exports to .bashrc did source .bashrc

./toolchain.sh

ERROR: Create /usr/local/ps3dev before continuing. ../depends/check-ps3dev.sh: Failed.

rob@blacksun:~/ps3toolchain$ sudo mkdir /usr/local/ps3dev rob@blacksun:~/ps3toolchain$ sudo chmod 777 /usr/local/ps3dev

./toolchain.sh

ERROR (after a long time compiling etc) linking ... ps3load compiler.cpp /bin/sh: g++: not found make[3]: * [compiler.o] Error 127 make[2]: * [build] Error 2 make[1]: * [all] Error 2 make: * [all] Error 2 ../scripts/011-psl1ght.sh: Failed.

sudo apt-get g++

(just in case important, last few lines of succesful apt-get): Setting up libstdc++6-4.4-dev (4.4.4-14ubuntu5) ... Setting up g++-4.4 (4.4.4-14ubuntu5) ... Setting up g++ (4:4.4.4-1ubuntu2) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.

./toolchain.sh

after less than a minute, ERROR! last few lines: configure: creating ./config.status config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands ../scripts/002-gcc-4.5.2-PPU-stage1.sh: Failed.

ooPo commented 13 years ago

Try this:

sudo apt-get install build-essential

therobmcg commented 13 years ago

installed build-essential but made no difference, still failing at same point.

ooPo commented 13 years ago

Try this:

cd build/gcc-4.5.2/build-ppu make

What errors does it give you?

ooPo commented 13 years ago

If that doesn't work, take a look in the config.log file in that directory to see what the error might be.

therobmcg commented 13 years ago

rob@blacksun:~/ps3toolchain$ cd build/gcc-4.5.2/ rob@blacksun:~/ps3toolchain/build/gcc-4.5.2$ ls ABOUT-NLS COPYING.LIB libgfortran maintainer-scripts boehm-gc COPYING.RUNTIME libgomp Makefile.def build-ppu depcomp libiberty Makefile.in build-spu fixincludes libjava Makefile.tpl ChangeLog gcc libmudflap MD5SUMS ChangeLog.tree-ssa gmp libobjc missing compile gmp-5.0.1 libssp mkdep config gnattools libstdc++-v3 mkinstalldirs config.guess include libtool-ldflags move-if-change config-ml.in INSTALL libtool.m4 mpc config.rpath install-sh ltgcc.m4 mpc-0.8.2 config.sub intl ltmain.sh mpfr configure LAST_UPDATED lt~obsolete.m4 mpfr-2.4.2 configure.ac libada lto-plugin NEWS contrib libcpp ltoptions.m4 README COPYING libdecnumber ltsugar.m4 symlink-tree COPYING3 libffi ltversion.m4 ylwrap COPYING3.LIB libgcc MAINTAINERS zlib rob@blacksun:~/ps3toolchain/build/gcc-4.5.2$ make make: *\ No targets specified and no makefile found. Stop. rob@blacksun:~/ps3toolchain/build/gcc-4.5.2$

there is no config.log file in that directory.

ooPo commented 13 years ago

You were in the wrong directory, try it with this: build/gcc-4.5.2/build-ppu

therobmcg commented 13 years ago

oops! sorry about that. This time make gives me the following error: make[2]: Leaving directory /home/rob/ps3toolchain/build/gcc-4.5.2/build-ppu/fixincludes' Configuring in ./gcc configure: loading cache ./config.cache configure: error:CXXFLAGS' has changed since the previous run: configure: former value: ' configure: current value:-g -O2' configure: error: in /home/rob/ps3toolchain/build/gcc-4.5.2/build-ppu/gcc': configure: error: changes in the environment can compromise the build configure: error: runmake distclean' and/or rm ./config.cache' and start over make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory/home/rob/ps3toolchain/build/gcc-4.5.2/build-ppu' make: *\ [all] Error 2 rob@blacksun:~/ps3toolchain/build/gcc-4.5.2/build-ppu$

ooPo commented 13 years ago

It sounds like you may have a corrupt or incomplete 'build/gcc-4.5.2' directory. Delete it and re-run the toolchain script. The script will unpack gcc-4.5.2.tar.bz2 and start fresh.

therobmcg commented 13 years ago

I think I managed to get it to build properly. I had to delete a bunch of config.cache files inside both the ppu & spu folders and do a make inside each one.. eventually managed to get toolchain.sh to run successfully. thanks for your help with this, I'm looking forward to trying things out :)