[Bug 1418239] Comment bridged from LTC Bugzilla
bugproxy
bugproxy at us.ibm.com
Tue Feb 17 05:19:18 UTC 2015
------- Comment From rajalakshmi at in.ibm.com 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 at 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 at ubuntu:~# hostname
ubuntu
root at ubuntu:~# whoami
root
root at ubuntu:~# pwd
/root
root at ubuntu:~# mkdir new
root at ubuntu:~# cd new
root at 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 at ubuntu:~/new# pwd
/root/new
root at ubuntu:~/new# cd glibc-2.19/
root at 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 <adconrad at ubuntu.com>
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/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
checking whether ln -s works... yes
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
--
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:
New
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