Problem while installing toolchain under cygwin

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

Moderators: cheriff, TyRaNiD

Post Reply
codes02
Posts: 12
Joined: Sun Oct 08, 2006 8:56 am

Problem while installing toolchain under cygwin

Post by codes02 »

I have installed cygwin with all devel packages, executed the tool chain, and the got an error, as follows:

updating cache ./config.cache
creating ./config.status
creating Makefile
test ! -d gcc/libgcc || \
(cd gcc/libgcc && find . -type d -print) | \
while read d; do rm -f gcc/$d/libgcc.a || : ; done
rm -rf gcc/libgcc
rm -f gcc/stmp-dirs
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
mkdir -p -- ./libiberty
Configuring in libiberty
configure: error: invalid feature name: install-libbfd
make: *** [configure-libiberty] Error 1
ERROR BUILDING BINUTILS
laichung
Posts: 123
Joined: Fri May 06, 2005 2:02 pm

Re: Problem while installing toolchain under cygwin

Post by laichung »

Again , make sure you have the lateset toolchain script. And follow the readme from the toolchain.
codes02
Posts: 12
Joined: Sun Oct 08, 2006 8:56 am

Post by codes02 »

And the newest version of the toolchain is psptoolchain-20060120 correct?
I just got the same error with that toolchain, and I'm pretty sure it was the one i was originaly using anyway.

Just dled the newest from svn (not sure if it's just the same one), and still recieved the error.

Reinstalled cygwin, downloaded svn psptoolchain, ran it again, and recieved the same error termination.

As a side note, i am running this on an x86_64 system, but the MS Win XP Media Center Edition 2005 (not 64-bit OS) , does this change anything?

Looking through the toolchain script, the problem seems to arrise from this code:

Code: Select all

../configure --prefix=$PSPDEV --target=psp --enable-install-libbfd || { echo "ERROR CONFIGURING BINUTILS"; exit; }
any idea how to fix?
codes02
Posts: 12
Joined: Sun Oct 08, 2006 8:56 am

Post by codes02 »

BUMP.

It's been 2 months... anyone have any idea?
I just tried again on a different computer, a x86 AMD XP with Cygwin under windows Xp. (First comp was AMD x86_64 with Windows MCE 2006)

Same Error. Exactly the same error.

The only computer the tool chain has not had this problem on was an old pentium II with windows 2000, just took forever to build ;-).

Anyway, if anyone has any idea, and i mean any, please fell free to butt in.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

I've seen other threads here and in the PS2 SDK forum about issues with CygWin - where going back to an older version of certain CygWin packages allowed the toolchains to compile correctly. I suggest you check some of these other threads to see if they help cure your problem.

As far as the toolchain working at all - the current svn compiles for me using gcc 4.1 in 64bit linux (Fedora Core 6).
codes02
Posts: 12
Joined: Sun Oct 08, 2006 8:56 am

Post by codes02 »

Hmm.... it seems that with new packages for cygwin, my problem is now resolved. Using just the defaults for each of the packages needed for the toolchain worked and i succesfuly installed it a few days a go.

Glad it was finaly fixed! : P
jltate
Posts: 4
Joined: Tue Mar 20, 2007 11:55 am

It wasn't fixed.

Post by jltate »

I'm getting exactly the same error that was pointed out in this thread. I've been trying to get this stupid thing working for 2 days and no matter whose instructions I follow it's the same idiotic problem of:

Code: Select all

configure: error: invalid feature name: install-libbfd
Except unlike this lucky poster, mine isn't randomly starting to work for no reason.

What am I missing? I've reinstalled Cygwin about 7 times now, I've made sure I'm using UNIX-style formatting, I'm using the absolute latest script, and I've followed about 4 different walk throughs with 2 or 3 different Cygwin package load outs and NOTHING works. I'm ALWAYS given the same stupid error.

Edit: And yes, I've scoured both these forums and the QJ.net PSP development forums for about an hour now with no luck.
--JLTate
Bytrix
Posts: 72
Joined: Wed Sep 14, 2005 7:26 pm
Location: England

Post by Bytrix »

Are you sure you're using the latest toolchain script from SVN?

From cygwin:

Code: Select all

~$ svn co svn://svn.ps2dev.org/psp/branches/pspdev/psptoolchain
cd psptoolchain
chmod a+x toolchain.sh
./toolchain.sh
jltate
Posts: 4
Joined: Tue Mar 20, 2007 11:55 am

Post by jltate »

Typed this in:

Code: Select all

Administrator@hydra ~
$ rm -rf psptoolchain

Administrator@hydra ~
$ svn co svn://svn.ps2dev.org/psp/branches/pspdev/psptoolchain
A    psptoolchain/gcc-4.0.0.patch
A    psptoolchain/toolchain.sh
A    psptoolchain/README.TXT
A    psptoolchain/binutils-2.16.patch
A    psptoolchain/newlib-1.13.0.patch
Checked out revision 2207.

Administrator@hydra ~
$ cd psptoolchain

Administrator@hydra ~/psptoolchain
$ chmod a+x toolchain.sh

Administrator@hydra ~/psptoolchain
$ ./toolchain.sh
And it ended with this:

Code: Select all

                > c++filt.1
make[3]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils/doc'
Making all in po
make[3]: Entering directory `/tmp/pspdev/binutils-2.16/build-psp/binutils/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils/po'
make[3]: Entering directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
gcc -DHAVE_CONFIG_H -I. -I../../binutils -I. -D_GNU_SOURCE -I. -I../../binutils
-I../bfd -I../../binutils/../bfd -I../../binutils/../include -I../../binutils/..
/intl -I../intl -DLOCALEDIR="\"/usr/local/pspdev/psp/share/locale\"" -Dbin_dummy
_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-protot
ypes -g -O2  -c ../../binutils/size.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils -I. -D_GNU_SOURCE -I. -I../../binutils
-I../bfd -I../../binutils/../bfd -I../../binutils/../include -I../../binutils/..
/intl -I../intl -DLOCALEDIR="\"/usr/local/pspdev/psp/share/locale\"" -Dbin_dummy
_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-protot
ypes -g -O2  -c ../../binutils/bucomm.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils -I. -D_GNU_SOURCE -I. -I../../binutils
-I../bfd -I../../binutils/../bfd -I../../binutils/../include -I../../binutils/..
/intl -I../intl -DLOCALEDIR="\"/usr/local/pspdev/psp/share/locale\"" -Dbin_dummy
_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-protot
ypes -g -O2  -c ../../binutils/version.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils -I. -D_GNU_SOURCE -I. -I../../binutils
-I../bfd -I../../binutils/../bfd -I../../binutils/../include -I../../binutils/..
/intl -I../intl -DLOCALEDIR="\"/usr/local/pspdev/psp/share/locale\"" -Dbin_dummy
_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-protot
ypes -g -O2  -c ../../binutils/filemode.c
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototy
pes -g -O2   -o size.exe  size.o bucomm.o version.o filemode.o ../bfd/libbfd.la
../libiberty/libiberty.a ./../intl/libintl.a
mkdir .libs
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o size.exe size.o
bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ./
../intl/libintl.a
../bfd/.libs/libbfd.a(archures.o): In function `bfd_scan_arch':
/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/archures.c:563: undefined refe
rence to `_bfd_mips_arch'
collect2: ld returned 1 exit status
make[3]: *** [size.exe] Error 1
make[3]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make: *** [all-binutils] Error 2
ERROR BUILDING BINUTILS (binutils-2.16 psp)

Administrator@hydra ~/psptoolchain
$
Well hm. Further than I got before, and I'm not exactly sure why. At any rate, I guess now I get to scour the forums again looking for a solution to this new problem.
--JLTate
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

try this path instead of the other one you were using

Code: Select all

svn co svn://svn.pspdev.org/psp/trunk/psptoolchain
the other one is kinda old :)
jltate
Posts: 4
Joined: Tue Mar 20, 2007 11:55 am

Post by jltate »

The problem with that path, is that it results in this:

Code: Select all

updating cache ./config.cache
creating ./config.status
creating Makefile
test ! -d gcc/libgcc || \
        (cd gcc/libgcc && find . -type d -print) | \
        while read d; do rm -f gcc/$d/libgcc.a || : ; done
rm -rf gcc/libgcc
rm -f gcc/stmp-dirs
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
mkdir -p -- ./libiberty
Configuring in libiberty
configure: error: invalid feature name: install-libbfd
make: *** [configure-libiberty] Error 1
ERROR BUILDING BINUTILS
--JLTate
jltate
Posts: 4
Joined: Tue Mar 20, 2007 11:55 am

Post by jltate »

For the record, I'm pretty sure that that stupid error with "invalid feature name: install-libbfd" has to do with a lack of disk space. It stopped giving me that error when I randomly decided to have it place the intermediate files in a different directory than /usr/tmp, or whatever the default BUILDDIR was. I put it on a partition with more disk space, and magically it started working.

At any rate, it's all compiled and working. Hooray!
--JLTate
dafist
Posts: 1
Joined: Sat Sep 08, 2007 4:28 am
Location: cambridge, MA
Contact:

Post by dafist »

I was stuck as well for a week not being able to install the toolchain with a clean install of cygwin... ends up that you might be right on the space issue. After I moved my psptoolchain directory to /usr/tmp and runned the shell script... it worked like a charm. THANKS for posting that, it help me a LOT!!
Post Reply