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

Can't install on arch - unable to initialize decompress status for section #268

Closed
kpa28-git opened this issue Jun 1, 2019 · 1 comment

Comments

@kpa28-git
Copy link

kpa28-git commented Jun 1, 2019

Installing Ta-lib for arch with pip is failing when it attempts to build with gcc (I was able to install the C ta_lib library just fine). These are the errors I get:

gcc -pthread -shared -B /home/kev/miniconda3/compiler_compat -L/home/kev/miniconda3/lib -Wl,-rpath=/home/kev/miniconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/talib/_ta_lib.o -L/usr/lib -L/usr/local/lib -L/usr/lib64 -L/usr/local/lib64 -L/opt/lib -L/opt/local/lib -lta_lib -o build/lib.linux-x86_64-3.6/talib/_ta_lib.cpython-36m-x86_64-linux-gnu.so
/home/kev/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/talib/_ta_lib.o: unable to initialize decompress status for section .debug_info
/home/kev/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/talib/_ta_lib.o: unable to initialize decompress status for section .debug_info
/home/kev/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/talib/_ta_lib.o: unable to initialize decompress status for section .debug_info
/home/kev/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/talib/_ta_lib.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.6/talib/_ta_lib.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/kev/miniconda3/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-dua2qxmj/TA-Lib/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-v_fy1ggr/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-dua2qxmj/TA-Lib/

I get the same issue when trying to install with setup.py.

@kpa28-git kpa28-git changed the title Can' Can't install on arch - unable to initialize decompress status for section Jun 1, 2019
@kpa28-git
Copy link
Author

Seems like there is a bug with binutils version 2.32 on arch. I was able to solve my problem with building the wheel by downgrading binutils to version 2.30:

sudo pacman -U https://archive.archlinux.org/packages/b/binutils/binutils-2.30-5-x86_64.pkg.tar.xz

More information about this here: https://bbs.archlinux.org/viewtopic.php?id=242682

I don't like to solve install issues by downgrading packages, hopefully the binutils issue will get fixed so I can reupgrade to an up to date version.

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

1 participant