| View previous topic :: View next topic |
| Author |
Message |
Ratfink
Joined: 26 May 2009 Posts: 6 Location: The fourth dimension
|
Posted: Tue May 26, 2009 5:32 am Post subject: Error when running toolchain.sh |
|
|
I'm trying to install the PSP toolchain. I have tried several times, and I always get the following 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/clay/psptoolchain/build/pspsdk/src/libc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/clay/psptoolchain/build/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/clay/psptoolchain/build/pspsdk'
make: *** [all] Error 2
../scripts/006-pspsdk-stage2.sh: Failed.
ERROR: Could not run the toolchain script. |
I'm using Fedora 10. I'm following the instructions here. Please help, I have no idea what's wrong, and I want to start making PSP games. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue May 26, 2009 8:27 am Post subject: |
|
|
That uses the old toolchain script. Checkout the new toolchain from the repo, then read the ubuntu readme (should work on any distro with minor differences in the package names).
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain
There are tutorials all over the forum. Read some of the older threads to see the problems people commonly had and how they got around them... threads like this one: http://forums.ps2dev.org/viewtopic.php?t=11935 |
|
| Back to top |
|
 |
Ratfink
Joined: 26 May 2009 Posts: 6 Location: The fourth dimension
|
Posted: Tue May 26, 2009 10:53 am Post subject: |
|
|
Okay, thank you. I just did the svn co, and I tried to run it. It said I need mpfr, so I tried to install it, but I seem to already have it. Now if yum will finish installing mpfr-devel, I'll try running the toolchain script again.
EDIT: After I did that and ran the script, it failed with the following error:
| Code: | checking for gcc... gcc-4.2
checking whether the C compiler (gcc-4.2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
../scripts/001-binutils-2.16.1.sh: Failed.
ERROR: Could not run the toolchain script. |
Does this mean it depends on a certain older version of GCC than I have? _________________ Beware the Ratfink, he can gnaw through your Ethernet cable! |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
|
| Back to top |
|
 |
Ratfink
Joined: 26 May 2009 Posts: 6 Location: The fourth dimension
|
Posted: Wed May 27, 2009 3:32 am Post subject: |
|
|
I ran it again, but I got the following error:
| Code: | cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -c -o main.o main.c
main.c:19:17: error: usb.h: No such file or directory
main.c:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c:212: error: expected ‘)’ before ‘*’ token
main.c:231: error: expected ‘)’ before ‘*’ token
main.c:249: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c:316: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:316: warning: its scope is only this definition or declaration, which is probably not what you want
main.c: In function ‘close_device’:
main.c:322: warning: implicit declaration of function ‘usb_release_interface’
main.c:323: warning: implicit declaration of function ‘usb_reset’
main.c:324: warning: implicit declaration of function ‘usb_close’
main.c: At top level:
main.c:858: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c: In function ‘handle_hello’:
main.c:866: warning: implicit declaration of function ‘usb_bulk_write’
main.c: At top level:
main.c:869: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c: In function ‘handle_open’:
main.c:896: warning: implicit declaration of function ‘euid_usb_bulk_read’
main.c:906: warning: implicit declaration of function ‘euid_usb_bulk_write’
main.c: At top level:
main.c:913: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:987: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1081: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1148: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1199: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1230: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1295: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1342: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1397: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1452: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1507: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1659: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1707: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1790: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1841: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1953: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:2019: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c: In function ‘do_hostfs’:
main.c:2091: error: ‘g_hDev’ undeclared (first use in this function)
main.c:2091: error: (Each undeclared identifier is reported only once
main.c:2091: error: for each function it appears in.)
main.c: In function ‘do_bulk’:
main.c:2228: error: ‘g_hDev’ undeclared (first use in this function)
main.c: In function ‘start_hostfs’:
main.c:2255: error: ‘g_hDev’ undeclared (first use in this function)
main.c:2255: warning: implicit declaration of function ‘wait_for_device’
main.c: In function ‘exit_app’:
main.c:2465: error: ‘g_hDev’ undeclared (first use in this function)
main.c: In function ‘async_thread’:
main.c:3088: error: ‘g_hDev’ undeclared (first use in this function)
main.c: In function ‘main’:
main.c:3124: warning: implicit declaration of function ‘usb_init’
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/clay/psptoolchain/build/psplinkusb/usbhostfs_pc'
make: *** [all] Error 2
../scripts/009-psplinkusb.sh: Failed. |
I don't know if this is important for my use, as I plan on not using USB in my programs. If it isn't important, then I will just procede with the steps in the tutorial you linked me to. _________________ Beware the Ratfink, he can gnaw through your Ethernet cable! |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed May 27, 2009 4:05 am Post subject: |
|
|
| Psplink_usb requires libusb-dev, but you only need that if you wish to use psplink_usb for debugging. It's the last thing done, so if that was the only error you got, your toolchain compiled fine this time. |
|
| Back to top |
|
 |
Ratfink
Joined: 26 May 2009 Posts: 6 Location: The fourth dimension
|
Posted: Wed May 27, 2009 4:20 am Post subject: |
|
|
Yes, that was the only error. If that's all it is, then I don't really see much of a need for it. Thank you so much for all your help, I can't wait to get developing PSP programs. _________________ Beware the Ratfink, he can gnaw through your Ethernet cable! |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed May 27, 2009 4:44 am Post subject: |
|
|
| Now checkout psplibraries from the repo and run the libraries.sh script. You might need to edit the freetype script as mentioned in the 9.04 Ubuntu toolchain thread. |
|
| Back to top |
|
 |
|