View Full Version : Endless loop on -r18301 when compiling dvdread
Hi!
I'm stuck at compiling xbmc (with vdpau patches, but it doesn't matter) since about revision 18250. Everything goes fine until make wants to compile dvdread from the dvdplayer codecs (XBMC/xbmc/cores/dvdplayer/Codecs/libdvdnav/src/dvdread).
Suddenly countless shells get spawned until the whole RAM and swap gets used and system needs to be power-cycled.
I'm on ArchLinux x86_64 with kernel 2.6.28 (from arch).
Any suggestions? ???
EDIT: Some output from the console:
make[2]: Leaving directory `/home/haggy/files/build/xbmc-vdpau-build/XBMC/xbmc/cores/dvdplayer/Codecs/libdvdnav'
make[2]: Entering directory `/home/haggy/files/build/xbmc-vdpau-build/XBMC/xbmc/cores/dvdplayer/Codecs/libdvdnav'
cd . && /bin/sh /home/haggy/files/build/xbmc-vdpau-build/XBMC/xbmc/cores/dvdplayer/Codecs/libdvdnav/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make all-recursive
make[3]: Entering directory `/home/haggy/files/build/xbmc-vdpau-build/XBMC/xbmc/cores/dvdplayer/Codecs/libdvdnav'
Making all in src
make[4]: Entering directory `/home/haggy/files/build/xbmc-vdpau-build/XBMC/xbmc/cores/dvdplayer/Codecs/libdvdnav/src'
Making all in dvdread
make[5]: Entering directory `/home/haggy/files/build/xbmc-vdpau-build/XBMC/xbmc/cores/dvdplayer/Codecs/libdvdnav/src/dvdread'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DDVDNAV_COMPILE -I../../src/vm -O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_XBOX -DHAVE_DVDCSS_DVDCSS_H -MT dvd_reader.lo -MD -MP -MF .deps/dvd_reader.Tpo -c -o dvd_reader.lo dvd_reader.c
^Cmake[5]: *** wait: No child processes. Stop.
make[5]: *** Waiting for unfinished jobs....
make[5]: *** wait: No child processes. Stop.
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Interrupt
make[2]: *** [all] Interrupt
make[1]: *** [libdvdnav] Interrupt
make: *** [dvdpcodecs] Interrupt
As you can see i managed to CTRL+C the process before the machine freezes.
althekiller
2009-03-07, 00:48
Probably some build tool version mismatch. See if there's an autogen/bootstrap script to run in the dvdread dir.
Unfortunately there's no such script. Just configure - and that gets run. Would you mind posting your build tools / versions and the distro you're using? I'm on Arch Linux x86_64, GCC 4.3.3, libtool 2.2.6, bison 2.4.1
Some more debug from 'ps aux' as the issue persists:
haggy 9251 0.0 0.0 19228 2284 pts/0 Ss 14:59 0:00 -bash
haggy 17386 1.3 0.0 19752 2612 pts/1 S+ 15:32 0:00 /bin/sh ./configure
haggy 18402 0.0 0.0 13280 1376 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec --featu
haggy 18403 0.0 0.0 6128 576 pts/1 S+ 15:33 0:00 grep enable static
haggy 18406 0.0 0.0 13280 672 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec --featu
haggy 18407 0.0 0.0 13280 1380 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18409 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18411 0.0 0.0 13280 676 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18412 0.0 0.0 13280 1376 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18414 0.0 0.0 3912 568 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18416 0.0 0.0 13280 672 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18417 0.0 0.0 13280 1380 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18419 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18421 0.0 0.0 13280 676 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18422 0.0 0.0 13280 1380 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18424 0.0 0.0 3912 560 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18426 0.0 0.0 13280 676 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18427 0.0 0.0 13280 1380 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18428 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18431 0.0 0.0 13280 676 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18432 0.0 0.0 13280 1376 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18434 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18436 0.0 0.0 13280 672 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18437 0.0 0.0 13280 1376 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18438 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18441 0.0 0.0 13280 672 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18442 0.0 0.0 13280 1376 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18444 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18446 0.0 0.0 13280 672 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18447 0.0 0.0 13280 1376 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18448 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18451 0.0 0.0 13280 672 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18452 0.0 0.0 13280 1376 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18454 0.0 0.0 3912 568 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18456 0.0 0.0 13280 672 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18457 0.0 0.0 13280 1380 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18459 0.0 0.0 3912 568 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18461 0.0 0.0 13280 676 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18462 0.0 0.0 13280 1380 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18464 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
haggy 18466 0.0 0.0 13280 676 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18467 0.0 0.0 13280 1376 pts/1 S+ 15:33 0:00 /bin/sh ./libtool --no-reexec
haggy 18469 0.0 0.0 3912 564 pts/1 S+ 15:33 0:00 /bin/sed s%^.*/%%
and this goes on like forever. as you can see, there's a 'grep enable static' running which seems to start this all.
Any hints?
Unfortunately now the problem also exists on my 32bit machine with totally different hardware (intel vs. amd). the only thing in common is arch linux, so could it be the build tools i use are incompatible?
Hi,
Seems i have the same problem like you and i wasnt able to get it working :(. I tried it on X86_64 with 4GB RAM (no swap) on 2.14GHz C2D Intel CPU. Archlinux updated on 10.03.2009 and also xbmc-svn-vdpau r18237. I also tried older revision from xbmc-svn-vdpau without sucess.
Will try to debug it more with gdb (used it once till now). Btw: it was endless loop and i killed the compiling "ps -ef" showed me same info like the one Haggy posted.
Making all in doc
make[4]: Entering directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libDVDCSS/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libDVDCSS/doc'
make[4]: Entering directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libDVDCSS'
make[4]: Leaving directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libDVDCSS'
make[3]: Leaving directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libDVDCSS'
make[2]: Leaving directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libDVDCSS'
make -C libdvdnav
make[2]: Entering directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libdvdnav'
cd . && /bin/sh /home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libdvdnav/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make all-recursive
make[3]: Entering directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libdvdnav'
Making all in src
make[4]: Entering directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libdvdnav/src'
Making all in dvdread
make[5]: Entering directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/cores/dvdplayer/Codecs/libdvdnav/src/dvdread'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DDVDNAV_COMPILE -I../../src/vm -O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_XBOX -DHAVE_DVDCSS_DVDCSS_H -MT dvd_reader.lo -MD -MP -MF .deps/dvd_reader.Tpo -c -o dvd_reader.lo dvd_reader.c
^Cmake[5]: *** wait: No child processes. Stop.
make[5]: *** Waiting for unfinished jobs....
make[5]: *** wait: No child processes. Stop.
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Interrupt
make[2]: *** [all] Interrupt
make[1]: *** [libdvdnav] Interrupt
make: *** [dvdpcodecs] Interrupt
==> ERROR: Aborted by user! Exiting...
Now we can definitely narrow this down to xbmc on Arch Linux. Perhaps build tools mismatch? Could anyone post the build tools environment on Ubuntu?
Hi,
Seems that endless loop is solwed, as "AlTheKiller" suggested "You need to autoreconf -vif in that dir most likely." we used it. And it worked. Now I get oder problem regarding libass:
The PKGBUILD used is located in http://archvdr.sourceforge.net/
Making all in libass
make[4]: Entering directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/lib/libass/libass'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fPIC -I/usr/include/freetype2 -MT ass.lo -MD -MP -MF .deps/ass.Tpo -c -o ass.lo ass.c
../libtool: line 835: X--tag=CC: command not found
../libtool: line 868: libtool: ignoring unknown tag : command not found
../libtool: line 835: X--mode=compile: command not found
../libtool: line 1002: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1003: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1146: Xgcc: command not found
../libtool: line 1146: X-DHAVE_CONFIG_H: command not found
../libtool: line 1146: X-I.: command not found
../libtool: line 1146: X-I..: command not found
../libtool: line 1146: X-fPIC: command not found
../libtool: line 1146: X-I/usr/include/freetype2: No such file or directory
../libtool: line 1146: X-MT: command not found
../libtool: line 1146: Xass.lo: command not found
../libtool: line 1146: X-MD: command not found
../libtool: line 1146: X-MP: command not found
../libtool: line 1146: X-MF: command not found
../libtool: line 1146: X.deps/ass.Tpo: No such file or directory
../libtool: line 1146: X-c: command not found
../libtool: line 1198: Xass.lo: command not found
../libtool: line 1203: libtool: compile: cannot determine name of library object from `': command not found
make[4]: *** [ass.lo] Error 1
make[4]: Leaving directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/lib/libass/libass'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/lib/libass'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/lib/libass'
make[1]: *** [../libass/.libs/libass.so] Error 2
make[1]: Leaving directory `/home/user/archvdr/trunk/archvdr/xbmc-vdpau-vdr/src/XBMC-build/xbmc/lib/libass/xbmc'
make: *** [dvdpcodecs] Error 2
==> ERROR: Build Failed.
Aborting...
althekiller
2009-03-11, 01:44
Same deal in the libass dir. And I presume any further dirs that cause trouble.
Thank you guys, that's great news for us Archers. Can't wait to try this tonight as there's nothing as sexy as xbmc on a htpc :-)
Just wanted to give a big thankyou to you guys since i successfully built -r18447 of xbmc-vdpau on my 64bit machine without any glitches.
@vr4b4c: I modified your PKGBUILD a bit since i don't have a need for vdr. With your kind permission i will post my modified PKGBUILD on AUR so other Archers can benefit from your work.
Just wanted to give a big thankyou to you guys since i successfully built -r18447 of xbmc-vdpau on my 64bit machine without any glitches.
@vr4b4c: I modified your PKGBUILD a bit since i don't have a need for vdr. With your kind permission i will post my modified PKGBUILD on AUR so other Archers can benefit from your work.
Hi, well i am not the Contributor, you have his info in PKGBUILD, you can email him. I am helping a bit with Wiki and testing :).
Glad that it worked for you to, one more thing i needed to compile it with "makepkg --asroot", with normal user i did have had problem at the end of make proces regarding skin. I think PKGBUILD is doint some stuff as privileged user and isnt able as normal user.
I think PKGBUILD is doint some stuff as privileged user and isnt able as normal user.
Hmm, not for me, it worked great by simply using makepkg - but note that i kicked out vdr-references and -patches so that might be the difference.
EDIT: i contacted the maintainer - let's hope for a positive answer :-)
Now this is weird. Just compiled -r18470 and it broke at compiling the PM skin, now testing with --asroot.
And here goes the PKGBUILD for us Archers:
http://aur.archlinux.org/packages.php?ID=24650
Should be already visible in yaourt.
Brezhonneg
2009-03-29, 16:45
Hi,
I also have this problem with jaunty (x86_64) with linuxport 19048r. autoreconf -vif in the directory does not do the trick. When I try and 'make' again after 'autoreconf -vif', ./configure is ran again and the whole process gets stuck again eventually (with a high CPU usage and lots of bashes being created). I have to admit that I am not too comfortable with compilations, especially when they do not work OOTB... any recommendations would be greatly appreciated...
sylvain@mediabox:~/SVNxbmc/19048/xbmc/cores/dvdplayer/Codecs/libdvdnav$ make
/bin/bash ./config.status --recheck
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --enable-static --disable-shared --with-pic CFLAGS=-D_XBOX -DHAVE_DVDCSS_DVDCSS_H --no-create --no-recursion
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
=> Endless loop, Ctrl + C