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 

Succesfully compiled the PSPTOOLCHAIN BUT....

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



Joined: 29 Jan 2009
Posts: 16

PostPosted: Thu Jan 29, 2009 3:39 pm    Post subject: Succesfully compiled the PSPTOOLCHAIN BUT.... Reply with quote

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<><><><><<>
Back to top
View user's profile Send private message Yahoo Messenger
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Jan 29, 2009 4:15 pm    Post subject: Reply with quote

Read the readme, it'll tell you to set your environment variables and path properly.
Back to top
View user's profile Send private message Visit poster's website
Swissidle



Joined: 29 Jan 2009
Posts: 16

PostPosted: Thu Jan 29, 2009 4:43 pm    Post subject: Reply with quote

this part?

Code:

2) Add the following to your login script:
  export PSPDEV=/usr/local/pspdev
  export PATH=$PATH:$PSPDEV/bin


i didn't miss any of the steps and i succesfuly compiled the toolchain.
_________________
<><><><><>>>NOOB<><><><><<>
Back to top
View user's profile Send private message Yahoo Messenger
Swissidle



Joined: 29 Jan 2009
Posts: 16

PostPosted: Thu Jan 29, 2009 4:52 pm    Post subject: Reply with quote

i repeat all the process and i got this new error

Code:
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 `/home/alex/psptoolchain/build/pspsdk/src/libc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alex/psptoolchain/build/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alex/psptoolchain/build/pspsdk'
make: *** [all] Error 2
../scripts/006-pspsdk-stage2.sh: Failed.


T_T someone help pls.
_________________
<><><><><>>>NOOB<><><><><<>
Back to top
View user's profile Send private message Yahoo Messenger
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Jan 29, 2009 5:51 pm    Post subject: Reply with quote

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

Code:
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 `/home/alex/psptoolchain/build/pspsdk/src/libc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alex/psptoolchain/build/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alex/psptoolchain/build/pspsdk'
make: *** [all] Error 2
../scripts/006-pspsdk-stage2.sh: 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.
Back to top
View user's profile Send private message AIM Address
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Thu Jan 29, 2009 7:36 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Swissidle



Joined: 29 Jan 2009
Posts: 16

PostPosted: Thu Jan 29, 2009 8:26 pm    Post subject: Reply with quote

@wally what section??

im using the latest gcc how ca i get the newlib 1.16?
_________________
<><><><><>>>NOOB<><><><><<>
Back to top
View user's profile Send private message Yahoo Messenger
Swissidle



Joined: 29 Jan 2009
Posts: 16

PostPosted: Fri Jan 30, 2009 1:21 am    Post subject: Reply with quote

close this thread pls. THANKS FOR THE HELP GUYS



<<<<<<<<<<<<<<<<<<< SOLVED >>>>>>>>>>>>>>>>>>>>
_________________
<><><><><>>>NOOB<><><><><<>
Back to top
View user's profile Send private message Yahoo Messenger
mithilwane



Joined: 30 Jan 2009
Posts: 4

PostPosted: Fri Jan 30, 2009 1:31 am    Post subject: timeoftheday problem Reply with quote

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
Back to top
View user's profile Send private message
Swissidle



Joined: 29 Jan 2009
Posts: 16

PostPosted: Fri Jan 30, 2009 1:44 am    Post subject: Reply with quote

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<><><><><<>
Back to top
View user's profile Send private message Yahoo Messenger
mithilwane



Joined: 30 Jan 2009
Posts: 4

PostPosted: Fri Jan 30, 2009 3:07 pm    Post subject: Error with gettimeofday Reply with quote

Hi,

Thank you very much. That was solved.
Back to top
View user's profile Send private message
mithilwane



Joined: 30 Jan 2009
Posts: 4

PostPosted: Sat Jan 31, 2009 12:02 am    Post subject: Another problem with psplinkusb Reply with quote

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
Back to top
View user's profile Send private message
mithilwane



Joined: 30 Jan 2009
Posts: 4

PostPosted: Sat Jan 31, 2009 11:12 pm    Post subject: Problem with psplinkusb Reply with quote

Hi,

I eventually built the toolchain on OpenSuse 10.3

Thanks for the Help

Regards
Mithil
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