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

For WINDOWS build! #88

Merged
merged 15 commits into from
Sep 21, 2023
Merged

For WINDOWS build! #88

merged 15 commits into from
Sep 21, 2023

Conversation

wantedxnn
Copy link
Contributor

2023-09-20_13-23-06

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 20, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@wantedxnn
Copy link
Contributor Author

wantedxnn commented Sep 20, 2023

Now extension can be compiled and loaded dynamic(shared) or static (tests 005.phpt and 006.phpt skiped because windows use backslash \ also the rest tests XFAIL-ed because error is writed in error_log)
2023-09-20_16-02-18

@brettmc
Copy link
Collaborator

brettmc commented Sep 20, 2023

Thanks for your contribution, @wantedxnn

tests 005.phpt and 006.phpt skiped because windows use backslash \

Are you referring to the /'s in the EXPECTF output? If that's the only problem, I think you could swap /'s for %c according to https://qa.php.net/phpt_details.php#expectf_section

Otherwise, I'd be happy to accept this as-is, although I'd like to see windows added to the build matrix in the future.

@wantedxnn
Copy link
Contributor Author

wantedxnn commented Sep 20, 2023

Thanks for your contribution, @wantedxnn

tests 005.phpt and 006.phpt skiped because windows use backslash \

Are you referring to the /'s in the EXPECTF output? If that's the only problem, I think you could swap /'s for %c according to https://qa.php.net/phpt_details.php#expectf_section

Otherwise, I'd be happy to accept this as-is, although I'd like to see windows added to the build matrix in the future.

Thanks for your contribution, @wantedxnn

tests 005.phpt and 006.phpt skiped because windows use backslash \

Are you referring to the /'s in the EXPECTF output? If that's the only problem, I think you could swap /'s for %c according to https://qa.php.net/phpt_details.php#expectf_section

Otherwise, I'd be happy to accept this as-is, although I'd like to see windows added to the build matrix in the future.

Fixed! used %e instead %c this will use accordingly OS the corerct separator.

@brettmc And yes...only that was the problem.

@brettmc brettmc merged commit 38302e1 into open-telemetry:main Sep 21, 2023
7 checks passed
@brettmc
Copy link
Collaborator

brettmc commented Sep 27, 2023

@wantedxnn are you able to provide some basic instructions/docs on how to build on Windows?

@wantedxnn
Copy link
Contributor Author

wantedxnn commented Oct 2, 2023

@brettmc Sorry for late response ...
Yes of course!
Need more details than this?

https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2

Maby can add also github action to build extension for windows
https://github.com/cmb69/setup-php-sdk

@brettmc
Copy link
Collaborator

brettmc commented Oct 2, 2023

Need more details than this?
https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2

If these instructions work for you, then I'm happy to just link to them. Specifically, was it this section? https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2#building_pecl_extensions_with_phpize

Maby can add also github action to build extension for windows

I'd love to have this, otherwise we will accidentally break windows build in the future. I will check it out.

@wantedxnn
Copy link
Contributor Author

@brettmc I don't used phpize .... I have a very custom php-sdk environment because i compile almost 200 extensions (ported from Linux to windows or upgraded from php5 to php8, all deps are updated to last version also instead compiling in vs16(aka Visual studio 2019) i compile everything in vs17( aka Visual studio 2022) I have splinted number of extension per build ( 1st build it's only php source as is building snapshot and pgo optimized with avx2 enabled 2nd build all extensions depending by other extension and 3rd build for all non dependending extensions)

But i will try in this evening to build/compile with phpize (i will need to use my artifact development pack from my top described build )

@wantedxnn
Copy link
Contributor Author

wantedxnn commented Oct 3, 2023

@brettmc I see already did PR for windows build action :)
Yes indeed can folow the instruction from wiki.php.net using phpize will compile the extension flawless :)

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

Successfully merging this pull request may close these issues.

2 participants