make: *** [all] Error 2 (../scripts/007-gdb-6.4.sh: Failed.)

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

Moderators: cheriff, TyRaNiD

Post Reply
mika2222
Posts: 1
Joined: Mon Jun 25, 2007 4:07 am

make: *** [all] Error 2 (../scripts/007-gdb-6.4.sh: Failed.)

Post by mika2222 »

I ran ./toolchain.sh and after 6 hrs i get this error:

Code: Select all

....

configure: loading cache ../.././config.cache
checking build system type... (cached) i686-pc-cygwin
checking host system type... (cached) i686-pc-cygwin
checking target system type... (cached) mipsallegrexel-psp-elf
configure: creating ./config.status
config.status: creating Makefile
make[1]: Leaving directory `/home/mika/source/psptoolchain/build/
gdb-6.4/build-psp'
make: *** [all] Error 2
../scripts/007-gdb-6.4.sh: Failed.

Have i installed it successfully? If not, wat should i do...
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Well, gdb and insight are the last two steps. If you aren't planning to use them then you should be okay. By that point the compiler and sdk are installed.

As for why it failed, you'll have to post more of the output - specifically any part that looks like an error.
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Post by SamuraiX »

I had the same issue today. In the end I was not sure why it happened... but I reran only this portion..... "./toolchain.sh 7" and all was fine.


But for some reason Insight has been purposely not installed within the script.... I noticed the script exits right away (third line down).

Code: Select all

#!/bin/sh
# insight-6.4.sh by Dan Peori ([email protected])
exit;
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Yeah, it doesn't build properly for a lot of people so I disabled it.
findreams
Posts: 2
Joined: Tue Jul 17, 2007 8:42 pm

Re: make: *** [all] Error 2 (../scripts/007-gdb-6.4.sh: Fail

Post by findreams »

mika2222 wrote:I ran ./toolchain.sh and after 6 hrs i get this error:

Code: Select all

....

configure: loading cache ../.././config.cache
checking build system type... (cached) i686-pc-cygwin
checking host system type... (cached) i686-pc-cygwin
checking target system type... (cached) mipsallegrexel-psp-elf
configure: creating ./config.status
config.status: creating Makefile
make[1]: Leaving directory `/home/mika/source/psptoolchain/build/
gdb-6.4/build-psp'
make: *** [all] Error 2
../scripts/007-gdb-6.4.sh: Failed.

Have i installed it successfully? If not, wat should i do...
I have the same problem too, and using Kubuntu 7.04.
When I re-run the toolchain.sh I found there is a error message: "can not find termcap library", so I installed the libncurses5-dev package and the problem solved.
hopefully this could help you.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

That's strange. The check-ncurses.sh script in the depends directory should stop the process and give you an error before it even begins to build anything.

I guess its related to the change I made here:

http://forums.ps2dev.org/viewtopic.php?p=54060#54060

So now I will change it to:

Code: Select all

#!/bin/sh
# check-ncurses.sh by Dan Peori ([email protected])

 ## Check for a ncurses library.
 ls /usr/lib/libncurses.a 1> /dev/null || ls /usr/lib/libncurses.dll.a || { echo "ERROR: Install ncurses before continuing."; exit 1; }
In the meantime, you can avoid building from scratch by installing ncurses development support and then running './toolchain.sh 7' to build just gdb.
findreams
Posts: 2
Joined: Tue Jul 17, 2007 8:42 pm

Post by findreams »

libncurses.* is in the package libncurses5 and libtermcap.* iz in libncurses5-dev under ubuntu, so if i installed libncurses5 but not with libncurses5-dev, the check process will past sucessfully, but the installation will fail when compliling gdb.

maybe that is only happened on ubuntu and i do not know if these two libs are in the same package on other distro, so please install these two packages when using ubuntu.
Post Reply