I checked. Its all in there.

/lib/modules/4.8.1/source -> /home/riya/linux-4.8.1
/lib/modules/4.8.1/build -> /home/riya/linux-4.8.1

Same error with disksnoop.py
$ sudo python /usr/share/bcc/examples/tracing/disksnoop.py
LLVM ERROR: Program used external function '__memset' which could not
be resolved!

On Mon, Apr 10, 2017 at 10:58 AM, Andrew Gospodarek
<[email protected]> wrote:
> On Sun, Apr 9, 2017 at 11:53 PM, riya khanna via iovisor-dev
> <[email protected]> wrote:
>>
>> Hi,
>>
>> I'm trying to rune example "sudo python
>> /usr/share/bcc/examples/tracing/task_switch.py" in bcc
>>
>> commit: 69ceaca09a992a59dced4130a1321335b64c2ea2
>>
>> I see this error:
>>
>> LLVM ERROR: Program used external function '__memset' which could not
>> be resolved!
>>
>> followed (old) build instructions here: (build llvm + clang)
>> https://github.com/iovisor/bcc/blob/v0.3.0/INSTALL.md
>>
>> $ llvm-config --version
>>  3.8.0
>>
>> Any pointers as to what could be missing here? Thanks!
>>
>> -Riya
>>
>
> Any chance you do not have kernel-headers or source (either in package form
> from your distro or with the correct pointer in either
> /lib/modules/4.1.8/build or /lib/modules/4.1.8/source) so llvm cannot find
> the definition for __memset?
>
> It's a bit of a wild-guess since I have not seen this error, but thought it
> might be a possibility.
>
_______________________________________________
iovisor-dev mailing list
[email protected]
https://lists.iovisor.org/mailman/listinfo/iovisor-dev

Reply via email to