[Bug 1418239] Re: systemtap support needs sys/sdt.h with asm support error

Launchpad Bug Tracker 1418239 at bugs.launchpad.net
Sat Mar 21 21:51:07 UTC 2015


This bug was fixed in the package glibc - 2.21-0ubuntu2

---------------
glibc (2.21-0ubuntu2) vivid; urgency=medium

  * debian/patches/powerpc/cvs-ppc-sqrt.diff: Fix sqrt() on powerpc.
  * debian/patches/powerpc/cvs-ppc-sqrtf.diff: Likewise for sqrtf().
  * debian/patches/powerpc/cvs-ppc-pow.diff: Likewise for pow().
  * debian/patches/powerpc/cvs-ppc-feraiseexcept.diff: Fix inline
    feraiseexcept and feclearexcept macro input conversion on PPC.
  * debian/patches/any/submitted-longdouble.diff: Refresh for above.
  * debian/patches/any/local-disable-test-tgmath2.diff: Likewise.
  * debian/patches/any/cvs-logbl-accuracy.diff: Fix ldbl-128ibm logbl.
  * debian/patches/powerpc/local-math-logb.diff: Refresh and move to
    debian/patches/any/local-math-logb.diff, as it's not PPC-specific.
  * debian/patches/any/cvs-localplt-new-readelf.diff: Preemptively
    fix localplt test breakage with binutils 2.26 before it lands.
  * debian/patches/any/cvs-make-typo.diff: Fix typo in elf/Makefile.
  * debian/patches/powerpc/cvs-power7-strncpy.diff: Optimize strncpy
    for POWER7 drastically (10-70%) on strings longer than 16 chars.
  * debian/patches/powerpc/cvs-ppc-tabort-le.diff: Fix TABORT encoding
    when building on toolchains without HTM support (no-op on gcc-4.9)
  * debian/patches/arm/cvs-arm-sfi_breg.diff: Fix LDR_GLOBAL macro.
  * debian/patches/arm/cvs-memcpy-memmove-always-bx.diff: Fix memcpy
    and memmove for the ARM_ALWAYS_BX class of hardware like ArmadaXP.
 -- Adam Conrad <adconrad at ubuntu.com>   Fri, 20 Mar 2015 15:19:40 -0600

** Changed in: glibc (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1418239

Title:
  systemtap support needs sys/sdt.h with asm support error

Status in glibc package in Ubuntu:
  Fix Released

Bug description:
  ---Problem Description---
  Not able to build glibc-2.19 on Ubuntu 15.04
    
  ---uname output---
  Linux ubuntu 3.18.0-12-generic #13-Ubuntu SMP Thu Jan 29 13:44:26 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
   
  Machine Type = P8 
    
  ---Steps to Reproduce---
  Install a Power VM LPAR with Ubuntu 15.04 ISO.
  Then download the glibc-2.19 source and try to build the same as follows:

  root at ubuntu:~# apt-get source glibc
  root at ubuntu:~# cd glibc-2.19/
  root at ubuntu:~/glibc-2.19# dpkg-buildpackage -b

  dpkg-buildpackage: source package glibc
  dpkg-buildpackage: source version 2.19-13ubuntu3
  dpkg-buildpackage: source distribution vivid
  dpkg-buildpackage: source changed by Adam Conrad <adconrad at ubuntu.com>
   dpkg-source --before-build glibc-2.19
  dpkg-buildpackage: host architecture ppc64el
  dpkg-source: info: using options from glibc-2.19/debian/source/options: --compression=xz
   debian/rules clean
  dh_clean
  rm -f debian/*.install
  rm -f debian/*.install.*
  rm -f debian/*.manpages
  rm -f debian/*.links
  rm -f debian/*.postinst
  rm -f debian/*.preinst
  rm -f debian/*.postinst
  rm -f debian/*.prerm
  rm -f debian/*.postrm
  rm -f debian/*.info
  rm -f debian/*.init
  rm -f debian/*.config
  rm -f debian/*.templates
  rm -f debian/*.dirs
  rm -f debian/*.docs
  rm -f debian/*.doc-base
  rm -f debian/*.generated
  rm -f debian/*.lintian-overrides
  rm -f debian/*.NEWS
  rm -f debian/*.README.Debian
  rm -f debian/*.triggers
  rm -f /root/glibc-2.19/stamp-dir/binaryinst*
  rm -f /root/glibc-2.19/stamp-dir/patch
  rm -f /root/glibc-2.19/po/*.mo
  rm -rf debian/tmp-libc
  rm -rf build-tree
  rm -rf /root/glibc-2.19/stamp-dir/
  rm -rf debian/include
  rm -f debian/control.in/libc0.1 debian/control.in/libc0.3 \
          debian/control.in/libc6 debian/control.in/libc6.1 \
          debian/*.preinst.* debian/locales.bug-presubj
   debian/rules build
  ------------------------------------------------------
  uname -a
  Linux ubuntu 3.18.0-12-generic #13-Ubuntu SMP Thu Jan 29 13:44:26 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux

  if [ -f /proc/cpuinfo ] ; then cat /proc/cpuinfo ; fi
  processor       : 0
  cpu             : POWER8E (raw), altivec supported
  clock           : 3026.000000MHz
  revision        : 2.1 (pvr 004b 0201)

  processor       : 1
  cpu             : POWER8E (raw), altivec supported
  clock           : 3026.000000MHz
  revision        : 2.1 (pvr 004b 0201)

  processor       : 2
  cpu             : POWER8E (raw), altivec supported
  clock           : 3026.000000MHz
  revision        : 2.1 (pvr 004b 0201)

  processor       : 3
  cpu             : POWER8E (raw), altivec supported
  clock           : 3026.000000MHz
  revision        : 2.1 (pvr 004b 0201)

  timebase        : 512000000
  platform        : pSeries
  model           : IBM pSeries (emulated by qemu)
  machine         : CHRP IBM pSeries (emulated by qemu)

  ------------------------------------------------------
  touch /root/glibc-2.19/stamp-dir/info
  touch /root/glibc-2.19/stamp-dir/patch
  rm -rf debian/include
  mkdir debian/include
  # Kernel headers
  if [ -d "/usr/include/powerpc64le-linux-gnu/asm" ]; then \
          ln -s /usr/include/powerpc64le-linux-gnu/asm debian/include ; \
  else \
          ln -s /usr/include/asm debian/include ; \
  fi
  ln -s /usr/include/asm-generic debian/include
  ln -s /usr/include/linux debian/include
  # Library headers
  for h in libaudit.h selinux sys/capability.h ; do \
      mkdir -p debian/include/$(dirname $h) ; \
      if [ -d "/usr/include/powerpc64le-linux-gnu/$h" ]; then \
          ln -s /usr/include/powerpc64le-linux-gnu/$h debian/include/$h ; \
      else \
          ln -s /usr/include/$h debian/include/$h ; \
      fi ; \
  done
  ln -s /usr/include/powerpc64le-linux-gnu/sys/sdt.h debian/include/sys/sdt.h
  # To make configure happy if libc6-dev is not installed.
  touch debian/include/assert.h
  touch /root/glibc-2.19/stamp-dir/mkincludedir
  Making builddir for libc
  test -d build-tree/ppc64el-libc || mkdir -p build-tree/ppc64el-libc
  touch /root/glibc-2.19/stamp-dir/mkbuilddir_libc
  Configuring libc
  rm -f build-tree/ppc64el-libc/configparms
  echo "CC = powerpc64le-linux-gnu-gcc-4.8"                 >> build-tree/ppc64el-libc/configparms
  echo "CXX = powerpc64le-linux-gnu-g++-4.8"               >> build-tree/ppc64el-libc/configparms
  echo "BUILD_CC = powerpc64le-linux-gnu-gcc"             >> build-tree/ppc64el-libc/configparms
  echo "BUILD_CXX = powerpc64le-linux-gnu-g++"           >> build-tree/ppc64el-libc/configparms
  echo "CFLAGS = -pipe -O2 -g -O3 -fno-tree-vectorize"            >> build-tree/ppc64el-libc/configparms
  echo "ASFLAGS = -pipe -O2 -g -O3 -fno-tree-vectorize"           >> build-tree/ppc64el-libc/configparms
  echo "BUILD_CFLAGS = -O2 -g"     >> build-tree/ppc64el-libc/configparms
  echo "LDFLAGS = "                         >> build-tree/ppc64el-libc/configparms
  echo "BASH := /bin/bash"                  >> build-tree/ppc64el-libc/configparms
  echo "KSH := /bin/bash"                   >> build-tree/ppc64el-libc/configparms
  echo "SHELL := /bin/bash"                 >> build-tree/ppc64el-libc/configparms
  echo "LIBGD = no"                         >> build-tree/ppc64el-libc/configparms
  echo "bindir = /usr/bin"                 >> build-tree/ppc64el-libc/configparms
  echo "datadir = /usr/share"               >> build-tree/ppc64el-libc/configparms
  echo "localedir = /usr/lib/locale"           >> build-tree/ppc64el-libc/configparms
  echo "sysconfdir = /etc"         >> build-tree/ppc64el-libc/configparms
  echo "libexecdir = /usr/lib"         >> build-tree/ppc64el-libc/configparms
  echo "rootsbindir = /sbin"       >> build-tree/ppc64el-libc/configparms
  echo "includedir = /usr/include" >> build-tree/ppc64el-libc/configparms
  echo "docdir = /usr/share/doc"                 >> build-tree/ppc64el-libc/configparms
  echo "mandir = /usr/share/man"                 >> build-tree/ppc64el-libc/configparms
  echo "sbindir = /usr/sbin"               >> build-tree/ppc64el-libc/configparms
  echo "vardbdir = /var/lib/misc"             >> build-tree/ppc64el-libc/configparms
  echo "libdir = /usr/lib/powerpc64le-linux-gnu"         >> build-tree/ppc64el-libc/configparms
  echo "slibdir = /lib/powerpc64le-linux-gnu"       >> build-tree/ppc64el-libc/configparms
  echo "rtlddir = /lib64"       >> build-tree/ppc64el-libc/configparms
  # Define the installation directory for all calls to make. This avoid
  # broken glibc makefiles to spuriously trigger install rules trying to
  # overwrite system headers.
  echo "install_root = /root/glibc-2.19/debian/tmp-libc" >> build-tree/ppc64el-libc/configparms
  # Prevent autoconf from running unexpectedly by setting it to false.
  # Also explicitly pass CC down - this is needed to get -m64 on
  # Sparc, et cetera.
  configure_build=powerpc64le-linux-gnu; \
  if [ powerpc64le-linux-gnu = $configure_build ]; then \
    echo "Checking that we're running at least kernel version: 2.6.32"; \
    if ! (minimum=\([^.0-9]\|$\)/\1.0\2/; s/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 10000 + \2 \* 100 + \3/'`)); current=\([^.0-9]\|$\)/\1.0\2/; s/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 10000 + \2 \* 100 + \3/'`)); if [ $current -lt $minimum ]; then false; fi); then \
      configure_build=`echo $configure_build | sed 's/^\([^-]*\)-\([^-]*\)$/\1-dummy-\2/'`; \
      echo "No.  Forcing cross-compile by setting build to $configure_build."; \
    fi; \
  fi; \
  (exec 3>&1; exit `( ( (  echo -n "Build started: " ; date --rfc-2822 ; echo "---------------" ) 2>&1 3>&-; echo $? >&4) | tee  -a build-tree/log-build-powerpc64le-linux-gnu-libc >&3) 4>&1`) ; \
  (exec 3>&1; exit `( ( (  cd build-tree/ppc64el-libc && CC="powerpc64le-linux-gnu-gcc-4.8" CXX="powerpc64le-linux-gnu-g++-4.8" AUTOCONF=false MAKEINFO=: /root/glibc-2.19/configure --host=powerpc64le-linux-gnu --build=$configure_build --prefix=/usr --without-cvs --enable-add-ons=libidn,"nptl " --without-selinux --enable-stackguard-randomization --enable-obsolete-rpc --with-pkgversion="Ubuntu GLIBC 2.19-13ubuntu3" --with-bugurl="https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs" --enable-pt_chown  --with-headers=/root/glibc-2.19/debian/include --enable-kernel=2.6.32 --with-selinux --enable-systemtap --enable-multi-arch --with-cpu=power7 ) 2>&1 3>&-; echo $? >&4) | tee  -a build-tree/log-build-powerpc64le-linux-gnu-libc >&3) 4>&1`)
  Checking that we're running at least kernel version: 2.6.32
  Build started: Mon, 02 Feb 2015 03:33:29 -0600
  ---------------
  checking build system type... powerpc64le-unknown-linux-gnu
  checking host system type... powerpc64le-unknown-linux-gnu
  checking for powerpc64le-linux-gnu-gcc... powerpc64le-linux-gnu-gcc-4.8
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether powerpc64le-linux-gnu-gcc-4.8 accepts -g... yes
  checking whether we are using the GNU C++ compiler... yes
  checking whether powerpc64le-linux-gnu-g++-4.8 accepts -g... yes
  checking for powerpc64le-linux-gnu-readelf... powerpc64le-linux-gnu-readelf
  checking for systemtap static probe support... no
  configure: error: in `/root/glibc-2.19/build-tree/ppc64el-libc':
  configure: error: systemtap support needs sys/sdt.h with asm support
  See `config.log' for more details
  debian/rules.d/build.mk:31: recipe for target '/root/glibc-2.19/stamp-dir/configure_libc' failed
  make: *** [/root/glibc-2.19/stamp-dir/configure_libc] Error 1
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  root at ubuntu:~# dpkg --list | grep systemtap
  ii  systemtap                            2.6-0.2ubuntu1                             ppc64el      instrumentation system for Linux
  ii  systemtap-common                     2.6-0.2ubuntu1                             all          instrumentation system for Linux (common component)
  ii  systemtap-runtime                    2.6-0.2ubuntu1                             ppc64el      instrumentation system for Linux (runtime component)
  ii  systemtap-sdt-dev                    2.6-0.2ubuntu1                             ppc64el      statically defined probes development files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1418239/+subscriptions



More information about the foundations-bugs mailing list