Problem: installing Toolchain under Linux

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

Moderators: cheriff, TyRaNiD

Post Reply
hacku
Posts: 4
Joined: Sat Oct 01, 2005 4:41 am
Location: Chemnitz, Germany

Problem: installing Toolchain under Linux

Post by hacku »

Hello Homebrewers!

I've tried to install the toolchain under my Ubuntu Linux System.
After a while there occurs an error, but i don't know what to do now. Maybe one of you could help me to figure it out!?

Here's the part with the error:

Code: Select all

aclocal: configure.ac: 19: macro `AM_PROG_AS' not found in library
configure.ac: 7: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
automake: configure.ac: installing `./install-sh'
automake: configure.ac: installing `./mkinstalldirs'
automake: configure.ac: installing `./missing'
Makefile.am:35: DX_COND_doc does not appear in AM_CONDITIONAL
Makefile.am:41: DX_COND_html does not appear in AM_CONDITIONAL
Makefile.am:51: DX_COND_chm does not appear in AM_CONDITIONAL
Makefile.am:55: DX_COND_chi does not appear in AM_CONDITIONAL
Makefile.am:67: DX_COND_man does not appear in AM_CONDITIONAL
Makefile.am:77: DX_COND_rtf does not appear in AM_CONDITIONAL
Makefile.am:87: DX_COND_xml does not appear in AM_CONDITIONAL
Makefile.am:97: DX_COND_ps does not appear in AM_CONDITIONAL
Makefile.am:126: DX_COND_pdf does not appear in AM_CONDITIONAL
Makefile.am:155: DX_COND_latex does not appear in AM_CONDITIONAL
automake: Makefile.am: unterminated conditionals: @DX_COND_doc_TRUE@ @DX_COND_html_TRUE@ @DX_COND_chm_TRUE@ @DX_COND_chi_TRUE@ @DX_COND_ man_TRUE@ @DX_COND_rtf_TRUE@ @DX_COND_xml_TRUE@ @DX_COND_ps_TRUE@ @DX_COND_pdf_TRUE@ @DX_COND_latex_TRUE@
automake: Makefile.am: unterminated conditionals: @DX_COND_doc_TRUE@ @DX_COND_html_TRUE@ @DX_COND_chm_TRUE@ @DX_COND_chi_TRUE@ @DX_COND_ man_TRUE@ @DX_COND_rtf_TRUE@ @DX_COND_xml_TRUE@ @DX_COND_ps_TRUE@ @DX_COND_pdf_TRUE@ @DX_COND_latex_TRUE@
configure.ac: 7: required file `./[config.h].in' not found
automake: Makefile.am: warning: automake does not support EXTRA_DIST being defined conditionally
Makefile.am:10: variable `DX_CONFIG' not defined
configure.ac:8: error: possibly undefined macro: AC_PSPSDK_VERSION
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:9: error: possibly undefined macro: AC_PSPDEV_PATH
configure.ac:11: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.ac:14: error: possibly undefined macro: AC_PSPDEV_TOOLCHAIN
configure.ac:19: error: possibly undefined macro: AM_PROG_AS
./configure: line 1312: AC_1.0+beta: command not found
./configure: line 1313: AC_PSPDEV_PATH: command not found
./configure: line 1315: syntax error near unexpected token `pspsdk,'
./configure: line 1315: `AM_INIT_AUTOMAKE(pspsdk, 1.0+beta)'
ERROR RUNNING PSPSDK CONFIGURE
root@tuxwhore:/tmp/psptoolchain #
Live free, use LINUX!
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Make sure you're using a recent autoconf and automake. For Debian, something like

Code: Select all

apt-get install automake1.9
update-alternatives --set automake /usr/bin/automake-1.9
Probably similar for Ubuntu.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Ubuntu likes to install an older version of automake by default if you just use 'automake' as a keyword. Use synaptic to remove the old version and install the latest.

You'll also have to restart the toolchain script from the beginning.
hacku
Posts: 4
Joined: Sat Oct 01, 2005 4:41 am
Location: Chemnitz, Germany

Post by hacku »

Thank you a lot! i installed a new automake but didn't know that i have to update the "symlink" to automake by myself...
I started the toolchain.sh again and later the script it wants to configure gdb, there comes a new error:

Code: Select all

checking for windres... windres
checking for mig... mig
checking for main in -lm... yes
checking for wctype... yes
checking for library containing gethostbyname... none required
checking for library containing socketpair... none required
checking for library containing waddstr... no
checking for library containing tgetent... no
configure: error: no termcap library found
make: *** [configure-gdb] Fehler 1
ERROR BUILDING GDB
Maybe you could help me again?? I have gdb 6.3 installed. Is this important?
Live free, use LINUX!
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

To save you some time, here's everything that I had to install on a fresh copy of ubuntu breezy (5.10) the other day:

build-essential
subversion
automake1.9
autoconf
libncurses5-dev
flex

You should be able to install the last two packages and just do:

./toolchain.sh -e -p

Enjoy!

(edit: changed to libncurses5-dev)
Last edited by ooPo on Wed Nov 02, 2005 1:33 am, edited 1 time in total.
hacku
Posts: 4
Joined: Sat Oct 01, 2005 4:41 am
Location: Chemnitz, Germany

Post by hacku »

yeah, now it works!!!

Thank you all for your support!!!!
Live free, use LINUX!
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Post by JesusXP »

fixed
Post Reply