psptoolchain installation woes

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

Moderators: cheriff, TyRaNiD

Post Reply
icebattle
Posts: 7
Joined: Sun Jul 01, 2007 3:02 pm
Location: Vancouver

psptoolchain installation woes

Post by icebattle »

Hi all

I'm trying to get the latest psptoolchain fired up on a cygwin setup. The cygwin is fresh and complete. Running the toolchain.sh script works for an hour or so before it fails (consistently) - see below.

I suspect it is some sort of configure issue, but don't know where to start debugging. I can confirm that I made the PSPDEV set to /usr/local/pspdev and that the $PSPDEV/bin location has been added to the path.

make[1]: Leaving directory `/home/wombat/tmp/psptoolchain/build/gcc-4.1.0/build-p
sp'
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
.
./bootstrap: line 81: aclocal: command not found
./bootstrap: line 83: autoheader: command not found
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_COND
ITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM_CONDI
TIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
aminclude.am:35: DX_COND_doc does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:41: DX_COND_html does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:51: DX_COND_chm does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:55: DX_COND_chi does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:67: DX_COND_man does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:77: DX_COND_rtf does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:87: DX_COND_xml does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:97: DX_COND_ps does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:126: DX_COND_pdf does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
aminclude.am:155: DX_COND_latex does not appear in AM_CONDITIONAL
Makefile.am:6: `aminclude.am' included from here
grep: Makefile.in: No such file or directory
./configure: line 1699: AC_1.0+beta2: command not found
./configure: line 1700: AC_PSPDEV_PATH: command not found
./configure: line 1702: syntax error near unexpected token `pspsdk,'
./configure: line 1702: `AM_INIT_AUTOMAKE(pspsdk, 1.0+beta2)'
../scripts/003-pspsdk-stage1.sh: Failed.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

./bootstrap: line 81: aclocal: command not found
./bootstrap: line 83: autoheader: command not found
It looks like you don't have autoconf installed.
You need both the aclocal and autoheader programs.
icebattle
Posts: 7
Joined: Sun Jul 01, 2007 3:02 pm
Location: Vancouver

Post by icebattle »

Thanks, that might help.

autoconf seemed to be there, but aclocal wasn't. A quick find and I got:

/bin/aclocal-1.10
/bin/aclocal-1.4
/bin/aclocal-1.5
/bin/aclocal-1.6
/bin/aclocal-1.7
/bin/aclocal-1.8
/bin/aclocal-1.9

so I added a symlink to the latest version. The same type of thing was happening for autoheader.
icebattle
Posts: 7
Joined: Sun Jul 01, 2007 3:02 pm
Location: Vancouver

Post by icebattle »

OK, well, it did get me a bit further. However, the doxygen generation phase is looking for dot, which I take as coming from Graphviz. So, after trying to build graphviz (and failing) I installed the Windows version and made another symlink.

Most of my issues seem to be arising from cygwin. I thought that doing a complete, fresh install would clear that up, but it didn't. Anyway, the build is progressing, so we'll see.
icebattle
Posts: 7
Joined: Sun Jul 01, 2007 3:02 pm
Location: Vancouver

Post by icebattle »

OK, back again.

Been trying all day to get this to go. I've tried using the trunk from svn, as well as the latest .tgz off the site.

Latest build dies in the pspsdk phase. Here's the last few lines:

checking for working memcmp... yes
checking for getcwd... yes
checking for strchr... yes
checking for doxygen... /usr/bin/doxygen
checking for perl... /usr/bin/perl
checking for dot... /usr/bin/dot
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
../scripts/003-pspsdk-stage1.sh: Failed.

OK, so something that should have been generated, wasn't. Let's look further up:

/usr/share/aclocal/pstoedit.m4:7: warning: underquoted definition of AM_PATH_PST
OEDIT
/usr/share/aclocal/pstoedit.m4:7: run info '(automake)Extending aclocal'
/usr/share/aclocal/pstoedit.m4:7: or see http://sources.redhat.com/automake/au
tomake.html#Extending-aclocal
configure.ac:11: version mismatch. This is Automake 1.9.6,
configure.ac:11: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:11: comes from Automake 1.10. You should recreate
configure.ac:11: aclocal.m4 with aclocal and run automake again.
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
src/audio/Makefile.am: installing `./depcomp'
grep: Makefile.in: No such file or directory
checking for pspsdk version... 1.0+beta2
checking for pspdev... /usr/local/pspdev

So, I'm using the latest automake, but that doesn't look like the real error to me, since the script continued until the final failure.

I'd be grateful for any pointers!

cheers
icebattle
Posts: 7
Joined: Sun Jul 01, 2007 3:02 pm
Location: Vancouver

Post by icebattle »

I'm still trying. By running the scripts individually from the build directory, I seem to be having more success. However, the gdb (007-) build dies with the following after successfully compiling a lot of source code. Any pointers will be appreciated.

In file included from ../../gdb/tui/tui-command.c:28:
../../gdb/tui/tui-data.h:40: error: parse error before "WINDOW"
../../gdb/tui/tui-data.h:40: warning: no semicolon at end of struct or union
../../gdb/tui/tui-data.h:52: error: parse error before '}' token
../../gdb/tui/tui-data.h:228: error: field `data_window' has incomplete type
../../gdb/tui/tui-data.h:282: error: field `generic' has incomplete type
In file included from ../../gdb/tui/tui-command.c:29:
../../gdb/tui/tui-win.h:42: error: parse error before "tui_border_ulcorner"
../../gdb/tui/tui-win.h:42: warning: type defaults to `int' in declaration of `t
ui_border_ulcorner'
../../gdb/tui/tui-win.h:42: warning: data definition has no type or storage clas
s
../../gdb/tui/tui-win.h:43: error: parse error before "tui_border_urcorner"
../../gdb/tui/tui-win.h:43: warning: type defaults to `int' in declaration of `t
ui_border_urcorner'
../../gdb/tui/tui-win.h:43: warning: data definition has no type or storage clas
s
../../gdb/tui/tui-win.h:44: error: parse error before "tui_border_lrcorner"
../../gdb/tui/tui-win.h:44: warning: type defaults to `int' in declaration of `t
ui_border_lrcorner'
../../gdb/tui/tui-win.h:44: warning: data definition has no type or storage clas
s
../../gdb/tui/tui-win.h:45: error: parse error before "tui_border_llcorner"
../../gdb/tui/tui-win.h:45: warning: type defaults to `int' in declaration of `t
ui_border_llcorner'
../../gdb/tui/tui-win.h:45: warning: data definition has no type or storage clas
s
../../gdb/tui/tui-win.h:46: error: parse error before "tui_border_vline"
../../gdb/tui/tui-win.h:46: warning: type defaults to `int' in declaration of `t
ui_border_vline'
../../gdb/tui/tui-win.h:46: warning: data definition has no type or storage clas
s
../../gdb/tui/tui-win.h:47: error: parse error before "tui_border_hline"
../../gdb/tui/tui-win.h:47: warning: type defaults to `int' in declaration of `t
ui_border_hline'
../../gdb/tui/tui-win.h:47: warning: data definition has no type or storage clas
s
../../gdb/tui/tui-command.c: In function `tui_dispatch_ctrl_char':
../../gdb/tui/tui-command.c:80: error: `WINDOW' undeclared (first use in this fu
nction)
../../gdb/tui/tui-command.c:80: error: (Each undeclared identifier is reported o
nly once
../../gdb/tui/tui-command.c:80: error: for each function it appears in.)
../../gdb/tui/tui-command.c:80: error: `w' undeclared (first use in this functio
n)
../../gdb/tui/tui-command.c:85: warning: implicit declaration of function `wgetc
h'
../../gdb/tui/tui-command.c:86: error: `ERR' undeclared (first use in this funct
ion)
../../gdb/tui/tui-command.c:93: error: `KEY_PPAGE' undeclared (first use in this
function)
../../gdb/tui/tui-command.c:95: error: `KEY_NPAGE' undeclared (first use in this
function)
../../gdb/tui/tui-command.c:113: error: `KEY_DOWN' undeclared (first use in this
function)
../../gdb/tui/tui-command.c:114: error: `KEY_SF' undeclared (first use in this f
unction)
../../gdb/tui/tui-command.c:117: error: `KEY_UP' undeclared (first use in this f
unction)
../../gdb/tui/tui-command.c:118: error: `KEY_SR' undeclared (first use in this f
unction)
../../gdb/tui/tui-command.c:121: error: `KEY_RIGHT' undeclared (first use in thi
s function)
../../gdb/tui/tui-command.c:124: error: `KEY_LEFT' undeclared (first use in this
function)
make[2]: *** [tui-command.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../../gdb/tui/tui-data.c:28:
../../gdb/tui/tui-data.h:40: error: parse error before "WINDOW"
../../gdb/tui/tui-data.h:40: warning: no semicolon at end of struct or union
../../gdb/tui/tui-data.h:52: error: parse error before '}' token
../../gdb/tui/tui-data.h:228: error: field `data_window' has incomplete type
../../gdb/tui/tui-data.h:282: error: field `generic' has incomplete type
In file included from ../../gdb/tui/tui-data.c:29:
../../gdb/tui/tui-wingeneral.h:42: error: parse error before '*' token
../../gdb/tui/tui-data.c: In function `tui_source_exec_info_win_ptr':
../../gdb/tui/tui-data.c:241: error: invalid use of undefined type `struct tui_g
en_win_info'
../../gdb/tui/tui-data.c: In function `tui_disassem_exec_info_win_ptr':
../../gdb/tui/tui-data.c:249: error: invalid use of undefined type `struct tui_g
en_win_info'
../../gdb/tui/tui-data.c: In function `set_gen_win_origin':
../../gdb/tui/tui-data.c:314: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:315: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c: In function `tui_win_name':
../../gdb/tui/tui-data.c:415: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c: In function `tui_init_generic_part':
../../gdb/tui/tui-data.c:463: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:464: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:465: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:466: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:467: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:468: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:469: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:470: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:470: error: `WINDOW' undeclared (first use in this func
tion)
../../gdb/tui/tui-data.c:470: error: (Each undeclared identifier is reported onl
y once
../../gdb/tui/tui-data.c:470: error: for each function it appears in.)
../../gdb/tui/tui-data.c:470: error: parse error before ')' token
../../gdb/tui/tui-data.c:471: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:472: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:473: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:474: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c: In function `tui_add_content_elements':
../../gdb/tui/tui-data.c:634: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:636: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:636: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:640: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:641: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:648: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:649: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:650: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c: In function `tui_del_window':
../../gdb/tui/tui-data.c:675: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:676: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:676: error: `WINDOW' undeclared (first use in this func
tion)
../../gdb/tui/tui-data.c:676: error: parse error before ')' token
../../gdb/tui/tui-data.c:677: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:687: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:688: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:688: error: parse error before ')' token
../../gdb/tui/tui-data.c:689: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:704: error: parse error before ')' token
../../gdb/tui/tui-data.c:707: error: parse error before ')' token
../../gdb/tui/tui-data.c: In function `tui_free_window':
../../gdb/tui/tui-data.c:725: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:726: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:726: error: `WINDOW' undeclared (first use in this func
tion)
../../gdb/tui/tui-data.c:726: error: parse error before ')' token
../../gdb/tui/tui-data.c:737: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:738: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:738: error: parse error before ')' token
../../gdb/tui/tui-data.c:766: error: parse error before ')' token
../../gdb/tui/tui-data.c:769: error: parse error before ')' token
../../gdb/tui/tui-data.c: In function `tui_free_win_content':
../../gdb/tui/tui-data.c:799: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:801: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:802: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:803: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:804: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:806: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c: In function `tui_del_data_windows':
../../gdb/tui/tui-data.c:825: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:826: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:826: error: `WINDOW' undeclared (first use in this func
tion)
../../gdb/tui/tui-data.c:826: error: parse error before ')' token
../../gdb/tui/tui-data.c:827: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c: In function `tui_free_data_content':
../../gdb/tui/tui-data.c:848: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:849: error: dereferencing pointer to incomplete type
../../gdb/tui/tui-data.c:849: error: `WINDOW' undeclared (first use in this func
tion)
../../gdb/tui/tui-data.c:849: error: parse error before ')' token
../../gdb/tui/tui-data.c: At top level:
../../gdb/tui/tui-data.c:44: error: storage size of `_locator' isn't known
../../gdb/tui/tui-data.c:45: error: storage size of `exec_info' isn't known
make[2]: *** [tui-data.o] Error 1
make[2]: Leaving directory `/home/wombat/tmp/psptoolchain/build/gdb-6.4/build-psp
/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/wombat/tmp/psptoolchain/build/gdb-6.4/build-psp
'
make: *** [all] Error 2
icebattle
Posts: 7
Joined: Sun Jul 01, 2007 3:02 pm
Location: Vancouver

Post by icebattle »

OK, trying a different tack.

Would anyone who has built the LATEST release of the toolchain on cygwin be so kind as to confirm:

1. Exact toolchain version
2. Exact versions of autoconf, automake, ncurses etc (all the prereqs)

Finally, is there anything that can be accomplished with the toolchain that can't be done with devkitPSP, I'd like to know.

thanks plenty
mikeccc987
Posts: 1
Joined: Sat Aug 11, 2007 7:51 am

Post by mikeccc987 »

Well this is kind of interesting. Yesterday i installed that latest version of the toolchain on the latest version of cygwin. It went perfectly. No problems. I decided i was going to install it on another computer. I'm getting the exact same error and you did on your first post. I'm going to try removing cygwin and reinstalling it.

*EDIT*

I deleted the Cygwin folder and reinstalled it. Redownloaded the toolchain and it compiled fine.
Post Reply