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

Linking to libpython #793

Closed
alex-eri opened this issue Oct 5, 2020 · 2 comments
Closed

Linking to libpython #793

alex-eri opened this issue Oct 5, 2020 · 2 comments

Comments

@alex-eri
Copy link

alex-eri commented Oct 5, 2020

I want to build cx-Freeze against manylinux, but

    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/_internal/cpython-3.7.9/include/python3.7m -c source/bases/Console.c -o build/temp.linux-x86_64-3.7/source/bases/Console.o
    creating build/lib.linux-x86_64-3.7/cx_Freeze/bases
    gcc -pthread build/temp.linux-x86_64-3.7/source/bases/Console.o -L/opt/_internal/cpython-3.7.9/lib/python3.7/config-3.7m-x86_64-linux-gnu -lpython3.7m -o build/lib.linux-x86_64-3.7/cx_Freeze/bases/Console -Xlinker -export-dynamic -lcrypt -lpthread -ldl -lutil -lrt -lm -s
    /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: cannot find -lpython3.7m
    collect2: error: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1

@alex-eri alex-eri changed the title libpython Linking to libpython Oct 5, 2020
@madig
Copy link

madig commented Oct 25, 2020

I think you're not supposed to link to libpython: https://www.python.org/dev/peps/pep-0513/#libpythonx-y-so-1.

@mayeut
Copy link
Member

mayeut commented Jan 8, 2022

duplicate of #1149

@mayeut mayeut closed this as completed Jan 8, 2022
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

3 participants