From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH] open62541: disable link-time optimization
Date: Wed, 28 Aug 2024 10:32:06 +0200 [thread overview]
Message-ID: <20240828083206.1976814-1-rhi@pengutronix.de> (raw)
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>
---
rules/open62541.make | 1 +
1 file changed, 1 insertion(+)
diff --git a/rules/open62541.make b/rules/open62541.make
index a44bc189a816..ed2354f643d0 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 \
--
2.39.2
next reply other threads:[~2024-08-28 8:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 8:32 Roland Hieber [this message]
2024-09-12 12:11 ` [ptxdist] [APPLIED] " Michael Olbrich
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=20240828083206.1976814-1-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=ptxdist@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