[Buildroot] [PATCH 1/1] package/fluent-bit: fix build without C++

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Feb 21 08:37:19 UTC 2023


On Tue, 21 Feb 2023 00:19:02 +0100
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Commit dedbc69022ba0beaf259463ac8082c86776f7e88 was incomplete resuling
> in the following build failure since the addition of the package in
> commit 6a0f7c39bcb48fc13aa2ce3fc4996baf1be66483:
> 
> -- Check for working CXX compiler: /usr/bin/c++ - broken
> CMake Error at /home/autobuild/autobuild/instance-15/output-1/per-package/fluent-bit/host/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
>   The C++ compiler
> 
>     "/usr/bin/c++"
> 
>   is not able to compile a simple test program.
> 
>   It fails with the following output:
> 
>     Change Dir: /home/autobuild/autobuild/instance-15/output-1/build/fluent-bit-2.0.9/CMakeFiles/CMakeTmp
> 
>     Run Build Command(s):/home/autobuild/make/make -f Makefile cmTC_bfb29/fast && make[1]: Entering directory '/home/autobuild/autobuild/instance-15/output-1/build/fluent-bit-2.0.9/CMakeFiles/CMakeTmp'
>     /home/autobuild/make/make  -f CMakeFiles/cmTC_bfb29.dir/build.make CMakeFiles/cmTC_bfb29.dir/build
>     make[2]: Entering directory '/home/autobuild/autobuild/instance-15/output-1/build/fluent-bit-2.0.9/CMakeFiles/CMakeTmp'
>     Building CXX object CMakeFiles/cmTC_bfb29.dir/testCXXCompiler.cxx.o
>     /usr/bin/c++ --sysroot=/home/autobuild/autobuild/instance-15/output-1/per-package/fluent-bit/host/xtensa-buildroot-linux-uclibc/sysroot   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mlongcalls -mauto-litpools -O2 -g0  -fcommon -U_FILE_OFFSET_BITS  -g -fPIE -o CMakeFiles/cmTC_bfb29.dir/testCXXCompiler.cxx.o -c /home/autobuild/autobuild/instance-15/output-1/build/fluent-bit-2.0.9/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
>     c++: error: unrecognized command-line option '-mlongcalls'
>     c++: error: unrecognized command-line option '-mauto-litpools'
>     make[2]: *** [CMakeFiles/cmTC_bfb29.dir/build.make:78: CMakeFiles/cmTC_bfb29.dir/testCXXCompiler.cxx.o] Error 1
>     make[2]: Leaving directory '/home/autobuild/autobuild/instance-15/output-1/build/fluent-bit-2.0.9/CMakeFiles/CMakeTmp'
>     make[1]: *** [Makefile:127: cmTC_bfb29/fast] Error 2
>     make[1]: Leaving directory '/home/autobuild/autobuild/instance-15/output-1/build/fluent-bit-2.0.9/CMakeFiles/CMakeTmp'
> 
>   CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
>   lib/msgpack-c/CMakeLists.txt:2 (project)
> 
> While at it, add missing comment about C++ dependency for wasm
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/4b0f90d79d6dbbf976acf1da839260b0ee94ddda
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  .../fluent-bit/0003-fix-build-without-C.patch | 131 ++++++++++++++++++
>  package/fluent-bit/Config.in                  |   4 +
>  2 files changed, 135 insertions(+)
>  create mode 100644 package/fluent-bit/0003-fix-build-without-C.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list