fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
philip_ has quit [Quit: philip_]
hpt has joined #systemtap
zw01 has quit [Ping timeout: 240 seconds]
zw01 has joined #systemtap
tonyj has quit [Ping timeout: 245 seconds]
tonyj has joined #systemtap
ananth has joined #systemtap
scox has quit [Ping timeout: 256 seconds]
ravi has joined #systemtap
csanting has quit [Ping timeout: 255 seconds]
jistone has quit [Ping timeout: 256 seconds]
jlebon has quit [Ping timeout: 272 seconds]
jistone has joined #systemtap
jlebon has joined #systemtap
csanting has joined #systemtap
hkshaw has joined #systemtap
hpt has quit [Quit: Lost terminal]
modem_ has quit [Remote host closed the connection]
Humble has joined #systemtap
mjw has joined #systemtap
pwithnall has joined #systemtap
jlebon has quit [Ping timeout: 240 seconds]
gila has joined #systemtap
jistone has quit [Ping timeout: 240 seconds]
csanting has quit [Ping timeout: 260 seconds]
csanting has joined #systemtap
jistone has joined #systemtap
jlebon has joined #systemtap
ananth has quit [Ping timeout: 258 seconds]
hkshaw has quit [Ping timeout: 252 seconds]
ravi has quit [Read error: Connection reset by peer]
hkshaw has joined #systemtap
mjw has quit [Quit: Leaving]
wcohen has quit [Ping timeout: 260 seconds]
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
drsmith has joined #systemtap
wcohen has joined #systemtap
bendlas has quit [Write error: Connection reset by peer]
gila has quit [Read error: Connection reset by peer]
gila_ has joined #systemtap
scox has joined #systemtap
irker295 has joined #systemtap
<irker295>
systemtap: mcermak systemtap.git:refs/heads/mcermak/PR20333 * release-3.0-792-g0d9cac8 / : Merge syscalls with identical 'name' to common files. http://tinyurl.com/hf84dn7
<irker295>
systemtap: dsmith systemtap.git:refs/heads/master * release-3.0-408-gca67717 / systemtap.spec: Move and update comment in systemtap.spec. http://tinyurl.com/j3xv2ck
philip_ has joined #systemtap
<fche>
an thanks david
mjw has quit [Quit: Leaving]
ton31337 has joined #systemtap
<bendlas>
Hi, stap says to me /tmp/stapXRUH8r/stap_2defeccfa7cfafeb9eebe99059ea78f1_1276_src.c:10:29: fatal error: runtime_defines.h: No such file or directory
<bendlas>
It looks like the Makefile doesn't pass EXTRA_CFLAGS to the compiler ...
<bendlas>
any ideas?
<fche>
hi bendlas, what stap version, built/installed?
<bendlas>
fche: reproducable on 2.9, 3.0, current git; as well as with gnumake 3.8 and 4.2; as well as with gcc 4.9 and 5.4
<fche>
ok nice, so you can play with it without stap in the middle
<fche>
try make V=1 stap_14852_src.o
<bendlas>
error stays exactly the same as without `V=1` (last invokation in previous log)
<fche>
so am looking for the actual flags to the compiler
<fche>
ie. whether the earlier ones like -freorder-blocks made it in
<fche>
hmmmmm
<fche>
from that configuration (trying to copy it here), I'm getting this error too
<fche>
so when I wrote 'make V=1 ...' I didn't quite mean make V=1
<fche>
I meant the whole env .... make -C .... M=... command line, with V=1 added
<bendlas>
can I override, which cc make calls?
<fche>
are you dealing with a cross-compilation scenario?
<fche>
how are/were you trying to override?
<bendlas>
no, but a cc wrapper
<bendlas>
`make CC=$(unwrapped gcc)` fails the same way ...
<fche>
ok ... well your wrapper script would have to ensure all of its parameters passed through verbatim
<bendlas>
it does, but better to use the unwrapped cc, stap links its own runtime anyway ..
<fche>
yes. so can you paste the "env ... make -C ... V=1 ... " command line's output?
<fche>
maybe your wrapper is interfering anyway
<fche>
could try taking away the double-quotes from that EXTRA_CFLAGS += -I"/...../" line in Makefile
<bendlas>
regarding -C, that shouldn't be necessary, the makefile is generated from `stap -r ...`, see `-I/nix/store/wlbrbgwc8kn54b7sdxdfi2j42s923j2a-kbuild-4.9.2-merged` in the log
<fche>
the -C is needed because out-of-tree kernel module builds are run out of the kernel build tre
<bendlas>
fche: btw, putting `CFLAGS := $(EXTRA_CFLAGS)` fixes this error
<bendlas>
putting * at the end of `Makefile`
<fche>
that shouldn't be necessary though - would like to know why your particular site needs it
<bendlas>
fche: so somehow, the builtin implicit rule for *.o files doesn't pick up `EXTRA_CFLAGS`
<fche>
yeah so the question is what's special about your site that this happens (only?) there
<bendlas>
I'll read up on `EXTRA_CFLAGS` ...
<fche>
is your kernel tree one that has had a corresponding kernel been built from ? so it has .config etc. ?
* fche
can help more if you include the "env ... make -C ... V=1 ... " command line's output?
wcohen has quit [Ping timeout: 258 seconds]
<bendlas>
I don't see how to get at the env command for my machine ..
<fche>
the stap --vp 0002 -p4 command line showed it
<bendlas>
i had the linked version already working at some point, so unless one of our updates to gcc or gnumake broke it, it was likely a kernel upgrade. I could go back to 4.4 or something, for testing ...
<fche>
I'd suspect something other than kernel version
<fche>
this quotation etc. business is working on kernels ancient and super fresh, distros old and new
<fche>
something is peculiar about your site, just not sure what yet
<fche>
want to try another strace, this time focusing on # strace -eexecve -f env .... make .... ?
<bendlas>
without the fixed quotes?
<fche>
yeah. or even with
<fche>
I'm still thinking there's a weird wrapper in there
<fche>
maybe like vanilla ice
<bendlas>
ugh, strace -eexecve butchers my pathes and arguments b/c too long
<fche>
though assemblers don't normally look at c header files
<bendlas>
gcc invokations above have the same SNAFU
<bendlas>
the `.stap_..._src.o.cmd` still is correct, though
philip_ has joined #systemtap
<bendlas>
fche: thanks for the help so far, I think I can figure it out from here ...
<fche>
righto
<fche>
have a theory yet as to the " signs?
<bendlas>
yeah, probably a wrapper sneaking in somewhere ... I'll just start with an empty path and work my way up from there
<fche>
righto
<fche>
yeah, it's a PITA to quote properly from e.g. a shell script wrapper
* bendlas
is having painful flashbacks right now
<bendlas>
if you ever figure out the why and wherefore of `"$@"`, call me
<fche>
exactly
wcohen has joined #systemtap
<bendlas>
fche: what generates the `.stap_....o.cmd` files? the .cmd file already has `-I/nix/store/b7bv8p46yy7imf3jskkv4jqdz5z0n5k0-linux-4.9.2-dev/lib/modules/4.9.2/source/"/nix/store/8b11aa5zz0cal71cww6mkyaz6rsn17nj-systemtap-2017-01-16/share/systemtap/runtime"`
<fche>
the kbuild makefile creates those
scox has quit [Ping timeout: 260 seconds]
drsmith has left #systemtap [#systemtap]
mbenitez has quit [Quit: Leaving]
<bendlas>
fche: could you check, that in your makefile, the runtime directory also is passed quoted?
<bendlas>
I don't see how that mangled build flag could be produced by anything other than the kbuild makefile
<bendlas>
make -n even produces the shell command to print the faulty .cmd file
<bendlas>
* print -> produce
Humble has quit [Ping timeout: 252 seconds]
<bendlas>
I can verify now, that my build works against kernel 4.4, but not against 4.9.2