Page 1 of 1

ERROR BUILDING GCC (gcc-3.2.2 ee C++)

Posted: Tue Jan 24, 2006 8:52 pm
by Sorry
Hello !

I'm french, so sorry for my very bad english...i will try to do my best ;-)
I try to install ps2dev, first on fedora4 (don't work), and later on cygwin (don't work too).
I took this toolchain : http://www.oopo.net/consoledev/files/ps ... 050713.tgz
There are the building errors :
"compiler error in schedule_block, at haifa-sched.c : 1714
Please submit a bug report.
...
...
...
ERROR BUILDING GCC (gcc-3.2.2 ee C++)
I hope you will help me !
Thank you in advance,
Sorry for my bad english !
Later

Posted: Tue Jan 24, 2006 8:57 pm
by Sorry
with cygwin (after 2hours...) :
Image

Posted: Tue Jan 24, 2006 10:24 pm
by Sorry
The error with Fedora4 (gcc 4.0.2) :
In file included from ../../gcc/read-rtl.c:24:
../../gcc/rtl.h:125: attention : type of bit-field ‘code’ is a GCC extension
../../gcc/rtl.h:128: attention : type of bit-field ‘mode’ is a GCC extension
../../gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
../../gcc/read-rtl.c:62: attention : traditional C rejects ISO C style function definitions
../../gcc/read-rtl.c: In function ‘read_rtx’:
../../gcc/read-rtl.c:662: erreur: invalid lvalue in increment
gmake[1]: *** [read-rtl.o] Erreur 1
gmake[1]: Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee/gcc'
gmake: *** [all-gcc] Erreur 2
ERROR BUILDING GCC (gcc-3.2.2 ee)

Posted: Wed Jan 25, 2006 12:50 am
by ooPo
This is because gcc-4.x has problems compiling the gcc-3.2.2 used for ps2dev. You'll have to install an earlier version of gcc to compile it.

In ubuntu, I use: CC=gcc-3.4 sh ./toolchain

You don't have to uninstall your current gcc to do that, you can have both installed and force the usage of a specific version by using that command.

Posted: Wed Jan 25, 2006 12:55 am
by Sorry
ooPo wrote:This is because gcc-4.x has problems compiling the gcc-3.2.2 used for ps2dev. You'll have to install an earlier version of gcc to compile it.

In ubuntu, I use: CC=gcc-3.4 sh ./toolchain

You don't have to uninstall your current gcc to do that, you can have both installed and force the usage of a specific version by using that command.
Thank you for answering so quicky, i will try to compil with an older gcc.
Later

Posted: Sun Jan 29, 2006 1:02 am
by BraveDog

Code: Select all

/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3/include/bits/locale_facets.tcc: In
   member function `_InIter std&#58;&#58;money_get<_CharT, _InIter>&#58;&#58;do_get&#40;_InIter, 
   _InIter, bool, std&#58;&#58;ios_base&, std&#58;&#58;_Ios_Iostate&, std&#58;&#58;basic_string<_CharT, 
   std&#58;&#58;char_traits<_CharT>, std&#58;&#58;allocator<_CharT> >&&#41; const &#91;with _CharT = 
   char, _InIter = std&#58;&#58;istreambuf_iterator<char, std&#58;&#58;char_traits<char> >&#93;'&#58;
../../../../libstdc++-v3/src/locale-inst.cc&#58;47&#58;   instantiated from here
/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3/include/bits/locale_facets.tcc&#58;1167&#58; Internal
   compiler error in schedule_block, at haifa-sched.c&#58;1714
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL&#58;http&#58;//www.gnu.org/software/gcc/bugs.html> for instructions.
make&#91;3&#93;&#58; *** &#91;locale-inst.lo&#93; Error 1
make&#91;3&#93;&#58; Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3/src'
make&#91;2&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;2&#93;&#58; Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3'
make&#91;1&#93;&#58; *** &#91;all-recursive-am&#93; Error 2
make&#91;1&#93;&#58; Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3'
make&#58; *** &#91;all-target-libstdc++-v3&#93; Error 2
ERROR BUILDING GCC &#40;gcc-3.2.2 ee C++&#41;

bravedog@trinity /usr/local/ps2src/ps2toolchain
$ echo $CC
gcc-3.4.4
I seem to be having a similar problem and I am using gcc-3.4.4 on cygwin. I checked out the ps2toolchain project from svn. I also have been experamenting with MinGW, but I don't think that caused this problem. I am still working on it.

Posted: Tue Aug 22, 2006 3:48 am
by frcol
I run ./toolchain and receive the following message:

compiler error in schedule_block, at haifa-sched.c:1714
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [locale-inst.lo] Error 1
make[3]: Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3/s
rc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

ERROR BUILDING GCC (gcc-3.2.2 ee C++)

Time = 1:10min
===============================================

Then I tried:

CC=gcc-3.4 sh ./toolchain

checking build system type... i686-pc-cygwin
../configure: line 2098: gcc-3.4: command not found
../configure: line 2209: gcc-3.4: command not found
*** The command 'gcc-3.4 -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

ERROR CONFIGURING BINUTILS (binutils-2.14 ee)

Time 00:06min
===============================================

Can anybody help me???

Posted: Tue Aug 22, 2006 4:08 am
by evilo
did u checked this post :
http://forums.ps2dev.org/viewtopic.php?t=4909

good luck :)

Posted: Tue Aug 22, 2006 4:48 am
by frcol
evilo wrote:did u checked this post :
http://forums.ps2dev.org/viewtopic.php?t=4909

good luck :)
Yes, and I've alredy reinstalled these packages with these older versions:

* cygwin : from (1.5.21-2) to 1.5.18-1
* coreutils : from (5.97-1) to 5.3.0-9
* findutils: from (4.3.0-2) to 4.2.25-2
* sed : from (4.1.5-2) to 4.1.4-1

and I receive something like that:
Windows prompt: ""it Couldn't possible to find the point of entrance of the procedure "futimes" in the lib of dinamic cygwin1.dll"

15:12:35 (22.92 KB/s) - `binutils-2.14.tar.gz' saved [14269432]
./toolchain.sh: line 144: cd: binutils-2.14: No such file or directory
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: config.sub
|===============================================
|RCS file: /home/ps2cvs/binutils-2.14/config.sub,v
|retrieving revision 1.1.1.1
|retrieving revision 1.2
|diff -b -u -r1.1.1.1 -r1.2
|--- config.sub 1 Dec 2004 04:06:27 -0000 1.1.1.1
|+++ config.sub 1 Dec 2004 04:28:01 -0000 1.2
--------------------------
File to patch:

time = 00:07min
===========================================

Can somebody help me???