Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Thomas Devoogdt <thomas@devoogdt.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/fluent-bit: fix build without C++
Date: Tue, 21 Feb 2023 09:37:19 +0100	[thread overview]
Message-ID: <20230221093719.5215ef5d@windsurf> (raw)
In-Reply-To: <20230220231902.340496-1-fontaine.fabrice@gmail.com>

On Tue, 21 Feb 2023 00:19:02 +0100
Fabrice Fontaine <fontaine.fabrice@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@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
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-02-21  8:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-20 23:19 [Buildroot] [PATCH 1/1] package/fluent-bit: fix build without C++ Fabrice Fontaine
2023-02-21  8:37 ` Thomas Petazzoni via buildroot [this message]
2023-02-21 11:34   ` Fabrice Fontaine
2023-02-21 13:50     ` Thomas Petazzoni via buildroot
  -- strict thread matches above, loose matches on Subject: below --
2023-07-27 21:20 [Buildroot] [PATCH 1/1] package/fluent-bit: fix build without c++ Bernd Kuhls
2023-07-28  5:01 ` Thomas Devoogdt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230221093719.5215ef5d@windsurf \
    --to=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=thomas@devoogdt.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox