From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] open62541: disable link-time optimization
Date: Thu, 12 Sep 2024 14:11:57 +0200 [thread overview]
Message-ID: <20240912121157.2687810-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20240828083206.1976814-1-rhi@pengutronix.de>
Thanks, applied as 9e0e8ff94cdc3699c6b284fcd83b48f042431bb1.
Michael
[sent from post-receive hook]
On Thu, 12 Sep 2024 14:11:57 +0200, Roland Hieber <rhi@pengutronix.de> wrote:
> With gcc 13.2.1 arm-v7a-linux-gnueabihf, the LTO wrapper sometimes
> throws internal compiler errors when calling PTXdist without -j:
>
> [ 96%] Linking C shared library bin/libopen62541.so
> lto1: internal compiler error: in get_token, at opts-common.cc:2123
> 0x7f683dce6249 __libc_start_call_main
> ../sysdeps/nptl/libc_start_call_main.h:58
> 0x7f683dce6304 __libc_start_main_impl
> ../csu/libc-start.c:360
> Please submit a full bug report, with preprocessed source (by using -freport-bug).
> Please include the complete backtrace with any bug report.
> See <https://gcc.gnu.org/bugs/> for instructions.
> lto-wrapper: fatal error: /opt/OSELAS.Toolchain-2023.07.1/arm-v7a-linux-gnueabihf/gcc-13.2.1-clang-16.0.6-glibc-2.37-binutils-2.40-kernel-6.3.6-sanitized/bin/arm-v7a-linux-gnueabihf-gcc returned 1 exit status
> compilation terminated.
>
> Disable LTO (CMake calls it Interprocedural Optimization) for now.
>
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> Message-Id: <20240828083206.1976814-1-rhi@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/open62541.make b/rules/open62541.make
> index 1da04c7f9e69..59bdc9f49006 100644
> --- a/rules/open62541.make
> +++ b/rules/open62541.make
> @@ -52,6 +52,7 @@ OPEN62541_CONF_OPT := \
> $(CROSS_CMAKE_USR) \
> -DBUILD_SHARED_LIBS=ON \
> -DCLANG_FORMAT_EXE=$(PTXDIST_WORKSPACE)/selected_toolchain/clang-format \
> + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \
> -DMDNSD_LOGLEVEL=$(OPEN62541_LOGLEVEL) \
> -DOPEN62541_VERSION="v$(OPEN62541_VERSION)" \
> -DUA_ARCHITECTURE=posix \
prev parent reply other threads:[~2024-09-12 12:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 8:32 [ptxdist] [PATCH] " Roland Hieber
2024-09-12 12:11 ` Michael Olbrich [this message]
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=20240912121157.2687810-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=rhi@pengutronix.de \
/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