[Pkg-alsa-devel] Bug#547256: Bug#547256: Cannot rebuild alsa

Dmitry Baryshev ksquirrel.iv at gmail.com
Fri Sep 18 21:08:31 UTC 2009


Hi. Of course, I meant 1.0.16 from Lenny, please change the version in
this bug. Ok, I did the steps you suggested but with alsa from
squeeze:

$ debuild
 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: установка CFLAGS в значение по умолчанию: -g -O2
dpkg-buildpackage: установка CPPFLAGS в значение по умолчанию:
dpkg-buildpackage: установка LDFLAGS в значение по умолчанию:
dpkg-buildpackage: установка FFLAGS в значение по умолчанию: -g -O2
dpkg-buildpackage: установка CXXFLAGS в значение по умолчанию: -g -O2
dpkg-buildpackage: пакет исходных текстов alsa-lib
dpkg-buildpackage: версия исходных текстов 1.0.20-4
dpkg-buildpackage: исходные тексты изменены Jordi Mallach <jordi at debian.org>
dpkg-buildpackage: архитектура хоста i386
 fakeroot debian/rules clean
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null pop -a -R || test $? = 2
No patch removed
rm -rf .pc debian/stamp-patched
dh_testdir
dh_testroot
#-/usr/bin/make distclean
[ ! -f Makefile ] || /usr/bin/make distclean
rm -f *-stamp
rm -f config.sub config.guess config.status config.cache
rm -rf doc/doxygen
rm -rf bibuild debian/bitmp
rm -f include/alsa
dh_clean
 dpkg-source -b alsa-lib-1.0.20
dpkg-source: инфо: используется формат исходника `1.0'
dpkg-source: инфо: сборка alsa-lib с использованием существующего
alsa-lib_1.0.20.orig.tar.gz
dpkg-source: инфо: сборка alsa-lib в alsa-lib_1.0.20-4.diff.gz
dpkg-source: предупреждение: игнорируется удаление файла config.guess
dpkg-source: предупреждение: игнорируется удаление файла config.sub
dpkg-source: предупреждение: игнорируется удаление символической
ссылки include/alsa
dpkg-source: инфо: сборка alsa-lib в alsa-lib_1.0.20-4.dsc
 debian/rules build
# quilt exits with 2 as return when there was nothing to do.
# That's not an error here (but it's useful to break loops in crude scripts)
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null push -a || test $? = 2
Applying patch relibtoolise.patch
patching file Makefile.in
patching file aclocal.m4
patching file alsalisp/Makefile.in
patching file aserver/Makefile.in
patching file configure
patching file doc/Makefile.in
patching file doc/pictures/Makefile.in
patching file include/Makefile.in
patching file include/config.h.in
patching file include/config.h.in~
patching file include/sound/Makefile.in
patching file ltmain.sh
patching file m4/libtool.m4
patching file m4/ltoptions.m4
patching file m4/ltsugar.m4
patching file m4/ltversion.m4
patching file m4/lt~obsolete.m4
patching file modules/Makefile.in
patching file modules/mixer/Makefile.in
patching file modules/mixer/simple/Makefile.in
patching file src/Makefile.in
patching file src/alisp/Makefile.in
patching file src/compat/Makefile.in
patching file src/conf/Makefile.in
patching file src/conf/cards/Makefile.in
patching file src/conf/pcm/Makefile.in
patching file src/control/Makefile.in
patching file src/hwdep/Makefile.in
patching file src/mixer/Makefile.in
patching file src/pcm/Makefile.in
patching file src/pcm/scopes/Makefile.in
patching file src/rawmidi/Makefile.in
patching file src/seq/Makefile.in
patching file src/timer/Makefile.in
patching file test/Makefile.in
patching file utils/Makefile.in

Applying patch add-maintainer-mode.patch
patching file configure.in

Applying patch configure_cross_compile.patch
patching file configure

Now at patch configure_cross_compile.patch
touch debian/stamp-patched
dh_testdir
rm -f config.sub config.guess
ln -s /usr/share/misc/config.sub config.sub
ln -s /usr/share/misc/config.guess config.guess
rm -rf bibuild
mkdir bibuild
mkdir bibuild/include
cd bibuild && CC="gcc -m64" ../configure --prefix=/usr \
                    --mandir=\${prefix}/share/man \
                    --infodir=\${prefix}/share/info \
                    --datadir=\${prefix}/share \
                    --build i486-linux-gnu \
                    --enable-static --disable-maintainer-mode \
                    --disable-python --with-plugindir=/usr/lib64/alsa-lib
configure: WARNING: unrecognized options: --disable-maintainer-mode
checking build system type... i486-pc-linux-gnu
checking host system type... i486-pc-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 gcc... gcc -m64
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 -m64 accepts -g... yes
checking for gcc -m64 option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc -m64... gcc3
checking how to run the C preprocessor... gcc -m64 -E
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 -m64... /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... 98304
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 -m64 object... ok
checking for ANSI C header files... no
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 -m64 supports -fno-rtti -fno-exceptions... no
checking for gcc -m64 option to produce PIC... -fPIC -DPIC
checking if gcc -m64 PIC flag -fPIC -DPIC works... yes
checking if gcc -m64 static flag -static works... yes
checking if gcc -m64 supports -c -o file.o... yes
checking if gcc -m64 supports -c -o file.o... (cached) yes
checking whether the gcc -m64 linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
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... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
../configure: line 11299: CC_NOUNDEFINED: command not found
checking for ANSI C header files... (cached) no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc -m64 needs -traditional... no
checking for hsearch_r... yes
checking for library version... major 1 minor 0 subminor 20 extrastr
extraver 1000000
checking for versioned symbols... grep: libtool: No such file or directory
../configure: line 11970: test: too many arguments
../configure: line 11973: test: -gt: unary operator expected
broken libtool - use libtool v1.4+; no versions
checking for symbolic-functions... no
checking for custom symbol prefixes...
checking for debug... yes
checking for debug assert... no
checking for tmpdir... /tmp
checking for softfloat... no
checking for libdl... checking for dlsym in -ldl... yes
checking for pthread... checking for pthread_join in -lpthread... yes
checking for librt... checking for clock_gettime in -lrt... yes
checking for architecture... x86
checking wordexp.h usability... yes
checking wordexp.h presence... yes
checking for wordexp.h... yes
checking for resmgr support... no
checking for aload* support... yes
checking for ALSA device file directory... /dev/snd/
checking for aload* device file directory... /dev/
Making a symlink include/alsa
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/pictures/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating include/Makefile
config.status: creating include/sound/Makefile
config.status: creating src/Versions
config.status: creating src/Makefile
config.status: creating src/control/Makefile
config.status: creating src/mixer/Makefile
config.status: creating src/pcm/Makefile
config.status: creating src/pcm/scopes/Makefile
config.status: creating src/rawmidi/Makefile
config.status: creating src/timer/Makefile
config.status: creating src/hwdep/Makefile
config.status: creating src/seq/Makefile
config.status: creating src/compat/Makefile
config.status: creating src/alisp/Makefile
config.status: creating src/conf/Makefile
config.status: creating src/conf/cards/Makefile
config.status: creating src/conf/pcm/Makefile
config.status: creating modules/Makefile
config.status: creating modules/mixer/Makefile
config.status: creating modules/mixer/simple/Makefile
config.status: creating alsalisp/Makefile
config.status: creating aserver/Makefile
config.status: creating test/Makefile
config.status: creating utils/Makefile
config.status: creating utils/alsa-lib.spec
config.status: creating utils/alsa.pc
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-maintainer-mode
Creating asoundlib.h...
#ln -sf . include/alsa
rm -f bibuild/include/alsa
ln -s . bibuild/include/alsa
sed -e '/^SUBDIRS/s/doc//' bibuild/Makefile > bibuild/Makefile.new
mv bibuild/Makefile bibuild/Makefile.old
mv bibuild/Makefile.new bibuild/Makefile
touch -r bibuild/Makefile.old bibuild/Makefile
touch configure-biarch-stamp
dh_testdir
/usr/bin/make -C bibuild CFLAGS="-g -Wall -DUSE_VERSIONED_SYMBOLS -O2"
make[1]: Entering directory `/home/ckult/tmp/1/alsa-lib-1.0.20/bibuild'
cd .. && /bin/bash /home/ckult/tmp/1/alsa-lib-1.0.20/missing --run
aclocal-1.10 -I m4
 cd .. && /bin/bash /home/ckult/tmp/1/alsa-lib-1.0.20/missing --run
automake-1.10 --foreign
cd .. && /bin/bash /home/ckult/tmp/1/alsa-lib-1.0.20/missing --run autoconf
/bin/bash ./config.status --recheck
running CONFIG_SHELL=/bin/bash /bin/bash ../configure --prefix=/usr
--mandir=${prefix}/share/man --infodir=${prefix}/share/info
--datadir=${prefix}/share --build i486-linux-gnu --enable-static
--disable-maintainer-mode --disable-python
--with-plugindir=/usr/lib64/alsa-lib build_alias=i486-linux-gnu CC=gcc
-m64 CFLAGS=-g -Wall -DUSE_VERSIONED_SYMBOLS -O2 LDFLAGS= CPPFLAGS=
--no-create --no-recursion
checking build system type... i486-pc-linux-gnu
checking host system type... i486-pc-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 whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc -m64
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run
C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [config.status] Ошибка 1
make[1]: Leaving directory `/home/ckult/tmp/1/alsa-lib-1.0.20/bibuild'
make: *** [build-biarch-stamp] Ошибка 2
dpkg-buildpackage: сбой: debian/rules build возвратил код ошибки 2
debuild: fatal error at line 1319:
dpkg-buildpackage -rfakeroot -D -us -uc failed

> An error in dh_fixperms usually means no rights to change
> permissions.

I tried to rebuild alsa under root in my first message, so I don't
think that there were no rights to do something.

>> The most weird thing is that if I run dpkg-buildpackage again, it will
>> not fail. It will fail ONLY on clean source directory, e.g. to
>> reproduce this bug you should unpack source code somewhere, apply
>> Debian patch and run dpkg-buildpackage.
>
> We run dh_clean before each build via debian/rules. So that doesn't
> matter.
>

Sometimes it does matter, for example you cannot rebuild
xulrunner-1.9.1 from Sid several times.

-- 
Regards, Krasu.





More information about the Pkg-alsa-devel mailing list