public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug uprobes/31241] New: Python/Java probes do not build out-of-source
@ 2024-01-12 17:03 thaines.astro at gmail dot com
  0 siblings, 0 replies; only message in thread
From: thaines.astro at gmail dot com @ 2024-01-12 17:03 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=31241

            Bug ID: 31241
           Summary: Python/Java probes do not build out-of-source
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: uprobes
          Assignee: systemtap at sourceware dot org
          Reporter: thaines.astro at gmail dot com
  Target Milestone: ---

Created attachment 15298
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15298&action=edit
configure log

java/SDTHelper.c and python/HelperSDT/_HelperSDT.c require '<sys/sdt.h>', but
it is not copied into the build directory for out-of-source builds.


running build
running build_py
running build_ext
building 'HelperSDT._HelperSDT' extension
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2
-Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv
-O2 -I../../python/../includes
-I/path/to/systemtap/build/python/../includes/sys -Wdate-time
-D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.10 -c HelperSDT/_HelperSDT.c
-o
/path/to/systemtap/build/python/py3build/temp.linux-x86_64-3.10/HelperSDT/_HelperSDT.o
HelperSDT/_HelperSDT.c:10:10: fatal error: sys/sdt.h: No such file or directory
   10 | #include <sys/sdt.h>
      |          ^~~~~~~~~~~

python/Makefile.am seems to want to allow this case:

AM_CPPFLAGS += -I$(abs_builddir)/../includes/sys

However, that doesn't work for two reasons:

1. The headers are included as <sys/sdt.h>, so the trailing 'sys' above
prevents finding the header in build/includes.

2. Fixing (1) now finds systemtap/includes/sdt.h, but can't find sdt-config.h
which lives in build/includes.

There is likely a simple solution here, but my autotools-foo is rusty. Any
thoughts are appreciated!

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-12 17:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-12 17:03 [Bug uprobes/31241] New: Python/Java probes do not build out-of-source thaines.astro at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).