Package Details: python2-bcc 0.9.0-1

Git Clone URL: https://aur.archlinux.org/bcc.git (read-only)
Package Base: bcc
Description: BPF Compiler Collection - Python 2 bindings
Upstream URL: https://github.com/iovisor/bcc
Keywords: control eBPF kernel performance tracing
Licenses: Apache
Submitter: troyengel
Maintainer: edh (eklausmeier)
Last Packager: edh
Votes: 27
Popularity: 0.994737
First Submitted: 2016-01-01 18:37
Last Updated: 2019-03-15 12:44

Dependencies (13)

Required by (2)

Sources (2)

Latest Comments

1 2 3 4 5 Next › Last »

egrupled commented on 2019-03-15 12:48

Thx

edh commented on 2019-03-15 12:47

@egrupled Sure, good catch! I happen to do this for libbpf in the very next line but apparently never bothered to fix the name of the main source file. Thanks! Btw. I refrained from increasing the pacakge-release pkgrel as the package itself will not change.

egrupled commented on 2019-03-15 12:40

@edh Could you use in https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=bcc#n15

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/iovisor/${pkgname}/archive/v${pkgver}.tar.gz"

to make downloaded archive unique? Otherwise it may collide with sources from unrelated packages which are already in cache.

edh commented on 2019-02-25 12:51

@sdh Thanks a lot for the heads-up. However, if I am not mistaken, the change should only affect us in the coming release. I will add the necessary fix upon a new release.

sdh commented on 2019-02-24 23:49

As per https://github.com/iovisor/bcc/issues/2145, they default to /usr/bin/python in their scripts, which do not work on Arch with the default python3. The PKGBUILD will have to sed all such paths to /usr/bin/python2 now.

I used the following:

prepare() {
    cd "${srcdir}/${pkgbase}"
    # python2 fix
    sed -i '1s,/usr/bin/python$,/usr/bin/python2,' tools/*py tools/old/*.py tools/lib/*.py
}

edh commented on 2019-02-11 08:27

@milk Thanks a bunch for the notice. That definitely should not be this way. However, the top-level makedepends are fine. Hence, I just stripped the nested ones.

milk commented on 2019-02-11 08:19

with pacman-git I get;

==> ERROR: makedepends can not be set inside a package function
==> ERROR: makedepends can not be set inside a package function
==> ERROR: makedepends can not be set inside a package function

vmaffione commented on 2018-11-22 15:22

Ops, I don't know how that happened. Thanks for the help!

lilydjwg commented on 2018-11-22 12:06

vmaffione: you need to remove your manually installed /usr/local/lib/libelf.a file.

vmaffione commented on 2018-11-22 11:03

Hi, I get a build failure:

[ 95%] Building C object tests/cc/CMakeFiles/test_static.dir/test_static.c.o
[ 95%] Linking CXX executable test_static
[ 95%] Built target HelloWorld
[ 95%] Built target TCPSendStack
[ 95%] Built target RecordMySQLQuery
[ 95%] Built target UseExternalMap
/usr/bin/ld: /usr/local/lib/libelf.a(elf_error.o): relocation R_X86_64_TPOFF32 against `global_error' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_begin.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_end.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_nextscn.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_getdata.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_compress.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(gelf_fsize.o): relocation R_X86_64_32S against hidden symbol `__libelf_type_sizes' can not be used when making a shared object
/usr/bin/ld: /usr/local/lib/libelf.a(elf32_getphdr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf64_getphdr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf32_getshdr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf64_getshdr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf32_xlatetof.o): relocation R_X86_64_32S against hidden symbol `__libelf_type_sizes' can not be used when making a shared object
/usr/bin/ld: /usr/local/lib/libelf.a(elf64_xlatetof.o): relocation R_X86_64_32S against hidden symbol `__libelf_type_sizes' can not be used when making a shared object
/usr/bin/ld: /usr/local/lib/libelf.a(elf_version.o): relocation R_X86_64_PC32 against symbol `__libelf_seterrno' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/cc/CMakeFiles/bcc-shared.dir/build.make:362: src/cc/libbcc.so.0.7.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:278: src/cc/CMakeFiles/bcc-shared.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 95%] Linking CXX executable LLCStat
[ 95%] Built target test_static
[ 95%] Built target LLCStat
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().

Any clues?

Thanks