From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cc-smtpout1.netcologne.de (cc-smtpout1.netcologne.de [IPv6:2001:4dd0:100:1062:25:2:0:1]) by sourceware.org (Postfix) with ESMTPS id F10923858401; Sun, 2 Jan 2022 22:58:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F10923858401 Received: from cc-smtpin3.netcologne.de (cc-smtpin3.netcologne.de [89.1.8.203]) by cc-smtpout1.netcologne.de (Postfix) with ESMTP id 921471265B; Sun, 2 Jan 2022 23:58:39 +0100 (CET) Received: from [IPv6:2001:4dd7:eb03:0:7285:c2ff:fe6c:992d] (2001-4dd7-eb03-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de [IPv6:2001:4dd7:eb03:0:7285:c2ff:fe6c:992d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cc-smtpin3.netcologne.de (Postfix) with ESMTPSA id AE16A11DDF; Sun, 2 Jan 2022 23:58:29 +0100 (CET) Subject: [power-iee128] How to specify linker flags To: Michael Meissner , Bill Schmidt , "fortran@gcc.gnu.org" , Jakub Jelinek , Segher Boessenkool , Peter Bergner , David Edelsohn , gcc mailing list References: <63b5434e-f8fa-97b3-d357-e25094579b16@netcologne.de> From: Thomas Koenig Message-ID: <541fa494-ce3c-50f2-367b-f0dd492dcf45@netcologne.de> Date: Sun, 2 Jan 2022 23:58:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-NetCologne-Spam: L X-Rspamd-Queue-Id: AE16A11DDF X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_MANYTO, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2022 22:58:43 -0000 Hi Michael, > If you are building libraries that contain modules with multiple long double > types, you must use the '-mno-gnu-attribute'. We also use the '-Wno-psabi' > option, which silences the warning that you are switching long double types (if > glibc is not 2.34 or newer). We may need to tweak -Wno-psabi for use with > Fortran. I am now at the point where the object files are also compiled correctly for the gfortran specifics: 0000000000000000 <_gfortran_specific__abs_r17>: 0: 09 00 43 f4 lxv vs34,0(r3) 4: 48 16 40 fc xsabsqp v2,v2 8: 20 00 80 4e blr However, the linker complains, as you said it would, about the different formats: /opt/at15.0/bin/ld: .libs/maxloc0_4_r16.o uses IBM long double, .libs/_abs_r17.o uses IEEE long double /opt/at15.0/bin/ld: failed to merge target specific data of file .libs/_abs_r17.o I know next to nothing about libtool, so I do not know how to add the flags so the linker can find them. Any pointers? (I have not yet committed the changes because I do not want to commit something that does not compile. If anybody wants to take a look, it's on the ieee128 virtual machine under /home/tkoenig/ieee ). Regards Thomas