Skip to contentSkip to conversation

package/swipl: fix build without C++ compiler

PATCH Superseded Peter Korsgaard 2 participants 3 messages Feb 5, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/swipl: fix build without C++ compiler

Fixes http://autobuild.buildroot.net/results/b24a96b999676990995a466686fe1eacf6cddfef

Some of the optional packages in swipl are written in C++, so CMake thinks a C++ compiler is needed even though we build with -DSWIPL_PACKAGES=OFF. Add -DCMAKE_CXX_COMPILER=true to satisfy this check even in setups without C++:

-- Check for working CXX compiler: /usr/bin/true -- Check for working CXX compiler: /usr/bin/true - works

---
 package/swipl/swipl.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/swipl/swipl.mk +2 -1
index ef9aedcd2d..e29b8d8f46 100644
@@ -36,7 +36,8 @@ SWIPL_CONF_OPTS = \
 	-DQSORT_R_GNU=1 \
 	-DSWIPL_NATIVE_FRIEND=$(HOST_SWIPL_SRCDIR) \
 	-DSWIPL_PACKAGES=OFF \
-	-DUSE_TCMALLOC=OFF
+	-DUSE_TCMALLOC=OFF \
+	-DCMAKE_CXX_COMPILER=true
 
 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 SWIPL_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 6 lines · On Wed, 5 Feb 2025 12:26:18 +0100 Peter Korsgaard <[email protected]> wrote:

Fixes http://autobuild.buildroot.net/results/b24a96b999676990995a466686fe1eacf6cddfef

Some of the optional packages in swipl are written in C++, so CMake thinks a C++ compiler is needed even though we build with -DSWIPL_PACKAGES=OFF. Add -DCMAKE_CXX_COMPILER=true to satisfy this check even in setups without C++:

Quoted 7 lines

-- Check for working CXX compiler: /usr/bin/true -- Check for working CXX compiler: /usr/bin/true - works

---
 package/swipl/swipl.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Thanks, but you need to specify since when this problem started occurring, so that whoever is going to evaluate this patch for backport to our LTS branch will know what to do :-)

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
Quoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Quoted 9 lines · On Wed, 5 Feb 2025 12:26:18 +0100 Peter Korsgaard <[email protected]> wrote:

Fixes http://autobuild.buildroot.net/results/b24a96b999676990995a466686fe1eacf6cddfef

Some of the optional packages in swipl are written in C++, so CMake thinks a C++ compiler is needed even though we build with -DSWIPL_PACKAGES=OFF. Add -DCMAKE_CXX_COMPILER=true to satisfy this check even in setups without C++:

-- Check for working CXX compiler: /usr/bin/true -- Check for working CXX compiler: /usr/bin/true - works

Quoted 8 lines
Quoted 4 lines

---
package/swipl/swipl.mk | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)

Thanks, but you need to specify since when this problem started occurring, so that whoever is going to evaluate this patch for backport to our LTS branch will know what to do :-)

Argh, will resend.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot