Skip to contentSkip to conversation

package/libcamera: raspberrypi depends on arm or aarch64

PATCH Applied Fabrice Fontaine 3 participants 3 messages Oct 15, 2021 – Oct 16, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libcamera: raspberrypi depends on arm or aarch64

Add a dependency on arm or aarch64 for BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI to avoid the following build failure with one powerpc64 toolchain since commit c09f126f570355b8ec134724b453300a4811339c
as suggested by upstream in
https://lists.libcamera.org/pipermail/libcamera-devel/2021-October/025796.html:

In file included from ../include/libcamera/base/log.h:10,
from ../src/ipa/raspberrypi/raspberrypi.cpp:18:
../src/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)'
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/powerpc64-buildroot-linux-gnu/include/c++/9.3.0/chrono:502:32: error: '(1.0e+0l / 3.0e+1)' is not a constant expression
502 | return __cd(__cd(__d).count() / __s);
../src/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)'
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/powerpc64-buildroot-linux-gnu/include/c++/9.3.0/chrono:502:32: error: '(1.0e+0l / 6.0e+1)' is not a constant expression

Fixes:
- http://autobuild.buildroot.org/results/49caebe7ef7e3d63de49e78d5d6839dd0aedf10c

---
 package/libcamera/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/libcamera/Config.in +1 -0
index 92c17df849..c510e34924 100644
@@ -40,6 +40,7 @@ config BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3
 
 config BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI
 	bool "raspberrypi pipeline"
+	depends on BR2_arm || BR2_aarch64
 	depends on BR2_USE_WCHAR # boost (already enforced for gnutls)
 	select BR2_PACKAGE_BOOST
 	select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Quoting Fabrice Fontaine (2021-10-15 19:31:13)

Quoted 28 lines

Add a dependency on arm or aarch64 for BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI to avoid the following build failure with one powerpc64 toolchain since commit c09f126f570355b8ec134724b453300a4811339c
as suggested by upstream in
https://lists.libcamera.org/pipermail/libcamera-devel/2021-October/025796.html:

In file included from ../include/libcamera/base/log.h:10,
from ../src/ipa/raspberrypi/raspberrypi.cpp:18:
../src/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)'
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/powerpc64-buildroot-linux-gnu/include/c++/9.3.0/chrono:502:32: error: '(1.0e+0l / 3.0e+1)' is not a constant expression
502 | return __cd(__cd(__d).count() / __s);
../src/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)'
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/powerpc64-buildroot-linux-gnu/include/c++/9.3.0/chrono:502:32: error: '(1.0e+0l / 6.0e+1)' is not a constant expression

Fixes:
- http://autobuild.buildroot.org/results/49caebe7ef7e3d63de49e78d5d6839dd0aedf10c

---
 package/libcamera/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/libcamera/Config.in +0 -0
index 92c17df849..c510e34924 100644

package/libcamera/Config.in config BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3 · line 43

Quoted 4 lines
package/libcamera/Config.in +1 -0
@@ -40,6 +40,7 @@ config BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3
 
 config BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI
        bool "raspberrypi pipeline"
+       depends on BR2_arm || BR2_aarch64

Yes, I think filtering the pipeline handlers is reasonable in this way.

I'd go further and filter the IPU3 on only x86 for instance, and the RKISP on (arm||aarch64).

But that could be separate patches too.

Quoted 6 lines
package/libcamera/Config.in +0 -0
        depends on BR2_USE_WCHAR # boost (already enforced for gnutls)
        select BR2_PACKAGE_BOOST
        select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
Signature · 1 line
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Fabrice Fontaine

Fabrice, All,

On 2021-10-15 20:31 +0200, Fabrice Fontaine spake thusly:

Quoted 15 lines

Add a dependency on arm or aarch64 for BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI to avoid the following build failure with one powerpc64 toolchain since commit c09f126f570355b8ec134724b453300a4811339c
as suggested by upstream in
https://lists.libcamera.org/pipermail/libcamera-devel/2021-October/025796.html:

In file included from ../include/libcamera/base/log.h:10,
from ../src/ipa/raspberrypi/raspberrypi.cpp:18:
../src/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)'
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/powerpc64-buildroot-linux-gnu/include/c++/9.3.0/chrono:502:32: error: '(1.0e+0l / 3.0e+1)' is not a constant expression
502 | return __cd(__cd(__d).count() / __s);
../src/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)'
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/powerpc64-buildroot-linux-gnu/include/c++/9.3.0/chrono:502:32: error: '(1.0e+0l / 6.0e+1)' is not a constant expression

Quoted 4 lines

Fixes:
- http://autobuild.buildroot.org/results/49caebe7ef7e3d63de49e78d5d6839dd0aedf10c

Applied to master, after adding simialr depepndencies to IPU3 and RKISP1, as suggested by Kieran. Thanks.

Regards,
Yann E. MORIN.

Quoted 23 lines
---
 package/libcamera/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/libcamera/Config.in +1 -0
index 92c17df849..c510e34924 100644
@@ -40,6 +40,7 @@ config BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3
 
 config BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI
 	bool "raspberrypi pipeline"
+	depends on BR2_arm || BR2_aarch64
 	depends on BR2_USE_WCHAR # boost (already enforced for gnutls)
 	select BR2_PACKAGE_BOOST
 	select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot