From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id D96733858D28; Sat, 4 Dec 2021 15:25:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D96733858D28 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1B4EVL9j003589; Sat, 4 Dec 2021 15:25:17 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3cr5mmc043-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 04 Dec 2021 15:25:17 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1B4F94Ng015914; Sat, 4 Dec 2021 15:25:16 GMT Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0b-001b2d01.pphosted.com with ESMTP id 3cr5mmc03x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 04 Dec 2021 15:25:16 +0000 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1B4FNLsh031385; Sat, 4 Dec 2021 15:25:15 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma01dal.us.ibm.com with ESMTP id 3cqyy9xf9x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 04 Dec 2021 15:25:15 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1B4FPEFg33161592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 4 Dec 2021 15:25:14 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 18F5B6A061; Sat, 4 Dec 2021 15:25:14 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 740C16A04D; Sat, 4 Dec 2021 15:25:13 +0000 (GMT) Received: from toto.the-meissners.org (unknown [9.160.34.144]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTPS; Sat, 4 Dec 2021 15:25:13 +0000 (GMT) Date: Sat, 4 Dec 2021 10:25:11 -0500 From: Michael Meissner To: Thomas Koenig Cc: gcc mailing list , Michael Meissner , Bill Schmidt , David Edelsohn , Segher Boessenkool , "fortran@gcc.gnu.org" , Peter Bergner Subject: Re: [power-ieee128] What should the math functions be annotated with? Message-ID: Mail-Followup-To: Michael Meissner , Thomas Koenig , gcc mailing list , Bill Schmidt , David Edelsohn , Segher Boessenkool , "fortran@gcc.gnu.org" , Peter Bergner References: <20211203092825.GN2646553@tucnak> <8ada4016-3bc2-c2fb-ed38-285f4813e75c@netcologne.de> <20211203113536.GQ2646553@tucnak> <99088f27-59cf-abec-8dc7-388ee2d2c5a8@netcologne.de> <20211204102919.GD2646553@tucnak> <021be175-077b-7121-d9a7-b06e6311ca90@netcologne.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <021be175-077b-7121-d9a7-b06e6311ca90@netcologne.de> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: KTgB71xQnwQa-Iz6ik5vfS7gwF7Nal9K X-Proofpoint-GUID: Z7pHI-vvrCF8X2MY19ZKhtndPvTMXsoi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-04_05,2021-12-02_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 phishscore=0 malwarescore=0 clxscore=1015 suspectscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 adultscore=0 impostorscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112040095 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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: Sat, 04 Dec 2021 15:25:19 -0000 On Sat, Dec 04, 2021 at 02:42:13PM +0100, Thomas Koenig wrote: > On 04.12.21 11:29, Jakub Jelinek wrote: > > If zlib devel isn't installed, drop --with-system-zlib option > > or use --without-system-zlib. > > > > You've asked in another mail how to configure gcc to default to > > -mabi=ieeelongdouble, that is > > --with-long-double-format=ieee > > Thanks for those hints. > > I have now managed to bootstrap a compiler on that machine, but > success at running programs is somewhat limited: > > tkoenig@gcc-fortran:~/Tst$ which gcc > /home/tkoenig/bin/gcc > tkoenig@gcc-fortran:~/Tst$ cat hello.c > #include > > int main() > { > printf ("Hello, world!\n"); > return 0; > } > tkoenig@gcc-fortran:~/Tst$ gcc hello.c > tkoenig@gcc-fortran:~/Tst$ ldd ./a.out > ./a.out: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.34' not > found (required by ./a.out) > linux-vdso64.so.1 (0x00007a16a4510000) > libc.so.6 => /lib/powerpc64le-linux-gnu/libc.so.6 > (0x00007a16a42c0000) > /opt/at15.0/lib64/ld64.so.2 => /lib64/ld64.so.2 (0x00007a16a4530000) > tkoenig@gcc-fortran:~/Tst$ export LD_LIBRARY_PATH=~/lib64:/opt/at15.0/lib64/ > tkoenig@gcc-fortran:~/Tst$ ls > Segmentation fault (core dumped) > > @IBM folks: I would appreciate if you gave me access to a system > which actually worked, together with the necessary information, > so I can actually do what I volunteered to do. > > Right now, I appear to be just wasting my time. The Advance Toolchain has its own GLIBC, and it sets a different path to load up the libraries. You should not need to set the LD_LIBRARY_PATH variable. Note, the system ldd does not tend to accurately report the library dependencies for AT libraries: 15:15:03 ~/tests -gcc-fortran-> /home/meissner/fsf-install-ppc64le/trunk/bin/gcc -O2 hello.c 15:15:23 ~/tests -gcc-fortran-> ldd a.out ./a.out: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./a.out) linux-vdso64.so.1 (0x0000796b63da0000) libm.so.6 => /lib/powerpc64le-linux-gnu/libm.so.6 (0x0000796b63c50000) libc.so.6 => /lib/powerpc64le-linux-gnu/libc.so.6 (0x0000796b63a10000) /opt/at15.0/lib64/ld64.so.2 => /lib64/ld64.so.2 (0x0000796b63dc0000) 15:15:27 ~/tests -gcc-fortran-> /opt/at15.0/bin/ldd a.out linux-vdso64.so.1 (0x000070dea0140000) libm.so.6 => /opt/at15.0/lib64/power9/libm.so.6 (0x000070dea0020000) libc.so.6 => /opt/at15.0/lib64/power9/libc.so.6 (0x000070de9fdb0000) /opt/at15.0/lib64/ld64.so.2 (0x000070dea0160000) This is done by the GCC driver setting a different dynamic linker path internally: -dynamic-linker /opt/at15.0/lib64/ld64.so.2 Tulio can probably expand on what is going on in more detail. The reason for using the Advance Toolchain is to get access to newer libraries. I don't know Ubuntu at all, but I believe the version that is installed is too old to have the necessary changes in it. There isn't a LTS (long time support) version of Ubuntu yet available that has the library. There are newer versions that aren't LTS (i.e. every 6 months you have to jump to the next release), and Peter, Bill and I have talked about upgrading the partition to use those. -- Michael Meissner, IBM PO Box 98, Ayer, Massachusetts, USA, 01432 email: meissner@linux.ibm.com