Git Product home page Git Product logo

Comments (6)

cmb69 avatar cmb69 commented on May 28, 2024

Are you using the latest dependencies (check with phpsdk_deps -c)?

from php-sdk-binary-tools.

dwgebler avatar dwgebler commented on May 28, 2024

@cmb69

Configuration: master-vs16-x64-staging

No updates are available.

from php-sdk-binary-tools.

dwgebler avatar dwgebler commented on May 28, 2024

This is fixable by exporting environment variable set LDFLAGS="/d2:-AllowCompatibleILVersions" before running configure, it does not appear to be an issue with this repo, rather the version of the iconv lib supplied by https://windows.php.net/downloads/php-sdk/deps/vs16/x64/

from php-sdk-binary-tools.

cmb69 avatar cmb69 commented on May 28, 2024

I usually build ext/sqlite as shared extension, so I didn't notice this issue so far. But indeed, when building ext/sqlite as static extension, I'm hitting C1047 as well (VS 16.8.4, libiconv-1.16-3, sqlite3-3.33.0). That error has already been very annoying several times in the past, since it required to rebuilt several packages to be able to do the snapshot builds, and those rebuilt packages didn't work with older VS versions, what caused problems for others. So constantly rebuilding libiconv doesn't appear to be a good solution.

/d2:-AllowCompatibleILVersions

Thank you! I wasn't aware of this undocumented linker option. It might make sense to add it by default for the Windows builds to mitigate this issue. For now, I have at least documented it.

from php-sdk-binary-tools.

cmb69 avatar cmb69 commented on May 28, 2024

/cc @Jan-E, @weltling, may be interested in this info as well. According to https://developercommunity.visualstudio.com/content/problem/316532/c1047-after-update-from-157-to-158.html, it is safe to use it.

from php-sdk-binary-tools.

Jan-E avatar Jan-E commented on May 28, 2024

Thanks. I never ran into C1047 AFAIK, but I have added set LDFLAGS="/d2:-AllowCompatibleILVersions" to my VS16 build environment.

Edit O, wait. This was the error we ran into when PHP 7.4 was compiled with VS16 in the beginning.

from php-sdk-binary-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.