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

Bug #1418239 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Fix Released
Undecided
Unassigned

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@ubuntu:~# apt-get source glibc
root@ubuntu:~# cd glibc-2.19/
root@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 <email address hidden>
 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@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

CVE References

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-121298 severity-high targetmilestone-inin1504
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1418239/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Luciano Chavez (lnx1138)
affects: ubuntu → glibc (Ubuntu)
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla
Download full text (10.6 KiB)

------- Comment From <email address hidden> 2015-02-16 08:59 EDT-------
I tried the build command in the same machine and the configure phase passes now.

------- Comment From <email address hidden> 2015-02-16 09:05 EDT-------
I am able to re-create the same issue again as below on the same machine.

root@ubuntu:~/glibc-2.19# dpkg-buildpackage -b
dpkg-buildpackage: source package glibc
dpkg-buildpackage: source version 2.19-15ubuntu1
dpkg-buildpackage: source distribution vivid
dpkg-buildpackage: source changed by Adam Conrad <email address hidden>
dpkg-buildpackage: host architecture ppc64el
dpkg-source --before-build glibc-2.19
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-13-generic #14-Ubuntu SMP Fri Feb 6 09:57:41 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux

if [ -f /proc/cpuinfo ] ; then cat /proc/cpuinfo ; fi
processor : 0
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 1
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 2
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 3
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 4
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 5
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 6
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 7
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 8
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b...

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-02-17 04:54 EDT-------
dpkg-buildpackage -b -> configure phase passes both on 9.114.13.130 and lep8a guest VM.

Checked in /home/ubuntu/new/glibc-2.19

checking for systemtap static probe support... yes
checking for sysdeps preconfigure fragments... powerpc x86_64
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking for assembler and linker STT_GNU_IFUNC support... yes
checking whether .text pseudo-op must be used... yes
checking sysdep dirs... sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64 sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl sysdeps/unix/sysv/linux/powerpc/powerpc64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux/powerpc sysdeps/unix/sysv/linux/powerpc nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/powerpc nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/powerpc/powerpc64/power7/fpu/multiarch sysdeps/powerpc/powerpc64/power6/fpu/multiarch sysdeps/powerpc/powerpc64/power5+/fpu/multiarch sysdeps/powerpc/powerpc64/power5/fpu/multiarch sysdeps/powerpc/powerpc64/power4/fpu/multiarch sysdeps/powerpc/powerpc64/fpu/multiarch sysdeps/powerpc/powerpc64/power7/fpu sysdeps/powerpc/powerpc64/power6/fpu sysdeps/powerpc/powerpc64/power5+/fpu sysdeps/powerpc/powerpc64/power5/fpu sysdeps/powerpc/powerpc64/power4/fpu/ sysdeps/powerpc/powerpc64/fpu sysdeps/powerpc/powerpc64/power7/multiarch sysdeps/powerpc/powerpc64/power6/multiarch sysdeps/powerpc/powerpc64/power5+/multiarch sysdeps/powerpc/powerpc64/power5/multiarch sysdeps/powerpc/powerpc64/power4/multiarch sysdeps/powerpc/powerpc64/multiarch sysdeps/powerpc/powerpc64/power7 sysdeps/powerpc/powerpc64/power6 sysdeps/powerpc/powerpc64/power5+ sysdeps/powerpc/power5+/fpu sysdeps/powerpc/power5+ sysdeps/powerpc/powerpc64/power5 sysdeps/powerpc/powerpc64/power4/fpu sysdeps/powerpc/powerpc64/power4 sysdeps/powerpc/power4/fpu sysdeps/powerpc/power4 sysdeps/powerpc/powerpc64 sysdeps/wordsize-64 sysdeps/powerpc/fpu nptl/sysdeps/powerpc sysdeps/powerpc sysdeps/ieee754/ldbl-128ibm sysdeps/ieee754/ldbl-opt sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c

Revision history for this message
bugproxy (bugproxy) wrote :
Download full text (10.5 KiB)

------- Comment From <email address hidden> 2015-02-17 05:00 EDT-------
I have re-created the problem once again on the same machine as below:

root@ubuntu:~/glibc-2.19# dpkg-buildpackage -b 2>&1 | tee glibclog
dpkg-buildpackage: source package glibc
dpkg-buildpackage: source version 2.19-15ubuntu1
dpkg-buildpackage: source distribution vivid
dpkg-buildpackage: source changed by Adam Conrad <email address hidden>
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-13-generic #14-Ubuntu SMP Fri Feb 6 09:57:41 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux

if [ -f /proc/cpuinfo ] ; then cat /proc/cpuinfo ; fi
processor : 0
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 1
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 2
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 3
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 4
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 5
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 6
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 7
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 8
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)

processor : 9
cpu : POWER8 (architected), altivec supported
clock : 3458.000000MHz
revision : 2....

Revision history for this message
bugproxy (bugproxy) wrote :
Download full text (5.0 KiB)

------- Comment From <email address hidden> 2015-02-17 05:13 EDT-------
I logged as root and these are the steps i followed.
Please check if there is any mismatch with the sequence of commands.
Please try with fresh apt-get source glibc..

root@ubuntu:~# ifconfig | grep 'inet addr'
inet addr:9.114.13.130 Bcast:9.114.15.255 Mask:255.255.252.0
inet addr:127.0.0.1 Mask:255.0.0.0
inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0
root@ubuntu:~# hostname
ubuntu
root@ubuntu:~# whoami
root
root@ubuntu:~# pwd
/root
root@ubuntu:~# mkdir new
root@ubuntu:~# cd new
root@ubuntu:~/new# apt-get source glibc
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'glibc' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/pkg-glibc/glibc-package/
Need to get 13.5 MB of source archives.
Get:1 http://archive.ubuntu.com/ubuntu/ vivid/main glibc 2.19-15ubuntu1 (dsc) [8,692 B]
Get:2 http://archive.ubuntu.com/ubuntu/ vivid/main glibc 2.19-15ubuntu1 (tar) [12.4 MB]
Get:3 http://archive.ubuntu.com/ubuntu/ vivid/main glibc 2.19-15ubuntu1 (diff) [1,055 kB]
Fetched 13.5 MB in 0s (19.2 MB/s)
gpgv: Signature made Mon 09 Feb 2015 01:14:06 AM CST using RSA key ID B1CDE58F
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./glibc_2.19-15ubuntu1.dsc
dpkg-source: info: extracting glibc in glibc-2.19
dpkg-source: info: unpacking glibc_2.19.orig.tar.xz
.
.
.
dpkg-source: info: applying ubuntu/submitted-no-stack-backtrace.diff
dpkg-source: info: applying ubuntu/unsubmitted-increase-dtv-surplus.diff
root@ubuntu:~/new# pwd
/root/new
root@ubuntu:~/new# cd glibc-2.19/
root@ubuntu:~/new/glibc-2.19# dpkg-buildpackage -b
dpkg-buildpackage: source package glibc
dpkg-buildpackage: source version 2.19-15ubuntu1
dpkg-buildpackage: source distribution vivid
dpkg-buildpackage: source changed by Adam Conrad <email address hidden>
dpkg-buildpackage: host architecture ppc64el
dpkg-source --before-build glibc-2.19
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.*
.
.

Build started: Mon, 16 Feb 2015 23:04:06 -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... yes
checking for sysdeps preconfigure fragments... powerpc x86_64
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking for assembler and linker STT_GNU_IFUNC support... yes
checking whether .text pseudo-op must be used... yes
checking sysdep dirs... sysdeps/unix/sysv/linu...

Read more...

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-02-25 15:49 EDT-------
The following patch copies sdt.h to debian/include directory.
sdt.h looks for sdt-config.h in the current directory and that has to be linked as well.
==================================================================================
glibc (2.19-6) unstable; urgency=high

[ Aurelien Jarno ]
* debian/patches/any/cvs-CVE-2014-0475.diff: fix a directory traversal in
locale environment handling (CVE-2014-0475).
* debian/patches/any/cvs-setlocale-alloca.diff: Additional setlocale
hardening.
* debian/control.in/main, debian/sysdeps/linux.mk: drop systemtap support.
sdt.h has been moved to a different location in the latest upload, and
it's not really clear on which architectures systemtap support should
be enabled.

Command that gets executed due to the above patch:
==================================================
ln -s /usr/include/powerpc64le-linux-gnu/sys/sdt.h debian/include/sys/sdt.h

part of sdt.h where sdt-config.h is included:
============================================
/* If the assembler supports the necessary feature, then we can play
nice with code in COMDAT sections, which comes up in C++ code.
Without that assembler support, some combinations of probe placements
in certain kinds of C++ code may produce link-time errors. */
#include "sdt-config.h"
#if _SDT_ASM_SECTION_AUTOGROUP_SUPPORT
# define _SDT_ASM_AUTOGROUP "?"
#else
# define _SDT_ASM_AUTOGROUP ""
#endif

Proposed fix in debian/sysdeps/linux.mk :
========================================
root@ubuntu:~/glibc-2.19/debian/sysdeps# diff linux.mk /root/new//glibc-2.19/debian/sysdeps
57d56
< ln -s /usr/include//sys/sdt-config.h debian/include/sys/sdt-config.h

Revision history for this message
bugproxy (bugproxy) wrote : proposed patch

------- Comment (attachment only) From <email address hidden> 2015-03-11 09:08 EDT-------

Revision history for this message
Launchpad Janitor (janitor) wrote :

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 <email address hidden> Fri, 20 Mar 2015 15:19:40 -0600

Changed in glibc (Ubuntu):
status: New → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-03-24 10:43 EDT-------
I have verified the same again by installing the latest glibc source on my Power LPAR.

root@ubuntu:~# uname -a
Linux ubuntu 3.19.0-10-generic #10-Ubuntu SMP Mon Mar 23 16:18:35 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux

root@ubuntu:~# dpkg-buildpackage -b

Also I am able to build the same using dpkg-buildpackage command as mentioned above.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.