Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532570 - dev-util/systemtap-2.4-r1 - In file included from /tmp/.../stap_421c4b46c02087494c21897f34dfcf6e_873_src.c:24: /usr/share/systemtap/runtime/linux/task_finder2.c:821:11: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’
Summary: dev-util/systemtap-2.4-r1 - In file included from /tmp/.../stap_421c4b46c0208...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-14 15:36 UTC by clsknbrk
Modified: 2019-01-09 15:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description clsknbrk 2014-12-14 15:36:28 UTC
dev-util/systemtap-2.4-r1 incompatible types when assigning to type ‘gid_t’ from type ‘kgid_t’. dev-util/systemtap-2.5 perfectly works.

burak@chiron ~/Desktop/systemtap $ cat hello.sty 
#! /usr/bin/env stap
probe begin { println("hello world") exit () }


burak@chiron ~/Desktop/systemtap $ sudo stap -v hello.sty 
Pass 1: parsed user script and 104 library script(s) using 66488virt/47044res/2536shr/45328data kb, in 270usr/10sys/291real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 68072virt/48892res/2604shr/46912data kb, in 20usr/0sys/15real ms.
Pass 3: translated to C into "/tmp/stapNqg5n9/stap_421c4b46c02087494c21897f34dfcf6e_873_src.c" using 68072virt/49252res/2944shr/46912data kb, in 0usr/0sys/0real ms.
In file included from /usr/share/systemtap/runtime/linux/task_finder.c:17:0,
                 from /usr/share/systemtap/runtime/linux/runtime.h:192,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapNqg5n9/stap_421c4b46c02087494c21897f34dfcf6e_873_src.c:24:
/usr/share/systemtap/runtime/linux/task_finder2.c: In function ‘__stp_utrace_attach_match_filename’:
/usr/share/systemtap/runtime/linux/task_finder2.c:821:11: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’
  tsk_euid = task_euid(tsk);
           ^
/usr/share/systemtap/runtime/linux/task_finder2.c: In function ‘stap_start_task_finder’:
/usr/share/systemtap/runtime/linux/task_finder2.c:1711:12: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’
   tsk_euid = task_euid(tsk);
            ^
In file included from /usr/share/systemtap/runtime/linux/runtime.h:198:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapNqg5n9/stap_421c4b46c02087494c21897f34dfcf6e_873_src.c:24:
/usr/share/systemtap/runtime/sym.c: In function ‘_stp_snprint_addr’:
/usr/share/systemtap/runtime/sym.c:567:4: error: implicit declaration of function ‘preempt_enable_no_resched’ [-Werror=implicit-function-declaration]
    preempt_enable_no_resched();
    ^
In file included from include/linux/sched.h:53:0,
                 from include/linux/ptrace.h:5,
                 from include/linux/ftrace.h:13,
                 from include/linux/kprobes.h:42,
                 from /usr/share/systemtap/runtime/linux/runtime.h:21,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapNqg5n9/stap_421c4b46c02087494c21897f34dfcf6e_873_src.c:24:
/usr/share/systemtap/runtime/transport/control.c: In function ‘_stp_ctl_write_cmd’:
include/linux/cred.h:333:25: error: incompatible types when initializing type ‘uid_t’ using type ‘kuid_t’
 #define current_euid()  (current_cred_xxx(euid))
                         ^
/usr/share/systemtap/runtime/transport/control.c:41:15: note: in expansion of macro ‘current_euid’
  uid_t euid = current_euid();
               ^
In file included from /usr/share/systemtap/runtime/linux/print.c:17:0,
                 from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime_context.h:22,
                 from /tmp/stapNqg5n9/stap_421c4b46c02087494c21897f34dfcf6e_873_src.c:48:
/usr/share/systemtap/runtime/transport/transport.c: In function ‘_stp_transport_init’:
/usr/share/systemtap/runtime/transport/transport.c:344:11: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’
  _stp_uid = current_uid();
           ^
/usr/share/systemtap/runtime/transport/transport.c:345:11: error: incompatible types when assigning to type ‘gid_t’ from type ‘kgid_t’
  _stp_gid = current_gid();
           ^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/tmp/stapNqg5n9/stap_421c4b46c02087494c21897f34dfcf6e_873_src.o' failed
make[1]: *** [/tmp/stapNqg5n9/stap_421c4b46c02087494c21897f34dfcf6e_873_src.o] Error 1
Makefile:1276: recipe for target '_module_/tmp/stapNqg5n9' failed
make: *** [_module_/tmp/stapNqg5n9] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_421c4b46c02087494c21897f34dfcf6e_873.ko" in 5760usr/920sys/6748real ms.
Pass 4: compilation failed.  [man error::pass4]
burak@chiron ~/Desktop/systemtap $ qlist -ISRv gentoo-sources systemtap linux-headers
cross-armv6j-hardfloat-linux-gnueabi/linux-headers-3.16:0::local-burak
cross-mips-linux-uclibc/linux-headers-3.17-r1:0::local-burak
dev-util/systemtap-2.4-r1:0::gentoo
sys-kernel/gentoo-sources-3.14.21:3.14.21::gentoo
sys-kernel/linux-headers-3.16:0::gentoo

burak@chiron ~/Desktop/systemtap $ emerge --info
Portage 2.2.14 (python 2.7.7-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.19-r1, 3.14.21-gentoo x86_64)
=================================================================
System uname: Linux-3.14.21-gentoo-x86_64-Intel-R-_Core-TM-_i7-3610QM_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem:     8087136 total,   5353976 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Sun, 14 Dec 2014 08:30:01 +0000
ld GNU gold (Gentoo 2.24 p1.4 2.24) 1.11
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r1
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo local-burak
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -flto=9 -fuse-linker-plugin -O3 -march=corei7-avx -mavx -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -flto=9 -fuse-linker-plugin -O3 -march=corei7-avx -mavx -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --binpkg-respect-use y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-z,relro -Wl,-z,now -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X a52 aac aacplus aalib acl acpi alsa amd64 avx bash-completion berkdb bluetooth bluray branding btrfs bzip2 cairo caps cdda cddb cdio cdr cli colord cracklib crypt cryptsetup cups cxx dbus device-mapper dmraid dri dts dvd dvdr eds egl emboss encode evo exif faac faad fat ffmpeg firefox flac fontconfig gbm gdbm gif glamor gles1 gles2 gnome gnome-keyring gnome-online-accounts gnutls gpg gphoto2 gstreamer gtk gtk3 hfs iconv icu idn introspection ipv6 jit jpeg jpeg2k lame lcms libass libcaca libnotify libsecret libv4l lvm lzma lzo mad mdraid mms mmx mng modules mp3 mp4 mpeg mpi multilib nautilus ncurses netlink nls nptl ntfs numa ogg opengl opus pam pango pcre pdf png policykit ppds pulseaudio rar readline rtc session smp socialweb speed speex spice sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd taglib tcpd theora threads tiff toolame tremor truetype twolame udev udisks unicode upower usb v4l vdpau vim-syntax vorbis vpx x264 xattr xcb xinerama xml xpm xv xvid xz zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64 efi-32" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US tr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="x86_64 arm" QEMU_USER_TARGETS="arm mips mipsel" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC



Reproducible: Always