forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Sorry



Joined: 24 Jan 2006
Posts: 5

PostPosted: Tue Jan 24, 2006 8:52 pm    Post subject: ERROR BUILDING GCC (gcc-3.2.2 ee C++) Reply with quote

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/ps2toolchain-20050713.tgz
There are the building errors :
Quote:

"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
Back to top
View user's profile Send private message
Sorry



Joined: 24 Jan 2006
Posts: 5

PostPosted: Tue Jan 24, 2006 8:57 pm    Post subject: Reply with quote

with cygwin (after 2hours...) :
Back to top
View user's profile Send private message
Sorry



Joined: 24 Jan 2006
Posts: 5

PostPosted: Tue Jan 24, 2006 10:24 pm    Post subject: Reply with quote

The error with Fedora4 (gcc 4.0.2) :
Quote:
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)
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Jan 25, 2006 12:50 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Sorry



Joined: 24 Jan 2006
Posts: 5

PostPosted: Wed Jan 25, 2006 12:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
BraveDog



Joined: 30 Dec 2004
Posts: 29
Location: Cleveland

PostPosted: Sun Jan 29, 2006 1:02 am    Post subject: Reply with quote

Code:

/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3/include/bits/locale_facets.tcc: In
   member function `_InIter std::money_get<_CharT, _InIter>::do_get(_InIter,
   _InIter, bool, std::ios_base&, std::_Ios_Iostate&, std::basic_string<_CharT,
   std::char_traits<_CharT>, std::allocator<_CharT> >&) const [with _CharT =
   char, _InIter = std::istreambuf_iterator<char, std::char_traits<char> >]':
../../../../libstdc++-v3/src/locale-inst.cc:47:   instantiated from here
/tmp/ps2dev/gcc-3.2.2/build-ee-c++/ee/libstdc++-v3/include/bits/locale_facets.tcc:1167: Internal
   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/src'
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++)

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.
Back to top
View user's profile Send private message
frcol



Joined: 02 Aug 2006
Posts: 20
Location: Brazil

PostPosted: Tue Aug 22, 2006 3:48 am    Post subject: Reply with quote

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???
Back to top
View user's profile Send private message Send e-mail
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Tue Aug 22, 2006 4:08 am    Post subject: Reply with quote

did u checked this post :
http://forums.ps2dev.org/viewtopic.php?t=4909

good luck :)
_________________
http://psxdev.info/evilo/
Back to top
View user's profile Send private message Visit poster's website
frcol



Joined: 02 Aug 2006
Posts: 20
Location: Brazil

PostPosted: Tue Aug 22, 2006 4:48 am    Post subject: Reply with quote

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???
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group