[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#480715: buildd.emdebian.org: New version of 'file' fails to cross build, unable to update package.



Package: general
Severity: normal

$ emsource --status file
Checking the apt-cross cache is up to date for arm.
Checking status of file in /opt/emdebian/trunk/f/file/trunk/
4 emdebian patch files
0 debian patch files

Checking emdebuild status in /opt/emdebian/trunk/f/file/trunk/
build log:
	file (4.24) FAILED to cross build for arm.
/opt/emdebian/trunk/f/file/trunk/file_4.24-2em1_arm.build

Checking empdebuild status
file may be out of date.
Checking for error logs in /opt/emdebian/trunk/f/file/trunk/
Checking bug status
No open cross-building bugs for file
file FAILED to build.

/bin/sh ../libtool --tag=CC   --mode=link arm-linux-gnu-gcc
-DHOWMANY=0x18000 -Wall -g -O2 -no-undefined -version-info 1:0:0  -o
libmagic.la -rpath /usr/lib magic.lo apprentice.lo softmagic.lo
ascmagic.lo compress.lo is_tar.lo readelf.lo print.lo fsmagic.lo
funcs.lo apptype.lo  -lz 
gcc -shared  .libs/magic.o .libs/apprentice.o .libs/softmagic.o
.libs/ascmagic.o .libs/compress.o .libs/is_tar.o .libs/readelf.o
.libs/print.o .libs/fsmagic.o .libs/funcs.o .libs/apptype.o  -lz
-Wl,-soname -Wl,libmagic.so.1 -o .libs/libmagic.so.1.0.0
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
.libs/magic.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libmagic.la] Error 1
make[3]: Leaving directory
`/opt/emdebian/trunk/f/file/trunk/file-4.24/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/emdebian/trunk/f/file/trunk/file-4.24'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/emdebian/trunk/f/file/trunk/file-4.24'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
Recording that the package failed to build.

This is down to the libtool handling in the package - the libtool script
modified by calling ./configure is removed and replaced by a basic one
that is unable to handle cross building.

Allowing the upstream libtool to be updated by the configure script
causes a different build error:

arm-linux-gnu-ranlib .libs/libmagic.a
creating libmagic.la
(cd .libs && rm -f libmagic.la && ln -s ../libmagic.la libmagic.la)
arm-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..
-DMAGIC='"/etc/magic:/usr/share/file/magic"'   -DHOWMANY=0x18000 -Wall
-g -O2 -MT file.o -MD -MP -MF .deps/file.Tpo -c -o file.o file.c
mv -f .deps/file.Tpo .deps/file.Po
/bin/sh ../libtool --tag=CC   --mode=link arm-linux-gnu-gcc
-DHOWMANY=0x18000 -Wall -g -O2   -o file file.o libmagic.la
arm-linux-gnu-gcc -DHOWMANY=0x18000 -Wall -g -O2 -o file file.o
./.libs/libmagic.a -lz
make[3]: Leaving directory
`/opt/emdebian/trunk/f/file/trunk/file-4.24/src'
Making all in magic
make[3]: Entering directory
`/opt/emdebian/trunk/f/file/trunk/file-4.24/magic'
make[3]: *** No rule to make target `file', needed by `magic.mgc'.
Stop.
make[3]: Leaving directory
`/opt/emdebian/trunk/f/file/trunk/file-4.24/magic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/emdebian/trunk/f/file/trunk/file-4.24'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/emdebian/trunk/f/file/trunk/file-4.24'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



Reply to: