apache / skywalking

APM, Application Performance Monitoring System
https://skywalking.apache.org/
Apache License 2.0
23.72k stars 6.5k forks source link

[Bug] [PHP] GCC 12 support #9756

Closed remicollet closed 1 year ago

remicollet commented 1 year ago

Search before asking

Apache SkyWalking Component

CLI (apache/skywalking-cli)

What happened

     --> /builddir/build/BUILD/php-pecl-skywalking-agent-0.1.0/NTS/target/release/build/phper-sys-730bb30f47c07323/out/php_bindings.rs:10727:30
      |
3020  | pub type _Float64 = f64;
      | ------------------------ similarly named type alias `_Float64` defined here
...
10727 |     pub fn fmaximumf64x(__x: _Float64x, __y: _Float64x) -> _Float64x;
      |                              ^^^^^^^^^ help: a type alias with a similar name exists: `_Float64`

error[E0412]: cannot find type `_Float64x` in this scope
     --> /builddir/build/BUILD/php-pecl-skywalking-agent-0.1.0/NTS/target/release/build/phper-sys-730bb30f47c07323/out/php_bindings.rs:10727:46
      |
3020  | pub type _Float64 = f64;
      | ------------------------ similarly named type alias `_Float64` defined here
...
10727 |     pub fn fmaximumf64x(__x: _Float64x, __y: _Float64x) -> _Float64x;
      |                                              ^^^^^^^^^ help: a type alias with a similar name exists: `_Float64`

error[E0412]: cannot find type `_Float64x` in this scope
     --> /builddir/build/BUILD/php-pecl-skywalking-agent-0.1.0/NTS/target/release/build/phper-sys-730bb30f47c07323/out/php_bindings.rs:10727:60
      |
3020  | pub type _Float64 = f64;
      | ------------------------ similarly named type alias `_Float64` defined here
...
10727 |     pub fn fmaximumf64x(__x: _Float64x, __y: _Float64x) -> _Float64x;
      |                                                            ^^^^^^^^^ help: a type alias with a similar name exists: `_Float64`

error[E0412]: cannot find type `_Float64x` in this scope
     --> /builddir/build/BUILD/php-pecl-skywalking-agent-0.1.0/NTS/target/release/build/phper-sys-730bb30f47c07323/out/php_bindings.rs:10730:32
      |
3020  | pub type _Float64 = f64;
      | ------------------------ similarly named type alias `_Float64` defined here
...
10730 |     pub fn __fmaximumf64x(__x: _Float64x, __y: _Float64x) -> _Float64x;
      |                                ^^^^^^^^^ help: a type alias with a similar name exists: `_Float64`

What you expected to happen

Build OK with GCC 12 (Fedora 36+)

How to reproduce

Build on Fedora 36

Anything else

No response

Are you willing to submit PR?

Code of Conduct

wu-sheng commented 1 year ago

@heyanlong @jmjoy I think you need to update issue template to add PHP in. This issue is selected CLI(apache/skywalking-cli) which doesn't match.

wu-sheng commented 1 year ago

Meanwhile @remicollet, this seems an upstream issue? https://github.com/phper-framework/phper

You seems submitting to a wrong place.

remicollet commented 1 year ago

@wu-sheng there is no "PHP" component, see pr #9754

wu-sheng commented 1 year ago

@wu-sheng there is no "PHP" component, see pr #9754

Yes, noticed, thanks.

remicollet commented 1 year ago

So https://github.com/phper-framework/phper/issues/57