Skip to content

Conversation

@grooverdan
Copy link
Contributor

To prevent build failures like:

make: *** No rule to make target '/code/master/ext/json/php_json_scanner_defs.h', needed by 'ext/json/json_scanner.lo'. Stop.

Example where this occurred is the 8.1 and master branches here: https://buildbot.mariadb.org/#/builders/237/builds/4280

@grooverdan
Copy link
Contributor Author

zend can fail in the same way so added that as a commit.

Failure example: https://buildbot.mariadb.org/#/builders/237/builds/4281/steps/6/logs/stdio

Copy link
Member

@arnaud-lb arnaud-lb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR!

PHP 8.0 is not supported anymore, could you change the base to 8.1?

It looks like that we could also add a dependency from json_scanner.c to json_parser.tab.h, but otherwise this looks good to me.

@cmb69
Copy link
Member

cmb69 commented Dec 2, 2022

I wonder why that apparently doesn't fail elsewhere. What is special about this build system?

@grooverdan grooverdan changed the base branch from PHP-8.0 to PHP-8.1 December 2, 2022 22:20
@grooverdan
Copy link
Contributor Author

I wonder why that apparently doesn't fail elsewhere. What is special about this build system?

possibly just a high -j parallel count.

To prevent build failures like:

make: *** No rule to make target '/code/master/ext/json/php_json_scanner_defs.h', needed by 'ext/json/json_scanner.lo'.  Stop.
@grooverdan
Copy link
Contributor Author

I wonder why that apparently doesn't fail elsewhere. What is special about this build system?

possibly just a high -j parallel count.

Its also attempting an out of source build. Which given the targets of this PR are generating files and putting them in the $srcdir could explain part of the difficulty.

@grooverdan grooverdan force-pushed the json_frag branch 2 times, most recently from 2169caf to 25b6e71 Compare December 3, 2022 01:07
@cmb69
Copy link
Member

cmb69 commented Dec 5, 2022

AFAIK, the PHP build system never lists headers as dependencies, so I'm not sure about this.

Anyhow, if we do this, then we should also add the zend_language_scanner.c dependency for Windows:

Zend\zend_language_scanner.c: Zend\zend_language_scanner.l

like zend_ini_parser.h, list zend_ini_scanner_defs.h and
zend_language_scanner_defs.h.

Add all these files to generated_files so they don't get missed.
Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please do the zend changes in another PR as it is not related to this.

@bukka
Copy link
Member

bukka commented Feb 17, 2023

Merged separately all commits as it makes more sense:

2fde3af
e83cda0
2b3fa5e

And also added additional fix for the mentioned issue:

4f731fa

@bukka bukka closed this Feb 17, 2023
@grooverdan grooverdan deleted the json_frag branch February 18, 2023 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants