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

Fix libcoreir-python build on travis #83

Open
leonardt opened this issue Apr 9, 2019 · 1 comment
Open

Fix libcoreir-python build on travis #83

leonardt opened this issue Apr 9, 2019 · 1 comment

Comments

@leonardt
Copy link
Owner

leonardt commented Apr 9, 2019

See branch libcoreir-python-travis for WIP. Currently blocked by linking -lpython3.7m inside the manylinux environment.

@leonardt
Copy link
Owner Author

leonardt commented Apr 9, 2019

Latest build demonstrating the issue: https://travis-ci.org/leonardt/pycoreir/builds/517553347

Specific error:

$ docker exec manylinux bash -c "cd pycoreir/libcoreir-python && ./run_travis_test.sh"
/usr/local/gcc-4.9.0/bin/g++-4.9.0 -I/pycoreir/coreir-cpp/include -std=c++11 -Wall -fPIC -Werror -I./include/ -I/opt/_internal/cpython-3.7.3/include/python3.7m -I/opt/_internal/cpython-3.7.3/include/python3.7m -DPYTHON_HOME="L\"/opt/_internal/cpython-3.7.3\"" -DPYTHON_EXECUTABLE="L\"/opt/python/cp37-cp37m/bin/python\"" -c -o build/libcoreir-python.o coreir-python.cpp
/usr/local/gcc-4.9.0/bin/g++-4.9.0 -L/pycoreir/coreir-cpp/lib -lcoreir -L /opt/_internal/cpython-3.7.3/lib/python3.7/config-3.7m-x86_64-linux-gnu -lpython3.7m -lcrypt -lpthread -ldl  -lutil -lrt -lm  -shared -o build/libcoreir-python.so build/libcoreir-python.o 
/opt/rh/devtoolset-2/root/usr/bin/ld: cannot find -lpython3.7m
collect2: error: ld returned 1 exit status
make: *** [build/libcoreir-python.so] Error 1
/usr/local/gcc-4.9.0/bin/g++-4.9.0 -L/pycoreir/coreir-cpp/lib -lcoreir -L /opt/_internal/cpython-3.7.3/lib/python3.7/config-3.7m-x86_64-linux-gnu -lpython3.7m -lcrypt -lpthread -ldl  -lutil -lrt -lm  -shared -o build/libcoreir-python.so build/libcoreir-python.o 
/opt/rh/devtoolset-2/root/usr/bin/ld: cannot find -lpython3.7m
collect2: error: ld returned 1 exit status
make: *** [build/libcoreir-python.so] Error 1
The command "docker exec manylinux bash -c "cd pycoreir/libcoreir-python && ./run_travis_test.sh"" exited with 2.

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