-
Notifications
You must be signed in to change notification settings - Fork 553
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
Build Failure - Configure script incorrectly parses gcc's output when it has quotes #20606
Comments
|
@Tux, can you take a look at this ticket? Thanks. |
|
Ooooooh, slippery slope … |
There is already no support for quoted combinations in the Configure script. If gcc -v produced...
...then the ccsym helper script that Configure makes would create the result I'm not sure that quotes are useful in -D gcc definitions. Can you have a space separated #define identifier? In any case, as quotes have no valid effect now and never did (Configure just treats the output of |
|
I just built perl-5.37.8 on DSM-7.1 and I also needed this PR I'd say to merge and see what the other smokers find of it. |
|
@VA1DER please turn this into an official Pull Request, and I will apply it to see what happens |
This patch was submitted in GH issue #20606. When gcc output contains quoted elements we fail to handle it properly. This tweaks the sed command to do so.
|
@VA1DER please review #20750 and check if your email address is correct. @khwilliamson I have pushed it myself. |
|
My only concern is this, from the header for the Configure script this patches: |
|
On 1/30/23 10:39, Kurt Fitzner wrote:
My only concern is this, from the header for the Configure script this
patches:
Note: this Configure script was generated automatically by the tool
called "metaconfig". Rather than working with this copy of Configure,
you should use metaconfig. Perl uses a modified version of this
tool, and this, together with the metaconfig units, are available
in the git repository:
We (likely me) will handle this.
… |
|
Now handled with :) |
This patch was submitted in GH issue Perl#20606. When gcc output contains quoted elements we fail to handle it properly. This tweaks the sed command to do so. Fixes Perl#20606.
This patch was submitted in GH issue Perl#20606. When gcc output contains quoted elements we fail to handle it properly. This tweaks the sed command to do so. Fixes Perl#20606.
This patch was submitted in GH issue Perl#20606. When gcc output contains quoted elements we fail to handle it properly. This tweaks the sed command to do so. Fixes Perl#20606.
This patch was submitted in GH issue Perl#20606. When gcc output contains quoted elements we fail to handle it properly. This tweaks the sed command to do so. Fixes Perl#20606. Backport of 85d2c8e
Description
The perl source's
Configurescript fails when the output ofgcc -vcontains entries that are enclosed in quotation marks.When Configure is run, prior to building perl, one of the checks it performs is determining pre-defined compiler flags. One way it does this is to run
gcc -vand parse its output. However it is possible when gcc is built to have passed it configuration options in such a way as its gcc will produce output that has single quotes. For example:Note the single quotes starting at
CXXFLAGS_FOR_TARGETand ending at-D_GLIBCXX_INCLUDE_NEXT_C_HEADERSThis causes Configure to pass on a single quote into config.sh, which creates mis-matched quotes with predictable results. For example the above output from
gcc -vmakes the following line in the resultingconfig.shccsymbols='_GLIBCXX_INCLUDE_NEXT_C_HEADERS'=1'The resulting mismatched quotes cause problems with everything that tries to invoke
config.shAffected systems include OpenWrt and any other device using ENTWARE as its package system.
Steps to Reproduce
On an affected system:
Expected behavior
Should configure properly
Perl configuration
N/A
Patch
The following patch (made against Configure itself) will strip quotes from the output of "gcc -v" before further processing:
The text was updated successfully, but these errors were encountered: