psp@ubuntu-7:~/downloads/psplibraries/build/SDL_mixer$ ./autogen.sh
acinclude.m4:375: the serial number must appear before any macro definition
/usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF
/usr/share/aclocal/oaf.m4:4: run info '(automake)Extending aclocal'
/usr/share/aclocal/oaf.m4:4: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
Now you are ready to run ./configure
psp@ubuntu-7:~/downloads/psplibraries/build/SDL_mixer$ LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
> ./configure --host psp --with-sdl-prefix=$(psp-config --psp-prefix) \
> --disable-music-mp3 --prefix=$(psp-config --psp-prefix) \
> --disable-music-libmikmod --enable-music-mod
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... ./config.guess: unable to guess system type
This script, last modified 2001-01-17, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
ftp://ftp.gnu.org/pub/gnu/config/
If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2001-01-17
uname -m = i686
uname -r = 2.6.22-14-386
uname -s = Linux
uname -v = #1 Sun Oct 14 22:36:54 GMT 2007
/usr/bin/uname -p =
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = i686
UNAME_RELEASE = 2.6.22-14-386
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 Sun Oct 14 22:36:54 GMT 2007
configure: error: cannot guess build type; you must specify one
What's happens?
Someone set up us the bomb? <- litle joke
Presumably he already did, the command he ran is straight out of README.PSP.
Jandujar, it should have worked... could you upload the config.guess file somewhere online so I can take a look at it? Also the output of "md5sum config.guess" and "ls -l /bin/sh".
I just did a clean install of Xubuntu 7.10 and an install of the toolchain and libraries. Everything's fine. My guess is he is missing a dependency, or trying to do something out of order. If you just get all the dependencies, then run the toolchain.sh and libraries.sh scripts, it all works peachy.
My guess is that config.guess somehow got corrupted or he's using a non-standard shell that's causing issues. I don't think that error could arise from a simple dependency mismatch.
psp@ubuntu-7:~/downloads$ svn co svn://svn.ps2dev.org/psp/trunk/psplibraries
A psplibraries/depends
A psplibraries/depends/check-make.sh
A psplibraries/depends/check-autoconf.sh
A psplibraries/depends/check-subversion.sh
A psplibraries/depends/check-pspdev.sh
A psplibraries/depends/check-psptoolchain.sh
A psplibraries/depends/check-libtool.sh
A psplibraries/depends/check-automake.sh
A psplibraries/depends/check-wget.sh
A psplibraries/libraries.sh
A psplibraries/scripts
A psplibraries/scripts/008-libogg.sh
A psplibraries/scripts/005-libbulletml.sh
A psplibraries/scripts/015-pspirkeyb.sh
A psplibraries/scripts/007-libmikmod.sh
A psplibraries/scripts/010-libpspvram.sh
A psplibraries/scripts/009-libpng.sh
A psplibraries/scripts/013-lua.sh
A psplibraries/scripts/003-freetype.sh
A psplibraries/scripts/002-bzip2.sh
A psplibraries/scripts/020-SDL_mixer.sh
A psplibraries/scripts/004-jpeg.sh
A psplibraries/scripts/014-pspgl.sh
A psplibraries/scripts/017-SDL.sh
A psplibraries/scripts/012-libvorbis.sh
A psplibraries/scripts/006-libmad.sh
A psplibraries/scripts/019-SDL_image.sh
A psplibraries/scripts/018-SDL_gfx.sh
A psplibraries/scripts/011-libTremor.sh
A psplibraries/scripts/001-zlib.sh
A psplibraries/scripts/021-SDL_ttf.sh
A psplibraries/scripts/016-sqlite.sh
A psplibraries/readme.txt
A psplibraries/libraries-sudo.sh
Revisión obtenida: 2328
psp@ubuntu-7:~/downloads$ cd psplibraries/
psp@ubuntu-7:~/downloads/psplibraries$ make build
psp@ubuntu-7:~/downloads/psplibraries$ cd build
psp@ubuntu-7:~/downloads/psplibraries/build$ ../scripts/020-SDL_mixer.sh
A SDL_mixer/PBProjects.tar.gz
A SDL_mixer/SDL_mixer.qpg.in
A SDL_mixer/music_cmd.c
A SDL_mixer/depcomp
A SDL_mixer/native_midi
A SDL_mixer/native_midi/native_midi_common.c
A SDL_mixer/native_midi/native_midi_common.h
A SDL_mixer/native_midi/Makefile.am
A SDL_mixer/native_midi/native_midi_mac.c
A SDL_mixer/native_midi/native_midi_win32.c
A SDL_mixer/native_midi/native_midi.h
A SDL_mixer/music_cmd.h
A SDL_mixer/effect_stereoreverse.c
A SDL_mixer/config.guess
A SDL_mixer/native_midi_gpl
A SDL_mixer/native_midi_gpl/emumidi.h
A SDL_mixer/native_midi_gpl/readmidi.c
A SDL_mixer/native_midi_gpl/patchload.c
A SDL_mixer/native_midi_gpl/gmvoices.h
A SDL_mixer/native_midi_gpl/awe_voice.h
A SDL_mixer/native_midi_gpl/gsvoices.h
A SDL_mixer/native_midi_gpl/Makefile.am
A SDL_mixer/native_midi_gpl/emumidi.c
A SDL_mixer/native_midi_gpl/native_midi_gpl.c
A SDL_mixer/native_midi_gpl/playevents.c
A SDL_mixer/native_midi_gpl/README
A SDL_mixer/native_midi_gpl/playmidi.h
A SDL_mixer/effects_internal.c
A SDL_mixer/timidity
A SDL_mixer/timidity/output.c
A SDL_mixer/timidity/instrum.c
A SDL_mixer/timidity/timidity.h
A SDL_mixer/timidity/mix.h
A SDL_mixer/timidity/controls.c
A SDL_mixer/timidity/output.h
A SDL_mixer/timidity/instrum.h
A SDL_mixer/timidity/controls.h
A SDL_mixer/timidity/playmidi.c
A SDL_mixer/timidity/resample.c
A SDL_mixer/timidity/config.h
A SDL_mixer/timidity/tables.c
A SDL_mixer/timidity/README
A SDL_mixer/timidity/playmidi.h
A SDL_mixer/timidity/resample.h
A SDL_mixer/timidity/readmidi.c
A SDL_mixer/timidity/tables.h
A SDL_mixer/timidity/sdl_a.c
A SDL_mixer/timidity/readmidi.h
A SDL_mixer/timidity/sdl_c.c
A SDL_mixer/timidity/filter.c
A SDL_mixer/timidity/FAQ
A SDL_mixer/timidity/common.c
A SDL_mixer/timidity/Makefile.am
A SDL_mixer/timidity/filter.h
A SDL_mixer/timidity/timidity.c
A SDL_mixer/timidity/mix.c
A SDL_mixer/timidity/common.h
A SDL_mixer/ltmain.sh
A SDL_mixer/config.sub
A SDL_mixer/music_ogg.c
A SDL_mixer/effects_internal.h
A SDL_mixer/CWProjects.sea.bin
A SDL_mixer/music_ogg.h
A SDL_mixer/VisualC.zip
A SDL_mixer/CHANGES
A SDL_mixer/COPYING
A SDL_mixer/autogen.sh
A SDL_mixer/playmus.c
A SDL_mixer/SDL_mixer.h
A SDL_mixer/MPWmake.sea.bin
A SDL_mixer/mikmod
A SDL_mixer/mikmod/mdreg.c
A SDL_mixer/mikmod/virtch.c
A SDL_mixer/mikmod/load_s3m.c
A SDL_mixer/mikmod/mmio.c
A SDL_mixer/mikmod/mikmod_internals.h
A SDL_mixer/mikmod/mikmod_build.h
A SDL_mixer/mikmod/AUTHORS
A SDL_mixer/mikmod/mlreg.c
A SDL_mixer/mikmod/mlutil.c
A SDL_mixer/mikmod/virtch_common.c
A SDL_mixer/mikmod/mdriver.c
A SDL_mixer/mikmod/mplayer.c
A SDL_mixer/mikmod/drv_nos.c
A SDL_mixer/mikmod/mwav.c
A SDL_mixer/mikmod/load_it.c
A SDL_mixer/mikmod/README
A SDL_mixer/mikmod/load_mod.c
A SDL_mixer/mikmod/virtch2.c
A SDL_mixer/mikmod/mloader.c
A SDL_mixer/mikmod/load_xm.c
A SDL_mixer/mikmod/COPYING.LESSER
A SDL_mixer/mikmod/mmerror.c
A SDL_mixer/mikmod/mmalloc.c
A SDL_mixer/mikmod/mikmod.h
A SDL_mixer/mikmod/Makefile.am
A SDL_mixer/mikmod/munitrk.c
A SDL_mixer/mikmod/sloader.c
A SDL_mixer/mikmod/npertab.c
A SDL_mixer/mikmod/drv_sdl.c
A SDL_mixer/SDL_mixer.spec.in
A SDL_mixer/load_aiff.c
A SDL_mixer/configure.in
A SDL_mixer/load_aiff.h
A SDL_mixer/load_ogg.c
A SDL_mixer/README
A SDL_mixer/README.PSP
A SDL_mixer/wavestream.c
A SDL_mixer/load_ogg.h
A SDL_mixer/effect_position.c
A SDL_mixer/music.c
A SDL_mixer/wavestream.h
A SDL_mixer/mixer.c
A SDL_mixer/acinclude.m4
A SDL_mixer/load_voc.c
A SDL_mixer/missing
A SDL_mixer/Makefile.am
A SDL_mixer/playwave.c
A SDL_mixer/load_voc.h
A SDL_mixer/install-sh
U SDL_mixer
Revisión obtenida: 2328
acinclude.m4:375: the serial number must appear before any macro definition
/usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF
/usr/share/aclocal/oaf.m4:4: run info '(automake)Extending aclocal'
/usr/share/aclocal/oaf.m4:4: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
Now you are ready to run ./configure
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... ./config.guess: unable to guess system type
This script, last modified 2001-01-17, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
ftp://ftp.gnu.org/pub/gnu/config/
If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2001-01-17
uname -m = i686
uname -r = 2.6.22-14-386
uname -s = Linux
uname -v = #1 Sun Oct 14 22:36:54 GMT 2007
/usr/bin/uname -p =
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = i686
UNAME_RELEASE = 2.6.22-14-386
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 Sun Oct 14 22:36:54 GMT 2007
configure: error: cannot guess build type; you must specify one
psp@ubuntu-7:~/downloads/psplibraries/build$
dpkg -l | grep autoconf
ii autoconf 2.61-4 automatic configure script builder
psp@ubuntu-7:~$ dpkg -l | grep automake
ii automake 1:1.10+nogfdl-1 A tool for generating GNU Standards-complian
ii automake1.9 1.9.6+nogfdl-3ubuntu1 A tool for generating GNU Standards-complian
psp@ubuntu-7:~$
¿?
two automake?
I have deleted the first automake ->apt-get remove automake
and the error persist.
jimparis wrote:My guess is that config.guess somehow got corrupted or he's using a non-standard shell that's causing issues. I don't think that error could arise from a simple dependency mismatch.
It could if it were one of the build tools he was missing. :)
psp@ubuntu-7:~/downloads/psplibraries/build/SDL_mixer$ bash -x config.guess
+ timestamp=2001-01-17
++ echo config.guess
++ sed -e 's,.*/,,'
+ me=config.guess
+ usage='Usage: config.guess [OPTION]
Output the configuration name of the system `config.guess'\'' is run on.
Operation modes:
-h, --help print this help, then exit
-t, --time-stamp print date of last modification, then exit
-v, --version print version number, then exit
Report bugs and patches to <config-patches@gnu.org>.'
+ version='GNU config.guess (2001-01-17)
Originally written by Per Bothner.
Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.'
+ help='
Try `config.guess --help'\'' for more information.'
+ test 0 -gt 0
+ test 0 '!=' 0
+ dummy=dummy-10055
+ trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
+ case $CC_FOR_BUILD,$HOST_CC,$CC in
+ echo 'int dummy(){}'
+ for c in cc gcc c89
+ test 1 = 0
+ for c in cc gcc c89
+ test 0 = 0
+ CC_FOR_BUILD=gcc
+ break
+ rm -f dummy-10055.c dummy-10055.o dummy-10055.rel
+ test xgcc = x
+ UNAME_MACHINE=i686
+ UNAME_RELEASE=2.6.22-14-386
+ UNAME_SYSTEM=Linux
+ UNAME_VERSION='#1 Sun Oct 14 22:36:54 GMT 2007'
+ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
++ cd /
++ ld --help
++ sed -ne '/supported emulations:/!d
s/[ ][ ]*/ /g
s/.*supported emulations: *//
s/ .*//
p'
+ ld_supported_emulations=
+ case "$ld_supported_emulations" in
+ test i686 = alpha
+ test i686 = mips
+ test i686 = s390
+ test i686 = x86_64
+ test i686 = parisc -o i686 = hppa
+ test -z ''
+ echo i686-pc-linux-gnuoldld
i686-pc-linux-gnuoldld
+ exit 0
psp@ubuntu-7:~/downloads/psplibraries/build/SDL_mixer$ bash config.guess -v
GNU config.guess (2001-01-17)
Originally written by Per Bothner.
Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ for c in cc gcc c89
+ test 1 = 0
+ for c in cc gcc c89
+ test 0 = 0
+ CC_FOR_BUILD=gcc
+ break
This means that "cc" does not properly compile things, only "gcc" does. On an Ubuntu system those should be the same thing. Could you paste output of "ls -l $(which cc)" and "update-alternatives --display cc".
ls -l $(which cc)
lrwxrwxrwx 1 root root 20 2007-10-10 09:05 /usr/bin/cc -> /etc/alternatives/cc
ls -l /etc/alternatives/cc
lrwxrwxrwx 1 root root 12 2007-10-10 09:05 /etc/alternatives/cc -> /usr/bin/gcc
update-alternatives --display cc
cc - el estado es auto.
el enlace apunta actualmente a /usr/bin/gcc
/usr/bin/gcc - prioridad 20
esclavo cc.1.gz: /usr/share/man/man1/gcc.1.gz
Actualmente la «mejor» versión es /usr/bin/gcc.
ls -l $(which ld)
-rwxr-xr-x 1 root root 437908 2007-09-19 02:15 /usr/bin/ld
ld --version
GNU ld (GNU Binutils for Ubuntu) 2.18
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
I have no idea what's going on. There are a number of weird inconsistencies:
when config.guess ran as part of the build, it printed out a message saying it couldn't figure out your system type -- but when you ran it manually with "bash -x", the output was "i686-pc-linux-gnuoldld"
the system type i686-pc-linux-gnuoldld would only be printed if your /usr/bin/ld were really old or broken, but it's not, it's the newest version. The "bash -x" output indicates that the "ld --help" output had no supported emulations listed, but that can't be true.
the "bash -x" output also indicated that "cc" did not work when compiling and executable, but "gcc" did. Your alternatives show that they're exactly the same thing.
Sorry, I'm not really sure what to try next. Are you running all those commands I asked for as the same user "psp"? Maybe the output of "env" would be enlightening.
I also updated the version of config.guess in the SDL_mixer repository, so maybe if you just retry it things will work now. Who knows.