From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by sourceware.org (Postfix) with ESMTPS id B190C384A01B for ; Mon, 23 Mar 2020 11:40:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B190C384A01B Received: by mail-lj1-x243.google.com with SMTP id t17so3443777ljc.12 for ; Mon, 23 Mar 2020 04:40:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5w5Ix8TvfEHxe1fIrl7giNZilRbgp3H8pff7ojDI4Sw=; b=gvVXiESHSDdfy74hK1JlWTSnbNE/Otgav321ufKSyfZjK6X9uudFHWrtX0baVeXXv+ ht5Z6vdKDjIrrIdVkxNnh4zprB1M5wkWQQLs1tgESpGs1v6ZdPE4HPOktG/NQr3WEQCw ict1fzqDEDTCvX+IUOxp9Ghr0mpBwwDvGtFCTj98FZjbaSA6sTjGavEXXR/GEux5yMwG mjWhO9wnV3GMvPCn8oQzUasRg+CM2AQ27G8xKSXQd9h7qLCS2jvxoDBygC6FUYz8kY1B ZKGinr5n3oK3zNzU41Ohqws1ReX8afdko3/Ddt/oihwyPe40xDSQnZ5teeC4W9RiOaYu mQKg== X-Gm-Message-State: ANhLgQ0ptY+Hjvj+HYR4DZZoxbWTQ+fo3LA5biozQmU1Gdw2naNDNf9c wN4ZSzH0LxzTijLTfDYl0rw= X-Google-Smtp-Source: ADFU+vtwu+7KhLE3OFykYrMEucPzDNduGE4K7pU44K2qg2q6cBXZWU3JCHygVlSNeRLzWfNU4GBSBQ== X-Received: by 2002:a2e:8711:: with SMTP id m17mr13606120lji.124.1584963599597; Mon, 23 Mar 2020 04:39:59 -0700 (PDT) Received: from [10.37.129.2] (net.iroazh.eu. [109.190.73.171]) by smtp.gmail.com with ESMTPSA id n23sm825763lji.59.2020.03.23.04.39.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2020 04:39:58 -0700 (PDT) From: "Emmanuel Blot" To: "bitmap kid" Cc: newlib@sourceware.org Subject: Re: Newlib-3.3.0 build failed with gcc-9.3.0 armv6-m Date: Mon, 23 Mar 2020 12:39:57 +0100 X-Mailer: MailMate (1.13.1r5671) Message-ID: <9BCC1749-5877-4DAF-A499-9619AD486F07@gmail.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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: Mon, 23 Mar 2020 11:40:02 -0000 On 21 Mar 2020, at 18:45, bitmap kid via Newlib wrote: > Hello, > > When I compile newlib with a gcc-9.3.0, i get the following error : > arm-unknown-eabi-gcc > ../../../../newlib-3.3.0/libgloss/arm/linux-syscalls0.S:103: Error: = > SVC is > not permitted on this architecture > make[3]: *** [Makefile:126 : linux-syscalls0.o] Erreur 1 I=E2=80=99ve bumped on this one so many times :-) I do not get why the build system tries to build Linux syscalls for a = baremetal target, hence the error. > Am I at an impasse ? Not really. If there is no better way, you can apply a small patch to = disable building those files. See for example the patch files from = https://github.com/eblot/homebrew-armeabi/blob/master/armv6m-cortex-m0plu= s.rb, = I=E2=80=99d day the one you want to have a look at is = https://gist.githubusercontent.com/eblot/2f0af31b27cf3d6300b190906ae58c5c= /raw/de43bc16b7280c97467af09ef329fc527296226e/newlib-arm-eabi-3.1.0.patch= / HTH, Manu