Debian Bug report logs - #480706
buildd.emdebian.org: coreutils fails to cross build

Package: buildd.emdebian.org; Maintainer for buildd.emdebian.org is Debian Embedded Team <debian-embedded@lists.debian.org>;

Reported by: Neil Williams <codehelp@debian.org>

Date: Sun, 11 May 2008 17:39:01 UTC

Severity: normal

Done: Neil Williams <codehelp@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, <debian-devel@lists.debian.org>:
Bug#480706; Package general. Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
New Bug report received and forwarded. Copy sent to <debian-devel@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: buildd.emdebian.org: coreutils fails to cross build
Date: Sun, 11 May 2008 18:30:51 +0100
Package: general
Severity: normal

In preparation for a pseudo-package, buildd.emdebian.org, I'm filing
status bugs about packages that fail to crossbuild successfully, despite
building successfully in the past. i.e. where an existing package in
Emdebian cannot be updated because the new version fails in a new and
different way.
:-(

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

Checking emdebuild status in /opt/emdebian/trunk/c/coreutils/trunk/
build log:
	coreutils (6.10) FAILED to cross build for arm.
/opt/emdebian/trunk/c/coreutils/trunk/coreutils_6.10-6em1_arm.build

Checking empdebuild status
coreutils may be out of date.
Checking for error logs in /opt/emdebian/trunk/c/coreutils/trunk/
Checking bug status
No open cross-building bugs for coreutils
coreutils FAILED to build.
$ tail /opt/emdebian/trunk/c/coreutils/trunk/coreutils_6.10-6em1_arm.build
/usr/arm-linux-gnu/include/stdio.h:718: error: conflicting types for
'rpl_fseeko'
./stdio.h:277: error: previous declaration of 'rpl_fseeko' was here
make[3]: *** [areadlink-with-size.o] Error 1
make[3]: Leaving directory
`/opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/build-tree/coreutils-6.10/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/build-tree/coreutils-6.10/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/build-tree/coreutils-6.10'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

This is a placeholder bug until buildd.emdebian.org is available as a
pseudo-package but serves to explain why coreutils is not being updated
and the nature of the build failure. See #480514 regarding why the build
logs are not available online yet.

-- 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




Information stored:
Bug#480706; Package general. Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #10 received at 480706-quiet@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Debian Bug Tracking System <480706-quiet@bugs.debian.org>
Subject: general: improvements to cache file - build still fails
Date: Mon, 26 May 2008 15:56:46 +0100
[Message part 1 (text/plain, inline)]
Package: general
Followup-For: Bug #480706

Additional settings in the cache file have improved the build, but a
later error still causes problems.

*** arm-linux-gnu.cache
gl_cv_func_tzset_clobber=no
jm_cv_func_gettimeofday_clobber=no
utils_cv_localtime_cache=no
ac_cv_func_futimesat=yes
ac_cv_prog_cc_c99=${ac_cv_prog_cc_c99=-std=gnu99}
ac_cv_prog_cc_stdc=${ac_cv_prog_cc_stdc=-std=gnu99}
fu_cv_sys_stat_statfs2_bsize=yes
gl_cv_struct_dirent_d_ino=yes
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
gl_cv_header_working_fcntl_h=yes
gl_cv_func_gnu_getopt=yes
ac_cv_func_calloc_0_nonnull=yes
gl_cv_func_fflush_stdin=yes
gl_cv_func_wcwidth_works=yes
ac_cv_func_fnmatch_gnu=yes
gl_cv_func_getcwd_null=yes
ac_cv_func_memcmp_working=yes
gl_cv_func_signbit=yes
ac_cv_func_lstat_empty_string_bug=no
gl_cv_func_working_acl_get_file=yes
gl_cv_func_fchownat_nofollow_works=yes

End of build log:

arm-linux-gnu-gcc -std=gnu99  -g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE
-DSYSLOG_NON_ROOT -O2  -Wl,--as-needed -o tac tac.o
../lib/libcoreutils.a  ../lib/libcoreutils.a 
../lib/libcoreutils.a(gethrxtime.o): In function `gethrxtime':
/opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/build-tree/coreutils-6.10/lib/gethrxtime.c:46:
undefined reference to `clock_gettime'
../lib/libcoreutils.a(gettime.o): In function `gettime':
/opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/build-tree/coreutils-6.10/lib/gettime.c:36:
undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[3]: *** [tac] Error 1
make[3]: Leaving directory
`/opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/build-tree/coreutils-6.10/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/build-tree/coreutils-6.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/build-tree/coreutils-6.10'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Full build log attached.

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

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
[coreutils_6.10-6em1_arm.build (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information stored:
Bug#480706; Package general. Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #15 received at 480706-quiet@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Debian Bug Tracking System <480706-quiet@bugs.debian.org>
Subject: general: Fixed cache file and patch to avoid help2man
Date: Mon, 26 May 2008 21:08:18 +0100
[Message part 1 (text/plain, inline)]
Package: general
Followup-For: Bug #480706

coreutils will now cross-build again - the patch is needed to avoid
help2man which cannot run as it tries to execute cross-compiled binaries
within the package. The cache file also had to be extended and a patch
for debian/rules specifies a specific extra linkage against librt from
the dpkg-cross package for clock_getttime support:

+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+LIB_CLOCK_GETTIME= "-L/usr/$(DEB_HOST_GNU_TYPE)/lib/ -lrt"
+endif


*** ../101_emdebian_help2man
--- coreutils-6.10.old/Makefile.am	2008-05-26 20:18:06.000000000 +0100
+++ coreutils-6.10/Makefile.am	2008-05-26 20:18:34.000000000 +0100
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-SUBDIRS = lib src doc man po tests gnulib-tests
+SUBDIRS = lib src po
 EXTRA_DIST = Makefile.cfg Makefile.maint GNUmakefile \
   .prev-version THANKS-to-translators THANKStt.in \
   .vg-suppressions \

*** arm-linux-gnu.cache
gl_cv_func_tzset_clobber=no
gl_cv_func_gettimeofday_clobber=no
jm_cv_func_gettimeofday_clobber=no
utils_cv_localtime_cache=no
ac_cv_func_futimesat=yes
ac_cv_prog_cc_c99=${ac_cv_prog_cc_c99=-std=gnu99}
ac_cv_prog_cc_stdc=${ac_cv_prog_cc_stdc=-std=gnu99}
fu_cv_sys_stat_statfs2_bsize=yes
gl_cv_struct_dirent_d_ino=yes
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
gl_cv_header_working_fcntl_h=yes
gl_cv_func_gnu_getopt=yes
ac_cv_func_calloc_0_nonnull=yes
gl_cv_func_fflush_stdin=yes
gl_cv_func_wcwidth_works=yes
ac_cv_func_fnmatch_gnu=yes
gl_cv_func_getcwd_null=yes
ac_cv_func_memcmp_working=yes
gl_cv_func_signbit=yes
ac_cv_func_lstat_empty_string_bug=no
gl_cv_func_working_acl_get_file=yes
gl_cv_func_fchownat_nofollow_works=yes


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

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

emdebian-rules.patch
====================

coreutils.old/debian/rules	Sat May 24 00:04:09 2008
+++ /opt/emdebian/trunk/c/coreutils/trunk/coreutils-6.10/debian/rules
Mon May 26 20:33:23 2008
@@ -26,13 +26,17 @@
   endif
 endif
 
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+LIB_CLOCK_GETTIME= "-L/usr/$(DEB_HOST_GNU_TYPE)/lib/ -lrt"
+endif
+
 # implement no optimization build option
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 CFLAGS = "-g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT -O0"
 else
 CFLAGS = "-g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT -O2"
 endif
-LDFLAGS = 
+LDFLAGS = $(LIB_CLOCK_GETTIME)
 
 # programs to include/not include
 ifeq ($(DEB_HOST_ARCH_OS),hurd)
@@ -52,6 +56,7 @@
 	cd $(BUILD_TREE) && CFLAGS=$(CFLAGS) \
 		LDFLAGS=$(LDFLAGS) ./configure \
 		--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
+		--cache-file=../../$(DEB_HOST_GNU_TYPE).cache \
 		--prefix=/usr -v \
 		--infodir=/usr/share/info --mandir=/usr/share/man \
 		$(BUILDPROG_OPTS)
@@ -91,10 +96,11 @@
 	for f in $(BIN_PROGS); do \
 		mv $(d)/usr/bin/$$f $(d)/bin/$$f; \
 	done
-	
+ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
 	# backward compatability
 	ln -s /usr/bin/md5sum $(d)/usr/bin/md5sum.textutils
 	ln -s /usr/share/man/man1/md5sum.1
$(d)/usr/share/man/man1/md5sum.textutils.1
+endif
 ifneq ($(DEB_HOST_ARCH_OS),hurd)
 		# touch used to be in /usr/bin, don't break scripts
 		ln -s /bin/touch $(d)/usr/bin/touch
@@ -114,33 +120,32 @@
 	rm -f $(d)/usr/bin/uptime $(d)/usr/share/man/man1/uptime.1
 	rm -f $(d)/usr/bin/mktemp $(d)/usr/share/man/man1/mktemp.1
 
+ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
 	# the [ program doesn't have its own man page yet
 	ln -s test.1 $(d)/usr/share/man/man1/[.1
 
 	# gnu thinks chroot is in bin, debian thinks it's in sbin
 	install -d $(d)/usr/sbin $(d)/usr/share/man/man8
+else
+	install -d $(d)/usr/sbin
+	$(RM) -r $(d)/usr/share/locale/
+endif
 	mv $(d)/usr/bin/chroot $(d)/usr/sbin/chroot
+ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
 	sed s/\"1\"/\"8\"/1 $(d)/usr/share/man/man1/chroot.1 >
$(d)/usr/share/man/man8/chroot.8
 	rm $(d)/usr/share/man/man1/chroot.1
-
 	cp $(BUILD_TREE)/AUTHORS \
 		$(BUILD_TREE)/NEWS $(BUILD_TREE)/README \
 		$(BUILD_TREE)/THANKS \
 		$(BUILD_TREE)/TODO \
 		$(d)/usr/share/doc/coreutils
-
+endif
 	dh_install
 
 # Build architecture-independent files here.
 binary-indep: build install
 	dh_testdir -i
 	dh_testroot -i
-	dh_installchangelogs -i
-	dh_installdocs -i
-	dh_buildinfo
-	dh_installexamples -i
-	dh_installinfo -i
-	dh_installman -i
 	dh_link -i
 	dh_compress -i
 	dh_fixperms -i
@@ -153,12 +158,6 @@
 binary-arch: build install
 	dh_testdir -a
 	dh_testroot -a
-	dh_installchangelogs -a $(BUILD_TREE)/ChangeLog 
-	dh_installdocs -a
-	dh_buildinfo -a
-	dh_installexamples -a
-	dh_installinfo -a $(BUILD_TREE)/doc/coreutils.info
-	dh_installman -a
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	dh_strip -a
 endif


-- 
Neil Williams <codehelp@debian.org>
[signature.asc (application/pgp-signature, inline)]

Information stored:
Bug#480706; Package general. Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #20 received at 480706-quiet@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: 480706-quiet@bugs.debian.org
Subject: new version uploaded, delaying close message
Date: Fri, 30 May 2008 19:12:29 +0100
[Message part 1 (text/plain, inline)]
Source: buildd.emdebian.org

Postponing closing the actual bug report until
the buildd.emdebian.org pseudo-package is available (and the package has
been tested).

Once re-assigned, send email to:
480706-done@bugs.debian.org

The new version of coreutils has been uploaded to Emdebian.
A summary of the changes between this version and
the previous Emdebian one is included:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 24 May 2008 00:08:28 +0100
Source: coreutils
Binary: coreutils
Architecture: source arm
Version: 6.10-6em1
Distribution: unstable
Urgency: low
Maintainer: Michael Stone <mstone@debian.org>
Changed-By: Neil Williams <codehelp@debian.org>
Description: 
 coreutils  - The GNU core utilities
Changes: 
 coreutils (6.10-6em1) unstable; urgency=low
 .
   * New emdebian release.
Checksums-Sha1: 
 4dbf1b613403838a9b9f487ddae6814997737021 1134 coreutils_6.10-6em1.dsc
 7fe8de7a284061f40d870b668ee63d2ac142cc20 9189409
coreutils_6.10.orig.tar.gz
 bb06c20f6db1de2af41fd036bec554f82399bae5 8099
coreutils_6.10-6em1.diff.gz
 25bd774c6125eb0a4eaa595b965940d3ef51e041 1271130
coreutils_6.10-6em1_arm.deb
Checksums-Sha256: 
 654cd9fa47cf39b63156cbed2d836190676c29d34ccb56f603dd8f2e06b49e98 1134
coreutils_6.10-6em1.dsc
 bc365f89b3490f704c7422b91ed54a06856b8a87205a40d4a5a6df4f0b66ed6c
9189409 coreutils_6.10.orig.tar.gz
 00d64924ab69c144e680a418c49070a00c9269047068632d7caf746669bc1db5 8099
coreutils_6.10-6em1.diff.gz
 fe25470c0269461ea3219c5f40001a43530a16e31ac0c3984caa3f0fd532703f
1271130 coreutils_6.10-6em1_arm.deb
Files: 
 a551f5204726a9ed9f9dbbd173e1f16a 1134 utils required
coreutils_6.10-6em1.dsc
 67782c1378a8c585aa88ecf068adb807 9189409 utils required
coreutils_6.10.orig.tar.gz
 7bb76dbdf0a06b79a2d876df535a49f9 8099 utils required
coreutils_6.10-6em1.diff.gz
 41fd2f94f5335274908d7332990b5e2d 1271130 utils required
coreutils_6.10-6em1_arm.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIP+T8k7DVr6iX/QIRAjcbAJ4roPkpsXIW2t+Dk5caRTUJ4Pb60gCeIDJN
zfpS5L/nHZOHA43/ai9EsRI=
=mKbl
-----END PGP SIGNATURE-----

[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package `general' to `buildd.emdebian.org'. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Wed, 03 Sep 2008 06:30:05 GMT) Full text and rfc822 format available.

Reply sent to Neil Williams <codehelp@debian.org>:
You have taken responsibility. (Mon, 29 Sep 2008 10:45:41 GMT) Full text and rfc822 format available.

Notification sent to Neil Williams <codehelp@debian.org>:
Bug acknowledged by developer. (Mon, 29 Sep 2008 10:45:44 GMT) Full text and rfc822 format available.

Message #27 received at 480706-done@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: 480706-done@bugs.debian.org
Subject: Closure
Date: Mon, 29 Sep 2008 11:44:09 +0100
[Message part 1 (text/plain, inline)]
Now that the bug has been re-assigned, closing it properly.

For the closure message, see:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480706#20

The actual implementation of the cache values has now been migrated to
dpkg-cross but the cache file is currently retained as a patch file in
Emdebian SVN until #493180 is properly closed.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 28 Oct 2008 07:25:30 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 20:56:22 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.