Your message dated Sat, 17 Feb 2018 15:08:12 +0000
with message-id <[email protected]>
and subject line Bug#880771: fixed in dwarfutils 20180129-1
has caused the Debian Bug report #880771,
regarding dwarfutils FTCBFS: AC_TRY_RUN and running host tools
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
880771: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880771
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: dwarfutils
Version: 20170709-1
Tags: upstream patch
User: [email protected]
Usertags: rebootstrap
dwarfutils fails to cross build from source, because its build system it
assumes native compilation in a number of places.
The first hard failure is found in dwarfdump's configure.in. It uses
AC_TRY_RUN to check whether __attribute__ ((unused)) works. Such checks
always fail for cross compilation, but running the example is completely
unnecessary. The check can easily be turned into AC_TRY_COMPILE.
Then libdwarf runs host tools during build. Its Makefile.in shows that
cross compilation was considered as it clearly marks the relevant places
with uses of $(HOSTCC) rather than $(CC). Unfortunately, HOSTCC receives
the same value as CC. The autoconf-archive has a macro AX_CC_FOR_BUILD
for discovering the build architecture compiler and after using that,
libdwarf actually builds.
Finally, dwarfdump runs tag_tree_build during build and that tool links
libdwarf. I don't have a solution for this part unfortunately.
Thus I am attaching my patch for the first two problems and ask you to
apply it as an incremental improvement. Please close this bug even
though dwarfutils will still fail to cross build when doing so.
Helmut
Index: dwarfutils-20170709/dwarfdump/configure.in
===================================================================
--- dwarfutils-20170709.orig/dwarfdump/configure.in
+++ dwarfutils-20170709/dwarfdump/configure.in
@@ -96,16 +96,14 @@
[Define 1 if regex seems to be defined]))
AC_MSG_CHECKING(checking if __attribute__ unused compiles ok)
-AC_TRY_RUN([
+AC_TRY_COMPILE([
static unsigned foo( unsigned x, __attribute__ ((unused)) int y)
{ unsigned x2 = x + 1;
return x2;
}
- int main(void) {
+] , [
unsigned y = 0;
y = foo(12,y);
- return 0;
- }
] ,
[AC_DEFINE(HAVE_UNUSED_ATTRIBUTE,1,
[Define 1 if __attribute__ ((unused)) compiles ok.])
Index: dwarfutils-20170709/libdwarf/configure.in
===================================================================
--- dwarfutils-20170709.orig/libdwarf/configure.in
+++ dwarfutils-20170709/libdwarf/configure.in
@@ -4,6 +4,7 @@
AC_CONFIG_HEADER(config.h)
AC_PROG_CC
+AX_CC_FOR_BUILD
AC_C_BIGENDIAN
AC_GCC_TRADITIONAL
AC_PROG_INSTALL
Index: dwarfutils-20170709/libdwarf/Makefile.in
===================================================================
--- dwarfutils-20170709.orig/libdwarf/Makefile.in
+++ dwarfutils-20170709/libdwarf/Makefile.in
@@ -42,7 +42,8 @@
INSTALL_DATA = @INSTALL_DATA@
SHELL = /bin/sh
CC = @CC@
-HOSTCC = @CC@
+CC_FOR_BUILD = @CC_FOR_BUILD@
+EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
AR = @AR@
# For use with BSD ar (MacOSX ar) edit the ARFLAGS to be -s
#ARFLAGS = @ARFLAGS@
@@ -144,22 +145,22 @@
echo "Not building archive library libdwarf.a"
dwgetopt.o: $(srcdir)/dwgetopt.c $(srcdir)/dwgetopt.h
- $(HOSTCC) $(HOSTCFLAGS) -c $(srcdir)/dwgetopt.c
+ $(CC_FOR_BUILD) $(HOSTCFLAGS) -c $(srcdir)/dwgetopt.c
dwarf_loc.o: $(srcdir)/dwarf_loc.c $(srcdir)/dwarf_loc2.c $(srcdir)/dwarf_loc.h
$(CC) $(CFLAGS) -c $(srcdir)/dwarf_loc.c
errmsg_check: $(srcdir)/dwarf_errmsg_list.c libdwarf.h
grep DW_DLE libdwarf.h >errmsg_check_list
- $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -DTESTING $(srcdir)/dwarf_errmsg_list.c -o errmsg_check
- ./errmsg_check -f errmsg_check_list
+ $(CC_FOR_BUILD) $(HOSTCFLAGS) $(LDFLAGS) -DTESTING $(srcdir)/dwarf_errmsg_list.c -o errmsg_check$(EXEEXT_FOR_BUILD)
+ ./errmsg_check$(EXEEXT_FOR_BUILD) -f errmsg_check_list
# Gennames builds and runs native, even for a cross-build of libdwarf.
gennames: $(srcdir)/gennames.c $(srcdir)/dwarf.h dwgetopt.o
- $(HOSTCC) $(HOSTCFLAGS) $(srcdir)/gennames.c dwgetopt.o $(HOSTLDFLAGS) -o gennames
+ $(CC_FOR_BUILD) $(HOSTCFLAGS) $(srcdir)/gennames.c dwgetopt.o $(HOSTLDFLAGS) -o gennames$(EXEEXT_FOR_BUILD)
dwarf_names.h: dwarf_names.c
dwarf_names.c: gennames $(srcdir)/dwarf.h
rm -f dwarf_names.h dwarf_names.c
- ./gennames @dwarf_namestable@ -i $(srcdir) -o .
+ ./gennames$(EXEEXT_FOR_BUILD) @dwarf_namestable@ -i $(srcdir) -o .
# End gennames build lines
dwarf_line.o: $(srcdir)/dwarf.h libdwarf.h $(srcdir)/dwarf_line_table_reader_common.c $(srcdir)/dwarf_line.c
--- End Message ---
--- Begin Message ---
Source: dwarfutils
Source-Version: 20180129-1
We believe that the bug you reported is fixed in the latest version of
dwarfutils, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Fabian Wolff <[email protected]> (supplier of updated dwarfutils package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 17 Feb 2018 15:15:20 +0100
Source: dwarfutils
Binary: dwarfdump libdwarf-dev libdwarf1
Architecture: source amd64
Version: 20180129-1
Distribution: unstable
Urgency: medium
Maintainer: Fabian Wolff <[email protected]>
Changed-By: Fabian Wolff <[email protected]>
Description:
dwarfdump - utility to dump DWARF debug information from ELF objects
libdwarf-dev - library to consume and produce DWARF debug information
libdwarf1 - library to consume and produce DWARF debug information (runtime)
Closes: 880771 882119
Changes:
dwarfutils (20180129-1) unstable; urgency=medium
.
* New upstream release (Closes: #880771).
* Remove Daniel Stender from Uploaders field in debian/control
(Closes: #882119).
* Upgrade to Standards-Version 4.1.3 in debian/control (no changes).
* Remove useless dh-autoreconf build dependency.
* Update Vcs-Git and Vcs-Browser fields in debian/control.
* Update 01-fix-makefile.patch.
* Update symbols file.
* Update debian/copyright.
Checksums-Sha1:
3bcbe3c843ca7b0b838d8bd9398f656481d236d2 2010 dwarfutils_20180129-1.dsc
b8ea79fbedd3088420d6176df54997666ad7f012 1782169
dwarfutils_20180129.orig.tar.gz
f56c42bc90608bd65c667b4855c92bf64d03916e 10624
dwarfutils_20180129-1.debian.tar.xz
da9268c99d2bd0f62470fbebce85c64a5442727d 603448
dwarfdump-dbgsym_20180129-1_amd64.deb
8e89ef26b58b6fbf59c6fabc3179746ae90ad466 250704 dwarfdump_20180129-1_amd64.deb
8dc7b1b60f18cc45ab2798da92090e4919a6c659 6691
dwarfutils_20180129-1_amd64.buildinfo
48d75e8b8ccd2667a607c60badf5b27e40c53e53 814184
libdwarf-dev_20180129-1_amd64.deb
83a16b3e29100f6e0224d7007a7def349c293f73 443956
libdwarf1-dbgsym_20180129-1_amd64.deb
c8889b2d578ed9814ffd98bebb8e0221a5345597 219528 libdwarf1_20180129-1_amd64.deb
Checksums-Sha256:
98a028bc0ebd80e25f2fab04e712df3cdf2a37c43b7d53f2c77669afd9317492 2010
dwarfutils_20180129-1.dsc
d08c3dd3c06d3d738dc9c542b012928a0406386dfe8322d0bdab620c569f5720 1782169
dwarfutils_20180129.orig.tar.gz
774b29d32c00606b9b513925a2044dce95e64e4b495edabd0d95b4ccd7a99e0f 10624
dwarfutils_20180129-1.debian.tar.xz
53f275ca6e5f32aaf490d2de410454d972f0843c347c8f2fae5a64b777fe4541 603448
dwarfdump-dbgsym_20180129-1_amd64.deb
bfb7fcc3881e688a1958efbdce68c691ee3c0302305763912572c1a0996fa3cd 250704
dwarfdump_20180129-1_amd64.deb
a4a0f494e6f4f8680d8b99ef73b75d906dcf2275126a77124bce89f2e5d8f6bf 6691
dwarfutils_20180129-1_amd64.buildinfo
282bf27815de41fb1adc3b9d1f6b23fe05e87c80dbb19441df99580e239dc1f9 814184
libdwarf-dev_20180129-1_amd64.deb
1fe8a011fbb393a4cd24802d31bb9f83f4bd7f7d830f4a05843c177a3807bacc 443956
libdwarf1-dbgsym_20180129-1_amd64.deb
33132388321293f552b5ef4258d5c889e1167f9c8ab89ec76f1ed203ab2be069 219528
libdwarf1_20180129-1_amd64.deb
Files:
f9b1b8f35d85001fd7a932d45aacc5df 2010 libs optional dwarfutils_20180129-1.dsc
229790078109cec16e1ae572b191f070 1782169 libs optional
dwarfutils_20180129.orig.tar.gz
23baeafbe62b86b0a66aeb4bbc4035c9 10624 libs optional
dwarfutils_20180129-1.debian.tar.xz
a724132eb36b75aad9e640e49c225e9f 603448 debug optional
dwarfdump-dbgsym_20180129-1_amd64.deb
9f2c7590809599b4a2ba986419fd7142 250704 utils optional
dwarfdump_20180129-1_amd64.deb
ae03956875ceae05f896aef96ebf61bf 6691 libs optional
dwarfutils_20180129-1_amd64.buildinfo
29f94b8e78b0f08e668dd043941f9b75 814184 libdevel optional
libdwarf-dev_20180129-1_amd64.deb
2852025a43fa4ac0ebe5e249bb2c20c9 443956 debug optional
libdwarf1-dbgsym_20180129-1_amd64.deb
15eb4bda53bbebbd555797dccb7f194c 219528 libs optional
libdwarf1_20180129-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEGKeQdgwAi1CfzfenilOItk1pK0kFAlqIOncACgkQilOItk1p
K0km8w//UAxHlZ220EDqWH3jQUiosKK62I3nHMLlet2hb3P4pxD8c2oiZlLy4mr/
ANBCgSDJtzwP/7AEAUNPRd9s/XCiRC4kDdn+/P6cFvBwP/ZroBTk9mhHZmsMHdYV
iAS5pwHMgaTJAKUu++ZXKKtNLC0JfYaohEY7XOP9++lraq9c4753f9xFVEtEWGQq
UuR1wLAxP2p+dLt5kxSEyS8Khg8jHan9Y6lViyF5R2se0n0E5qSpw40IGZk6XuO2
ACFw+6U1NzXzTLqFv5KXtuPhQiQxwdykpx02JG6ywDs7O7+i+lb4/b3tpRuP4k7N
c4Wn55JnK62KBhjoH2ZMsglYqjxkRzobayPxLeEp/EXppC/pxBiNrJICt2gtM8/h
YrOjei8pu+hCLeAQiMmvibIqn9wFe8DLXua26OMdBBNuiWGsE+5TTRJc2XYFSPw+
C6kyrNpwjiinZbkNMdTZB8gqk8BKz4oSlFg8XYk/lffCwUP16X1O+X/AL5rQMTOD
rs9RuLc7ueVFUZayYO4aVFZ4pIxZLerD6wflWQXbwjK4O6yFBK1VzwHFm5SrnLn8
a/Qjv8LT/jMDzZEBbpK08VAkuWaeihkX0XrEMq/tgbp2Jgw9VmU18/wPf0/Nwt/Y
9OxeKUBCvR7d11ydG38pWg3Kd8ivmCwG8YpCDHTe8aXjVxcn6fA=
=kbA+
-----END PGP SIGNATURE-----
--- End Message ---