From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 8A4193857417 for ; Fri, 16 Jul 2021 05:05:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8A4193857417 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x535.google.com with SMTP id k27so11285939edk.9 for ; Thu, 15 Jul 2021 22:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wBsDkKOlUkBvNoyzgk4eJFB09SlvZVdAWCY14uGjFI8=; b=BJnWs9TRxWAhkxCJRF8vWuwTnX5lLYLMdgdTS6FbIgJYBryEy0GdJzyetE4U2d2uIb sDosZIXocmU2iSzujJlIOhfyHKuo0qCDgv8qSHvmL5yy2cD+ZQLK/vBAqnw+5VQ++xn6 n+QWJq/ZMP3XaqGWZ+j7xhiWZZ/t4mA5br8wpXU79r5D5f3zjqAExyTKuJgxTpKEcr7G 8Stx9/PB2P5j2cGjB/UrRuumKnhcR8jvsrP/txrPnn8FN7bGuZZTje32Yio53sel3WBJ nQ7I7EYnI+TlN4jTpc0WjS030C6W34gblWmVhS1a8oPMUWU3WU6uoJfVtjrLyyhxJbQ7 eSBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wBsDkKOlUkBvNoyzgk4eJFB09SlvZVdAWCY14uGjFI8=; b=D4E8ZX6yZE9nZyZA7CF2X5AhCU06fANSAQvy/g5e1ft1/jK1SWFclo2Ljm0w0cSsf9 sm8jjEmrDsR7/xPKK2HW20a/LCtQkg4SOah5DUWu0jE236EnItNEJWPNzDOSaIMpJ2mX VQXhgzPNazmXRD55F0jwJP8Fpw85NI/uCZXLIobgNw0mbQ2i4n34uY0zH+iKGi7aOGwg nZIhiB7DmZhAFlrZaUYFrM3o8AuIWKq/KP5RANgMGgKhuCeFLTr9kyBzfYrOgDHSDZHw 0ctZww9tjPqTIcMZDtFCDakXQ5POFHIDQyK1q7xvn5usWGqyvpJdTjKCAMQtiOd/O3S3 DiwQ== X-Gm-Message-State: AOAM5301joJY6OLWqxL/NIZhQ6juQjg/yuAKPsZcrqMEppRy1ShFAZr+ k+iykfhJ7imnuafAXVMB4Ffx59a+x3Vo+P5OBB4= X-Google-Smtp-Source: ABdhPJyYIdKEFGmoAaNRONZrSoXrm2NnFWDaDIL7bFA93gtYDz1/5WsvzPZ08jc7HUgMWSGuK2QTdrh00qw1+HHGEv4= X-Received: by 2002:a05:6402:128d:: with SMTP id w13mr11885980edv.1.1626411900647; Thu, 15 Jul 2021 22:05:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Harish Date: Fri, 16 Jul 2021 10:34:23 +0530 Message-ID: Subject: Re: Building libm library To: Jeff Johnston Cc: Newlib X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 16 Jul 2021 05:05:03 -0000 Got it, Thank you :) On Fri, Jul 16, 2021 at 9:16 AM Jeff Johnston wrote: > > > On Thu, Jul 15, 2021 at 8:54 PM Harish wrote: > >> Ok, thanks for the clarification. One more question. I would like to use >> math library on a baremetal and want to know if the newlib math library >> uses system calls?. If yes, is there any other implementation which can be >> used for baremetals? >> >> > libm does not call system calls. If you want to implement libc but don't > want to implement system calls, you can use libnosys which is a stub > library (e.g. reads fail, writes fail, etc...). > It is built as part of libgloss and you simply reference it using -lnosys > in your link. > > Regards, >> Harish >> >> On Thu, 15 Jul, 2021, 11:19 pm Jeff Johnston, >> wrote: >> >>> Hello Harish, >>> >>> It isn't supported. There are no top Makefile targets for you to do >>> this and building targets directly from Makefiles in subdirectories often >>> runs into issues (e.g. missing headers that haven't been copied or >>> paths/vars set incorrectly since they are supposed to be set by parent >>> Makefiles). >>> In addition, the errno/reentrant mechanisms used by libm.a are supplied >>> by libc.a. >>> >>> -- Jeff J. >>> >>> On Thu, Jul 15, 2021 at 7:44 AM Harish wrote: >>> >>>> Hi newlib, >>>> >>>> I would like to build just libm.a library, is it possible? if yes, >>>> please >>>> let me know how can I do it. >>>> >>>> >>>> Thanks, >>>> Harish C >>>> >>>>