FTBFS on ppc64el: array subscript is partly outside array bounds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcamera (Debian) |
Fix Released
|
Unknown
|
|||
libcamera (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
ppc64el build is failing[1] on jammy:
FAILED: src/libcamera/
c++ -Isrc/libcamera
In file included from ../src/
../src/
../include/
58 | Semaphore *semaphore() const { return semaphore_; }
| ^~~~~~~~~~
../src/
272 | Message msg(Message:
| ^~~
cc1plus: all warnings being treated as errors
I filed an upstream bug[2] about it too.
1. https:/
2. https:/
Changed in libcamera (Ubuntu): | |
status: | New → Confirmed |
Changed in libcamera (Debian): | |
status: | Unknown → Fix Released |
Changed in libcamera (Ubuntu): | |
status: | Fix Committed → Fix Released |
It still fails on ppc64el after fixing this issue:
ipa/raspberrypi /raspberrypi. cpp raspberrypi/ ipa_rpi. so.p/raspberryp i.cpp.o raspberrypi/ ipa_rpi. so.p -Isrc/ipa/ raspberrypi -I../src/ ipa/raspberrypi -Iinclude -I../include -Isrc/ipa -I../src/ipa -I../src/ ipa/raspberrypi /controller -Iinclude/ libcamera/ ipa -Iinclude/libcamera -I/usr/include -fdiagnostics- color=always -D_FILE_ OFFSET_ BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Werror -std=c++17 -O0 -Wshadow -include config.h -g -O3 '-ffile- prefix- map=/<< PKGBUILDDIR> >=.' -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack- protector- strong -Wformat -Werror= format- security -Wno-error -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_ALL_NO_LIB -DLIBCAMERA_ BASE_PRIVATE -MD -MQ src/ipa/ raspberrypi/ ipa_rpi. so.p/raspberryp i.cpp.o -MF src/ipa/ raspberrypi/ ipa_rpi. so.p/raspberryp i.cpp.o. d -o src/ipa/ raspberrypi/ ipa_rpi. so.p/raspberryp i.cpp.o -c ../src/ ipa/raspberrypi /raspberrypi. cpp c++/12/ chrono: 39,
from ../include/ libcamera/ base/log. h:10,
from ../src/ ipa/raspberrypi /raspberrypi. cpp:18: ipa/raspberrypi /raspberrypi. cpp:64: 53: in ‘constexpr’ expansion of ‘std::chrono: :operator/ <long double, std::ratio<1>, double> (std::literals: :chrono_ literals: :operator" "s(1.0e+ 0l), 3.0e+1)’ c++/12/ bits/chrono. h:694:39: error: ‘(1.0e+0l / 3.0e+1)’ is not a constant expression cd(__d) .count( ) / __s); ~~~~~~~ ~~~~^~~ ~~ ipa/raspberrypi /raspberrypi. cpp:73: 56: in ‘constexpr’ expansion of ‘std::chrono: :operator/ <long double, std::ratio<1>, double> (std::literals: :chrono_ literals: :operator" "s(1.0e+ 0l), 6.0e+1)’ c++/12/ bits/chrono. h:694:39: error: ‘(1.0e+0l / 6.0e+1)’ is not a constant expression
FAILED: src/ipa/
c++ -Isrc/ipa/
In file included from /usr/include/
../src/
/usr/include/
694 | return __cd(__
| ~~~~~~~
../src/
/usr/include/