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

Bug#754213: marked as done (linux-tools: build on ppc64el)



Your message dated Mon, 08 Sep 2014 19:34:04 +0000
with message-id <E1XR4hQ-0001ZR-PQ@franck.debian.org>
and subject line Bug#754213: fixed in linux-tools 3.16-1
has caused the Debian Bug report #754213,
regarding linux-tools: build on ppc64el
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 owner@bugs.debian.org
immediately.)


-- 
754213: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754213
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: src:linux-tools
Version: 3.14-1
Tags: patch
User: debian-powerpc@lists.debian.org
Usertags: ppc64el

Hi maintainers,

The attached patch adds support for ppc64el in linux-tools.
(I ommitted the output of the 'debian/control' target)

Would you please consider it for an upload?


Among other things, it includes defining '__SANE_USERSPACE_TYPES__' on
ppc64 and ppc64el, in order to fix the build failure reported at
#747151 (more details there).

With it applied, the built packages have equivalent contents to amd64,
accounting for the /usr/lib{,64} difference. I could run 'perf stat':

	# perf_3.14 stat sleep 1

	 Performance counter stats for 'sleep 1':

		  0.542034      task-clock (msec)         #    0.001 CPUs utilized
		         1      context-switches          #    0.002 M/sec
		         0      cpu-migrations            #    0.000 K/sec
		        49      page-faults               #    0.090 M/sec
		   2266748      cycles                    #    4.182 GHz
		    454072      stalled-cycles-frontend   #   20.03% frontend cycles idle
		   1604224      stalled-cycles-backend    #   70.77% backend  cycles idle
		    556703      instructions              #    0.25  insns per cycle
# 2.88 stalled cycles per insn
	     <not counted>      branches
	     <not counted>      branch-misses

	       1.001009786 seconds time elapsed

	# echo $?
	0


Thank you,


--
Mauricio Faria de Oliveira
IBM Linux Technology Center
diff -Nru linux-tools-3.14/debian/build/scripts/mod/Makefile.real linux-tools-3.14/debian/build/scripts/mod/Makefile.real
--- linux-tools-3.14/debian/build/scripts/mod/Makefile.real	2013-06-03 10:19:37.000000000 -0300
+++ linux-tools-3.14/debian/build/scripts/mod/Makefile.real	2014-07-08 14:56:40.000000000 -0300
@@ -6,6 +6,16 @@
 
 include $(top_srcdir)/debian/build/Makefile.inc
 
+DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+
+ifneq (,$(filter powerpc64 ppc64el,$(DEB_HOST_ARCH_CPU)))
+  # Fix "include/linux/types.h:148:1: error: unknown type name 'u32'".
+  # See linux commits:
+  #   "asm/types.h: Remove include/asm-generic/int-l64.h"
+  #   "powerpc: Add __SANE_USERSPACE_TYPES__ to asm/types.h for LL64"
+  CFLAGS += -D__SANE_USERSPACE_TYPES__
+endif
+
 modpost.real-$(TYPE): file2alias.real-$(TYPE).o modpost.real-$(TYPE).o sumversion.real-$(TYPE).o
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
 
diff -Nru linux-tools-3.14/debian/build/tools/perf/Makefile linux-tools-3.14/debian/build/tools/perf/Makefile
--- linux-tools-3.14/debian/build/tools/perf/Makefile	2014-03-19 20:56:58.000000000 -0300
+++ linux-tools-3.14/debian/build/tools/perf/Makefile	2014-07-08 14:49:28.000000000 -0300
@@ -21,6 +21,8 @@
   KERNEL_ARCH_PERF = powerpc
 else ifeq ($(DEB_HOST_ARCH_CPU),powerpc64)
   KERNEL_ARCH_PERF = powerpc
+else ifeq ($(DEB_HOST_ARCH_CPU),ppc64el)
+  KERNEL_ARCH_PERF = powerpc
 else ifeq ($(DEB_HOST_ARCH_CPU),s390)
   KERNEL_ARCH_PERF = s390
 else ifeq ($(DEB_HOST_ARCH_CPU),s390x)
diff -Nru linux-tools-3.14/debian/changelog linux-tools-3.14/debian/changelog
--- linux-tools-3.14/debian/changelog	2014-04-28 13:46:25.000000000 -0300
+++ linux-tools-3.14/debian/changelog	2014-07-08 14:53:00.000000000 -0300
@@ -1,3 +1,13 @@
+linux-tools (3.14-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * ppc64el/ppc64: fix FTBFS on linux 3.14 (build/scripts/mod/Makefile.real).
+  * ppc64el: set KERNEL_ARCH_PERF (build/tools/perf/Makefile).
+  * ppc64el: build linux-tools (rules.real, control.main.in).
+  * ppc64el: add build-dep on libnuma-dev (templates/control.source.in).
+
+ -- Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>  Tue, 08 Jul 2014 14:41:13 -0300
+
 linux-tools (3.14-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru linux-tools-3.14/debian/rules.real linux-tools-3.14/debian/rules.real
--- linux-tools-3.14/debian/rules.real	2013-10-18 21:12:53.000000000 -0300
+++ linux-tools-3.14/debian/rules.real	2014-07-08 14:45:31.000000000 -0300
@@ -9,7 +9,7 @@
 VERSION_DEBIAN_FULL := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')
 
 binary-arch: install-kbuild install-usbip
-ifneq ($(filter alpha amd64 armel armhf hppa i386 powerpc ppc64 s390 s390x sh4 sparc sparc64,$(DEB_BUILD_ARCH)),)
+ifneq ($(filter alpha amd64 armel armhf hppa i386 powerpc ppc64 ppc64el s390 s390x sh4 sparc sparc64,$(DEB_BUILD_ARCH)),)
   binary-arch: install-tools
 endif
 
diff -Nru linux-tools-3.14/debian/templates/control.main.in linux-tools-3.14/debian/templates/control.main.in
--- linux-tools-3.14/debian/templates/control.main.in	2013-09-24 21:18:33.000000000 -0300
+++ linux-tools-3.14/debian/templates/control.main.in	2014-07-08 14:31:14.000000000 -0300
@@ -7,7 +7,7 @@
 
 Package: linux-tools-@version@
 Section: devel
-Architecture: alpha amd64 armel armhf hppa i386 powerpc ppc64 s390 s390x sh4 sparc sparc64
+Architecture: alpha amd64 armel armhf hppa i386 powerpc ppc64 ppc64el s390 s390x sh4 sparc sparc64
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, ${python:Depends}
 Recommends: linux-base (>= 3.4~)
 Suggests: linux-doc-@version@
diff -Nru linux-tools-3.14/debian/templates/control.source.in linux-tools-3.14/debian/templates/control.source.in
--- linux-tools-3.14/debian/templates/control.source.in	2014-02-02 13:57:15.000000000 -0200
+++ linux-tools-3.14/debian/templates/control.source.in	2014-07-08 14:31:37.000000000 -0300
@@ -6,7 +6,7 @@
 Standards-Version: 3.9.4
 Build-Depends:
  debhelper (>> 7), python,
- asciidoc, bison, flex, libaudit-dev, libdw-dev, libelf-dev, libiberty-dev | binutils-dev (<< 2.23.91.20131123-1), libnewt-dev, libnuma-dev [amd64 i386 powerpc ppc64], libperl-dev, libunwind8-dev [amd64 i386], python-dev, xmlto,
+ asciidoc, bison, flex, libaudit-dev, libdw-dev, libelf-dev, libiberty-dev | binutils-dev (<< 2.23.91.20131123-1), libnewt-dev, libnuma-dev [amd64 i386 powerpc ppc64 ppc64el], libperl-dev, libunwind8-dev [amd64 i386], python-dev, xmlto,
  autoconf, automake, libtool, libglib2.0-dev, libsysfs-dev, libwrap0-dev
 Vcs-Svn: svn://svn.debian.org/svn/kernel/dists/trunk/linux-tools/
 Vcs-Browser: http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux-tools/

--- End Message ---
--- Begin Message ---
Source: linux-tools
Source-Version: 3.16-1

We believe that the bug you reported is fixed in the latest version of
linux-tools, 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 754213@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ben Hutchings <ben@decadent.org.uk> (supplier of updated linux-tools 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 08 Sep 2014 18:45:06 +0100
Source: linux-tools
Binary: linux-kbuild-3.16 linux-tools-3.16 libusbip-dev usbip
Architecture: i386 source
Version: 3.16-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Changed-By: Ben Hutchings <ben@decadent.org.uk>
Closes: 754213
Description: 
 libusbip-dev - USB device sharing system over IP network (development files)
 linux-kbuild-3.16 - Kbuild infrastructure for Linux 3.16
 linux-tools-3.16 - Performance analysis tools for Linux 3.16
 usbip      - USB device sharing system over IP network
Changes:
 linux-tools (3.16-1) unstable; urgency=medium
 .
   * New upstream release
 .
   [ Mauricio Faria de Oliveira ]
   * [ppc64el] Build linux-tools binary package (Closes: #754213)
 .
   [ Ben Hutchings ]
   * linux-kbuild: Build and install recordmcount and recordmcount.pl,
     needed for kernels with DYNAMIC_FTRACE enabled
   * linux-kbuild: Fix recordmcount dependency for OOT modules
Checksums-Sha1: 
 746d4ccaebe66e2c696caf33e1ba5e1a848f7e92 2546 linux-tools_3.16-1.dsc
 dfed1edb456ef62f5caf852e5d4acce491c35a0e 7819956 linux-tools_3.16.orig.tar.xz
 ae6862458c17790a742304e4f38293351aa0caf8 22436 linux-tools_3.16-1.debian.tar.xz
 67ef4252b9169ccdc3e73719e4d0e4d702689e4c 23146 libusbip-dev_2.0+3.16-1_i386.deb
 d5d674544521ce9236d1896cc58f3e9c51366191 173900 linux-kbuild-3.16_3.16-1_i386.deb
 8d5bdae01753cf07e79d398095d4f0a8af750649 36962 usbip_2.0+3.16-1_i386.deb
 e9f831defc44e69dc7fc1aa1f57163dcdda03d90 562914 linux-tools-3.16_3.16-1_i386.deb
Checksums-Sha256: 
 8139db6dc09f831064140d0b462fba07300ec511e0f45995f49c9cd9f6340987 2546 linux-tools_3.16-1.dsc
 665c1e4642ca3df552d02a6d28dc4444b9ee5705872f60bed5ba4702b28ee983 7819956 linux-tools_3.16.orig.tar.xz
 8bb1d344f87351c419f41b8133ad3a778e4367e68565c4092fb3820ad2d519cb 22436 linux-tools_3.16-1.debian.tar.xz
 368bffb87afcdd9d31cae8c8032d8d4722e6480c5bc58d984ae9635da932827f 23146 libusbip-dev_2.0+3.16-1_i386.deb
 0bed4a58317af10ce41fed4b20b5fca6aed9835dc14d3ec9461de4f5c232b199 173900 linux-kbuild-3.16_3.16-1_i386.deb
 1f9d64b22f408f3be4228a43e79647f8964acdbaedd4ac31a6d7089cfd19ef20 36962 usbip_2.0+3.16-1_i386.deb
 ec473a5886ddcd92542f832e47c88b5f37270361d9c7a65a36e8d6904709582e 562914 linux-tools-3.16_3.16-1_i386.deb
Files: 
 ef91c722ed7fb9e0b52c845774a7238d 2546 kernel optional linux-tools_3.16-1.dsc
 6e05b2fb564c92aac6f2d02ea6c5286a 7819956 kernel optional linux-tools_3.16.orig.tar.xz
 6188dd9f3e7c44503f8dd108eb418e77 22436 kernel optional linux-tools_3.16-1.debian.tar.xz
 e549dfb0d9d782dcb3c05ce8dfd93798 23146 libdevel optional libusbip-dev_2.0+3.16-1_i386.deb
 50a5aadfdfe347fa7e76fe35847cc5f0 173900 kernel optional linux-kbuild-3.16_3.16-1_i386.deb
 c5101610d0f071f7413e40fab5947745 36962 admin optional usbip_2.0+3.16-1_i386.deb
 60d10936f5005773e184674fd0bbca84 562914 devel optional linux-tools-3.16_3.16-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVA3/qee/yOyVhhEJAQoloRAAuJGL1FM47aRcJr07hfvW+oKefFUDAoyX
wuRy66kiXHUn4QO9+YxQvFz1JywXTgVirnQYOYaCXYXcmDX9ATZa5VYHH8zVSMLa
RwLeeEKO9eYnG37Npzosft64UePne1Av/+Fm9Yjyn1pIAfULuRBiyFPMrKZn83aP
4kdHQsKsfbwD5HCvmRYm5NAdGDoIAcTcKr4QmNZyqYegoSirKV2YqhDozmh1y2Rj
z2ilGn8LcCsBDQb0ofv7+6Zll+HOVfWmFf7bogo9YfoI25Z7Q4Jtc3+Xohf8uV3o
KSVO3bFcNM7U1p10iQSyu69lWahNBr4AnSzf2xIXrPbrlifswvi2tIXVO/tl16zn
bO2zA4iptD+8XFU7UveLhEmt0IOubaqpxuO86zDpT7hIxLFwDM/lPTe7fG2YtLsK
Iy1NEEXCGjtELWDsGD5BB7n527n8atsIq63ANrOCgaNt0X0P/EBa8sGqdeyQoj2J
tLIpA/qIXw8buhyCb0EZMDak39hEBj5IMQpktya51WqRvp4vhWtXugka7wVs6MKQ
NFLbkO5clm6bNEDPSAo/0fW5M9P2CvEq7QNRk2xJl9CkJ9WWlR7BSp6c5fX37je1
TH9pB+B9J6YQ1fAqwm+CtSV+fWlRMT1beBEIGJBvfef+4pMksGUg6xPLZu1EFDNj
C2AJWOVEyAA=
=QR5j
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: