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

Invalid or corrupted file when trying to access prce2 dll file #131

Closed
vjotchere opened this issue Jul 1, 2022 · 1 comment
Closed

Invalid or corrupted file when trying to access prce2 dll file #131

vjotchere opened this issue Jul 1, 2022 · 1 comment

Comments

@vjotchere
Copy link

vjotchere commented Jul 1, 2022

I'm encountering this issue trying to install wxwidgets using vcpkg. I've already posted an issue on the vcpkg git but I thought it would be worth a shot getting this issue resolved posting here as well.

Error:
C:\libs\cpp\vcpkg\installed\x64-windows\debug\bin\pcre2-16d.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x348

Environment:

  • Windows 10 x64
  • pcre2: 10.40
  • vcpkg: 2022-06-17-9268e366206712e38102b28dbd1617697a99ff2e

Resolve Attempts:
I'm relatively new to using vcpkg so I've just attempted to uninstall and re-install using the following command
vcpkg remove pcre2 --recurse
then
vcpkg install pcre2 --no-binarycaching

I have no issues with the pcre2 installation according to the cli output

Installing 1/2 pcre2:x64-windows...
Building pcre2[core]:x64-windows...
-- Using cached PCRE2Project-pcre2-pcre2-10.40.tar.gz.
-- Cleaning sources at C:/libs/cpp/vcpkg/buildtrees/pcre2/src/cre2-10.40-42fc341438.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/libs/cpp/vcpkg/downloads/PCRE2Project-pcre2-pcre2-10.40.tar.gz
-- Applying patch pcre2-10.35_fix-uwp.patch
-- Applying patch no-static-suffix.patch
-- Using source at C:/libs/cpp/vcpkg/buildtrees/pcre2/src/cre2-10.40-42fc341438.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/lib/pkgconfig/libpcre2-16.pc
-- Fixing pkgconfig file: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/lib/pkgconfig/libpcre2-32.pc
-- Fixing pkgconfig file: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/lib/pkgconfig/libpcre2-8.pc
-- Fixing pkgconfig file: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/lib/pkgconfig/libpcre2-posix.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at C:/libs/cpp/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/debug/lib/pkgconfig/libpcre2-16.pc
-- Fixing pkgconfig file: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/debug/lib/pkgconfig/libpcre2-32.pc
-- Fixing pkgconfig file: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/debug/lib/pkgconfig/libpcre2-8.pc
-- Fixing pkgconfig file: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/debug/lib/pkgconfig/libpcre2-posix.pc
-- Installing: C:/libs/cpp/vcpkg/packages/pcre2_x64-windows/share/pcre2/copyright
-- Performing post-build validation
-- Performing post-build validation done
Elapsed time to handle pcre2:x64-windows: 1.232 min

But when trying to install the target port I get the error message above. Any pointers in the right direction to help get this resolved would be much appreciated.

@PhilipHazel
Copy link
Collaborator

After more than a month, I don't think you are going to get any help here, and I doubt very much that this is in fact a PCRE2 issue, so I'm going to close it.

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

2 participants