| View previous topic :: View next topic |
| Author |
Message |
jandujar
Joined: 27 Sep 2007 Posts: 12
|
Posted: Fri Oct 26, 2007 12:44 am Post subject: SDL_mixer does not compile under ubuntu |
|
|
Hello,
I donwload the toolchain from svn://svn.ps2dev.org/psp/trunk
and I'm having problems compiling the SDL_mixer.
| Code: |
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 _________________ http://dragonball.homelinux.com
http://jandujar.homelinux.com
http://www.dsrobot.com |
|
| Back to top |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Fri Oct 26, 2007 6:20 am Post subject: |
|
|
| read the README.PSP |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Oct 26, 2007 9:38 am Post subject: |
|
|
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". |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Oct 26, 2007 12:02 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Oct 26, 2007 3:47 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
jandujar
Joined: 27 Sep 2007 Posts: 12
|
Posted: Fri Oct 26, 2007 4:35 pm Post subject: |
|
|
danzel, I have read the README.PSP, everything works until yesterday, because I update the ubuntu distribution.
My machine:
Linux ubuntu-7 2.6.22-14-386 #1 Sun Oct 14 22:36:54 GMT 2007 i686 GNU/Linux
all the process
| Code: |
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$
|
_________________ http://dragonball.homelinux.com
http://jandujar.homelinux.com
http://www.dsrobot.com |
|
| Back to top |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Fri Oct 26, 2007 4:49 pm Post subject: |
|
|
| jandujar wrote: | | danzel, I have read the README.PSP, everything works until yesterday, because I update the ubuntu distribution. |
Sorry, my bad. Forgot what the README.PSP said myself :)
what is the output of:
| Code: | dpkg -l | grep autoconf
dpkg -l | grep automake |
Ubuntu should have no trouble building the toolchain. |
|
| Back to top |
|
 |
jandujar
Joined: 27 Sep 2007 Posts: 12
|
Posted: Fri Oct 26, 2007 5:10 pm Post subject: |
|
|
| Code: |
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. _________________ http://dragonball.homelinux.com
http://jandujar.homelinux.com
http://www.dsrobot.com |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Oct 27, 2007 5:07 am Post subject: |
|
|
| 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. :) |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sat Oct 27, 2007 6:13 am Post subject: |
|
|
Jandujar, if you don't give us what we ask for there's no way we can help..
| Quote: | | 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". |
|
|
| Back to top |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Sat Oct 27, 2007 7:54 am Post subject: |
|
|
| jandujar wrote: | two automake?
I have deleted the first automake ->apt-get remove automake
and the error persist. |
Remove "automake1.9" and reinstall "automake". |
|
| Back to top |
|
 |
jandujar
Joined: 27 Sep 2007 Posts: 12
|
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Mon Oct 29, 2007 6:21 pm Post subject: |
|
|
Dash might have problems. Try pointing sh to bash instead by running | Code: | | sudo ln -sf bash /bin/sh | and try again. (you can put it back later with "sudo ln -sf dash /bin/sh")
If that still doesn't help, could you go into the SDL_mixer directory and run | Code: | | /bin/bash -x config.guess | and paste the output here? |
|
| Back to top |
|
 |
jandujar
Joined: 27 Sep 2007 Posts: 12
|
Posted: Mon Oct 29, 2007 6:48 pm Post subject: |
|
|
same problem
| Code: |
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
|
config.guess -v
| Code: |
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.
|
_________________ http://dragonball.homelinux.com
http://jandujar.homelinux.com
http://www.dsrobot.com |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Oct 30, 2007 4:14 am Post subject: |
|
|
Weird, there's definitely something screwy on your system:
| Code: | + 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".
| Code: | ++ ld --help
++ sed -ne '/supported emulations:/!d
s/[ ][ ]*/ /g
s/.*supported emulations: *//
s/ .*//
p'
+ ld_supported_emulations= |
And similarly your "ld" isn't putting out the right output. Could you paste output of "ls -l $(which ld)" and "ld --version" |
|
| Back to top |
|
 |
jandujar
Joined: 27 Sep 2007 Posts: 12
|
Posted: Tue Oct 30, 2007 8:46 pm Post subject: |
|
|
| Code: |
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.
|
_________________ http://dragonball.homelinux.com
http://jandujar.homelinux.com
http://www.dsrobot.com |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Oct 31, 2007 1:08 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
jandujar
Joined: 27 Sep 2007 Posts: 12
|
|
| Back to top |
|
 |
|