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

Spurious "platform dependent libraries" warnings when running make #71900

Closed
cjerdonek opened this issue Aug 8, 2016 · 4 comments
Closed

Spurious "platform dependent libraries" warnings when running make #71900

cjerdonek opened this issue Aug 8, 2016 · 4 comments
Labels
build The build process and cross-build

Comments

@cjerdonek
Copy link
Member

BPO 27713
Nosy @ned-deily, @cjerdonek, @zhangyangyu
Files
  • issue27713.patch: Suppress spurious warnings when running make
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2016-08-20.02:16:03.576>
    created_at = <Date 2016-08-08.18:06:06.115>
    labels = ['build']
    title = 'Spurious "platform dependent libraries" warnings when running make'
    updated_at = <Date 2016-08-20.02:16:03.575>
    user = 'https://github.com/cjerdonek'

    bugs.python.org fields:

    activity = <Date 2016-08-20.02:16:03.575>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-08-20.02:16:03.576>
    closer = 'ned.deily'
    components = ['Build']
    creation = <Date 2016-08-08.18:06:06.115>
    creator = 'chris.jerdonek'
    dependencies = []
    files = ['44156']
    hgrepos = []
    issue_num = 27713
    keywords = ['patch']
    message_count = 4.0
    messages = ['272186', '273141', '273183', '273184']
    nosy_count = 4.0
    nosy_names = ['ned.deily', 'chris.jerdonek', 'python-dev', 'xiang.zhang']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue27713'
    versions = ['Python 3.5', 'Python 3.6']

    @cjerdonek
    Copy link
    Member Author

    When installing Python 3.5.2 from source on Ubuntu 14.04 and running
    make, I get the below "Could not find platform dependent libraries"
    warnings (which I prefixed with "***" for better visibility).

    From this message which has more background, these warnings are
    apparently harmless:

    https://mail.python.org/pipermail/python-dev/2016-August/145783.html

    	      -DHGBRANCH="\"`LC_ALL=C `\"" \
    	      -o [Modules/getbuildinfo.o](https://github.com/python/cpython/blob/main/Modules/getbuildinfo.o) ./Modules/getbuildinfo.c
    gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes    -Werror=declaration-after-statement   -I. -IInclude -I./Include    -DPy_BUILD_CORE -o [Programs/_freeze_importlib.o](https://github.com/python/cpython/blob/main/Programs/_freeze_importlib.o) [Programs/_freeze_importlib.c](https://github.com/python/cpython/blob/main/Programs/_freeze_importlib.c)
    gcc -pthread   -o [Programs/_freeze_importlib](https://github.com/python/cpython/blob/main/Programs/_freeze_importlib) [Programs/_freeze_importlib.o](https://github.com/python/cpython/blob/main/Programs/_freeze_importlib.o) [Modules/getbuildinfo.o](https://github.com/python/cpython/blob/main/Modules/getbuildinfo.o) [Parser/acceler.o](https://github.com/python/cpython/blob/main/Parser/acceler.o) [**snipped for brevity**]  [Modules/xxsubtype.o](https://github.com/python/cpython/blob/main/Modules/xxsubtype.o) -lpthread -ldl  -lutil   -lm  
    if test "no" != "yes"; then \
    	    ./Programs/_freeze_importlib \
    	        ./Lib/importlib/_bootstrap.py [Python/importlib.h](https://github.com/python/cpython/blob/main/Python/importlib.h); \
    	fi
    ***: Could not find platform dependent libraries <exec_prefix>
    ***: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    if test "no" != "yes"; then \
    	    ./Programs/_freeze_importlib \
    	        ./Lib/importlib/_bootstrap_external.py [Python/importlib_external.h](https://github.com/python/cpython/blob/main/Python/importlib_external.h); \
    	fi
    ***: Could not find platform dependent libraries <exec_prefix>
    ***: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes    -Werror=declaration-after-statement   -I. -IInclude -I./Include    -DPy_BUILD_CORE -o [Python/frozen.o](https://github.com/python/cpython/blob/main/Python/frozen.o) [Python/frozen.c](https://github.com/python/cpython/blob/main/Python/frozen.c)
    rm -f libpython3.5m.a
    ar rc libpython3.5m.a [Modules/getbuildinfo.o](https://github.com/python/cpython/blob/main/Modules/getbuildinfo.o)
    

    @ned-deily ned-deily added build The build process and cross-build and removed topic-installation labels Aug 9, 2016
    @zhangyangyu
    Copy link
    Member

    This is the design of getpath.c, when no exec/exec_prefix can be found it will emit warning and use the default one. Fortunately it gives use the ability to suppress the warnings. :) Simply set Py_FrozenFlag in _freeze_importlib.c can solve this problem. Upload a trivial patch to set the flag.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Aug 20, 2016

    New changeset 97b996d81c62 by Ned Deily in branch '3.5':
    Issue bpo-27713: Surpress spurious build warnings when updating importlib's
    https://hg.python.org/cpython/rev/97b996d81c62

    New changeset 751ca458d669 by Ned Deily in branch 'default':
    Issue bpo-27713: merge from 3.5
    https://hg.python.org/cpython/rev/751ca458d669

    @ned-deily
    Copy link
    Member

    That was easy; thanks, Xiang Zhang! Pushed for release in 3.5.3 and 3.6.0.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants