mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] open62541: disable link-time optimization
@ 2024-08-28  8:32 Roland Hieber
  2024-09-12 12:11 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Hieber @ 2024-08-28  8:32 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] open62541: disable link-time optimization
  2024-08-28  8:32 [ptxdist] [PATCH] open62541: disable link-time optimization Roland Hieber
@ 2024-09-12 12:11 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2024-09-12 12:11 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

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 \



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-12 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-28  8:32 [ptxdist] [PATCH] open62541: disable link-time optimization Roland Hieber
2024-09-12 12:11 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox