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 

Problem installing PSPtoolchain

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



Joined: 15 Aug 2009
Posts: 14

PostPosted: Sat Aug 15, 2009 2:17 am    Post subject: Problem installing PSPtoolchain Reply with quote

I am on a Gentoo 64-bit system, and have been attempting to install the psptoolchain. Unfortunately, the script fails part of the way through. I am unsure of the problem. I have tried multiple versions of gcc including 4.1.2, 4.2.4, 4.3.4, and 4.4.1. None build the toolchain correctly. Here is the most recent failure with 4.1.2

Code:
configure: running /bin/sh '../../../../newlib/doc/configure' --prefix=/usr/local/pspdev  '--cache-file=./config.cache' '--build=x86_64-unknown-linux-gnu' '--host=psp' '--target=psp' '--with-newlib' '--enable-multilib' '--with-cross-host=x86_64-unknown-linux-gnu' '--prefix=/usr/local/pspdev' '--program-transform-name=s,^,psp-,; ' '--with-target-subdir=psp' '--srcdir=../../../newlib' 'CC=psp-gcc -B/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /usr/src/psptoolchain/build/newlib-1.15.0/newlib/libc/include' 'CFLAGS=-O2 -g -O2 ' 'CPPFLAGS=' 'LDFLAGS=' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=psp' 'target_alias=psp' --cache-file=.././config.cache --srcdir=../../../../newlib/doc
configure: loading cache .././config.cache
checking build system type... (cached) x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking for style of include used by make... GNU
checking host system type... (cached) mipsallegrexel-psp-elf
checking for psp-strip... (cached) psp-strip
checking for gcc... (cached) psp-gcc -B/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /usr/src/psptoolchain/build/newlib-1.15.0/newlib/libc/include
checking dependency style of psp-gcc -B/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /usr/src/psptoolchain/build/newlib-1.15.0/newlib/libc/include... (cached) gcc3
checking whether we are using GNU C... (cached) yes
checking whether psp-gcc -B/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /usr/src/psptoolchain/build/newlib-1.15.0/newlib/libc/include accepts -g... (cached) no
checking for psp-as... (cached) psp-as
checking for psp-ar... (cached) psp-ar
checking for psp-ranlib... (cached) psp-ranlib
checking for psp-readelf... (cached) psp-readelf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for build system executable suffix... no
updating cache .././config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make[1]: Leaving directory `/usr/src/psptoolchain/build/newlib-1.15.0/build-psp'
make: *** [all] Error 2
../scripts/004-newlib-1.15.0.sh: Failed.
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Sat Aug 15, 2009 3:27 am    Post subject: Reply with quote

Compile error with the 4.4.1 gcc:

Code:
psp-ar  rc ./libgcov.a libgcc/./_gcov.o libgcc/./_gcov_merge_add.o libgcc/./_gcov_merge_single.o libgcc/./_gcov_merge_delta.o libgcc/./_gcov_fork.o libgcc/./_gcov_execl.o libgcc/./_gcov_execlp.o libgcc/./_gcov_execle.o libgcc/./_gcov_execv.o libgcc/./_gcov_execvp.o libgcc/./_gcov_execve.o libgcc/./_gcov_interval_profiler.o libgcc/./_gcov_pow2_profiler.o libgcc/./_gcov_one_value_profiler.o
*** buffer overflow detected ***: psp-ar terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x2b0f5033f077]
/lib/libc.so.6[0x2b0f5033d010]
/lib/libc.so.6[0x2b0f5033c559]
/lib/libc.so.6(_IO_default_xsputn+0x8e)[0x2b0f502d25be]
/lib/libc.so.6(_IO_padn+0xc0)[0x2b0f502c69d0]
/lib/libc.so.6(_IO_vfprintf+0x2601)[0x2b0f502a8b41]
/lib/libc.so.6(__vsprintf_chk+0x9d)[0x2b0f5033c5fd]
/lib/libc.so.6(__sprintf_chk+0x80)[0x2b0f5033c540]
psp-ar[0x409666]
psp-ar[0x407971]
psp-ar[0x409f75]
psp-ar[0x410d3f]
psp-ar[0x4042af]
psp-ar[0x40476d]
psp-ar[0x40521f]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b0f502835e4]
psp-ar(calloc+0x189)[0x401f39]
======= Memory map: ========
00400000-00481000 r-xp 00000000 08:05 282670                             /usr/local/pspdev/bin/psp-ar
00680000-00681000 r--p 00080000 08:05 282670                             /usr/local/pspdev/bin/psp-ar
00681000-00682000 rw-p 00081000 08:05 282670                             /usr/local/pspdev/bin/psp-ar
00682000-00686000 rw-p 00000000 00:00 0
00b82000-0119b000 rw-p 00000000 00:00 0                                  [heap]
2b0f50048000-2b0f50064000 r-xp 00000000 08:05 800877                     /lib64/ld-2.9.so
2b0f50064000-2b0f50070000 rw-p 00000000 00:00 0
2b0f50263000-2b0f50264000 r--p 0001b000 08:05 800877                     /lib64/ld-2.9.so
2b0f50264000-2b0f50265000 rw-p 0001c000 08:05 800877                     /lib64/ld-2.9.so
2b0f50265000-2b0f503a4000 r-xp 00000000 08:05 800884                     /lib64/libc-2.9.so
2b0f503a4000-2b0f505a4000 ---p 0013f000 08:05 800884                     /lib64/libc-2.9.so
2b0f505a4000-2b0f505a8000 r--p 0013f000 08:05 800884                     /lib64/libc-2.9.so
2b0f505a8000-2b0f505a9000 rw-p 00143000 08:05 800884                     /lib64/libc-2.9.so
2b0f505a9000-2b0f505af000 rw-p 00000000 00:00 0
2b0f505af000-2b0f505c4000 r-xp 00000000 08:05 256708                     /lib64/libgcc_s.so.1
2b0f505c4000-2b0f507c4000 ---p 00015000 08:05 256708                     /lib64/libgcc_s.so.1
2b0f507c4000-2b0f507c5000 r--p 00015000 08:05 256708                     /lib64/libgcc_s.so.1
2b0f507c5000-2b0f507c6000 rw-p 00016000 08:05 256708                     /lib64/libgcc_s.so.1
7fffa6bd7000-7fffa6bee000 rw-p 00000000 00:00 0                          [stack]
7fffa6bff000-7fffa6c00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
make[3]: *** [libgcc.a] Aborted
make[3]: *** Deleting file `libgcc.a'
make[3]: *** Waiting for unfinished jobs....
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x2b9153b9e077]
/lib/libc.so.6[0x2b9153b9c010]
/lib/libc.so.6[0x2b9153b9b559]
/lib/libc.so.6(_IO_default_xsputn+0x8e)[0x2b9153b315be]
/lib/libc.so.6(_IO_padn+0xc0)[0x2b9153b259d0]
/lib/libc.so.6(_IO_vfprintf+0x2601)[0x2b9153b07b41]
/lib/libc.so.6(__vsprintf_chk+0x9d)[0x2b9153b9b5fd]
/lib/libc.so.6(__sprintf_chk+0x80)[0x2b9153b9b540]
psp-ar[0x409666]
psp-ar[0x407971]
psp-ar[0x409f75]
psp-ar[0x410d3f]
psp-ar[0x4042af]
psp-ar[0x40476d]
psp-ar[0x40521f]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b9153ae25e4]
psp-ar(calloc+0x189)[0x401f39]
======= Memory map: ========
00400000-00481000 r-xp 00000000 08:05 282670                             /usr/local/pspdev/bin/psp-ar
00680000-00681000 r--p 00080000 08:05 282670                             /usr/local/pspdev/bin/psp-ar
00681000-00682000 rw-p 00081000 08:05 282670                             /usr/local/pspdev/bin/psp-ar
00682000-00686000 rw-p 00000000 00:00 0
02237000-022e9000 rw-p 00000000 00:00 0                                  [heap]
2b91538a7000-2b91538c3000 r-xp 00000000 08:05 800877                     /lib64/ld-2.9.so
2b91538c3000-2b91538cf000 rw-p 00000000 00:00 0
2b9153ac2000-2b9153ac3000 r--p 0001b000 08:05 800877                     /lib64/ld-2.9.so
2b9153ac3000-2b9153ac4000 rw-p 0001c000 08:05 800877                     /lib64/ld-2.9.so
2b9153ac4000-2b9153c03000 r-xp 00000000 08:05 800884                     /lib64/libc-2.9.so
2b9153c03000-2b9153e03000 ---p 0013f000 08:05 800884                     /lib64/libc-2.9.so
2b9153e03000-2b9153e07000 r--p 0013f000 08:05 800884                     /lib64/libc-2.9.so
2b9153e07000-2b9153e08000 rw-p 00143000 08:05 800884                     /lib64/libc-2.9.so
2b9153e08000-2b9153e0e000 rw-p 00000000 00:00 0
2b9153e0e000-2b9153e23000 r-xp 00000000 08:05 256708                     /lib64/libgcc_s.so.1
2b9153e23000-2b9154023000 ---p 00015000 08:05 256708                     /lib64/libgcc_s.so.1
2b9154023000-2b9154024000 r--p 00015000 08:05 256708                     /lib64/libgcc_s.so.1
2b9154024000-2b9154025000 rw-p 00016000 08:05 256708                     /lib64/libgcc_s.so.1
7fffb6cd9000-7fffb6cef000 rw-p 00000000 00:00 0                          [stack]
7fffb6d18000-7fffb6d19000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
make[3]: *** [libgcov.a] Aborted
make[3]: *** Deleting file `libgcov.a'
make[3]: Leaving directory `/usr/src/psptoolchain/build/gcc-4.1.0/build-psp/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/usr/src/psptoolchain/build/gcc-4.1.0/build-psp/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/usr/src/psptoolchain/build/gcc-4.1.0/build-psp'
make: *** [all] Error 2
../scripts/002-gcc-4.1.0-stage1.sh: Failed.


Different error, I think it occured earlier, which means it's probably better to use 4.1.2 to try and compile the toolchain. Any idea why it failed the first time?
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun Aug 16, 2009 5:06 am    Post subject: Reply with quote

There are toolchain gcc/binutils bugs... Try modifying the scripts to add CFLAGS=-O0 when compiling the toolchain gcc and binutils, see if that helps anything.
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Sun Aug 16, 2009 8:05 am    Post subject: Reply with quote

First, it's failing at newlib, not binutils or gcc. The second post was showing that using a version of gcc newer than 4.1.2 causes compile to fail on gcc.

Second, the configure scripts look like they are using CFLAGS that are not defined in the script. As such, it seems they'd be using my global CFLAGS settings. I've tried messing with those, but so far no success.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon Aug 17, 2009 12:16 pm    Post subject: Reply with quote

Tristanm11 wrote:
First, it's failing at newlib, not binutils or gcc.

Yes it is, it is psp-ar crashing while building newlib. psp-ar is part of binutils. Changing your build options when you build binutils will likely avoid the bug in psp-ar.
Quote:
The second post was showing that using a version of gcc newer than 4.1.2 causes compile to fail on gcc.
That's what I was addressing. Your first post didn't actually show any errors (you may need to look earlier in the output for it, and/or in config.log).
Quote:
Second, the configure scripts look like they are using CFLAGS that are not defined in the script. As such, it seems they'd be using my global CFLAGS settings. I've tried messing with those, but so far no success.
Read http://forums.ps2dev.org/viewtopic.php?p=83596#83596. Actually just read that whole thread.
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Mon Aug 17, 2009 1:36 pm    Post subject: Reply with quote

Made the recommended change. Tried gcc 4.1 and 4.4. Still fails at the same point. Nothing else in that post helps as the only two suggestions are that fix and use an older compiler.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon Aug 17, 2009 5:19 pm    Post subject: Reply with quote

Another thing to try is adding
Code:
-fno-stack-protector -D_FORTIFY_SOURCE=0
to the CFLAGS. Or porting to the PSP a newer version of binutils that has the psp-ar bug fixed.
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Tue Aug 18, 2009 12:09 am    Post subject: Reply with quote

Tried adding the CFLAGS. Didn't work.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Aug 18, 2009 3:07 am    Post subject: Reply with quote

Disabling the stack protector should definitely fix the "gcc 4.4.1" trace that you posted -- with it disabled, such a trace should never happen. If you're still seeing it, I suspect your CFLAGS settings aren't getting applied to the binutils compilation correctly.
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Tue Aug 18, 2009 3:14 am    Post subject: Reply with quote

No, I'm getting crashes at newlib still, regardless of the gcc version.

Code:
configure: loading cache .././config.cache
checking build system type... (cached) x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking for style of include used by make... GNU
checking host system type... (cached) mipsallegrexel-psp-elf
checking for psp-strip... (cached) psp-strip
checking for gcc... (cached) psp-gcc -B/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /usr/src/psptoolchain/build/newlib-1.15.0/newlib/libc/include
checking dependency style of psp-gcc -B/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /usr/src/psptoolchain/build/newlib-1.15.0/newlib/libc/include... (cached) gcc3
checking whether we are using GNU C... (cached) yes
checking whether psp-gcc -B/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /usr/src/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /usr/src/psptoolchain/build/newlib-1.15.0/newlib/libc/include accepts -g... (cached) no
checking for psp-as... (cached) psp-as
checking for psp-ar... (cached) psp-ar
checking for psp-ranlib... (cached) psp-ranlib
checking for psp-readelf... (cached) psp-readelf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for build system executable suffix... no
updating cache .././config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make[1]: Leaving directory `/usr/src/psptoolchain/build/newlib-1.15.0/build-psp'
make: *** [all] Error 2
../scripts/004-newlib-1.15.0.sh: Failed.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Aug 18, 2009 4:46 am    Post subject: Reply with quote

As I already said, that does not show any actual errors. You'll have to find the actual error, which is probably in earlier output, or config.log, or any other generated files.
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Tue Aug 18, 2009 4:54 am    Post subject: Reply with quote

Would this be it?

Code:
checking whether build environment is sane... config.status: creating Makefile
make[2]: Entering directory `/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/etc'
for f in standards.info configure.info; do \
     if test -f ../../etc/`echo $f | sed -e 's/.info$/.texi/'`; then \
       if make "MAKEINFO=/usr/src/psptoolchain/build/newlib-1.15.0/missing makeinfo --split-size=5000000 --split-size=5000000" $f; then \
         true; \
       else \
         exit 1; \
       fi; \
     fi; \
   done
make[3]: Entering directory `/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/etc'
/usr/src/psptoolchain/build/newlib-1.15.0/missing makeinfo --split-size=5000000 --split-size=5000000 --no-split -I../../etc -o standards.info ../../etc/standards.texi
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
make[3]: *** [standards.info] Error 1
make[3]: Leaving directory `/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/etc'
make[2]: *** [info] Error 1
make[2]: Leaving directory `/usr/src/psptoolchain/build/newlib-1.15.0/build-psp/etc'
make[1]: *** [all-etc] Error 2
make[1]: *** Waiting for unfinished jobs....
yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Aug 18, 2009 6:38 am    Post subject: Reply with quote

Install texinfo
(like it says)
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Tue Aug 18, 2009 7:17 am    Post subject: Reply with quote

It already is, and I already tried reinstalling with no success.

Version 4.13 is currently installed. I tried with both 4.11 and 4.13 installed.

Versions 4.11, 4.12, and 4.13 are in portage.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Aug 19, 2009 3:06 am    Post subject: Reply with quote

You can try to track down why makeinfo wasn't detected, or follow instructions like http://forums.ps2dev.org/viewtopic.php?t=10096&highlight=makeinfo to just work around the bug.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Aug 19, 2009 4:18 am    Post subject: Reply with quote

Old configure script don't recognize the new versions due to the poor method used to check the version. You need to edit the configure script before running it and change the version detection method. Look for

Code:
     if ${MAKEINFO} --version \
       | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then


and change to

Code:
     if ${MAKEINFO} --version \
       | egrep 'texinfo[^0-9]*(4\.([4-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then


The old method assumed that the version would only go to 4.9, so it broke when the version reached 4.10. New configure scripts have the fix, but old ones will give a missing makeinfo error due to the problem recognizing makeinfo greater than 4.9.
Back to top
View user's profile Send private message AIM Address
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Wed Aug 19, 2009 10:53 pm    Post subject: Reply with quote

Alright. On to another error. The toolchain seems like it's going to fight me through every package at this rate.

Code:
__sbrk libcglue.c -c -o glue__sbrk.o
psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libc/include -I../../src/base -I../../src/kernel -I../../src/user -I../../src/debug    -g -O2 -G0 -Wall -DF_glue_clock libcglue.c -c -o glue_clock.o
psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libc/include -I../../src/base -I../../src/kernel -I../../src/user -I../../src/debug    -g -O2 -G0 -Wall -DF_glue_gettimeofday libcglue.c -c -o glue_gettimeofday.o
libcglue.c:46: error: conflicting types for 'gettimeofday'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/sys/time.h:73: error: previous declaration of 'gettimeofday' was here
make[3]: *** [glue_gettimeofday.o] Error 1
make[3]: Leaving directory `/usr/src/psptoolchain/build/pspsdk/src/libc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/psptoolchain/build/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/psptoolchain/build/pspsdk'
make: *** [all] Error 2
../scripts/006-pspsdk-stage2.sh: Failed.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Aug 20, 2009 3:05 am    Post subject: Reply with quote

You'd get that if you had an old version of the toolchain script. How did you obtain it? You should use the latest version from svn.
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Thu Aug 20, 2009 5:58 am    Post subject: Reply with quote

Well, I got the svn version ( I was previously trying with the snapshot that's hosted on the website. ) I managed to get it to compile correctly with some messing with the CFLAGS. Now I'm onto psplibraries. Unfortunately, I'm getting compile crashes there as well.

the copy of psplibraries is the latest from the ps2dev.org svn repositories.

Code:
cp -f bzlib.h /usr/local/pspdev/psp/include
chmod a+r /usr/local/pspdev/psp/include/bzlib.h
cp -f libbz2.a /usr/local/pspdev/psp/lib
chmod a+r /usr/local/pspdev/psp/lib/libbz2.a
rm -f *.o libbz2.a
At revision 2469.
running `aclocal -I .'
running `libtoolize --copy'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
running `autoconf'
cd builds/unix; ./configure --host psp --prefix=/usr/local/pspdev/psp
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... /bin/sh: ./config.guess: No such file or directory
configure: error: cannot guess build type; you must specify one
make: *** [builds/unix/unix-def.mk] Error 1
../scripts/003-freetype.sh: Failed.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Aug 21, 2009 12:44 pm    Post subject: Reply with quote

What cflags did you need to change? Please be more specific so we can actually be helpful to other people rather than just making your one setup work.

Regarding freetype, libtoolize should create config.guess but I suppose it's not. What version of libtool do you have?
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Fri Aug 21, 2009 1:19 pm    Post subject: Reply with quote

The CFLAGS suggested further up in the thread. The problems were that the tarball on the website is an older version. The svn worked almost perfectly. The only problem was binutils, which I fixed with: "$CFLAGS -fno-stack-protector -D_FORTIFY_SOURCE=0" as my CFLAGS

My global CFLAGS settings are "-O2 -march=athlon64 -pipe"

My libtool verson is 2.2.4
Back to top
View user's profile Send private message
Tristanm11



Joined: 15 Aug 2009
Posts: 14

PostPosted: Sat Aug 22, 2009 8:09 am    Post subject: Reply with quote

Updated libtool to 2.2.6a and it compiled fine. I should be good now.
Back to top
View user's profile Send private message
gtmtnbiker



Joined: 07 Nov 2009
Posts: 5
Location: Boston area

PostPosted: Sat Nov 07, 2009 3:32 am    Post subject: Reply with quote

jimparis wrote:
You'd get that if you had an old version of the toolchain script. How did you obtain it? You should use the latest version from svn.


I had the same issue. The problem is that if you type in "psptoolchain" in google, the first hit is a page on this site.

http://ps2dev.org/psp/Tools/Toolchain

It provides a snapshot/instructions which does not work for Ubuntu 9.10 or various Red Hat Linux versions that I tried.

There were a lot of stale references and after googling/reading different posts, I finally checked out the latest versions and was successful.

What I ended up doing was running:

svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain psptoolchain
svn co svn://svn.ps2dev.org/psp/trunk/psplibraries psplibraries

and then following the instructions in the readme file for Ubuntu in psptoolchain directory.

Someone should replace the page at ttp://ps2dev.org/psp/Tools/Toolchain with instructions that you should make sure you have Subversion installed and then run the above "svn co..." commands.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Nov 10, 2009 6:25 am    Post subject: Reply with quote

Updated the wiki
Back to top
View user's profile Send private message
Pihas



Joined: 25 Oct 2008
Posts: 60
Location: Lithuania

PostPosted: Tue Nov 17, 2009 9:18 am    Post subject: Reply with quote

Ubuntu 9.10 (Netbook Remix):

Works perfect, just needed to remove .sample in Makefile.sample .... Sry for my stupid question why i can't compile...
_________________

Cooming Soon
Back to top
View user's profile Send private message Visit poster's website
gtmtnbiker



Joined: 07 Nov 2009
Posts: 5
Location: Boston area

PostPosted: Thu Nov 19, 2009 12:32 am    Post subject: Reply with quote

jimparis wrote:
Updated the wiki


I saw the update you did recently. Thanks for doing this!
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