From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 12 Sep 2024 14:17:19 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1soilE-003mvi-13 for lore@lore.pengutronix.de; Thu, 12 Sep 2024 14:17:19 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1soilD-0008Rf-Iv; Thu, 12 Sep 2024 14:17:19 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1soig1-00026J-Mn; Thu, 12 Sep 2024 14:11:57 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1soig1-007NRu-AE; Thu, 12 Sep 2024 14:11:57 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1soig1-00BHDy-0t; Thu, 12 Sep 2024 14:11:57 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 12 Sep 2024 14:11:57 +0200 Message-Id: <20240912121157.2687810-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240828083206.1976814-1-rhi@pengutronix.de> References: <20240828083206.1976814-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] open62541: disable link-time optimization X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 9e0e8ff94cdc3699c6b284fcd83b48f042431bb1. Michael [sent from post-receive hook] On Thu, 12 Sep 2024 14:11:57 +0200, Roland Hieber 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 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 > Message-Id: <20240828083206.1976814-1-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > 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 \