This repository was archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
This repository was archived by the owner on Oct 27, 2022. It is now read-only.
build fails on archlinux #63
Copy link
Copy link
Closed
Description
(coma) ➜ coma git:(master) ✗ pip install subprocess32
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting subprocess32
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/32/c8/564be4d12629b912ea431f1a50eb8b3b9d00f1a0b1ceff17f266be190007/subprocess32-3.5.4.tar.gz
Building wheels for collected packages: subprocess32
Building wheel for subprocess32 (setup.py) ... error
ERROR: Complete output from command ${HOME}/.conda/envs/coma/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-6Mmw2Y/subprocess32/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-hJ231z --python-tag cp27:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying subprocess32.py -> build/lib.linux-x86_64-2.7
running build_ext
running build_configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 for unistd.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for pipe2... yes
checking for setsid... yes
checking whether dirfd is declared... yes
configure: creating ./config.status
config.status: creating _posixsubprocess_config.h
building '_posixsubprocess32' extension
creating build/temp.linux-x86_64-2.7
gcc -pthread -B ${HOME}/.conda/envs/coma/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I${HOME}/.conda/envs/coma/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o
In file included from ${HOME}/.conda/envs/coma/include/python2.7/Python.h:8,
from _posixsubprocess.c:16:
${HOME}/.conda/envs/coma/include/python2.7/pyconfig.h:1220: warning: "_POSIX_C_SOURCE" redefined
1220 | #define _POSIX_C_SOURCE 200112L
|
In file included from /usr/include/sys/cdefs.h:23,
from _posixsubprocess.c:12:
/usr/include/features.h:266: note: this is the location of the previous definition
266 | # define _POSIX_C_SOURCE 200809L
|
In file included from ${HOME}/.conda/envs/coma/include/python2.7/Python.h:8,
from _posixsubprocess.c:16:
${HOME}/.conda/envs/coma/include/python2.7/pyconfig.h:1242: warning: "_XOPEN_SOURCE" redefined
1242 | #define _XOPEN_SOURCE 600
|
In file included from /usr/include/sys/cdefs.h:23,
from _posixsubprocess.c:12:
/usr/include/features.h:203: note: this is the location of the previous definition
203 | # define _XOPEN_SOURCE 700
|
gcc -pthread -shared -B ${HOME}/.conda/envs/coma/compiler_compat -L${HOME}/.conda/envs/coma/lib -Wl,-rpath=${HOME}/.conda/envs/coma/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-2.7/_posixsubprocess.o -L${HOME}/.conda/envs/coma/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/_posixsubprocess32.so
${HOME}/.conda/envs/coma/compiler_compat/ld: build/temp.linux-x86_64-2.7/_posixsubprocess.o: unable to initialize decompress status for section .debug_info
${HOME}/.conda/envs/coma/compiler_compat/ld: build/temp.linux-x86_64-2.7/_posixsubprocess.o: unable to initialize decompress status for section .debug_info
${HOME}/.conda/envs/coma/compiler_compat/ld: build/temp.linux-x86_64-2.7/_posixsubprocess.o: unable to initialize decompress status for section .debug_info
${HOME}/.conda/envs/coma/compiler_compat/ld: build/temp.linux-x86_64-2.7/_posixsubprocess.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-2.7/_posixsubprocess.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for subprocess32
Running setup.py clean for subprocess32
Failed to build subprocess32
Installing collected packages: subprocess32
Running setup.py install for subprocess32 ... error
ERROR: Complete output from command ${HOME}/.conda/envs/coma/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-6Mmw2Y/subprocess32/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-Zv3qW2/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying subprocess32.py -> build/lib.linux-x86_64-2.7
running build_ext
running build_configure
_posixsubprocess_config.h is already up to date.
building '_posixsubprocess32' extension
creating build/temp.linux-x86_64-2.7
gcc -pthread -B ${HOME}/.conda/envs/coma/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I${HOME}/.conda/envs/coma/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o
In file included from ${HOME}/.conda/envs/coma/include/python2.7/Python.h:8,
from _posixsubprocess.c:16:
${HOME}/.conda/envs/coma/include/python2.7/pyconfig.h:1220: warning: "_POSIX_C_SOURCE" redefined
1220 | #define _POSIX_C_SOURCE 200112L
|
In file included from /usr/include/sys/cdefs.h:23,
from _posixsubprocess.c:12:
/usr/include/features.h:266: note: this is the location of the previous definition
266 | # define _POSIX_C_SOURCE 200809L
|
In file included from ${HOME}/.conda/envs/coma/include/python2.7/Python.h:8,
from _posixsubprocess.c:16:
${HOME}/.conda/envs/coma/include/python2.7/pyconfig.h:1242: warning: "_XOPEN_SOURCE" redefined
1242 | #define _XOPEN_SOURCE 600
|
In file included from /usr/include/sys/cdefs.h:23,
from _posixsubprocess.c:12:
/usr/include/features.h:203: note: this is the location of the previous definition
203 | # define _XOPEN_SOURCE 700
|
gcc -pthread -shared -B ${HOME}/.conda/envs/coma/compiler_compat -L${HOME}/.conda/envs/coma/lib -Wl,-rpath=${HOME}/.conda/envs/coma/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-2.7/_posixsubprocess.o -L${HOME}/.conda/envs/coma/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/_posixsubprocess32.so
${HOME}/.conda/envs/coma/compiler_compat/ld: build/temp.linux-x86_64-2.7/_posixsubprocess.o: unable to initialize decompress status for section .debug_info
${HOME}/.conda/envs/coma/compiler_compat/ld: build/temp.linux-x86_64-2.7/_posixsubprocess.o: unable to initialize decompress status for section .debug_info
${HOME}/.conda/envs/coma/compiler_compat/ld: build/temp.linux-x86_64-2.7/_posixsubprocess.o: unable to initialize decompress status for section .debug_info
${HOME}/.conda/envs/coma/compiler_compat/ld: build/temp.linux-x86_64-2.7/_posixsubprocess.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-2.7/_posixsubprocess.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "${HOME}/.conda/envs/coma/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-6Mmw2Y/subprocess32/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-Zv3qW2/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-6Mmw2Y/subprocess32/
Hi, I encountered build error on archlinux, possibly because of my gcc and ld version.
(coma) ➜ coma git:(master) ✗ gcc --version
gcc (GCC) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(coma) ➜ coma git:(master) ✗ ld --version
GNU ld (GNU Binutils) 2.32
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels