From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1eowAz-00011C-Cv for ptxdist@pengutronix.de; Thu, 22 Feb 2018 20:05:05 +0100 Received: by mail-qk0-x232.google.com with SMTP id y137so7810470qka.4 for ; Thu, 22 Feb 2018 11:05:05 -0800 (PST) MIME-Version: 1.0 From: Jon Ringle Date: Thu, 22 Feb 2018 14:05:03 -0500 Message-ID: Subject: [ptxdist] gdb python support List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============2066087874==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============2066087874== Content-Type: multipart/alternative; boundary="001a1149af409e3c020565d1b8f7" --001a1149af409e3c020565d1b8f7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In building the OSELAS.Toolchain 2018.02.0 for arm-v5te, I noticed that the resulting cross-gdb didn't have python support in it. I'm a bit perplexed on how this is: ~/oselas/OSELAS.Toolchain-2018.02.0$ readelf -d /opt/OSELAS.Toolchain-2018.02.0/arm-v5te-linux-gnueabi/gcc-7.3.1-glibc-2.27= -binutils-2.30-kernel-4.15-sanitized/bin/arm-v5te-linux-gnueabi-gdb |grep python 1 ~/oselas/OSELAS.Toolchain-2018.02.0$ 1) I built on ubuntu 14.04 2) ~/oselas/OSELAS.Toolchain-2018.02.0$ ll p lrwxrwxrwx 1 jringle-admin jringle-admin 44 Feb 18 09:41 p -> /usr/local/lib/ptxdist-2018.02.0/bin/ptxdist* 3) I have `python-dev` package installed 4) rules/cross-gdb.make has the following, but I do not have CROSS_GDB_WITHOUT_PYTHON set at all in my environment: # define this from the outside to build without python ifeq ($(CROSS_GDB_WITHOUT_PYTHON),y) CROSS_GDB_CONF_OPT +=3D --without-python else CROSS_GDB_CONF_OPT +=3D --with-python=3Dpython3 endif 5) The platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kern= el-4.15-sanitized/logfile contains the following output showing that `--without-python` is set (see the very last option): ------------------------- target: cross-gdb.prepare ------------------------- ptxdist: executing: PATH=3D/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/inst/opt/OSELA= S.Toolchain-2018.02.0/arm-v5te-linux-gnueabi/gcc-7.3.1-glibc-2.27-binutils-= 2.30-kernel-4.15-sanitized/bin:/home/jringle-admin/oselas/OSELAS.Toolchain-= 2018.02.0/inst/opt/OSELAS.Toolchain-2018.02.0/arm-v5te-linux-gnueabi/gcc-7.= 3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sbin:\/home/jringle-admi= n/oselas/OSELAS.Toolchain-2018.02.0/platform-arm-v5te-linux-gnueabi-gcc-7.3= .1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-host/lib/wrapper:= /home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/platform-arm-v5te-lin= ux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot= -host/bin:/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/platform-ar= m-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitiz= ed/sysroot-host/sbin:/usr/local/lib/ptxdist-2018.02.0/bin:/home/jringle-adm= in/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/ga= mes:/usr/local/games:/opt/OSELAS.Toolchain-2016.06.1/arm-v5te-linux-gnueabi= /gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.9-sanitized/bin:/opt/CodeSourc= ery/Sourcery_G++_Lite/bin PKGCONFIG_WHITELIST=3D'bash-completion botan-1.10 compositeproto damageprot= o dbus-python dri2proto fixesproto fontutil glproto gnome-icon-theme gtk-doc inputproto iso-codes kbproto libpq libquvi-scripts m17n-db mobile-broadband-provider-info pm-utils pygtksourceview-2.0 randrproto renderproto ripperX scrnsaverproto shared-desktop-ontologies shared-mime-info udev usbutils valgrind wayland-scanner xbitmaps xextproto xf86vidmodeproto xineramaproto xkbcomp xkeyboard-config xorg-sgml-doctools xproto xtrans yelp-xsl bash-completion botan-1.10 compositeproto damageproto dbus-python dri2proto fixesproto fontutil glproto gnome-icon-theme gtk-doc inputproto iso-codes kbproto libpq libquvi-scripts m17n-db mobile-broadband-provider-info pm-utils pygtksourceview-2.0 randrproto renderproto ripperX scrnsaverproto shared-desktop-ontologies shared-mime-info udev usbutils valgrind wayland-scanner xbitmaps xextproto xf86vidmodeproto xineramaproto xkbcomp xkeyboard-config xorg-sgml-doctools xproto xtrans yelp-xsl bash-completion botan-1.10 compositeproto damageproto dbus-python dri2proto fixesproto fontutil glproto gnome-icon-theme gtk-doc inputproto iso-codes kbproto libpq libquvi-scripts m17n-db mobile-broadband-provider-info pm-utils pygtksourceview-2.0 randrproto renderproto ripperX scrnsaverproto shared-desktop-ontologies shared-mime-info udev usbutils valgrind wayland-scanner xbitmaps xextproto xf86vidmodeproto xineramaproto xkbcomp xkeyboard-config xorg-sgml-doctools xproto xtrans yelp-xsl' PKGCONFIG_WHITELIST_SRC=3D'cross-gdb' PKG_CONFIG_LIBDIR=3D'/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/= platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4= .15-sanitized/sysroot-host/lib/pkgconfig:/home/jringle-admin/oselas/OSELAS.= Toolchain-2018.02.0/platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-bi= nutils-2.30-kernel-4.15-sanitized/sysroot-host/share/pkgconfig' SYSROOT=3D'/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/inst/opt/O= SELAS.Toolchain-2018.02.0/arm-v5te-linux-gnueabi/gcc-7.3.1-glibc-2.27-binut= ils-2.30-kernel-4.15-sanitized' V=3D0 VERBOSE=3D PTXDIST_ICECC=3D enable_option_checking=3Dfatal enable_maintainer_mode=3Dno enable_static=3Dno CC=3D"gcc" CXX=3D"g++" PKG_CONFIG_PATH=3D'' PKG_CONFIG_LIBDIR=3D'/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/= platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4= .15-sanitized/sysroot-host/lib/pkgconfig:/home/jringle-admin/oselas/OSELAS.= Toolchain-2018.02.0/platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-bi= nutils-2.30-kernel-4.15-sanitized/sysroot-host/share/pkgconfig' PYTHONPATH=3D"/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/platfor= m-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-san= itized/sysroot-host/lib/python2.7/site-packages" ./configure --build=3Dx86_64-host-linux-gnu --host=3Dx86_64-host-linux-gnu --target=3Darm-v5te-linux-gnueabi --prefix=3D""/opt"/"OSELAS.Toolchain-2018.02.0"/arm-v5te-linux-gnueabi/"gcc= -"7.3.1"-glibc-"2.27"-binutils-"2.30"-kernel-"4.15""-sanitized""" --with-build-sysroot=3D/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.= 0/inst/opt/OSELAS.Toolchain-2018.02.0/arm-v5te-linux-gnueabi/gcc-7.3.1-glib= c-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v5te-linux-gnueabi --with-sysroot=3D/opt/OSELAS.Toolchain-2018.02.0/arm-v5te-linux-gnueabi/gcc= -7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v5te-linu= x-gnueabi --disable-werror --enable-tui --with-expat --without-python How else could the `--without-python` option be getting set? --001a1149af409e3c020565d1b8f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In building the OSELAS.Toolchain 2018.02.0 for arm-v5te, I= noticed that the resulting cross-gdb didn't have python support in it.= I'm a bit perplexed on how this is:

~/oselas/OSELAS= .Toolchain-2018.02.0$ readelf -d /opt/OSELAS.Toolchain-2018.02.0/arm-v5te-l= inux-gnueabi/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/bin/a= rm-v5te-linux-gnueabi-gdb |grep python
1 ~/oselas/OSELAS.Toolchai= n-2018.02.0$=C2=A0

1) I built on ubuntu 14.04

2) ~/oselas/OSELAS.Toolchain-2018.02.0$ ll p
lrwxrwxrwx 1 jringle-admin jringle-admin 44 Feb 18 09:41 p -> /usr/loca= l/lib/ptxdist-2018.02.0/bin/ptxdist*

3) I have `py= thon-dev` package installed

4) rules/cross-gdb.mak= e has the following, but I do not have CROSS_GDB_WITHOUT_PYTHON set at all = in my environment:

# define this from the out= side to build without python
ifeq ($(CROSS_GDB_WITHOUT_PYTHON),y)=
CROSS_GDB_CONF_OPT +=3D --without-python
else
CROSS_GDB_CONF_OPT +=3D --with-python=3Dpython3
endif

5) The=C2=A0platform-arm-v5te-linux-gnueabi-gcc-7.3.1= -glibc-2.27-binutils-2.30-kernel-4.15-sanitized/logfile contains the follow= ing output showing that `--without-python` is set (see the very last option= ):

-------------------------
target= : cross-gdb.prepare
-------------------------

ptxdist: executing: PATH=3D/home/jringle-admin/oselas/OSELAS.Toolchai= n-2018.02.0/inst/opt/OSELAS.Toolchain-2018.02.0/arm-v5te-linux-gnueabi/gcc-= 7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/bin:/home/jringle-admi= n/oselas/OSELAS.Toolchain-2018.02.0/inst/opt/OSELAS.Toolchain-2018.02.0/arm= -v5te-linux-gnueabi/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitize= d/sbin:\/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/platform-arm-= v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized= /sysroot-host/lib/wrapper:/home/jringle-admin/oselas/OSELAS.Toolchain-2018.= 02.0/platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-ker= nel-4.15-sanitized/sysroot-host/bin:/home/jringle-admin/oselas/OSELAS.Toolc= hain-2018.02.0/platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.27-binutil= s-2.30-kernel-4.15-sanitized/sysroot-host/sbin:/usr/local/lib/ptxdist-2018.= 02.0/bin:/home/jringle-admin/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/= usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/OSELAS.Toolchain-2016.0= 6.1/arm-v5te-linux-gnueabi/gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.9-sa= nitized/bin:/opt/CodeSourcery/Sourcery_G++_Lite/bin PKGCONFIG_WHITELIST=3D&= #39;bash-completion botan-1.10 compositeproto damageproto dbus-python dri2p= roto fixesproto fontutil glproto gnome-icon-theme gtk-doc inputproto iso-co= des kbproto libpq libquvi-scripts m17n-db mobile-broadband-provider-info pm= -utils pygtksourceview-2.0 randrproto renderproto ripperX scrnsaverproto sh= ared-desktop-ontologies shared-mime-info udev usbutils valgrind wayland-sca= nner xbitmaps xextproto xf86vidmodeproto xineramaproto xkbcomp xkeyboard-co= nfig xorg-sgml-doctools xproto xtrans yelp-xsl bash-completion botan-1.10 c= ompositeproto damageproto dbus-python dri2proto fixesproto fontutil glproto= gnome-icon-theme gtk-doc inputproto iso-codes kbproto libpq libquvi-script= s m17n-db mobile-broadband-provider-info pm-utils pygtksourceview-2.0 randr= proto renderproto ripperX scrnsaverproto shared-desktop-ontologies shared-m= ime-info udev usbutils valgrind wayland-scanner xbitmaps xextproto xf86vidm= odeproto xineramaproto xkbcomp xkeyboard-config xorg-sgml-doctools xproto x= trans yelp-xsl bash-completion botan-1.10 compositeproto damageproto dbus-p= ython dri2proto fixesproto fontutil glproto gnome-icon-theme gtk-doc inputp= roto iso-codes kbproto libpq libquvi-scripts m17n-db mobile-broadband-provi= der-info pm-utils pygtksourceview-2.0 randrproto renderproto ripperX scrnsa= verproto shared-desktop-ontologies shared-mime-info udev usbutils valgrind = wayland-scanner xbitmaps xextproto xf86vidmodeproto xineramaproto xkbcomp x= keyboard-config xorg-sgml-doctools xproto xtrans yelp-xsl' PKGCONFIG_WH= ITELIST_SRC=3D'cross-gdb' PKG_CONFIG_LIBDIR=3D'/home/jringle-ad= min/oselas/OSELAS.Toolchain-2018.02.0/platform-arm-v5te-linux-gnueabi-gcc-7= .3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-host/lib/pkgcon= fig:/home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/platform-arm-v5te= -linux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sys= root-host/share/pkgconfig' SYSROOT=3D'/home/jringle-admin/oselas/OS= ELAS.Toolchain-2018.02.0/inst/opt/OSELAS.Toolchain-2018.02.0/arm-v5te-linux= -gnueabi/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized' V=3D= 0 VERBOSE=3D PTXDIST_ICECC=3D enable_option_checking=3Dfatal enable_maintai= ner_mode=3Dno enable_static=3Dno CC=3D"gcc" CXX=3D"g++"= PKG_CONFIG_PATH=3D'' PKG_CONFIG_LIBDIR=3D'/home/jringle-admin/= oselas/OSELAS.Toolchain-2018.02.0/platform-arm-v5te-linux-gnueabi-gcc-7.3.1= -glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-host/lib/pkgconfig:= /home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/platform-arm-v5te-lin= ux-gnueabi-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot= -host/share/pkgconfig' PYTHONPATH=3D"/home/jringle-admin/oselas/OS= ELAS.Toolchain-2018.02.0/platform-arm-v5te-linux-gnueabi-gcc-7.3.1-glibc-2.= 27-binutils-2.30-kernel-4.15-sanitized/sysroot-host/lib/python2.7/site-pack= ages" ./configure --build=3Dx86_64-host-linux-gnu --host=3Dx86_64-host= -linux-gnu --target=3Darm-v5te-linux-gnueabi --prefix=3D""/opt&qu= ot;/"OSELAS.Toolchain-2018.02.0"/arm-v5te-linux-gnueabi/"gcc= -"7.3.1"-glibc-"2.27"-binutils-"2.30"-kernel-= "4.15""-sanitized""" --with-build-sysroot=3D/= home/jringle-admin/oselas/OSELAS.Toolchain-2018.02.0/inst/opt/OSELAS.Toolch= ain-2018.02.0/arm-v5te-linux-gnueabi/gcc-7.3.1-glibc-2.27-binutils-2.30-ker= nel-4.15-sanitized/sysroot-arm-v5te-linux-gnueabi --with-sysroot=3D/opt/OSE= LAS.Toolchain-2018.02.0/arm-v5te-linux-gnueabi/gcc-7.3.1-glibc-2.27-binutil= s-2.30-kernel-4.15-sanitized/sysroot-arm-v5te-linux-gnueabi --disable-werro= r --enable-tui --with-expat --without-python


How else could the `--without-python` option be getting set= ?
--001a1149af409e3c020565d1b8f7-- --===============2066087874== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============2066087874==--