phper-framework / phper

The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
Other
287 stars 16 forks source link

GCC 12 support #57

Closed remicollet closed 1 year ago

remicollet commented 1 year ago

See https://github.com/apache/skywalking/issues/9756

     --> /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`
jmjoy commented 1 year ago

@remicollet You can try this pr #59 to see whether the issue has been solved or not.