Build #2 for yoga-0.0.0.8

[all reports]

Package yoga-0.0.0.8
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2024-01-14 07:10:08.981594919 UTC
Compiler ghc-9.6.3
OS linux
Arch x86_64
Dependencies base-4.18.1.0, bindings-DSL-1.0.25, ieee754-0.8.0
Flags -examples

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Starting     bindings-DSL-1.0.25
Starting     ieee754-0.8.0
Building     ieee754-0.8.0
Building     bindings-DSL-1.0.25
Completed    bindings-DSL-1.0.25
Completed    ieee754-0.8.0
Starting     yoga-0.0.0.8
Building     yoga-0.0.0.8
Failed to install yoga-0.0.0.8
Build log ( /home/builder/.cabal/logs/ghc-9.6.3/yoga-0.0.0.8-4RffdNt0lvYIrep9AR2Fxo.log ):
cabal: Entering directory '/tmp/cabal-tmp-3192299/yoga-0.0.0.8'
Configuring yoga-0.0.0.8...
Preprocessing library for yoga-0.0.0.8..
Building library for yoga-0.0.0.8..
[1 of 3] Compiling Bindings.Yoga.Enums ( dist/build/Bindings/Yoga/Enums.hs, dist/build/Bindings/Yoga/Enums.o, dist/build/Bindings/Yoga/Enums.dyn_o )
[2 of 3] Compiling Bindings.Yoga    ( dist/build/Bindings/Yoga.hs, dist/build/Bindings/Yoga.o, dist/build/Bindings/Yoga.dyn_o )
[3 of 3] Compiling Yoga             ( lib/Yoga.hs, dist/build/Yoga.o, dist/build/Yoga.dyn_o )
In file included from yoga/yoga/style/Style.h:30,
                 from yoga/yoga/node/Node.h:24,
                 from yoga/yoga/debug/Log.h:14,

                 from yoga/yoga/YGConfig.cpp:10:0: error: 
yoga/yoga/style/CompactValue.h: In member function facebook::yoga::CompactValue::operator facebook::yoga::StyleLength() const:

yoga/yoga/style/CompactValue.h:100:34: error:
     error: bit_cast is not a member of std; did you mean bad_cast?
      100 |       return value::percent(std::bit_cast<float>(data));
          |                                  ^~~~~~~~
          |                                  bad_cast
    |
100 |       return value::percent(std::bit_cast<float>(data));
    |                                  ^

yoga/yoga/style/CompactValue.h:100:43: error:
     error: expected primary-expression before float
      100 |       return value::percent(std::bit_cast<float>(data));
          |                                           ^~~~~
    |
100 |       return value::percent(std::bit_cast<float>(data));
    |                                           ^

yoga/yoga/style/CompactValue.h:102:33: error:
     error: bit_cast is not a member of std; did you mean bad_cast?
      102 |       return value::points(std::bit_cast<float>(data));
          |                                 ^~~~~~~~
          |                                 bad_cast
    |
102 |       return value::points(std::bit_cast<float>(data));
    |                                 ^

yoga/yoga/style/CompactValue.h:102:42: error:
     error: expected primary-expression before float
      102 |       return value::points(std::bit_cast<float>(data));
          |                                          ^~~~~
    |
102 |       return value::points(std::bit_cast<float>(data));
    |                                          ^
yoga/yoga/style/CompactValue.h: In member function bool facebook::yoga::CompactValue::isUndefined() const:

yoga/yoga/style/CompactValue.h:109:55: error:
     error: bit_cast is not a member of std; did you mean bad_cast?
      109 |         repr_ != ZERO_BITS_PERCENT && std::isnan(std::bit_cast<float>(repr_)));
          |                                                       ^~~~~~~~
          |                                                       bad_cast
    |
109 |         repr_ != ZERO_BITS_PERCENT && std::isnan(std::bit_cast<float>(repr_)));
    |                                                       ^

yoga/yoga/style/CompactValue.h:109:64: error:
     error: expected primary-expression before float
      109 |         repr_ != ZERO_BITS_PERCENT && std::isnan(std::bit_cast<float>(repr_)));
          |                                                                ^~~~~
    |
109 |         repr_ != ZERO_BITS_PERCENT && std::isnan(std::bit_cast<float>(repr_)));
    |                                                                ^
yoga/yoga/style/CompactValue.h: In static member function static facebook::yoga::CompactValue facebook::yoga::CompactValue::of(float):

yoga/yoga/style/CompactValue.h:136:22: error:
     error: bit_cast is not a member of std; did you mean bad_cast?
      136 |     auto data = std::bit_cast<uint32_t>(value);
          |                      ^~~~~~~~
          |                      bad_cast
    |
136 |     auto data = std::bit_cast<uint32_t>(value);
    |                      ^

yoga/yoga/style/CompactValue.h:136:39: error:
     error: expected primary-expression before > token
      136 |     auto data = std::bit_cast<uint32_t>(value);
          |                                       ^
    |
136 |     auto data = std::bit_cast<uint32_t>(value);
    |                                       ^

yoga/yoga/style/CompactValue.h:139:17: error:
     error: could not convert {data} from <brace-enclosed initializer list> to facebook::yoga::CompactValue
      139 |     return {data};
          |                 ^
          |                 |
          |                 <brace-enclosed initializer list>
    |
139 |     return {data};
    |                 ^
`g++' failed in phase `C++ Compiler'. (Exit code: 1)
cabal: Leaving directory '/tmp/cabal-tmp-3192299/yoga-0.0.0.8'
Error: cabal: Some packages failed to install:
yoga-0.0.0.8-4RffdNt0lvYIrep9AR2Fxo failed during the building phase. The
exception was:
ExitFailure 1

Test log

No test log was submitted for this report.