Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issues Ubuntu #230

Open
joshfactorial opened this issue Jan 27, 2021 · 6 comments
Open

Installation issues Ubuntu #230

joshfactorial opened this issue Jan 27, 2021 · 6 comments

Comments

@joshfactorial
Copy link

joshfactorial commented Jan 27, 2021

I am not able to install vmprof on Ubuntu 20, with python3.8. I've tried a number of solutions including installing python3-dev, creating a virtual environment, using sudo pip and regular pip. Invoking pip in various ways. All give me the same error:

$ pip install vmprof
Collecting vmprof
  Using cached vmprof-0.4.15.tar.gz (289 kB)
Requirement already satisfied: colorama in /home/joshfactorial/Documents/venv/lib/python3.8/site-packages (from vmprof) (0.4.4)
Requirement already satisfied: pytz in /home/joshfactorial/Documents/venv/lib/python3.8/site-packages (from vmprof) (2020.5)
Requirement already satisfied: requests in /home/joshfactorial/Documents/venv/lib/python3.8/site-packages (from vmprof) (2.25.1)
Requirement already satisfied: six in /home/joshfactorial/Documents/venv/lib/python3.8/site-packages (from vmprof) (1.15.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/joshfactorial/Documents/venv/lib/python3.8/site-packages (from requests->vmprof) (1.26.3)
Requirement already satisfied: chardet<5,>=3.0.2 in /home/joshfactorial/Documents/venv/lib/python3.8/site-packages (from requests->vmprof) (4.0.0)
Requirement already satisfied: certifi>=2017.4.17 in /home/joshfactorial/Documents/venv/lib/python3.8/site-packages (from requests->vmprof) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in /home/joshfactorial/Documents/venv/lib/python3.8/site-packages (from requests->vmprof) (2.10)
Building wheels for collected packages: vmprof
  Building wheel for vmprof (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/joshfactorial/Documents/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mvuv1_s9/vmprof/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mvuv1_s9/vmprof/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-g5vxhof8
       cwd: /tmp/pip-install-mvuv1_s9/vmprof/
  Complete output (195 lines):
  running bdist_wheel
  running build
  running build_py
  checking build system type... x86_64-pc-linux-gnu
  checking host system type... x86_64-pc-linux-gnu
  checking target system type... x86_64-pc-linux-gnu
  checking for gcc... gcc
  checking for C compiler default output file name... a.out
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking for suffix of executables...
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... none needed
  checking how to run the C preprocessor... gcc -E
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking for ANSI C header files... yes
  checking for sys/types.h... yes
  checking for sys/stat.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for memory.h... yes
  checking for strings.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for unistd.h... yes
  checking minix/config.h usability... no
  checking minix/config.h presence... no
  checking for minix/config.h... no
  checking whether it is safe to define __EXTENSIONS__... yes
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  /bin/bash: /tmp/pip-install-mvuv1_s9/vmprof/src/libbacktrace/missing: No such file or directory
  configure: WARNING: `missing' script is too old or missing
  checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
  checking for gawk... no
  checking for mawk... mawk
  checking whether make sets $(MAKE)... yes
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking for gcc... (cached) gcc
  checking whether we are using the GNU C compiler... (cached) yes
  checking whether gcc accepts -g... (cached) yes
  checking for gcc option to accept ISO C89... (cached) none needed
  checking for ranlib... ranlib
  checking for gawk... (cached) mawk
  checking how to print strings... printf
  checking for a sed that does not truncate output... /usr/bin/sed
  checking for fgrep... /usr/bin/grep -F
  checking for ld used by gcc... /usr/bin/ld
  checking if the linker (/usr/bin/ld) is GNU ld... yes
  checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  checking the name lister (/usr/bin/nm -B) interface... BSD nm
  checking whether ln -s works... yes
  checking the maximum length of command line arguments... 1572864
  checking whether the shell understands some XSI constructs... yes
  checking whether the shell understands "+="... yes
  checking for /usr/bin/ld option to reload object files... -r
  checking for objdump... objdump
  checking how to recognize dependent libraries... pass_all
  checking for ar... ar
  checking for strip... strip
  checking for ranlib... (cached) ranlib
  checking command to parse /usr/bin/nm -B output from gcc object... ok
  checking for dlfcn.h... yes
  checking for objdir... .libs
  checking if gcc supports -fno-rtti -fno-exceptions... no
  checking for gcc option to produce PIC... -fPIC -DPIC
  checking if gcc PIC flag -fPIC -DPIC works... yes
  checking if gcc static flag -static works... yes
  checking if gcc supports -c -o file.o... yes
  checking if gcc supports -c -o file.o... (cached) yes
  checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  checking whether -lc should be explicitly linked in... no
  checking dynamic linker characteristics... GNU/Linux ld.so
  checking how to hardcode library paths into programs... immediate
  checking whether stripping libraries is possible... yes
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... yes
  checking whether to build static libraries... yes
  checking unwind.h usability... yes
  checking unwind.h presence... yes
  checking for unwind.h... yes
  checking for _Unwind_Backtrace... yes
  checking for -funwind-tables option... yes
  checking for -frandom-seed=string option... yes
  checking whether gcc supports -W... yes
  checking whether gcc supports -Wall... yes
  checking whether gcc supports -Wwrite-strings... yes
  checking whether gcc supports -Wstrict-prototypes... yes
  checking whether gcc supports -Wmissing-prototypes... yes
  checking whether gcc supports -Wold-style-definition... yes
  checking whether gcc supports -Wmissing-format-attribute... yes
  checking whether gcc supports -Wcast-qual... yes
  checking for _Unwind_GetIPInfo... yes
  checking __sync extensions... yes
  checking __atomic extensions... yes
  checking output filetype... elf64
  looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
  checking for uintptr_t... yes
  checking for int_least32_t... yes
  checking for int_fast32_t... yes
  checking for uint64_t... yes
  checking what to include in gstdint.h... stdint.h (already complete)
  checking sys/mman.h usability... yes
  checking sys/mman.h presence... yes
  checking for sys/mman.h... yes
  checking for mmap... yes
  checking link.h usability... yes
  checking link.h presence... yes
  checking for link.h... yes
  checking for dl_iterate_phdr... yes
  checking for fcntl... yes
  checking whether strnlen is declared... yes
  checking for getexecname... no
  checking whether tests can run... yes
  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating backtrace-supported.h
  config.status: creating config.h
  config.status: config.h is unchanged
  config.status: executing libtool commands
  sed: can't read ./ltmain.sh: No such file or directory
  sed: can't read ./ltmain.sh: No such file or directory
  mv: cannot stat 'libtoolT': No such file or directory
  cp: cannot stat 'libtoolT': No such file or directory
  chmod: cannot access 'libtool': No such file or directory
  config.status: executing gstdint.h commands
  config.status: executing default commands
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/objects.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/__init__.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/merge_point.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/query.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/upload.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/parser.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/marks.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/__main__.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/constants.py -> build/lib.linux-x86_64-3.8/jitlog
  copying jitlog/prettyprinter.py -> build/lib.linux-x86_64-3.8/jitlog
  creating build/lib.linux-x86_64-3.8/vmshare
  copying vmshare/__init__.py -> build/lib.linux-x86_64-3.8/vmshare
  copying vmshare/binary.py -> build/lib.linux-x86_64-3.8/vmshare
  copying vmshare/service.py -> build/lib.linux-x86_64-3.8/vmshare
  creating build/lib.linux-x86_64-3.8/vmprof
  copying vmprof/cli.py -> build/lib.linux-x86_64-3.8/vmprof
  copying vmprof/__init__.py -> build/lib.linux-x86_64-3.8/vmprof
  copying vmprof/upload.py -> build/lib.linux-x86_64-3.8/vmprof
  copying vmprof/show.py -> build/lib.linux-x86_64-3.8/vmprof
  copying vmprof/profiler.py -> build/lib.linux-x86_64-3.8/vmprof
  copying vmprof/stats.py -> build/lib.linux-x86_64-3.8/vmprof
  copying vmprof/__main__.py -> build/lib.linux-x86_64-3.8/vmprof
  copying vmprof/reader.py -> build/lib.linux-x86_64-3.8/vmprof
  running build_ext
  building '_vmprof' extension
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/src
  creating build/temp.linux-x86_64-3.8/src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/_vmprof.c -o build/temp.linux-x86_64-3.8/src/_vmprof.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  src/_vmprof.c: In function ‘emit_code_object’:
  src/_vmprof.c:68:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     68 |     co_name = PyUnicode_AsUTF8(co->co_name);
        |             ^
  src/_vmprof.c:71:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
     71 |     co_filename = PyUnicode_AsUTF8(co->co_filename);
        |                 ^
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/machine.c -o build/temp.linux-x86_64-3.8/src/machine.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/compat.c -o build/temp.linux-x86_64-3.8/src/compat.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmp_stack.c -o build/temp.linux-x86_64-3.8/src/vmp_stack.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmprof_common.c -o build/temp.linux-x86_64-3.8/src/vmprof_common.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmprof_memory.c -o build/temp.linux-x86_64-3.8/src/vmprof_memory.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/symboltable.c -o build/temp.linux-x86_64-3.8/src/symboltable.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmprof_mt.c -o build/temp.linux-x86_64-3.8/src/vmprof_mt.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmprof_unix.c -o build/temp.linux-x86_64-3.8/src/vmprof_unix.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  src/vmprof_unix.c: In function ‘_get_pystate_for_this_thread’:
  src/vmprof_unix.c:137:34: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
    137 |             if (state->thread_id == mythread_id) {
        |                                  ^~
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/backtrace.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/backtrace.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/state.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/state.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/elf.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/elf.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/dwarf.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/dwarf.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/fileline.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/fileline.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/mmap.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/mmap.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/mmapio.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/mmapio.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/posix.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/posix.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/sort.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/sort.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
  x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/src/_vmprof.o build/temp.linux-x86_64-3.8/src/machine.o build/temp.linux-x86_64-3.8/src/compat.o build/temp.linux-x86_64-3.8/src/vmp_stack.o build/temp.linux-x86_64-3.8/src/vmprof_common.o build/temp.linux-x86_64-3.8/src/vmprof_memory.o build/temp.linux-x86_64-3.8/src/symboltable.o build/temp.linux-x86_64-3.8/src/vmprof_mt.o build/temp.linux-x86_64-3.8/src/vmprof_unix.o build/temp.linux-x86_64-3.8/src/libbacktrace/backtrace.o build/temp.linux-x86_64-3.8/src/libbacktrace/state.o build/temp.linux-x86_64-3.8/src/libbacktrace/elf.o build/temp.linux-x86_64-3.8/src/libbacktrace/dwarf.o build/temp.linux-x86_64-3.8/src/libbacktrace/fileline.o build/temp.linux-x86_64-3.8/src/libbacktrace/mmap.o build/temp.linux-x86_64-3.8/src/libbacktrace/mmapio.o build/temp.linux-x86_64-3.8/src/libbacktrace/posix.o build/temp.linux-x86_64-3.8/src/libbacktrace/sort.o -ldl -lunwind -lunwind-x86_64 -o build/lib.linux-x86_64-3.8/_vmprof.cpython-38-x86_64-linux-gnu.so
  /usr/bin/ld: build/temp.linux-x86_64-3.8/src/vmprof_common.o:/tmp/pip-install-mvuv1_s9/vmprof/src/vmprof_common.h:92: multiple definition of `_PyThreadState_Current'; build/temp.linux-x86_64-3.8/src/_vmprof.o:/tmp/pip-install-mvuv1_s9/vmprof/src/vmprof_common.h:92: first defined here
  /usr/bin/ld: build/temp.linux-x86_64-3.8/src/vmprof_unix.o:/tmp/pip-install-mvuv1_s9/vmprof/src/vmprof_common.h:92: multiple definition of `_PyThreadState_Current'; build/temp.linux-x86_64-3.8/src/_vmprof.o:/tmp/pip-install-mvuv1_s9/vmprof/src/vmprof_common.h:92: first defined here
  collect2: error: ld returned 1 exit status
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for vmprof
  Running setup.py clean for vmprof
Failed to build vmprof
Installing collected packages: vmprof
    Running setup.py install for vmprof ... error
    ERROR: Command errored out with exit status 1:
     command: /home/joshfactorial/Documents/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mvuv1_s9/vmprof/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mvuv1_s9/vmprof/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-5zk9xeu7/install-record.txt --single-version-externally-managed --compile --install-headers /home/joshfactorial/Documents/venv/include/site/python3.8/vmprof
         cwd: /tmp/pip-install-mvuv1_s9/vmprof/
    Complete output (195 lines):
    running install
    running build
    running build_py
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking target system type... x86_64-pc-linux-gnu
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    /bin/bash: /tmp/pip-install-mvuv1_s9/vmprof/src/libbacktrace/missing: No such file or directory
    configure: WARNING: `missing' script is too old or missing
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking for ranlib... ranlib
    checking for gawk... (cached) mawk
    checking how to print strings... printf
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... (cached) ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking unwind.h usability... yes
    checking unwind.h presence... yes
    checking for unwind.h... yes
    checking for _Unwind_Backtrace... yes
    checking for -funwind-tables option... yes
    checking for -frandom-seed=string option... yes
    checking whether gcc supports -W... yes
    checking whether gcc supports -Wall... yes
    checking whether gcc supports -Wwrite-strings... yes
    checking whether gcc supports -Wstrict-prototypes... yes
    checking whether gcc supports -Wmissing-prototypes... yes
    checking whether gcc supports -Wold-style-definition... yes
    checking whether gcc supports -Wmissing-format-attribute... yes
    checking whether gcc supports -Wcast-qual... yes
    checking for _Unwind_GetIPInfo... yes
    checking __sync extensions... yes
    checking __atomic extensions... yes
    checking output filetype... elf64
    looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
    checking for uintptr_t... yes
    checking for int_least32_t... yes
    checking for int_fast32_t... yes
    checking for uint64_t... yes
    checking what to include in gstdint.h... stdint.h (already complete)
    checking sys/mman.h usability... yes
    checking sys/mman.h presence... yes
    checking for sys/mman.h... yes
    checking for mmap... yes
    checking link.h usability... yes
    checking link.h presence... yes
    checking for link.h... yes
    checking for dl_iterate_phdr... yes
    checking for fcntl... yes
    checking whether strnlen is declared... yes
    checking for getexecname... no
    checking whether tests can run... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating backtrace-supported.h
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing libtool commands
    sed: can't read ./ltmain.sh: No such file or directory
    sed: can't read ./ltmain.sh: No such file or directory
    mv: cannot stat 'libtoolT': No such file or directory
    cp: cannot stat 'libtoolT': No such file or directory
    chmod: cannot access 'libtool': No such file or directory
    config.status: executing gstdint.h commands
    config.status: executing default commands
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/objects.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/__init__.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/merge_point.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/query.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/upload.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/parser.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/marks.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/__main__.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/constants.py -> build/lib.linux-x86_64-3.8/jitlog
    copying jitlog/prettyprinter.py -> build/lib.linux-x86_64-3.8/jitlog
    creating build/lib.linux-x86_64-3.8/vmshare
    copying vmshare/__init__.py -> build/lib.linux-x86_64-3.8/vmshare
    copying vmshare/binary.py -> build/lib.linux-x86_64-3.8/vmshare
    copying vmshare/service.py -> build/lib.linux-x86_64-3.8/vmshare
    creating build/lib.linux-x86_64-3.8/vmprof
    copying vmprof/cli.py -> build/lib.linux-x86_64-3.8/vmprof
    copying vmprof/__init__.py -> build/lib.linux-x86_64-3.8/vmprof
    copying vmprof/upload.py -> build/lib.linux-x86_64-3.8/vmprof
    copying vmprof/show.py -> build/lib.linux-x86_64-3.8/vmprof
    copying vmprof/profiler.py -> build/lib.linux-x86_64-3.8/vmprof
    copying vmprof/stats.py -> build/lib.linux-x86_64-3.8/vmprof
    copying vmprof/__main__.py -> build/lib.linux-x86_64-3.8/vmprof
    copying vmprof/reader.py -> build/lib.linux-x86_64-3.8/vmprof
    running build_ext
    building '_vmprof' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/src
    creating build/temp.linux-x86_64-3.8/src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/_vmprof.c -o build/temp.linux-x86_64-3.8/src/_vmprof.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    src/_vmprof.c: In function ‘emit_code_object’:
    src/_vmprof.c:68:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       68 |     co_name = PyUnicode_AsUTF8(co->co_name);
          |             ^
    src/_vmprof.c:71:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       71 |     co_filename = PyUnicode_AsUTF8(co->co_filename);
          |                 ^
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/machine.c -o build/temp.linux-x86_64-3.8/src/machine.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/compat.c -o build/temp.linux-x86_64-3.8/src/compat.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmp_stack.c -o build/temp.linux-x86_64-3.8/src/vmp_stack.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmprof_common.c -o build/temp.linux-x86_64-3.8/src/vmprof_common.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmprof_memory.c -o build/temp.linux-x86_64-3.8/src/vmprof_memory.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/symboltable.c -o build/temp.linux-x86_64-3.8/src/symboltable.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmprof_mt.c -o build/temp.linux-x86_64-3.8/src/vmprof_mt.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/vmprof_unix.c -o build/temp.linux-x86_64-3.8/src/vmprof_unix.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    src/vmprof_unix.c: In function ‘_get_pystate_for_this_thread’:
    src/vmprof_unix.c:137:34: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
      137 |             if (state->thread_id == mythread_id) {
          |                                  ^~
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/backtrace.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/backtrace.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/state.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/state.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/elf.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/elf.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/dwarf.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/dwarf.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/fileline.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/fileline.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/mmap.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/mmap.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/mmapio.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/mmapio.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/posix.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/posix.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/joshfactorial/Documents/venv/include -I/usr/include/python3.8 -c src/libbacktrace/sort.c -o build/temp.linux-x86_64-3.8/src/libbacktrace/sort.o -Wno-unused -DVMPROF_LINUX=1 -DVMPROF_UNIX=1 -I src/ -I src/libbacktrace
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/src/_vmprof.o build/temp.linux-x86_64-3.8/src/machine.o build/temp.linux-x86_64-3.8/src/compat.o build/temp.linux-x86_64-3.8/src/vmp_stack.o build/temp.linux-x86_64-3.8/src/vmprof_common.o build/temp.linux-x86_64-3.8/src/vmprof_memory.o build/temp.linux-x86_64-3.8/src/symboltable.o build/temp.linux-x86_64-3.8/src/vmprof_mt.o build/temp.linux-x86_64-3.8/src/vmprof_unix.o build/temp.linux-x86_64-3.8/src/libbacktrace/backtrace.o build/temp.linux-x86_64-3.8/src/libbacktrace/state.o build/temp.linux-x86_64-3.8/src/libbacktrace/elf.o build/temp.linux-x86_64-3.8/src/libbacktrace/dwarf.o build/temp.linux-x86_64-3.8/src/libbacktrace/fileline.o build/temp.linux-x86_64-3.8/src/libbacktrace/mmap.o build/temp.linux-x86_64-3.8/src/libbacktrace/mmapio.o build/temp.linux-x86_64-3.8/src/libbacktrace/posix.o build/temp.linux-x86_64-3.8/src/libbacktrace/sort.o -ldl -lunwind -lunwind-x86_64 -o build/lib.linux-x86_64-3.8/_vmprof.cpython-38-x86_64-linux-gnu.so
    /usr/bin/ld: build/temp.linux-x86_64-3.8/src/vmprof_common.o:/tmp/pip-install-mvuv1_s9/vmprof/src/vmprof_common.h:92: multiple definition of `_PyThreadState_Current'; build/temp.linux-x86_64-3.8/src/_vmprof.o:/tmp/pip-install-mvuv1_s9/vmprof/src/vmprof_common.h:92: first defined here
    /usr/bin/ld: build/temp.linux-x86_64-3.8/src/vmprof_unix.o:/tmp/pip-install-mvuv1_s9/vmprof/src/vmprof_common.h:92: multiple definition of `_PyThreadState_Current'; build/temp.linux-x86_64-3.8/src/_vmprof.o:/tmp/pip-install-mvuv1_s9/vmprof/src/vmprof_common.h:92: first defined here
    collect2: error: ld returned 1 exit status
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/joshfactorial/Documents/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mvuv1_s9/vmprof/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mvuv1_s9/vmprof/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-5zk9xeu7/install-record.txt --single-version-externally-managed --compile --install-headers /home/joshfactorial/Documents/venv/include/site/python3.8/vmprof Check the logs for full command output.
@daniel-butler
Copy link

I ran into the same issue. I'm using the ubuntu python 3.9 buster image

@mattip
Copy link
Contributor

mattip commented Mar 2, 2021

I think you might need to install from HEAD:

python -m pip install git+https://github.com/vmprof/vmprof-python

Note you will want to make sure you have sudo apt install libunwind-dev

@holmanb
Copy link

holmanb commented Apr 28, 2021

Thanks for the fix @mattip!

Does anybody know when pip install vmprof will work without this workaround?

@mattip
Copy link
Contributor

mattip commented Oct 13, 2021

Moving to cibuildwheel #241 would make releasing a new version less painful. Help welcome.

@chriskuehl
Copy link

I was seeing this error on Ubuntu Jammy and I believe I tracked it down to this change in GCC's default behavior: https://stackoverflow.com/a/69908511

I was able to work around this by setting the environment variable CFLAGS=-fcommon when calling pip install.

@mattip
Copy link
Contributor

mattip commented Jan 3, 2024

We now have manylinux wheels for x86_64. does that solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants