From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sourceware.org (Postfix) with ESMTPS id 02AFF3864877 for ; Fri, 21 Aug 2020 08:21:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 02AFF3864877 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=inria.fr Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Paul.Zimmermann@inria.fr X-IronPort-AV: E=Sophos;i="5.76,335,1592863200"; d="scan'208";a="464190412" Received: from tomate.loria.fr (HELO tomate) ([152.81.10.51]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 10:20:43 +0200 Date: Fri, 21 Aug 2020 10:20:43 +0200 Message-Id: From: Paul Zimmermann To: newlib@sourceware.org Subject: compiling newlib X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2020 08:21:17 -0000 Hi, I am new to this list. I have two questions: 1) I have a file newlib/libm/libm.a, that I have downloaded somewhere, but I don't remember where. I'd like to know to which version of newlib it corresponds. Is there a way to do this? 2) I downloaded newlib-3.3.0 from ftp://sourceware.org/pub/newlib/, but I am unable to compile it on x86_64 under Linux. Here is what I did: $ tar xf /tmp/newlib-3.3.0.tar.gz $ cd newlib-3.3.0 $ mkdir build $ cd build $ ../configure --prefix=/tmp # runs ok $ make The make command returns almost immediately, and there is no libm.a file created. I tried also the following: $ tar xf /tmp/newlib-3.3.0.tar.gz $ cd newlib-3.3.0 $ mkdir build $ cd build $ ../configure --prefix=/tmp --target=x86_64 $ make Then make seems to do more job, however it fails with: /bin/bash: line 2: x86_64-ar: command not found Note: item 1 of the FAQ on https://sourceware.org/newlib/ refers to ${FULL_PATH_TO_SRC}/src/configure --prefix=`pwd` --target=XXX but there is no src directory in the newlib-3.3.0.tar.gz tarball. What am I doing wrong? Best regards, Paul Zimmermann