Succesfully compiled the PSPTOOLCHAIN BUT....

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

Moderators: cheriff, TyRaNiD

Post Reply
Swissidle
Posts: 16
Joined: Thu Jan 29, 2009 12:37 am

Succesfully compiled the PSPTOOLCHAIN BUT....

Post by Swissidle »

I'm getting this error whenever im trying to compile my sample code for psp.

[root@ernesta helloworld]# make
make: psp-config: Command not found
Makefile:20: /lib/build.mak: No such file or directory
make: *** No rule to make target `/lib/build.mak'. Stop.
[root@ernesta helloworld]#


im running fedora 10. thanks
<><><><><>>>NOOB<><><><><<>
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Read the readme, it'll tell you to set your environment variables and path properly.
Swissidle
Posts: 16
Joined: Thu Jan 29, 2009 12:37 am

Post by Swissidle »

this part?

Code: Select all

2&#41; Add the following to your login script&#58;
  export PSPDEV=/usr/local/pspdev
  export PATH=$PATH&#58;$PSPDEV/bin
i didn't miss any of the steps and i succesfuly compiled the toolchain.
<><><><><>>>NOOB<><><><><<>
Swissidle
Posts: 16
Joined: Thu Jan 29, 2009 12:37 am

Post by Swissidle »

i repeat all the process and i got this new error

Code: Select all

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&#58;46&#58; error&#58; conflicting types for ‘gettimeofday’
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/sys/time.h&#58;73&#58; error&#58; previous declaration of ‘gettimeofday’ was here
make&#91;3&#93;&#58; *** &#91;glue_gettimeofday.o&#93; Error 1
make&#91;3&#93;&#58; Leaving directory `/home/alex/psptoolchain/build/pspsdk/src/libc'
make&#91;2&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;2&#93;&#58; Leaving directory `/home/alex/psptoolchain/build/pspsdk/src'
make&#91;1&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;1&#93;&#58; Leaving directory `/home/alex/psptoolchain/build/pspsdk'
make&#58; *** &#91;all&#93; Error 2
../scripts/006-pspsdk-stage2.sh&#58; Failed.
T_T someone help pls.
<><><><><>>>NOOB<><><><><<>
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Swissidle wrote:i repeat all the process and i got this new error

Code: Select all

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&#58;46&#58; error&#58; conflicting types for ‘gettimeofday’
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/sys/time.h&#58;73&#58; error&#58; previous declaration of ‘gettimeofday’ was here
make&#91;3&#93;&#58; *** &#91;glue_gettimeofday.o&#93; Error 1
make&#91;3&#93;&#58; Leaving directory `/home/alex/psptoolchain/build/pspsdk/src/libc'
make&#91;2&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;2&#93;&#58; Leaving directory `/home/alex/psptoolchain/build/pspsdk/src'
make&#91;1&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;1&#93;&#58; Leaving directory `/home/alex/psptoolchain/build/pspsdk'
make&#58; *** &#91;all&#93; Error 2
../scripts/006-pspsdk-stage2.sh&#58; Failed.
T_T someone help pls.
It's a Bug in the latest SDK Build

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

comment out that section in that code and it should all be sweet.
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

If you are using GCC 4.1.0 (from your error log) I almost beat that you have newlib 1.15. The new Toolchain is updated with newlib 1.16 and the timeofday struct changed, If you are building the Toolchain from scratch make sure you have newlib 1.16.

This is no bug in the SDK, the SDK was updated but you are still using an old version of the scripts with the updated SVN code.
Swissidle
Posts: 16
Joined: Thu Jan 29, 2009 12:37 am

Post by Swissidle »

@wally what section??

im using the latest gcc how ca i get the newlib 1.16?
<><><><><>>>NOOB<><><><><<>
Swissidle
Posts: 16
Joined: Thu Jan 29, 2009 12:37 am

Post by Swissidle »

close this thread pls. THANKS FOR THE HELP GUYS



<<<<<<<<<<<<<<<<<<< SOLVED >>>>>>>>>>>>>>>>>>>>
<><><><><>>>NOOB<><><><><<>
mithilwane
Posts: 4
Joined: Fri Jan 30, 2009 12:12 am

timeoftheday problem

Post by mithilwane »

Hi,

I am trying the same using cygwin.
Tried updating using svn but still gives the same error.
I see that both the bild script and the downloaded package is 1.15.
How can i change it to 1.16
Swissidle
Posts: 16
Joined: Thu Jan 29, 2009 12:37 am

Post by Swissidle »

try deleting all the previous pspdev folders that you've installed/compiled.

it worked for me. just downloaded the latest psptoolchain using svn read the readme.
if you're using ubuntu follow the ubuntu-readme, the readme and toolchain.sh worked for me, im using fedora 10.

just make sure u've downloaded all of the dependencies etc. its listed on the readme.
<><><><><>>>NOOB<><><><><<>
mithilwane
Posts: 4
Joined: Fri Jan 30, 2009 12:12 am

Error with gettimeofday

Post by mithilwane »

Hi,

Thank you very much. That was solved.
mithilwane
Posts: 4
Joined: Fri Jan 30, 2009 12:12 am

Another problem with psplinkusb

Post by mithilwane »

Hi,

I installed sdl in my cygwin environment.
Now i'm getting the following errors

if ( which sdl-config ); then { make -C tools/remotejoy/pcsdl all; } else { make
-C tools/remotejoy/pc all; } fi
/usr/local/bin/sdl-config
make[1]: Entering directory `/cygdrive/d/installers/psp/psptoolchain/build/pspli
nkusb/tools/remotejoy/pcsdl'
cc -O2 -Wall -g -I/usr/local/include/SDL -I/usr/include/mingw -mno-cygwin -Dmain
=SDL_main -c -o remotejoy.o remotejoy.c
remotejoy.c:16:24: sys/select.h: No such file or directory
remotejoy.c:17:24: sys/socket.h: No such file or directory
remotejoy.c:20:24: netinet/in.h: No such file or directory
remotejoy.c:21:25: netinet/tcp.h: No such file or directory
remotejoy.c:22:19: netdb.h: No such file or directory
remotejoy.c:185: error: field `serv' has incomplete type
remotejoy.c: In function `init_sockaddr':
remotejoy.c:325: error: dereferencing pointer to incomplete type
remotejoy.c:325: error: `AF_INET' undeclared (first use in this function)
remotejoy.c:325: error: (Each undeclared identifier is reported only once
remotejoy.c:325: error: for each function it appears in.)
remotejoy.c:326: error: dereferencing pointer to incomplete type
remotejoy.c:326: warning: implicit declaration of function `htons'
remotejoy.c:327: warning: implicit declaration of function `gethostbyname'
remotejoy.c:327: warning: assignment makes pointer from integer without a cast
remotejoy.c:333: error: dereferencing pointer to incomplete type
remotejoy.c:333: error: dereferencing pointer to incomplete type
remotejoy.c: In function `connect_to':
remotejoy.c:340: error: storage size of 'name' isn't known
remotejoy.c:344: warning: implicit declaration of function `socket'
remotejoy.c:344: error: `PF_INET' undeclared (first use in this function)
remotejoy.c:344: error: `SOCK_STREAM' undeclared (first use in this function)
remotejoy.c:359: warning: implicit declaration of function `connect'
remotejoy.c:367: warning: implicit declaration of function `setsockopt'
remotejoy.c:367: error: `IPPROTO_TCP' undeclared (first use in this function)
remotejoy.c:367: error: `TCP_NODELAY' undeclared (first use in this function)
remotejoy.c:340: warning: unused variable `name'
remotejoy.c: In function `read_thread':
remotejoy.c:583: error: `fd_set' undeclared (first use in this function)
remotejoy.c:583: error: parse error before "saveset"
remotejoy.c:588: warning: implicit declaration of function `FD_ZERO'
remotejoy.c:588: error: `saveset' undeclared (first use in this function)
remotejoy.c:589: warning: implicit declaration of function `FD_SET'
remotejoy.c:593: error: `readset' undeclared (first use in this function)
remotejoy.c:595: warning: implicit declaration of function `select'
remotejoy.c:595: error: `FD_SETSIZE' undeclared (first use in this function)
remotejoy.c:603: warning: implicit declaration of function `FD_ISSET'
make[1]: *** [remotejoy.o] Error 1
make[1]: Leaving directory `/cygdrive/d/installers/psp/psptoolchain/build/psplin
kusb/tools/remotejoy/pcsdl'
make: *** [all] Error 2
../scripts/009-psplinkusb.sh: Failed.


Please let me know where to find these files sys/select.h sys/socket.h etc...

Also i read in quite a bit of forums we can skip this (though i think debugging would be a good help)

so also please let me know how to skip this.

Regards
Mithil
mithilwane
Posts: 4
Joined: Fri Jan 30, 2009 12:12 am

Problem with psplinkusb

Post by mithilwane »

Hi,

I eventually built the toolchain on OpenSuse 10.3

Thanks for the Help

Regards
Mithil
Post Reply