-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Unable to install on MacOS #31
Comments
Hello, Can you try to export the
|
Ok. I did this, and it appears to give the same error. I am not sure if there is anything additional I should be looking for, or if you need any additional information about my system. Thanks. Margots-MBP:~ margotwagner$ export CFLAGS=-Wno-error
Margots-MBP:~ margotwagner$ pip install python-papi
Collecting python-papi
Using cached python_papi-5.5.1.5.tar.gz (4.3 MB)
Requirement already satisfied: cffi>=1.0.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from python-papi) (1.14.3)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from cffi>=1.0.0->python-papi) (2.20)
Building wheels for collected packages: python-papi
Building wheel for python-papi (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/setup.py'"'"'; __file__='"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-wheel-gnsk3yhi
cwd: /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/
Complete output (185 lines):
running bdist_wheel
running build
running build_py
checking for architecture... x86_64
checking for OS... darwin
checking for OS version... 19.6.0
checking for user events... checking for static user events build...
checking for perf_event workaround level... autodetect
checking for if MIC should be used... no
checking for xlc... no
checking for icc... no
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 ANSI C... none needed
checking for xlf... no
checking for ifort... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for mpicc... no
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
no
checking for inline... inline
checking whether time.h and sys/time.h may both be included... 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 sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking c_asm.h usability... no
checking c_asm.h presence... no
checking for c_asm.h... no
checking intrinsics.h usability... no
checking intrinsics.h presence... no
checking for intrinsics.h... no
checking mach/mach_time.h usability... yes
checking mach/mach_time.h presence... yes
checking for mach/mach_time.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for gethrtime... no
checking for read_real_time... no
checking for time_base_to_time... no
checking for clock_gettime... yes
checking for mach_absolute_time... yes
checking for sched_getcpu... no
checking for dlopen and dlerror symbols in base system... found
checking for debug build...
checking for CPU type...
checking for ffsll... yes
checking for working gettid... no
checking for working syscall(SYS_gettid)... no
checking for working MMTIMER... no
checking for working CLOCK_REALTIME_HR POSIX 1b timer... no
checking for working CLOCK_REALTIME POSIX 1b timer... no
checking for real time clock or cycle counter... checking for working __thread... yes
checking for high performance thread local storage... __thread
checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... no
checking for working per-thread times() timer... no
checking for thread virtual clock or cycle counter... default
checking for which libraries to build... shared static
checking for link test cases with shared library...
checking for /sys/class/perfctr... no
checking for /dev/perfctr... no
checking for /sys/kernel/perfmon/version... no
checking for /proc/perfmon... no
checking for /proc/sys/kernel/perf_event_paranoid... no
checking platform... darwin
checking for components to build...
configure: Compiling genpapifdef with gcc
configure: Generating fpapi.h
configure: Generating f77papi.h
configure: Generating f90papi.h
configure: Makefile.inc will be included in the generated Makefile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating papi.pc
config.status: creating components/Makefile_comp_tests.target
config.status: creating testlib/Makefile.target
config.status: creating ctests/Makefile.target
config.status: creating ftests/Makefile.target
config.status: creating config.h
Host architecture : Darwin
Host CPU component : darwin
Installation DESTDIR:
Installation PREFIX : /usr/local
Installation EPREFIX: /usr/local
Installation INCDIR : /usr/local/include
Installation LIBDIR : /usr/local/lib
Installation BINDIR : /usr/local/bin
Installation MANDIR : /usr/local/man
Installation DOCDIR :
Installation DATADIR: /usr/local/share/papi
sh papi_events_table.sh papi_events.csv > papi_events_table.h
gcc -E -DFORTRANUNDERSCORE papi_fwrappers.c > papi_fwrappers_.c
gcc -E -DFORTRANDOUBLEUNDERSCORE papi_fwrappers.c > papi_fwrappers__.c
gcc -E -DFORTRANCAPS papi_fwrappers.c > upper_PAPI_FWRAPPERS.c
gcc -fPIC -DPIC -shared -Wl,-dylib -Xlinker "-rpath" -Xlinker "/usr/local/lib" -I. -DNEED_FFSLL -DOSLOCK=\"darwin-lock.h\" -DOSCONTEXT=\"darwin-context.h\" -O2 -DPAPI_NO_MEMORY_MANAGEMENT x86_cpuid_info.c papi.c papi_internal.c papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c darwin-memory.c darwin-common.c papi_preset.c papi_vector.c papi_memory.c -o libpapi.dylib
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
darwin-memory.c:25:3: error: implicit declaration of function 'sysctlnametomib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sysctlnametomib("hw.memsize", mib, &len);
^
darwin-memory.c:28:7: error: implicit declaration of function 'sysctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (sysctl(mib, 2, &ll, &len, NULL, 0) == -1) {
^
2 errors generated.
In file included from darwin-common.c:21:
./darwin-common.h:13:10: error: implicit declaration of function 'pthread_self' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return pthread_self();
^
./darwin-common.h:13:10: note: did you mean 'pthread_kill'?
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/signal.h:82:5: note: 'pthread_kill' declared here
int pthread_kill(pthread_t, int);
^
darwin-common.c:108:3: error: implicit declaration of function 'sysctlnametomib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sysctlnametomib("machdep.cpu.vendor", mib, &len);
^
darwin-common.c:111:7: error: implicit declaration of function 'sysctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (sysctl(mib, 3, &buffer, &len, NULL, 0) == -1) {
^
3 errors generated.
make: *** [libpapi.dylib] Error 1
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_low.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/events.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_high_types.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/consts.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_high.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/exceptions.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_build.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
running build_ext
generating cffi module 'build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.c'
creating build/temp.macosx-10.9-x86_64-3.8
building 'pypapi._papi' extension
creating build/temp.macosx-10.9-x86_64-3.8/build
creating build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Wno-error -fPIC -Werror=format-truncation=0 -I/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/pypapi -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.c -o build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.o
warning: unknown warning option '-Werror=format-truncation=0' [-Wunknown-warning-option]
1 warning generated.
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g -Wno-error -fPIC -Werror=format-truncation=0 build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.o /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/pypapi/../papi/src/libpapi.a -o build/lib.macosx-10.9-x86_64-3.8/pypapi/_papi.abi3.so
clang: error: no such file or directory: '/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/pypapi/../papi/src/libpapi.a'
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for python-papi
Running setup.py clean for python-papi
Failed to build python-papi
Installing collected packages: python-papi
Running setup.py install for python-papi ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/setup.py'"'"'; __file__='"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-record-q019cs6_/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/python-papi
cwd: /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/
Complete output (185 lines):
running install
running build
running build_py
checking for architecture... x86_64
checking for OS... darwin
checking for OS version... 19.6.0
checking for user events... checking for static user events build...
checking for perf_event workaround level... autodetect
checking for if MIC should be used... no
checking for xlc... no
checking for icc... no
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 ANSI C... none needed
checking for xlf... no
checking for ifort... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for mpicc... no
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
no
checking for inline... inline
checking whether time.h and sys/time.h may both be included... 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 sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking c_asm.h usability... no
checking c_asm.h presence... no
checking for c_asm.h... no
checking intrinsics.h usability... no
checking intrinsics.h presence... no
checking for intrinsics.h... no
checking mach/mach_time.h usability... yes
checking mach/mach_time.h presence... yes
checking for mach/mach_time.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for gethrtime... no
checking for read_real_time... no
checking for time_base_to_time... no
checking for clock_gettime... yes
checking for mach_absolute_time... yes
checking for sched_getcpu... no
checking for dlopen and dlerror symbols in base system... found
checking for debug build...
checking for CPU type...
checking for ffsll... yes
checking for working gettid... no
checking for working syscall(SYS_gettid)... no
checking for working MMTIMER... no
checking for working CLOCK_REALTIME_HR POSIX 1b timer... no
checking for working CLOCK_REALTIME POSIX 1b timer... no
checking for real time clock or cycle counter... checking for working __thread... yes
checking for high performance thread local storage... __thread
checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... no
checking for working per-thread times() timer... no
checking for thread virtual clock or cycle counter... default
checking for which libraries to build... shared static
checking for link test cases with shared library...
checking for /sys/class/perfctr... no
checking for /dev/perfctr... no
checking for /sys/kernel/perfmon/version... no
checking for /proc/perfmon... no
checking for /proc/sys/kernel/perf_event_paranoid... no
checking platform... darwin
checking for components to build...
configure: Compiling genpapifdef with gcc
configure: Generating fpapi.h
configure: Generating f77papi.h
configure: Generating f90papi.h
configure: Makefile.inc will be included in the generated Makefile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating papi.pc
config.status: creating components/Makefile_comp_tests.target
config.status: creating testlib/Makefile.target
config.status: creating ctests/Makefile.target
config.status: creating ftests/Makefile.target
config.status: creating config.h
config.status: config.h is unchanged
Host architecture : Darwin
Host CPU component : darwin
Installation DESTDIR:
Installation PREFIX : /usr/local
Installation EPREFIX: /usr/local
Installation INCDIR : /usr/local/include
Installation LIBDIR : /usr/local/lib
Installation BINDIR : /usr/local/bin
Installation MANDIR : /usr/local/man
Installation DOCDIR :
Installation DATADIR: /usr/local/share/papi
gcc -E -DFORTRANUNDERSCORE papi_fwrappers.c > papi_fwrappers_.c
gcc -E -DFORTRANDOUBLEUNDERSCORE papi_fwrappers.c > papi_fwrappers__.c
gcc -E -DFORTRANCAPS papi_fwrappers.c > upper_PAPI_FWRAPPERS.c
gcc -fPIC -DPIC -shared -Wl,-dylib -Xlinker "-rpath" -Xlinker "/usr/local/lib" -I. -DNEED_FFSLL -DOSLOCK=\"darwin-lock.h\" -DOSCONTEXT=\"darwin-context.h\" -O2 -DPAPI_NO_MEMORY_MANAGEMENT x86_cpuid_info.c papi.c papi_internal.c papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c darwin-memory.c darwin-common.c papi_preset.c papi_vector.c papi_memory.c -o libpapi.dylib
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
darwin-memory.c:25:3: error: implicit declaration of function 'sysctlnametomib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sysctlnametomib("hw.memsize", mib, &len);
^
darwin-memory.c:28:7: error: implicit declaration of function 'sysctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (sysctl(mib, 2, &ll, &len, NULL, 0) == -1) {
^
2 errors generated.
In file included from darwin-common.c:21:
./darwin-common.h:13:10: error: implicit declaration of function 'pthread_self' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return pthread_self();
^
./darwin-common.h:13:10: note: did you mean 'pthread_kill'?
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/signal.h:82:5: note: 'pthread_kill' declared here
int pthread_kill(pthread_t, int);
^
darwin-common.c:108:3: error: implicit declaration of function 'sysctlnametomib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sysctlnametomib("machdep.cpu.vendor", mib, &len);
^
darwin-common.c:111:7: error: implicit declaration of function 'sysctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (sysctl(mib, 3, &buffer, &len, NULL, 0) == -1) {
^
3 errors generated.
make: *** [libpapi.dylib] Error 1
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_low.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/events.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_high_types.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/consts.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_high.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/exceptions.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_build.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
running build_ext
generating cffi module 'build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.c'
creating build/temp.macosx-10.9-x86_64-3.8
building 'pypapi._papi' extension
creating build/temp.macosx-10.9-x86_64-3.8/build
creating build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Wno-error -fPIC -Werror=format-truncation=0 -I/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/pypapi -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.c -o build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.o
warning: unknown warning option '-Werror=format-truncation=0' [-Wunknown-warning-option]
1 warning generated.
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g -Wno-error -fPIC -Werror=format-truncation=0 build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.o /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/pypapi/../papi/src/libpapi.a -o build/lib.macosx-10.9-x86_64-3.8/pypapi/_papi.abi3.so
clang: error: no such file or directory: '/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/pypapi/../papi/src/libpapi.a'
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/setup.py'"'"'; __file__='"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-am17d2zu/python-papi_b917f084c4394e319ac5224d93fe7f9d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-record-q019cs6_/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/python-papi Check the logs for full command output.
Margots-MBP:~ margotwagner$ export CFLAGS=-Wno-error
Margots-MBP:~ margotwagner$ pip install python-papi
Collecting python-papi
Using cached python_papi-5.5.1.5.tar.gz (4.3 MB)
Requirement already satisfied: cffi>=1.0.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from python-papi) (1.14.3)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from cffi>=1.0.0->python-papi) (2.20)
Building wheels for collected packages: python-papi
Building wheel for python-papi (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/setup.py'"'"'; __file__='"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-wheel-d12d9ct_
cwd: /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/
Complete output (185 lines):
running bdist_wheel
running build
running build_py
checking for architecture... x86_64
checking for OS... darwin
checking for OS version... 19.6.0
checking for user events... checking for static user events build...
checking for perf_event workaround level... autodetect
checking for if MIC should be used... no
checking for xlc... no
checking for icc... no
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 ANSI C... none needed
checking for xlf... no
checking for ifort... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for mpicc... no
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
no
checking for inline... inline
checking whether time.h and sys/time.h may both be included... 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 sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking c_asm.h usability... no
checking c_asm.h presence... no
checking for c_asm.h... no
checking intrinsics.h usability... no
checking intrinsics.h presence... no
checking for intrinsics.h... no
checking mach/mach_time.h usability... yes
checking mach/mach_time.h presence... yes
checking for mach/mach_time.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for gethrtime... no
checking for read_real_time... no
checking for time_base_to_time... no
checking for clock_gettime... yes
checking for mach_absolute_time... yes
checking for sched_getcpu... no
checking for dlopen and dlerror symbols in base system... found
checking for debug build...
checking for CPU type...
checking for ffsll... yes
checking for working gettid... no
checking for working syscall(SYS_gettid)... no
checking for working MMTIMER... no
checking for working CLOCK_REALTIME_HR POSIX 1b timer... no
checking for working CLOCK_REALTIME POSIX 1b timer... no
checking for real time clock or cycle counter... checking for working __thread... yes
checking for high performance thread local storage... __thread
checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... no
checking for working per-thread times() timer... no
checking for thread virtual clock or cycle counter... default
checking for which libraries to build... shared static
checking for link test cases with shared library...
checking for /sys/class/perfctr... no
checking for /dev/perfctr... no
checking for /sys/kernel/perfmon/version... no
checking for /proc/perfmon... no
checking for /proc/sys/kernel/perf_event_paranoid... no
checking platform... darwin
checking for components to build...
configure: Compiling genpapifdef with gcc
configure: Generating fpapi.h
configure: Generating f77papi.h
configure: Generating f90papi.h
configure: Makefile.inc will be included in the generated Makefile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating papi.pc
config.status: creating components/Makefile_comp_tests.target
config.status: creating testlib/Makefile.target
config.status: creating ctests/Makefile.target
config.status: creating ftests/Makefile.target
config.status: creating config.h
Host architecture : Darwin
Host CPU component : darwin
Installation DESTDIR:
Installation PREFIX : /usr/local
Installation EPREFIX: /usr/local
Installation INCDIR : /usr/local/include
Installation LIBDIR : /usr/local/lib
Installation BINDIR : /usr/local/bin
Installation MANDIR : /usr/local/man
Installation DOCDIR :
Installation DATADIR: /usr/local/share/papi
sh papi_events_table.sh papi_events.csv > papi_events_table.h
gcc -E -DFORTRANUNDERSCORE papi_fwrappers.c > papi_fwrappers_.c
gcc -E -DFORTRANDOUBLEUNDERSCORE papi_fwrappers.c > papi_fwrappers__.c
gcc -E -DFORTRANCAPS papi_fwrappers.c > upper_PAPI_FWRAPPERS.c
gcc -fPIC -DPIC -shared -Wl,-dylib -Xlinker "-rpath" -Xlinker "/usr/local/lib" -I. -DNEED_FFSLL -DOSLOCK=\"darwin-lock.h\" -DOSCONTEXT=\"darwin-context.h\" -O2 -DPAPI_NO_MEMORY_MANAGEMENT x86_cpuid_info.c papi.c papi_internal.c papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c darwin-memory.c darwin-common.c papi_preset.c papi_vector.c papi_memory.c -o libpapi.dylib
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
darwin-memory.c:25:3: error: implicit declaration of function 'sysctlnametomib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sysctlnametomib("hw.memsize", mib, &len);
^
darwin-memory.c:28:7: error: implicit declaration of function 'sysctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (sysctl(mib, 2, &ll, &len, NULL, 0) == -1) {
^
2 errors generated.
In file included from darwin-common.c:21:
./darwin-common.h:13:10: error: implicit declaration of function 'pthread_self' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return pthread_self();
^
./darwin-common.h:13:10: note: did you mean 'pthread_kill'?
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/signal.h:82:5: note: 'pthread_kill' declared here
int pthread_kill(pthread_t, int);
^
darwin-common.c:108:3: error: implicit declaration of function 'sysctlnametomib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sysctlnametomib("machdep.cpu.vendor", mib, &len);
^
darwin-common.c:111:7: error: implicit declaration of function 'sysctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (sysctl(mib, 3, &buffer, &len, NULL, 0) == -1) {
^
3 errors generated.
make: *** [libpapi.dylib] Error 1
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_low.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/events.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_high_types.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/consts.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_high.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/exceptions.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_build.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
running build_ext
generating cffi module 'build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.c'
creating build/temp.macosx-10.9-x86_64-3.8
building 'pypapi._papi' extension
creating build/temp.macosx-10.9-x86_64-3.8/build
creating build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Wno-error -fPIC -Werror=format-truncation=0 -I/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/pypapi -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.c -o build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.o
warning: unknown warning option '-Werror=format-truncation=0' [-Wunknown-warning-option]
1 warning generated.
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g -Wno-error -fPIC -Werror=format-truncation=0 build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.o /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/pypapi/../papi/src/libpapi.a -o build/lib.macosx-10.9-x86_64-3.8/pypapi/_papi.abi3.so
clang: error: no such file or directory: '/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/pypapi/../papi/src/libpapi.a'
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for python-papi
Running setup.py clean for python-papi
Failed to build python-papi
Installing collected packages: python-papi
Running setup.py install for python-papi ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/setup.py'"'"'; __file__='"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-record-hueti3e5/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/python-papi
cwd: /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/
Complete output (185 lines):
running install
running build
running build_py
checking for architecture... x86_64
checking for OS... darwin
checking for OS version... 19.6.0
checking for user events... checking for static user events build...
checking for perf_event workaround level... autodetect
checking for if MIC should be used... no
checking for xlc... no
checking for icc... no
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 ANSI C... none needed
checking for xlf... no
checking for ifort... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for mpicc... no
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
no
checking for inline... inline
checking whether time.h and sys/time.h may both be included... 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 sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking c_asm.h usability... no
checking c_asm.h presence... no
checking for c_asm.h... no
checking intrinsics.h usability... no
checking intrinsics.h presence... no
checking for intrinsics.h... no
checking mach/mach_time.h usability... yes
checking mach/mach_time.h presence... yes
checking for mach/mach_time.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for gethrtime... no
checking for read_real_time... no
checking for time_base_to_time... no
checking for clock_gettime... yes
checking for mach_absolute_time... yes
checking for sched_getcpu... no
checking for dlopen and dlerror symbols in base system... found
checking for debug build...
checking for CPU type...
checking for ffsll... yes
checking for working gettid... no
checking for working syscall(SYS_gettid)... no
checking for working MMTIMER... no
checking for working CLOCK_REALTIME_HR POSIX 1b timer... no
checking for working CLOCK_REALTIME POSIX 1b timer... no
checking for real time clock or cycle counter... checking for working __thread... yes
checking for high performance thread local storage... __thread
checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... no
checking for working per-thread times() timer... no
checking for thread virtual clock or cycle counter... default
checking for which libraries to build... shared static
checking for link test cases with shared library...
checking for /sys/class/perfctr... no
checking for /dev/perfctr... no
checking for /sys/kernel/perfmon/version... no
checking for /proc/perfmon... no
checking for /proc/sys/kernel/perf_event_paranoid... no
checking platform... darwin
checking for components to build...
configure: Compiling genpapifdef with gcc
configure: Generating fpapi.h
configure: Generating f77papi.h
configure: Generating f90papi.h
configure: Makefile.inc will be included in the generated Makefile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating papi.pc
config.status: creating components/Makefile_comp_tests.target
config.status: creating testlib/Makefile.target
config.status: creating ctests/Makefile.target
config.status: creating ftests/Makefile.target
config.status: creating config.h
config.status: config.h is unchanged
Host architecture : Darwin
Host CPU component : darwin
Installation DESTDIR:
Installation PREFIX : /usr/local
Installation EPREFIX: /usr/local
Installation INCDIR : /usr/local/include
Installation LIBDIR : /usr/local/lib
Installation BINDIR : /usr/local/bin
Installation MANDIR : /usr/local/man
Installation DOCDIR :
Installation DATADIR: /usr/local/share/papi
gcc -E -DFORTRANUNDERSCORE papi_fwrappers.c > papi_fwrappers_.c
gcc -E -DFORTRANDOUBLEUNDERSCORE papi_fwrappers.c > papi_fwrappers__.c
gcc -E -DFORTRANCAPS papi_fwrappers.c > upper_PAPI_FWRAPPERS.c
gcc -fPIC -DPIC -shared -Wl,-dylib -Xlinker "-rpath" -Xlinker "/usr/local/lib" -I. -DNEED_FFSLL -DOSLOCK=\"darwin-lock.h\" -DOSCONTEXT=\"darwin-context.h\" -O2 -DPAPI_NO_MEMORY_MANAGEMENT x86_cpuid_info.c papi.c papi_internal.c papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c darwin-memory.c darwin-common.c papi_preset.c papi_vector.c papi_memory.c -o libpapi.dylib
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
papi_fwrappers.c:753:12: warning: address of array 'info.note' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (info.note)
~~ ~~~~~^~~~
1 warning generated.
darwin-memory.c:25:3: error: implicit declaration of function 'sysctlnametomib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sysctlnametomib("hw.memsize", mib, &len);
^
darwin-memory.c:28:7: error: implicit declaration of function 'sysctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (sysctl(mib, 2, &ll, &len, NULL, 0) == -1) {
^
2 errors generated.
In file included from darwin-common.c:21:
./darwin-common.h:13:10: error: implicit declaration of function 'pthread_self' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return pthread_self();
^
./darwin-common.h:13:10: note: did you mean 'pthread_kill'?
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/signal.h:82:5: note: 'pthread_kill' declared here
int pthread_kill(pthread_t, int);
^
darwin-common.c:108:3: error: implicit declaration of function 'sysctlnametomib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sysctlnametomib("machdep.cpu.vendor", mib, &len);
^
darwin-common.c:111:7: error: implicit declaration of function 'sysctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (sysctl(mib, 3, &buffer, &len, NULL, 0) == -1) {
^
3 errors generated.
make: *** [libpapi.dylib] Error 1
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_low.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/events.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_high_types.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/consts.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_high.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/exceptions.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
copying pypapi/papi_build.py -> build/lib.macosx-10.9-x86_64-3.8/pypapi
running build_ext
generating cffi module 'build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.c'
creating build/temp.macosx-10.9-x86_64-3.8
building 'pypapi._papi' extension
creating build/temp.macosx-10.9-x86_64-3.8/build
creating build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Wno-error -fPIC -Werror=format-truncation=0 -I/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/pypapi -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.c -o build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.o
warning: unknown warning option '-Werror=format-truncation=0' [-Wunknown-warning-option]
1 warning generated.
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g -Wno-error -fPIC -Werror=format-truncation=0 build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/pypapi._papi.o /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/pypapi/../papi/src/libpapi.a -o build/lib.macosx-10.9-x86_64-3.8/pypapi/_papi.abi3.so
clang: error: no such file or directory: '/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/pypapi/../papi/src/libpapi.a'
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/setup.py'"'"'; __file__='"'"'/private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-install-1_t3afel/python-papi_d7cf9091df8747d8ba1b426bebe45111/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/wp/3f0wwp4n2yzg421rx1jgph980000gn/T/pip-record-hueti3e5/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/python-papi Check the logs for full command output. |
I do not know how to fix this... I have no Mac to test things myself :( I can only find this in the PAPI doc → https://bitbucket.org/icl/papi/src/cd97066815d0129dc05af846502c13570fd063dd/INSTALL.txt#lines-529 |
Unable to install pypapi on MacOS. I have tried both the regular installation (pip install python-papi) and the git clone installation. I am using Python 3.8. When I do pip install, I get the following error:
The text was updated successfully, but these errors were encountered: