-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[python3] Build error #33068
Comments
Duplicate of #29447 |
I didn't have this problem when building Python 3.10, only 3.11. At first it required autoconf. After I installed autoconf it said there was a macro not defined. After I installed automake and libtool, it showed the error as above.
|
@FrankXie05 this does not look like a duplicate of #29447. Please reopen the ticket. @byxrolland please upload more logs. |
@byxrolland Could you please run command |
Where can I find more logs? |
It is already installed.
|
|
In
The following messages occurred frequently in several
Hope these could be helpful. |
Would you kindly upload |
Here you are: |
Ok, here are some hints:
You use |
But the linuxbrew has Also, could you tell how to set |
Also, I noticed other problems: The linuxbrew has gcc-13 installed but vcpkg only detected the system gcc. Also, there is an error that appears frequently in config-x64-linux-rel-config.log, namely
Is that going to be a problem? |
How do you invoke gcc that is installed from linuxbrew? I don't have any experience with linuxbrew but I guess there's some kind of environment activation like in SCL or venv (UPD: looks like that's true https://docs.brew.sh/Homebrew-on-Linux). In that case you need to run vcpkg from the same environment.
The problem is that the path to the library is not in your
I'd say this is python/cpython#105062, not really critical to build process. |
It is in LINE 201 of |
This code https://github.com/microsoft/vcpkg/blob/master/scripts/bootstrap.sh#L201 is used only if you build vcpkg tool from source and does not affect building of packages. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
I'm waiting for g++-13 support in the script. |
The support is already there: Set |
Could you tell me how to set it? |
OK. I set |
I think you are mixing up things.
|
I totally agree. @byxrolland, it looks the problem was solved now? |
It works for me know but I wouldn't consider it as solved as you changed the behavior of vcpkg and don't regard that as your problem now. |
@byxrolland, good to know it doesn't block you now。 For autoconf automake failures, we have another issue #33080 to track. For your suggestions ' I really would like vcpkg to auto-detect the latest C and C++ compiler available on my machine', I would say it's not a python3 issue, AFAIK vcpkg assumes that a useable compiler exists in your system https://github.com/microsoft/vcpkg/blob/master/scripts/detect_compiler/CMakeLists.txt, which from CMake CMAKE_CXX_COMPILER and CMAKE_C_COMPILER(linux.cmake), that means vcpkg doesn't auto detect or change enviroment variable about compiler, but rely on these values from build system or user manually passed. Anyway, in my opinion, it's out of a scope for a specific port issue, but could be improved in the long term, it would be great if you could open a discussion issue with details suggestions. |
Looks like I have similar problem, and don't know how to solve it...
ATTN: the same build runs OK on Ubuntu 18/WSL (under the same Windows 11) Trying to build -- Fixing pkgconfig file: /home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/debug/lib/pkgconfig/python-3.10.pc
CMake Error at /home/asclearuc/development/engine/apLib/cmake/ports/python3/portfile.cmake:299 (message):
There should be no modules with "_failed" suffix:
/home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/debug/lib/python3.10/lib-dynload/_crypt.cpython-310d-x86_64-linux-gnu_failed.so
/home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/debug/lib/python3.10/lib-dynload/nis.cpython-310d-x86_64-linux-gnu_failed.so
/home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/lib/python3.10/lib-dynload/_crypt.cpython-310-x86_64-linux-gnu_failed.so
/home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/lib/python3.10/lib-dynload/nis.cpython-310-x86_64-linux-gnu_failed.so
Call Stack (most recent call first):
scripts/ports.cmake:170 (include)
error: building python3:x64-linux-clang9-aparavi failed with: BUILD_FAILED Investigating a little bit log files:
On Ubuntu 18 (please notice presence of vcpkg/buildtrees/python3$ ldd ./x64-linux-clang9-aparavi-dbg/build/lib.linux-x86_64-3.10-pydebug/_crypt.cpython-310d-x86_64-linux-gnu.so
linux-vdso.so.1 (0x00007ffdb9df5000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f0b2390a000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0b236eb000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0b232fa000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0b23b42000) On Ubuntu 20 ( vcpkg/buildtrees/python3$ ldd ./x64-linux-clang9-aparavi-rel/build/lib.linux-x86_64-3.10/_crypt.cpython-310-x86_64-linux-gnu_failed.so
linux-vdso.so.1 (0x00007ffdcf273000)
libpthread.so.0 => /usr/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f660b4c8000)
libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007f660b2d6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f660b4f1000)
on Ubuntu 20:
and corresponding line on Ubuntu 18 (
So, for me - it looks like configuration is generally the same. Any advice? PS. Different scenarios were tried for U20, like setting Happy Winter Holidays! |
If you don't need |
Package: python3:x64-linux -> 3.11.4
Host Environment
vcpkg-scripts version: 247662e 2023-08-08 (12 hours ago)
To Reproduce
vcpkg install boost[mpi]
Failure logs
Additional context
The text was updated successfully, but these errors were encountered: