Compile error in CEF 120

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Compile error in CEF 120

Postby pdebella » Thu Mar 21, 2024 10:19 am

Hello... I am trying to build CEF 120 and I am getting the following compile error. The file below that is failing has not changed since CEF 119 and that built with no issues. The only difference is that I had to bump llvm/clang from 16.0.6 to 18.1.1 for CEF 120 in order to get thing building (libc++ build was failing). I am also using GCC toolchain 7.5. Has anyone come across this?


../../third_party/webrtc/pc/legacy_stats_collector.cc:191:54: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing-const-reference]
191 | {StatsReport::kStatsValueNameTotalAudioEnergy, info.total_output_energy},
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/legacy_stats_collector.cc:193:8: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing-const-reference]
193 | info.total_output_duration}};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/legacy_stats_collector.cc:247:54: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing-const-reference]
247 | {StatsReport::kStatsValueNameTotalAudioEnergy, info.total_input_energy},
| ^~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/legacy_stats_collector.cc:249:8: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing-const-reference]
249 | info.total_input_duration}};
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/legacy_stats_collector.cc:343:51: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing-const-reference]
343 | {StatsReport::kStatsValueNameFramesDecoded, info.frames_decoded},
| ^~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/legacy_stats_collector.cc:387:52: error: type 'double' cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing-const-reference]
387 | {StatsReport::kStatsValueNameFrameRateInput, round(info.framerate_input)},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/legacy_stats_collector.cc:390:51: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing-const-reference]
390 | {StatsReport::kStatsValueNameNacksReceived, info.nacks_received},
| ^~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/legacy_stats_collector.cc:394:51: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing-const-reference]
394 | {StatsReport::kStatsValueNameFramesEncoded, info.frames_encoded},
| ^~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/legacy_stats_collector.cc:395:52: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing-const-reference]
395 | {StatsReport::kStatsValueNameHugeFramesSent, info.huge_frames_sent},
| ^~~~~~~~~~~~~~~~~~~~~
9 errors generated.
[20912/59182] CXX obj/third_party/webrtc/pc/peer_connection_factory/peer_connection_factory.o
ninja: build stopped: subcommand failed.
pdebella
Techie
 
Posts: 17
Joined: Thu May 20, 2021 9:46 am

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 207 guests