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 

Problem while installing toolchain under cygwin

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



Joined: 08 Oct 2006
Posts: 12

PostPosted: Sun Oct 08, 2006 9:00 am    Post subject: Problem while installing toolchain under cygwin Reply with quote

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



Joined: 06 May 2005
Posts: 123

PostPosted: Mon Oct 09, 2006 12:24 pm    Post subject: Re: Problem while installing toolchain under cygwin Reply with quote

Again , make sure you have the lateset toolchain script. And follow the readme from the toolchain.
Back to top
View user's profile Send private message
codes02



Joined: 08 Oct 2006
Posts: 12

PostPosted: Tue Oct 17, 2006 3:10 am    Post subject: Reply with quote

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:
../configure --prefix=$PSPDEV --target=psp --enable-install-libbfd || { echo "ERROR CONFIGURING BINUTILS"; exit; }


any idea how to fix?
Back to top
View user's profile Send private message
codes02



Joined: 08 Oct 2006
Posts: 12

PostPosted: Sat Dec 09, 2006 6:05 am    Post subject: Reply with quote

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



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Dec 09, 2006 6:35 am    Post subject: Reply with quote

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).
Back to top
View user's profile Send private message AIM Address
codes02



Joined: 08 Oct 2006
Posts: 12

PostPosted: Sat Dec 30, 2006 1:11 am    Post subject: Reply with quote

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



Joined: 20 Mar 2007
Posts: 4

PostPosted: Tue Mar 20, 2007 1:35 pm    Post subject: It wasn't fixed. Reply with quote

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



Joined: 14 Sep 2005
Posts: 72
Location: England

PostPosted: Tue Mar 20, 2007 9:12 pm    Post subject: Reply with quote

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

From cygwin:
Code:
~$ svn co svn://svn.ps2dev.org/psp/branches/pspdev/psptoolchain
cd psptoolchain
chmod a+x toolchain.sh
./toolchain.sh
Back to top
View user's profile Send private message Send e-mail
jltate



Joined: 20 Mar 2007
Posts: 4

PostPosted: Wed Mar 21, 2007 2:58 am    Post subject: Reply with quote

Typed this in:
Code:
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:
                > 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
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Wed Mar 21, 2007 10:27 am    Post subject: Reply with quote

try this path instead of the other one you were using

Code:

svn co svn://svn.pspdev.org/psp/trunk/psptoolchain


the other one is kinda old :)
Back to top
View user's profile Send private message AIM Address
jltate



Joined: 20 Mar 2007
Posts: 4

PostPosted: Wed Mar 21, 2007 12:18 pm    Post subject: Reply with quote

The problem with that path, is that it results in this:
Code:
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
Back to top
View user's profile Send private message
jltate



Joined: 20 Mar 2007
Posts: 4

PostPosted: Wed Mar 21, 2007 11:06 pm    Post subject: Reply with quote

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



Joined: 08 Sep 2007
Posts: 1
Location: cambridge, MA

PostPosted: Sat Sep 08, 2007 4:31 am    Post subject: Reply with quote

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