Error Building Newlib (PSPToolchain)

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

Moderators: cheriff, TyRaNiD

Post Reply
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Error Building Newlib (PSPToolchain)

Post by Beeblebrox »

I've been over every other thread regarding errors using the PSPToolchain script. I'm using psptoolchain-20070501

Using Cygwin on Windows XP:

I ran the script once (./toolchain.sh), and it downloaded the files, began to build everything, and then crashed during the building of Newlib

I then added /cygdrive/c/pspsdk/bin
to my PATH and reran the script, but this time using the command:
./toolchain.sh -n

Even though I used the -n parameter, it proceeded to rebuild EVERYTHING, including both the binutils and gcc. (A quick look at toolchain.sh made it clear why -n doesn't work. :P I've since commented out the lines building everything up to Newlib.)

After about another hour of building, it reached the Newlib part, and crashed at the same time. Provided is the output I'm getting at the crash each time:


Code: Select all

psp-ar cru lib.a lib_a-locale.o lib_a-fix_grouping.o lib_a-ldpart.o lib_a-lmessa
ges.o lib_a-lnumeric.o lib_a-lmonetary.o lib_a-nl_langinfo.o lib_a-timelocal.o
psp-ranlib lib.a
make[5]: Leaving directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-psp
/psp/newlib/libc/locale'
Making all in sys
make[5]: Entering directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-ps
p/psp/newlib/libc/sys'
Making all in psp
make[6]: Entering directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-ps
p/psp/newlib/libc/sys/psp'
psp-gcc -B/home/psp/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isys
tem /home/psp/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include
 -isystem /home/psp/psptoolchain/build/newlib-1.15.0/newlib/libc/include -DPACKA
GE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.15.0\" -DP
ACKAGE_STRING=\"newlib\ 1.15.0\" -DPACKAGE_BUGREPORT=\"\"  -I. -I../../../../../
../newlib/libc/sys/psp -O2 -G0 -mno-explicit-relocs -DCOMPACT_CTYPE -DCLOCK_PROV
IDED -DHAVE_FCNTL -DMALLOC_ALIGNMENT=16 -I/psp/sdk/include -fno-builtin      -O2
 -g -O2  -c ../../../../../../newlib/libc/sys/psp/libcglue.c
In file included from ../../../../../../newlib/libc/sys/psp/libcglue.c:26:
../../../../../../newlib/libc/sys/psp/sys/dirent.h:11:34: error: pspiofilemgr_di
rent.h: No such file or directory
In file included from ../../../../../../newlib/libc/sys/psp/libcglue.c:26:
../../../../../../newlib/libc/sys/psp/sys/dirent.h:18: error: expected specifier
-qualifier-list before 'SceIoStat'
../../../../../../newlib/libc/sys/psp/sys/dirent.h:27: error: expected specifier
-qualifier-list before 'SceUID'
../../../../../../newlib/libc/sys/psp/libcglue.c:29:22: error: psptypes.h: No su
ch file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:30:26: error: pspiofilemgr.h: N
o such file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:31:26: error: pspmodulemgr.h: N
o such file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:32:23: error: pspsysmem.h: No s
uch file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:33:26: error: pspthreadman.h: N
o such file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:34:22: error: psputils.h: No su
ch file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:35:24: error: psputility.h: No
such file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:36:22: error: pspstdio.h: No su
ch file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:37:24: error: pspintrman.h: No
such file or directory
In file included from ../../../../../../newlib/libc/sys/psp/libcglue.c:38:
../../../../../../newlib/libc/sys/psp/fdman.h:31: error: expected specifier-qual
ifier-list before 'u8'
psp-gcc -B/home/psp/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isys
tem /home/psp/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include
 -isystem /home/psp/psptoolchain/build/newlib-1.15.0/newlib/libc/include -DPACKA
GE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.15.0\" -DP
ACKAGE_STRING=\"newlib\ 1.15.0\" -DPACKAGE_BUGREPORT=\"\"  -I. -I../../../../../
../newlib/libc/sys/psp -O2 -G0 -mno-explicit-relocs -DCOMPACT_CTYPE -DCLOCK_PROV
IDED -DHAVE_FCNTL -DMALLOC_ALIGNMENT=16 -I/psp/sdk/include -fno-builtin      -O2
 -g -O2  -DF_socket ../../../../../../newlib/libc/sys/psp/socket.c -c -o socket.
o
make[6]: *** [libcglue.o] Error 1
make[6]: *** Waiting for unfinished jobs....
../../../../../../newlib/libc/sys/psp/socket.c:19:22: error: psptypes.h: No such
 file or directory
In file included from ../../../../../../newlib/libc/sys/psp/socket.c:20:
../../../../../../newlib/libc/sys/psp/fdman.h:31: error: expected specifier-qual
ifier-list before 'u8'
../../../../../../newlib/libc/sys/psp/socket.c: In function 'socket':
../../../../../../newlib/libc/sys/psp/socket.c:36: error: '__psp_descriptormap_t
ype' has no member named 'sce_descriptor'
../../../../../../newlib/libc/sys/psp/socket.c:37: error: '__psp_descriptormap_t
ype' has no member named 'type'
../../../../../../newlib/libc/sys/psp/socket.c: In function '__psp_socket_close'
:
../../../../../../newlib/libc/sys/psp/socket.c:56: error: '__psp_descriptormap_t
ype' has no member named 'ref_count'
../../../../../../newlib/libc/sys/psp/socket.c:57: error: '__psp_descriptormap_t
ype' has no member named 'sce_descriptor'
make[6]: *** [socket.o] Error 1
make[6]: Leaving directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-psp
/psp/newlib/libc/sys/psp'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-psp
/psp/newlib/libc/sys'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-psp
/psp/newlib/libc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-psp
/psp/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-psp
/psp/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/home/psp/psptoolchain/build/newlib-1.15.0/build-psp
'
make: *** [all] Error 2
Error while building newlib-1.15.0. Aborting!

Zaphod Beeb@zaphb /home/psp/psptoolchain
$ export PATH=/cygdrive/c/pspsdk/bin:$PATH

Any help would be greatly appreciated, as I'm reaching the end of my rope. Thanks, guys.

-Beeblebrox
Last edited by Beeblebrox on Wed May 16, 2007 6:00 pm, edited 1 time in total.
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Post by Beeblebrox »

Well, this fixed it -

I ran the following right before running the script

export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin

as suggested in the readme file, but the readme file actually has "/usr/local/pspdev" and "$PATH.... "

With the double quotes, which I think might have been throwing off the syntax of the Path. Upon adding these two lines before executing the script, I made it past the Newlib build.

So far so good, hopefully the rest builds.

*Edit*
Well, it's 3:35AM now, and the script has made it to the GDB building. Things are looking promising.
*/Edit*

-Beeblebrox
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Post by Beeblebrox »

SUCCESS!

-Beeblebrox (It's been a long, long night.)
Post Reply