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 

gcc 4.1.0 and gcc 4.1.1

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



Joined: 29 Jun 2007
Posts: 5

PostPosted: Fri Jun 29, 2007 1:45 am    Post subject: gcc 4.1.0 and gcc 4.1.1 Reply with quote

Hello,
I already have gcc 4.1.1 running on my machine(FC6)

Since the toolchain script has gcc 4.1.0, would it hurt my original version or would it compile it separately?

Thank you.
_________________
http://www.machinegrid.com
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 29, 2007 3:04 am    Post subject: Reply with quote

The toolchain is compiled and stored separately from anything else on your machine. They should not interfere with each other at all.

By default, the psp toolchain is installed into: /usr/local/pspdev
Back to top
View user's profile Send private message Visit poster's website
bluehash



Joined: 29 Jun 2007
Posts: 5

PostPosted: Fri Jun 29, 2007 4:21 am    Post subject: Reply with quote

Thank you.
I'm running as root.
On the terminal I type
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin
..as in the readme.txt


I get this while running the scripts
checking for wait3... checking LIBRARY_PATH variable... contains current directory
configure: error:
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.

make[1]: Leaving directory `/home/bluehash/Desktop/psptoolchain/build/gcc-4.1.0/build-psp'
make: *** [all] Error 2
../scripts/002-gcc-4.1.0-stage1.sh: Failed.
_________________
http://www.machinegrid.com
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 29, 2007 4:56 am    Post subject: Reply with quote

That's a new one.

What's $LIBRARY_PATH set to?
Back to top
View user's profile Send private message Visit poster's website
bluehash



Joined: 29 Jun 2007
Posts: 5

PostPosted: Fri Jun 29, 2007 5:19 am    Post subject: Reply with quote

It's set to
[root@localhost psptoolchain]# $LIBRARY_PATH
-bash: /opt/simulation/player/lib:: No such file or directory

Thats something I was working on before.
Has it to be assigned something else?
_________________
http://www.machinegrid.com
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 29, 2007 5:30 am    Post subject: Reply with quote

Maybe try clearing it before compiling the toolchain?
Back to top
View user's profile Send private message Visit poster's website
bluehash



Joined: 29 Jun 2007
Posts: 5

PostPosted: Fri Jun 29, 2007 7:21 am    Post subject: Reply with quote

Thanks. Clearing it helped.It went quite further, till I get to this

/bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include ../../gcc/coverage.c -o coverage.o
as: unrecognized option `-EL'
make[2]: *** [coverage.o] Error 1
make[2]: *** Waiting for unfinished jobs....
_________________
http://www.machinegrid.com
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Jun 29, 2007 8:20 am    Post subject: Reply with quote

It sounds like you have some other stuff left over in your environment that might be messing things up. Try running with a fresh empty environment:
Code:
rm -rf /usr/local/pspdev
env -i ./toolchain-sudo.sh
Back to top
View user's profile Send private message
bluehash



Joined: 29 Jun 2007
Posts: 5

PostPosted: Fri Jun 29, 2007 8:57 am    Post subject: Reply with quote

Thank you for your responses.
But I still get those errors after clearing up the environment.
_________________
http://www.machinegrid.com
Back to top
View user's profile Send private message
pino112



Joined: 14 Oct 2007
Posts: 5

PostPosted: Sun Oct 14, 2007 7:27 pm    Post subject: Reply with quote

bluehash wrote:
Thank you.

make[1]: Leaving directory `/home/bluehash/Desktop/psptoolchain/build/gcc-4.1.0/build-psp'
make: *** [all] Error 2
../scripts/002-gcc-4.1.0-stage1.sh: Failed.


i have this error too. what can i do to solve the error?

grtz Pino112
Back to top
View user's profile Send private message
aeolusc



Joined: 14 Oct 2006
Posts: 18

PostPosted: Sun Oct 14, 2007 10:05 pm    Post subject: Reply with quote

to pino112:
you should paste real error info.
try this:
Code:
./toolchain-sudo.sh 2>error.log

then find error lines in error.log


PS: (to pspsdk dev team)
I've already tried apply the gcc-4.1.0 patch in pspsdk to gcc 4.1.2, works fine to me.
So I think it's time to update toolchain to download gcc 4.1.2 to patch&compile instead of 4.1.0
Back to top
View user's profile Send private message
pino112



Joined: 14 Oct 2007
Posts: 5

PostPosted: Mon Oct 15, 2007 6:20 am    Post subject: Reply with quote

i have a new error its in 005-gcc-4.1.0-stage2.sh. check the error log

error.log:

Code:
 transformation: 0.016000, building DFA: 1.326000
  DFA minimization: 0.015000, making insn equivalence: 0.000000
 all automaton generation: 1.608000, output: 0.141000
sed: -e expression #1, char 88: unterminated address regex
Funny input line: timestamp
gen-protos: 1346 entries 341 collisions
configure: WARNING: No native atomic operations are provided for this platform.
configure: WARNING: They cannot be faked when thread support is disabled.
configure: WARNING: Thread-safety of certain classes is not guaranteed.
configure: WARNING: === You have requested GNU symbol versioning, but
configure: WARNING: === you are not building a shared libgcc_s.
configure: WARNING: === Symbol versioning will be disabled.
In file included from ../../../libiberty/getopt.c:108:
../../../libiberty/../include/getopt.h:116: warning: function declaration isn't a prototype
In file included from ../../../libiberty/getopt1.c:37:
../../../libiberty/../include/getopt.h:116: warning: function declaration isn't a prototype
../../../libiberty/pex-unix.c: In function 'pex_unix_wait':
../../../libiberty/pex-unix.c:468: warning: implicit declaration of function 'kill'
../../../libiberty/strsignal.c: In function 'psignal':
../../../libiberty/strsignal.c:558: warning: comparison between signed and unsigned
../../../libiberty/unlink-if-ordinary.c: In function 'unlink_if_ordinary':
../../../libiberty/unlink-if-ordinary.c:67: warning: implicit declaration of function 'lstat'
../libtool: fork: Resource temporarily unavailable
xgcc: : No such file or directory
make[4]: *** [del_opvnt.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2


cygwin.bat:

Code:
psp-ar rc .libs/libssp.a  ssp.o gets-chk.o memcpy-chk.o memmove-chk.o mempcpy-ch
k.o memset-chk.o snprintf-chk.o sprintf-chk.o stpcpy-chk.o strcat-chk.o strcpy-c
hk.o strncat-chk.o strncpy-chk.o vsnprintf-chk.o vsprintf-chk.o
psp-ranlib .libs/libssp.a
creating libssp.la
(cd .libs && rm -f libssp.la && ln -s ../libssp.la libssp.la)
make[3]: Leaving directory `/home/Eigenaar/psptoolchain/build/gcc-4.1.0/build-ps
p/psp/libssp'
make[2]: Leaving directory `/home/Eigenaar/psptoolchain/build/gcc-4.1.0/build-ps
p/psp/libssp'
make[1]: Leaving directory `/home/Eigenaar/psptoolchain/build/gcc-4.1.0/build-ps
p'
../scripts/005-gcc-4.1.0-stage2.sh: Failed.
ERROR: Could not run the toolchain script.

Eigenaar@wobben-464a0b43 ~/psptoolchain
$
Back to top
View user's profile Send private message
aeolusc



Joined: 14 Oct 2006
Posts: 18

PostPosted: Mon Oct 15, 2007 5:22 pm    Post subject: Reply with quote

try modify scripts/005-gcc-4.1.0-stage2.sh
change
Code:
make -j 2
to
Code:
make


cygwin sometimes get the problem with duel compiling job
Back to top
View user's profile Send private message
pino112



Joined: 14 Oct 2007
Posts: 5

PostPosted: Sat Oct 20, 2007 6:46 am    Post subject: Reply with quote

cygwin sucks.

I work now with CSP.

thats work much better.

thnx for the help

grtz pino112
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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