gcc 4.1.0 and gcc 4.1.1

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
bluehash
Posts: 5
Joined: Fri Jun 29, 2007 1:26 am

gcc 4.1.0 and gcc 4.1.1

Post by bluehash »

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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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
bluehash
Posts: 5
Joined: Fri Jun 29, 2007 1:26 am

Post by bluehash »

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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

That's a new one.

What's $LIBRARY_PATH set to?
bluehash
Posts: 5
Joined: Fri Jun 29, 2007 1:26 am

Post by bluehash »

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?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Maybe try clearing it before compiling the toolchain?
bluehash
Posts: 5
Joined: Fri Jun 29, 2007 1:26 am

Post by bluehash »

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....
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

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: Select all

rm -rf /usr/local/pspdev
env -i ./toolchain-sudo.sh
bluehash
Posts: 5
Joined: Fri Jun 29, 2007 1:26 am

Post by bluehash »

Thank you for your responses.
But I still get those errors after clearing up the environment.
pino112
Posts: 5
Joined: Sun Oct 14, 2007 6:12 am

Post by pino112 »

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
aeolusc
Posts: 18
Joined: Sat Oct 14, 2006 12:17 pm

Post by aeolusc »

to pino112:
you should paste real error info.
try this:

Code: Select all

./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
pino112
Posts: 5
Joined: Sun Oct 14, 2007 6:12 am

Post by pino112 »

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

error.log:

Code: Select all

 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: Select all

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
$ 
aeolusc
Posts: 18
Joined: Sat Oct 14, 2006 12:17 pm

Post by aeolusc »

try modify scripts/005-gcc-4.1.0-stage2.sh
change

Code: Select all

make -j 2
to

Code: Select all

make
cygwin sometimes get the problem with duel compiling job
pino112
Posts: 5
Joined: Sun Oct 14, 2007 6:12 am

Post by pino112 »

cygwin sucks.

I work now with CSP.

thats work much better.

thnx for the help

grtz pino112
Post Reply